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 + + COUNT ( * ) - - + 16 FROM tab0 AS cor0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5593
SELECT DISTINCT col1 / - ( + col1 ) + - CAST( col0 AS SIGNED ) AS col1, + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----

skipif mysql # not compatible
query II rowsort label-5593
SELECT DISTINCT col1 / - ( + col1 ) + - CAST ( col0 AS INTEGER ) AS col1, + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5596
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE col2 IS NULL
----
0

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

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

query I rowsort
SELECT DISTINCT - + col0 * - col0 AS col0 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5599
SELECT + - CAST( col0 AS SIGNED ) DIV + col1 col1 FROM tab1 AS cor0 WHERE NOT col1 * + col2 DIV col2 IS NULL
----
-1
-17
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5599
SELECT + - CAST ( col0 AS INTEGER ) / + col1 col1 FROM tab1 AS cor0 WHERE NOT col1 * + col2 / col2 IS NULL
----
-1
-17
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT - 78 BETWEEN + - 36 * + col0 AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 30 AS col0, + 40 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to b7989c89c466bbdaaf7b4bf7ed8582be

query I rowsort
SELECT col0 * - ( col2 ) FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT - 19 * - - col2 FROM tab0 AS cor0
----
-1881
-190
-893

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

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

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

query I rowsort
SELECT 72 * + col2 FROM tab2 AS cor0
----
1656
2880
4176

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT COUNT( - - 93 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5608
SELECT COUNT ( - - 93 ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5609
SELECT ALL - col0 * - + CAST( - 72 AS SIGNED ) FROM tab1
----
-3672
-6120
-6552

skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL - col0 * - + CAST ( - 72 AS INTEGER ) FROM tab1
----
-3672
-6120
-6552

query I rowsort
SELECT DISTINCT - ( - col0 ) * col0 * + col0 - col1 AS col1 FROM tab0
----
3294
658482
912672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5611
SELECT ALL col2 * - + 47 FROM tab2 WHERE 68 + 62 BETWEEN col1 * CAST( NULL AS SIGNED ) AND 0
----

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL col2 * - + 47 FROM tab2 WHERE 68 + 62 BETWEEN col1 * CAST ( NULL AS INTEGER ) AND 0
----

query I rowsort
SELECT ALL 14 * col1 AS col2 FROM tab0
----
1134
14
294

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5614
SELECT + ( - COUNT( * ) ) DIV - COUNT( * ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5614
SELECT + ( - COUNT ( * ) ) / - COUNT ( * ) AS col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT ALL - COUNT( * ) + - 82 * + + 73 AS col0 FROM tab0
----
-5989

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL - COUNT ( * ) + - 82 * + + 73 AS col0 FROM tab0
----
-5989

onlyif mysql # DIV for integer division: 
query I rowsort label-5616
SELECT ALL col0 DIV col0 * + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5616
SELECT ALL col0 / col0 * + col2 FROM tab1
----
59
68
96

query II rowsort
SELECT + + 30 * 75 * + col1 + - + col1, col2 AS col1 FROM tab0 cor0
----
182169
47
2249
99
47229
10

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

query I rowsort
SELECT ALL col0 * - + col2 AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT col2 + - + 30 FROM tab1 AS cor0
----
29
38
66

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL = NULL
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5623
SELECT DISTINCT + CAST ( + SUM ( DISTINCT - col0 ) AS INTEGER ) + COUNT ( * ) col0 FROM tab1
----
-224

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col1 - col2 = ( NULL )
----

query II rowsort
SELECT + + ( col0 ) * - col0 * + - col2 - + - 82 + col1 * + + col0 * - col0, 63 AS col1 FROM tab0 AS cor0 WHERE + col1 >= + col2
----
-7568
63
-83177
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5627
SELECT + - col2 - + col1 + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5627
SELECT + - col2 - + col1 + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 AS cor0 WHERE NULL > + col2 / - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT ( - ( + 88 ) ) * 70 - SUM( DISTINCT - + 38 ) AS col0 FROM tab2 cor0
----
-6122

skipif mysql # not compatible
query I rowsort label-5629
SELECT ( - ( + 88 ) ) * 70 - SUM ( DISTINCT - + 38 ) AS col0 FROM tab2 cor0
----
-6122

query I rowsort
SELECT ALL col1 - - + col2 + - 2 * + - col2 AS col1 FROM tab0 AS cor0
----
222
298
51

query I rowsort
SELECT DISTINCT - col2 - col0 * - col2 * - 68 AS col0 FROM tab0
----
-47987
-59170
-653103

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT - 8 * + COUNT( ALL + + 41 ) AS col2 FROM tab1 WHERE + 69 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5633
SELECT - 8 * + COUNT ( ALL + + 41 ) AS col2 FROM tab1 WHERE + 69 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5634
SELECT ALL + 34, MAX( DISTINCT - col0 ) AS col0 FROM tab1
----
34
-51

skipif mysql # not compatible
query II rowsort label-5634
SELECT ALL + 34, MAX ( DISTINCT - col0 ) AS col0 FROM tab1
----
34
-51

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

skipif mysql # not compatible
query II rowsort label-5635
SELECT ALL 64 AS col0, + COUNT ( * ) AS col1 FROM tab1
----
64
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 9 col2, col2 AS col1 FROM tab2
----
9
23
9
40
9
58

query I rowsort
SELECT 34 * - + 19 AS col0 FROM tab2
----
-646
-646
-646

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

query I rowsort
SELECT DISTINCT + - 46 + - + col2 - + col1 FROM tab1 cor0 WHERE NOT + col2 NOT BETWEEN 20 AND + 37
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5640
SELECT ALL - + CAST( + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5640
SELECT ALL - + CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT ALL - MAX( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL - MAX ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5644
SELECT DISTINCT * FROM tab1 cor0 WHERE ( - CAST( NULL AS DECIMAL ) * 53 >= col2 + + col0 )
----

skipif mysql # not compatible
query III rowsort label-5644
SELECT DISTINCT * FROM tab1 cor0 WHERE ( - CAST ( NULL AS REAL ) * 53 >= col2 + + col0 )
----

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

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

query I rowsort
SELECT 70 FROM tab2 WHERE NOT - col2 NOT IN ( + 98 )
----

query I rowsort
SELECT col0 * + 46 FROM tab2
----
2116
2944
3450

query I rowsort
SELECT 62 * - col2 - ( + ( - + 46 ) ) FROM tab1 AS cor0
----
-3612
-4170
-5906

query I rowsort
SELECT + col0 * + - col0 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT 77 * - - COUNT( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-5650
SELECT 77 * - - COUNT ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
231

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

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

query I rowsort
SELECT ALL 93 * col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
5487
6324
8928

query I rowsort
SELECT ALL + 78 * + col0 FROM tab0 AS cor0
----
1170
6786
7566

query I rowsort
SELECT ALL 50 FROM tab2 cor0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT - + 98 + + MIN( - + col2 ) FROM tab0 AS cor0
----
-197

skipif mysql # not compatible
query I rowsort label-5655
SELECT - + 98 + + MIN ( - + col2 ) FROM tab0 AS cor0
----
-197

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 39 col0, 54 FROM tab0
----
-39
54
-39
54
-39
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT + MIN( - 72 ) FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-5660
SELECT + MIN ( - 72 ) FROM tab2
----
-72

query I rowsort
SELECT DISTINCT col2 + + col0 + 23 AS col1 FROM tab2 AS cor0
----
127
156
92

query I rowsort
SELECT ALL + 68 + col1 * - ( - - 13 ) + - + col1 FROM tab1 AS cor0
----
-128
-2
-590

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5664
SELECT DISTINCT + + 94 * + - 3 + + ( - COUNT( * ) ), COUNT( * ) AS col2 FROM tab2 AS cor0
----
-285
3

skipif mysql # not compatible
query II rowsort label-5664
SELECT DISTINCT + + 94 * + - 3 + + ( - COUNT ( * ) ), COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-285
3

query I rowsort
SELECT - - ( 9 ) + - - ( + 73 ) * + ( - col1 ) AS col2 FROM tab2 AS cor0
----
-3714
-4882
-5612

query I rowsort
SELECT DISTINCT + - 8 + + - 20 FROM tab0 AS cor0
----
-28

query II rowsort
SELECT 25, - col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
25
-59
25
-68
25
-96

query I rowsort
SELECT DISTINCT + col1 + + 31 AS col2 FROM tab2 AS cor0
----
108
82
98

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 * + col1 col0 FROM tab1
----
1358
4559
485

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

query II rowsort
SELECT + 64 * - + col0 * - 17, col2 FROM tab2
----
50048
23
69632
40
81600
58

query I rowsort
SELECT ALL - col0 * + - col1 * + 93 FROM tab1
----
39525
397761
66402

onlyif mysql # DIV for integer division: 
query I rowsort label-5675
SELECT DISTINCT col0 DIV - - 6 FROM tab0
----
14
16
2

skipif mysql # not compatible
query I rowsort label-5675
SELECT DISTINCT col0 / - - 6 FROM tab0
----
14
16
2

query I rowsort
SELECT ALL + ( + col2 ) * - - col0 AS col0 FROM tab1
----
4896
5015
6188

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5678
SELECT + ( - ( 89 ) ) DIV + col1 AS col2 FROM tab1 cor0
----
-1
-17
-6

skipif mysql # not compatible
query I rowsort label-5678
SELECT + ( - ( 89 ) ) / + col1 AS col2 FROM tab1 cor0
----
-1
-17
-6

query I rowsort
SELECT 78 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 52 * - col0 AS col1 FROM tab0
----
-4524
-5044
-780

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

query II rowsort
SELECT ALL col0 AS col2, col0 + - col0 * - 71 FROM tab2 AS cor0
----
46
3312
64
4608
75
5400

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 9 * 20 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-5686
SELECT ALL 61, 83 AS col0, + COUNT( * ) AS col1 FROM tab1 AS cor0
----
61
83
3

skipif mysql # not compatible
query III rowsort label-5686
SELECT ALL 61, 83 AS col0, + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
61
83
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5687
SELECT - MIN( ALL CAST( + + col1 AS SIGNED ) ) FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
-51

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5688
SELECT DISTINCT - col0 * - - CAST( NULL AS SIGNED ) * + 98 + + + 83 + + 19 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5688
SELECT DISTINCT - col0 * - - CAST ( NULL AS INTEGER ) * + 98 + + + 83 + + 19 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT DISTINCT SUM( + 82 ) AS col2 FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-5689
SELECT DISTINCT SUM ( + 82 ) AS col2 FROM tab0
----
246

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

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

query I rowsort
SELECT 81 * - col1 + col0 FROM tab0
----
-1614
-6546
16

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 17 = - col0
----

query I rowsort
SELECT - + 31 * + 19 * + col0 + + + 34 AS col2 FROM tab0 AS cor0
----
-51209
-57099
-8801

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * col1 IS NULL
----

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

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

query II rowsort
SELECT + col0, - col0 - - col0 * - col1 * - col0 AS col1 FROM tab2
----
46
107870
64
315328
75
376800

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT - COUNT( - 25 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5697
SELECT - COUNT ( - 25 ) FROM tab1
----
-3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5698
SELECT + + 10 - - + CAST ( NULL AS INTEGER ) * + col0, col1 col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT ALL 65 * - ( + col2 ) AS col2 FROM tab2 AS cor0
----
-1495
-2600
-3770

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT - - COUNT( * ) * + SUM( DISTINCT + ( 26 ) ) AS col2 FROM tab2 cor0
----
78

skipif mysql # not compatible
query I rowsort label-5701
SELECT - - COUNT ( * ) * + SUM ( DISTINCT + ( 26 ) ) AS col2 FROM tab2 cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT ALL - 2 + + + 97 * - MAX( + col1 ) + + COUNT( - + 46 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
-7468

skipif mysql # not compatible
query I rowsort label-5702
SELECT ALL - 2 + + + 97 * - MAX ( + col1 ) + + COUNT ( - + 46 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
-7468

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

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

query I rowsort
SELECT ALL ( - - col1 ) * + 68 AS col1 FROM tab2
----
3468
4556
5236

onlyif mysql # DIV for integer division: 
query I rowsort label-5705
SELECT ALL + 68 DIV + col0 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL + 68 / + col0 AS col0 FROM tab1
----
0
0
1

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

query I rowsort
SELECT DISTINCT - col1 * - 57 * + col0 FROM tab0 AS cor0
----
104139
5529
69255

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 > + 51 + - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * - - col0 * col1 AS col0 FROM tab1
----
201019
2125
9996

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5711
SELECT CAST( + 97 AS SIGNED ) FROM tab0 AS cor0 WHERE CAST( - col2 AS DECIMAL ) + - 28 / - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5711
SELECT CAST ( + 97 AS INTEGER ) FROM tab0 AS cor0 WHERE CAST ( - col2 AS REAL ) + - 28 / - col1 IS NULL
----

query I rowsort
SELECT ALL - col0 + 25 * 24 FROM tab2 AS cor0
----
525
536
554

query I rowsort
SELECT + col1 + - col1 - - col0 FROM tab1 AS cor0
----
51
85
91

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

skipif mysql # not compatible
query II rowsort label-5714
SELECT ALL + COUNT ( * ) AS col2, + COUNT ( * ) AS col0 FROM tab1
----
3
3

query I rowsort
SELECT 38 * + - col1 AS col0 FROM tab1
----
-1786
-190
-532

query II rowsort
SELECT 57 AS col1, + col2 FROM tab2
----
57
23
57
40
57
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5717
SELECT DISTINCT * FROM tab1 WHERE NOT + 97 BETWEEN NULL AND - ( CAST( NULL AS SIGNED ) ) + col0 + col0 / 14
----

skipif mysql # not compatible
query III rowsort label-5717
SELECT DISTINCT * FROM tab1 WHERE NOT + 97 BETWEEN NULL AND - ( CAST ( NULL AS INTEGER ) ) + col0 + col0 / 14
----

query I rowsort
SELECT 18 * + + col2 * - + col0 - + col1 AS col2 FROM tab0 AS cor0
----
-12771
-15681
-172855

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT - 3 + - MIN( ALL 12 ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-5719
SELECT - 3 + - MIN ( ALL 12 ) FROM tab1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT COUNT( * ) + - COUNT( * ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5720
SELECT COUNT ( * ) + - COUNT ( * ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - + col2 col2 FROM tab2
----
-104
-133
-69

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 * - - col2 AS col1 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT ( + 59 ) AS col1 FROM tab1
----
59
59
59

query I rowsort
SELECT ALL col1 * 42 FROM tab2
----
2142
2814
3234

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT 60 * COUNT( * ) * - + 69 AS col2 FROM tab1
----
-12420

skipif mysql # not compatible
query I rowsort label-5728
SELECT 60 * COUNT ( * ) * - + 69 AS col2 FROM tab1
----
-12420

onlyif mysql # DIV for integer division: 
query I rowsort label-5729
SELECT DISTINCT col2 DIV 82 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-5729
SELECT DISTINCT col2 / 82 FROM tab0
----
0
1

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

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

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

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

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

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

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

query I rowsort
SELECT ALL col1 + - - 79 AS col0 FROM tab2 AS cor0
----
130
146
156

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

query I rowsort
SELECT ALL - - col0 + - - ( - - col2 ) AS col1 FROM tab2 AS cor0
----
104
133
69

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 23 <= + - col0 + - 75
----

query I rowsort
SELECT - - ( 10 ) FROM tab2 AS cor0
----
10
10
10

query II rowsort
SELECT + - 51 * + - 93, col0 AS col2 FROM tab1 AS cor0
----
4743
51
4743
85
4743
91

query I rowsort
SELECT ALL 13 * + - col1 * - - col0 AS col0 FROM tab0 AS cor0
----
-1261
-15795
-23751

query I rowsort
SELECT 28 + - 22 FROM tab2
----
6
6
6

query I rowsort
SELECT col2 + + + col1 * col1 + - 13 + + + 38 * col1 FROM tab1
----
261
4050
811

query I rowsort
SELECT 51 + col0 * 65 - col1 FROM tab1
----
3352
5571
5919

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

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

query I rowsort
SELECT col2 * + - 3 + col2 AS col0 FROM tab1
----
-118
-136
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT ALL + COUNT( * ) * - SUM( DISTINCT - 67 ) FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-5748
SELECT ALL + COUNT ( * ) * - SUM ( DISTINCT - 67 ) FROM tab2
----
201

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5750
SELECT - col0 DIV - - col0 + - + col0 * col1 * + - col0 + - + col1 FROM tab0 AS cor0
----
158927
18143
9407

skipif mysql # not compatible
query I rowsort label-5750
SELECT - col0 / - - col0 + - + col0 * col1 * + - col0 + - + col1 FROM tab0 AS cor0
----
158927
18143
9407

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

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

query I rowsort
SELECT ALL - ( + - 32 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - 92 AND 18 * - col1 * - ( + col2 )
----

query I rowsort
SELECT + + 66 FROM tab0 WHERE NOT + col1 - + 12 + 27 IS NULL
----
66
66
66

query II rowsort
SELECT ALL col2, - 88 FROM tab0
----
10
-88
47
-88
99
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-5756
SELECT 45 DIV + - col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5756
SELECT 45 / + - col2 AS col0 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT 83 AS col2, 46 AS col0 FROM tab2 AS cor0
----
83
46

query II rowsort
SELECT DISTINCT 26 AS col2, 1 AS col2 FROM tab1 AS cor0
----
26
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT ALL ( + 36 ) + + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col1 < NULL
----
36

skipif mysql # not compatible
query I rowsort label-5759
SELECT ALL ( + 36 ) + + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col1 < NULL
----
36

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

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

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

skipif mysql # not compatible
query I rowsort label-5761
SELECT DISTINCT - SUM ( DISTINCT - 36 ) FROM tab1 AS cor0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 col0 FROM tab0 AS cor0 WHERE NOT col1 <> - + col1 * 17 + col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5763
SELECT CAST( - + 49 AS SIGNED ) DIV - col1 AS col0 FROM tab0 AS cor0
----
0
2
49

skipif mysql # not compatible
query I rowsort label-5763
SELECT CAST ( - + 49 AS INTEGER ) / - col1 AS col0 FROM tab0 AS cor0
----
0
2
49

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5766
SELECT ALL CAST( NULL AS DECIMAL ) * + col0, + 22 AS col0 FROM tab1
----
NULL
22
NULL
22
NULL
22

skipif mysql # not compatible
query II rowsort label-5766
SELECT ALL CAST ( NULL AS REAL ) * + col0, + 22 AS col0 FROM tab1
----
NULL
22
NULL
22
NULL
22

query I rowsort
SELECT DISTINCT 19 * 40 FROM tab1
----
760

query I rowsort
SELECT DISTINCT + 80 * + col2 FROM tab0
----
3760
7920
800

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

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

query I rowsort
SELECT - 75 * 24 AS col0 FROM tab0 AS cor0
----
-1800
-1800
-1800

query I rowsort
SELECT DISTINCT + 84 * col1 FROM tab2
----
4284
5628
6468

query I rowsort
SELECT 67 * - col0 AS col0 FROM tab1
----
-3417
-5695
-6097

onlyif mysql # DIV for integer division: 
query I rowsort label-5774
SELECT ALL + col0 DIV + 40 col2 FROM tab1
----
1
2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5774
SELECT ALL + col0 / + 40 col2 FROM tab1
----
1
2
2

query I rowsort
SELECT 15 * - + 75 * col0 + col2 FROM tab1
----
-102307
-57279
-95566

query II rowsort
SELECT col0 + - + ( col2 ), col1 AS col0 FROM tab2
----
17
67
23
51
24
77

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

skipif mysql # not compatible
query I rowsort label-5777
SELECT DISTINCT - col0 * + col1 + + col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + CAST ( col0 AS INTEGER ) AND - + 75 + - + col1
----

query I rowsort
SELECT 14 + + col1 AS col0 FROM tab0 AS cor0
----
15
35
95

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

query I rowsort
SELECT - 96 + col2 + - 96 + col0 FROM tab0 cor0
----
-130
-95
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5781
SELECT ALL col2 + + 57 DIV - col2 col2 FROM tab0 AS cor0
----
46
5
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5781
SELECT ALL col2 + + 57 / - col2 col2 FROM tab0 AS cor0
----
46
5
99

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN ( + col2 * col1 ) AND NULL
----
59
68
96

query III rowsort
SELECT * FROM tab1 WHERE - col2 - + + 98 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT col2 * - ( col0 ) AS col1 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT - col2 * + col1 * col2 - 36 + col2 FROM tab1
----
-128964
-17382
-217296

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5788
SELECT + col2 DIV - + ( col2 ) - - col2 FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-5788
SELECT + col2 / - + ( col2 ) - - col2 FROM tab0 AS cor0
----
46
9
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5789
SELECT DISTINCT * FROM tab1 WHERE + 57 * + 28 + 62 + + - CAST( - col1 AS SIGNED ) NOT IN ( col0 + CAST( col1 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5789
SELECT DISTINCT * FROM tab1 WHERE + 57 * + 28 + 62 + + - CAST ( - col1 AS INTEGER ) NOT IN ( col0 + CAST ( col1 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < + col0
----

query I rowsort
SELECT + 62 * + + ( - - 20 ) AS col0 FROM tab2
----
1240
1240
1240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 92 + - col1 / - - 54 col0 FROM tab1 WHERE NULL <= - 37 * - col1 / - 35 * - col0
----

query I rowsort
SELECT 29 * + col0 AS col0 FROM tab2
----
1334
1856
2175

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

skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL - MIN ( DISTINCT col0 ) AS col0 FROM tab1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-5797
SELECT ALL col2 DIV + - 76 + - 83 FROM tab0
----
-83
-83
-84

skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL col2 / + - 76 + - 83 FROM tab0
----
-83
-83
-84

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

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

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

query I rowsort
SELECT ALL ( 88 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

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

query I rowsort
SELECT + col1 + - - col0 AS col2 FROM tab0 AS cor0
----
108
96
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * + + ( - - col1 ) <= NULL OR + col2 NOT IN ( + - col0, 99 - col1 + col1, + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 * + col0 + col1 + + col0 FROM tab1
----
-335
-4139
-649

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

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

query I rowsort
SELECT 2 * - col0 FROM tab0 AS cor0
----
-174
-194
-30

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE 35 * + 34 / col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5809
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE 35 * + 34 / col2 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5810
SELECT ALL - col2 DIV + 38 - col2 AS col0, + col1 AS col1 FROM tab0 AS cor0
----
-10
21
-101
1
-48
81

skipif mysql # not compatible
query II rowsort label-5810
SELECT ALL - col2 / + 38 - col2 AS col0, + col1 AS col1 FROM tab0 AS cor0
----
-10
21
-101
1
-48
81

query I rowsort
SELECT + + 30 * + col1 - col0 FROM tab2 AS cor0
----
1484
1935
2246

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

query I rowsort
SELECT DISTINCT 46 + - - ( + + col1 ) AS col1 FROM tab0 AS cor0
----
127
47
67

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= 99
----

query I rowsort
SELECT DISTINCT - 12 * + col0 - - - col0 FROM tab2
----
-598
-832
-975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * + + col2 + - - col0 col1, - col2 AS col2 FROM tab2
----
-1127
-23
-3016
-40
-3811
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT - 33 + COUNT( col2 ) FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-5817
SELECT - 33 + COUNT ( col2 ) FROM tab1
----
-30

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5818
SELECT DISTINCT - CAST ( - + col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
15
87
97

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 44 + + 7 col2, 43 + - col2 col0 FROM tab1 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT DISTINCT + SUM( + col1 ) * 27 FROM tab2 AS cor0
----
5265

skipif mysql # not compatible
query I rowsort label-5821
SELECT DISTINCT + SUM ( + col1 ) * 27 FROM tab2 AS cor0
----
5265

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5822
SELECT ALL - - SUM( DISTINCT + + 39 ) DIV + + COUNT( * ) + + + 80 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL - - SUM ( DISTINCT + + 39 ) / + + COUNT ( * ) + + + 80 FROM tab1 AS cor0
----
93

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

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

query I rowsort
SELECT 48 AS col1 FROM tab2 cor0
----
48
48
48

query I rowsort
SELECT + + 28 * 97 FROM tab1 AS cor0
----
2716
2716
2716

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

query I rowsort
SELECT + col2 + - 15 AS col0 FROM tab0 AS cor0
----
-5
32
84

query I rowsort
SELECT DISTINCT 61 FROM tab0 WHERE NOT 72 IS NOT NULL
----

query I rowsort
SELECT 26 * + - col0 + - 97 FROM tab0
----
-2359
-2619
-487

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

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

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

query I rowsort
SELECT ALL - 89 FROM tab0 WHERE NULL IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5834
SELECT + 1 AS col2, SUM( col1 ) FROM tab1 AS cor0
----
1
66

skipif mysql # not compatible
query II rowsort label-5834
SELECT + 1 AS col2, SUM ( col1 ) FROM tab1 AS cor0
----
1
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT ALL + MAX( ALL + + col1 ) * ( 9 ) + 29 FROM tab2 AS cor0
----
722

skipif mysql # not compatible
query I rowsort label-5835
SELECT ALL + MAX ( ALL + + col1 ) * ( 9 ) + 29 FROM tab2 AS cor0
----
722

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE 37 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT SUM( + col2 ) + - 1 AS col0 FROM tab0
----
155

skipif mysql # not compatible
query I rowsort label-5837
SELECT SUM ( + col2 ) + - 1 AS col0 FROM tab0
----
155

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + ( + col0 ) ) * col2 col0, + col1 AS col2 FROM tab0
----
705
81
870
21
9603
1

query I rowsort
SELECT col2 + - 50 AS col1 FROM tab1
----
18
46
9

query I rowsort
SELECT - col1 + 64 * - 75 FROM tab2
----
-4851
-4867
-4877

query III rowsort
SELECT DISTINCT - col0, col2 AS col2, - col0 FROM tab2
----
9 values hashing to 0b29e8158f14c650698fbfefc4921c0e

query I rowsort
SELECT - 80 + 7 FROM tab2 cor0
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT + COUNT( * ) + + 9 FROM tab1 cor0
----
12

skipif mysql # not compatible
query I rowsort label-5843
SELECT + COUNT ( * ) + + 9 FROM tab1 cor0
----
12

query I rowsort
SELECT ALL + col1 * - + col2 + col2 + - col0 AS col2 FROM tab0 AS cor0
----
-287
-3775
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5845
SELECT + CAST( - 19 AS SIGNED ) + - col0 AS col0 FROM tab2 AS cor0
----
-65
-83
-94

skipif mysql # not compatible
query I rowsort label-5845
SELECT + CAST ( - 19 AS INTEGER ) + - col0 AS col0 FROM tab2 AS cor0
----
-65
-83
-94

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5847
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE - CAST( NULL AS DECIMAL ) > + col2
----
0

skipif mysql # not compatible
query I rowsort label-5847
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE - CAST ( NULL AS REAL ) > + col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5848
SELECT ALL + col0 + CAST( col2 AS SIGNED ) FROM tab1 cor0
----
144
147
159

skipif mysql # not compatible
query I rowsort label-5848
SELECT ALL + col0 + CAST ( col2 AS INTEGER ) FROM tab1 cor0
----
144
147
159

query I rowsort
SELECT ALL - 60 - - + col2 * - 82 FROM tab0 AS cor0
----
-3914
-8178
-880

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE - 20 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT COUNT( - + 20 ) - - 82 AS col2 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-5851
SELECT COUNT ( - + 20 ) - - 82 AS col2 FROM tab0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT ALL - COUNT( col1 ) * 34 * + COUNT( * ) AS col1 FROM tab0
----
-306

skipif mysql # not compatible
query I rowsort label-5852
SELECT ALL - COUNT ( col1 ) * 34 * + COUNT ( * ) AS col1 FROM tab0
----
-306

query I rowsort
SELECT ALL col0 * 15 AS col1 FROM tab2
----
1125
690
960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5854
SELECT DISTINCT + ( - 19 ) * CAST( NULL AS SIGNED ) * col0 col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5854
SELECT DISTINCT + ( - 19 ) * CAST ( NULL AS INTEGER ) * col0 col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 24 * + - col2 + + col1 - + 16 * + ( + col2 ) AS col2 FROM tab1 AS cor0
----
477
591
782

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col1 * - - col0 * + - 74 IS NULL
----

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE ( NULL ) IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

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

skipif mysql # not compatible
query I rowsort label-5858
SELECT + MIN ( ALL 84 ) AS col0 FROM tab1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT ALL 3 * COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL 3 * COUNT ( * ) FROM tab1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5860
SELECT ALL - col0 DIV - + 18 AS col2 FROM tab0 AS cor0
----
0
4
5

skipif mysql # not compatible
query I rowsort label-5860
SELECT ALL - col0 / - + 18 AS col2 FROM tab0 AS cor0
----
0
4
5

query I rowsort
SELECT ALL + - col1 * - 36 + - col0 AS col1 FROM tab2 AS cor0
----
1790
2337
2708

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

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

query I rowsort
SELECT - ( - 55 ) AS col1 FROM tab0 cor0
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT + COUNT( * ) * + + MAX( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-5864
SELECT + COUNT ( * ) * + + MAX ( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
288

query I rowsort
SELECT + 47 * col0 FROM tab2 AS cor0
----
2162
3008
3525

onlyif mysql # DIV for integer division: 
query I rowsort label-5866
SELECT 66 DIV - col1 AS col0 FROM tab0 AS cor0
----
-3
-66
0

skipif mysql # not compatible
query I rowsort label-5866
SELECT 66 / - col1 AS col0 FROM tab0 AS cor0
----
-3
-66
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5867
SELECT DISTINCT MAX( + col1 ) AS col0, - MIN( + - 6 ) FROM tab2
----
77
6

skipif mysql # not compatible
query II rowsort label-5867
SELECT DISTINCT MAX ( + col1 ) AS col0, - MIN ( + - 6 ) FROM tab2
----
77
6

query I rowsort
SELECT DISTINCT col0 * + + 8 AS col0 FROM tab1
----
408
680
728

onlyif mysql # DIV for integer division: 
query II rowsort label-5869
SELECT col1 DIV + 80 AS col2, - col1 FROM tab0
----
0
-1
0
-21
1
-81

skipif mysql # not compatible
query II rowsort label-5869
SELECT col1 / + 80 AS col2, - col1 FROM tab0
----
0
-1
0
-21
1
-81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT + COUNT( ALL col0 ) * - 76 AS col2 FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-5871
SELECT + COUNT ( ALL col0 ) * - 76 AS col2 FROM tab2
----
-228

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE 5 * 98 <= - 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT DISTINCT COUNT( DISTINCT - - 8 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5873
SELECT DISTINCT COUNT ( DISTINCT - - 8 ) FROM tab2
----
1

query I rowsort
SELECT DISTINCT + 11 + col0 FROM tab0 AS cor0
----
108
26
98

query I rowsort
SELECT + col0 * - col1 + + 50 AS col2 FROM tab0 AS cor0
----
-1165
-1777
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT - ( - COUNT( * ) ) col1 FROM tab0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5876
SELECT - ( - COUNT ( * ) ) col1 FROM tab0 WHERE NULL <= NULL
----
0

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE 1 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

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

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

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

query I rowsort
SELECT - + col2 - - + 11 AS col0 FROM tab0 AS cor0
----
-36
-88
1

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 <= - - col0 - + col2
----

query I rowsort
SELECT ALL - ( - col0 ) * 40 - + col2 FROM tab0
----
3470
3781
553

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5886
SELECT ALL + col1 * - - col2 * - CAST( + + col2 AS SIGNED ) AS col2 FROM tab1
----
-129024
-17405
-217328

skipif mysql # not compatible
query I rowsort label-5886
SELECT ALL + col1 * - - col2 * - CAST ( + + col2 AS INTEGER ) AS col2 FROM tab1
----
-129024
-17405
-217328

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 57 col0 FROM tab2
----
-2622
-3648
-4275

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5888
SELECT DISTINCT 81 DIV + CAST( col2 AS SIGNED ) AS col1 FROM tab0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-5888
SELECT DISTINCT 81 / + CAST ( col2 AS INTEGER ) AS col1 FROM tab0
----
0
1
8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT - COUNT( + + col0 ) * + 19 AS col2 FROM tab2 cor0
----
-57

skipif mysql # not compatible
query I rowsort label-5890
SELECT - COUNT ( + + col0 ) * + 19 AS col2 FROM tab2 cor0
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, + col0 + + col1 * - + ( + ( - 34 ) ) col0 FROM tab1 AS cor0
----
59
255
68
1689
96
527

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5892
SELECT col0 * - - 50 * CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5892
SELECT col0 * - - 50 * CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT DISTINCT + + 36 * - COUNT( * ) + - 79 FROM tab2 AS cor0
----
-187

skipif mysql # not compatible
query I rowsort label-5893
SELECT DISTINCT + + 36 * - COUNT ( * ) + - 79 FROM tab2 AS cor0
----
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT DISTINCT COUNT( + + col0 ) * + - COUNT( * ) col0 FROM tab1 WHERE + col1 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5894
SELECT DISTINCT COUNT ( + + col0 ) * + - COUNT ( * ) col0 FROM tab1 WHERE + col1 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT - - 88 + + - col1 FROM tab2 AS cor0
----
11
21
37

query I rowsort
SELECT - col2 + - 40 AS col2 FROM tab0 AS cor0
----
-139
-50
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-5897
SELECT + col1 DIV - 70 + - 17 + + - 96 FROM tab2 AS cor0
----
-113
-113
-114

skipif mysql # not compatible
query I rowsort label-5897
SELECT + col1 / - 70 + - 17 + + - 96 FROM tab2 AS cor0
----
-113
-113
-114

query I rowsort
SELECT DISTINCT - + col2 * 87 FROM tab1 cor0
----
-5133
-5916
-8352

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

skipif mysql # not compatible
query I rowsort label-5899
SELECT - COUNT ( * ) + - - ( + 76 ) FROM tab2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT ALL + ( - COUNT( * ) ) * + 38 FROM tab0
----
-114

skipif mysql # not compatible
query I rowsort label-5900
SELECT ALL + ( - COUNT ( * ) ) * + 38 FROM tab0
----
-114

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE - + col1 BETWEEN + - 19 AND NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5903
SELECT - 46 DIV col2 DIV + - col2 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5903
SELECT - 46 / col2 / + - col2 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * + 59 + - col2 AS col1 FROM tab2
----
2986
3895
4503

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5905
SELECT ALL - ( - + col1 ) * - + col1 + + ( + CAST( NULL AS SIGNED ) ) * - col1 col0, col2 DIV + + col2 FROM tab1 AS cor0
----
NULL
1
NULL
1
NULL
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5905
SELECT ALL - ( - + col1 ) * - + col1 + + ( + CAST ( NULL AS INTEGER ) ) * - col1 col0, col2 / + + col2 FROM tab1 AS cor0
----
NULL
1
NULL
1
NULL
1

query II rowsort
SELECT DISTINCT col2 * + + col1 + - + col2 AS col0, - col0 FROM tab0 cor0
----
0
-97
200
-87
3760
-15

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

query I rowsort
SELECT ALL + 51 + + col1 FROM tab0
----
132
52
72

query I rowsort
SELECT col1 * 71 + col2 FROM tab0
----
1501
170
5798

query I rowsort
SELECT - 27 * - 35 AS col1 FROM tab0
----
945
945
945

query I rowsort
SELECT - col1 * + 25 + col2 AS col0 FROM tab2
----
-1252
-1617
-1885

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 * col0 col1 FROM tab0
----
-1479
-1649
-255

query I rowsort
SELECT + col2 FROM tab2 WHERE 13 IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5915
SELECT col2 DIV - 67 + - col0 DIV + col1 FROM tab1
----
-17
-2
-4

skipif mysql # not compatible
query I rowsort label-5915
SELECT col2 / - 67 + - col0 / + col1 FROM tab1
----
-17
-2
-4

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 65 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5917
SELECT - col2 FROM tab0 WHERE CAST( NULL AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query I rowsort label-5917
SELECT - col2 FROM tab0 WHERE CAST ( NULL AS REAL ) = NULL
----

query I rowsort
SELECT col2 * col0 FROM tab0 WHERE NOT 45 + + 77 = - col1
----
705
870
9603

query I rowsort
SELECT DISTINCT - col1 * - 96 + 23 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 80 * + col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
1200
6960
7760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5921
SELECT + 82 AS col1 FROM tab0 WHERE CAST( - col1 AS SIGNED ) * - col1 = NULL
----

skipif mysql # not compatible
query I rowsort label-5921
SELECT + 82 AS col1 FROM tab0 WHERE CAST ( - col1 AS INTEGER ) * - col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5922
SELECT DISTINCT col1 DIV - col0 - col2 AS col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5922
SELECT DISTINCT col1 / - col0 - col2 AS col1 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT col1 FROM tab2 WHERE 97 IN ( col2 * ( 84 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5924
SELECT - col2 * col2 FROM tab0 WHERE NOT - col1 DIV 17 - - col2 BETWEEN col2 AND ( ( + col2 ) ) + col1
----
-100
-2209

skipif mysql # not compatible
query I rowsort label-5924
SELECT - col2 * col2 FROM tab0 WHERE NOT - col1 / 17 - - col2 BETWEEN col2 AND ( ( + col2 ) ) + col1
----
-100
-2209

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

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

query I rowsort
SELECT DISTINCT - 71 + + col2 FROM tab1
----
-12
-3
25

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE - col0 / - col0 IS NOT NULL
----
51
67
77

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

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

query I rowsort
SELECT ALL col0 * + 48 FROM tab2 AS cor0
----
2208
3072
3600

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5930
SELECT AVG ( - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5930
SELECT AVG ( - CAST ( NULL AS REAL ) ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5931
SELECT - col2 + - col1 DIV - col0 AS col2 FROM tab2
----
-22
-39
-58

skipif mysql # not compatible
query I rowsort label-5931
SELECT - col2 + - col1 / - col0 AS col2 FROM tab2
----
-22
-39
-58

query I rowsort
SELECT DISTINCT AVG ( ALL 33 ) FROM tab2 WHERE - col1 * col1 = ( col1 + + ( - 84 ) )
----
NULL

query I rowsort
SELECT DISTINCT - - col1 + + 23 AS col0 FROM tab2 AS cor0
----
100
74
90

query I rowsort
SELECT ALL - + col2 + - 51 FROM tab2 AS cor0
----
-109
-74
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5935
SELECT - CAST( + 74 AS DECIMAL ) FROM tab0 cor0 WHERE ( col1 / - ( - col1 ) + + ( - col0 ) ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-5935
SELECT - CAST ( + 74 AS REAL ) FROM tab0 cor0 WHERE ( col1 / - ( - col1 ) + + ( - col0 ) ) <> NULL
----

query I rowsort
SELECT DISTINCT - + col1 * + ( - 74 * - col1 + ( col2 + + col0 ) ) + + col2 FROM tab1 cor0
----
-16466
-170871
-2511

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 11 ) > col2 * 89
----

query I rowsort
SELECT ALL + ( 48 ) * col1 AS col2 FROM tab2 AS cor0
----
2448
3216
3696

onlyif mysql # DIV for integer division: 
query I rowsort label-5942
SELECT DISTINCT + 7 DIV col0 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5942
SELECT DISTINCT + 7 / col0 AS col2 FROM tab1 AS cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT MIN( 27 ) * 8 AS col0 FROM tab1 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-5944
SELECT MIN ( 27 ) * 8 AS col0 FROM tab1 AS cor0
----
216

query I rowsort
SELECT ALL - col1 * col0 + 68 AS col2 FROM tab2 AS cor0
----
-2278
-4860
-4957

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

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

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

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

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE + 44 IS NULL
----

query I rowsort
SELECT col2 * + 92 AS col0 FROM tab2
----
2116
3680
5336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5952
SELECT ALL MIN( - col1 ) DIV 92 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5952
SELECT ALL MIN ( - col1 ) / 92 FROM tab0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT + MIN( + col1 ) + - COUNT( * ) * 13 FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-5954
SELECT + MIN ( + col1 ) + - COUNT ( * ) * 13 FROM tab0
----
-38

query I rowsort
SELECT ALL + ( 87 ) AS col1 FROM tab0
----
87
87
87

query I rowsort
SELECT ALL col1 * col0 * col0 + 48 FROM tab2
----
107964
315440
376923

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5957
SELECT col2 * + CAST( NULL AS DECIMAL ) FROM tab1 WHERE - CAST( 0 AS DECIMAL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5957
SELECT col2 * + CAST ( NULL AS REAL ) FROM tab1 WHERE - CAST ( 0 AS REAL ) IS NOT NULL
----
NULL
NULL
NULL

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

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

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

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

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

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

query I rowsort
SELECT ALL 44 + + 7 AS col1 FROM tab2 cor0
----
51
51
51

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5967
SELECT DISTINCT * FROM tab0 cor0 WHERE + col0 * 53 + + CAST( - 85 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-5967
SELECT DISTINCT * FROM tab0 cor0 WHERE + col0 * 53 + + CAST ( - 85 AS INTEGER ) < NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 33 * - 29 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
957

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT MAX( ALL + ( + 67 ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
67

skipif mysql # not compatible
query I rowsort label-5970
SELECT MAX ( ALL + ( + 67 ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
67

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

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

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

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

query I rowsort
SELECT + 86 * + col0 + 51 FROM tab2 AS cor0
----
4007
5555
6501

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5974
SELECT - - CAST( + - ( - ( + 67 ) ) AS SIGNED ) * 40 AS col2 FROM tab1 AS cor0
----
2680
2680
2680

skipif mysql # not compatible
query I rowsort label-5974
SELECT - - CAST ( + - ( - ( + 67 ) ) AS INTEGER ) * 40 AS col2 FROM tab1 AS cor0
----
2680
2680
2680

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5977
SELECT DISTINCT + CAST( + 53 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-5977
SELECT DISTINCT + CAST ( + 53 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
53

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 - + + 89 IN ( col2 )
----

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

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

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

query I rowsort
SELECT + col0 * + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1215
1827
97

query I rowsort
SELECT DISTINCT - col1 * + col1 FROM tab0 WHERE col2 / - col2 + + col0 NOT IN ( - col2 )
----
-1
-441
-6561

query I rowsort
SELECT ALL - 81 * + col2 AS col2 FROM tab0
----
-3807
-8019
-810

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - - 46 ) > ( + 63 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 11 AS col2 FROM tab1 AS cor0
----
11
11
11

query I rowsort
SELECT - col2 * + + 95 AS col2 FROM tab0 AS cor0
----
-4465
-9405
-950

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

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

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

query I rowsort
SELECT DISTINCT - ( 88 ) + + col0 AS col2 FROM tab0 AS cor0
----
-1
-73
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 13 BETWEEN - + col0 AND ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 + col2 col0 FROM tab2 AS cor0
----
58
75
93

query I rowsort
SELECT col0 + - 11 FROM tab0 AS cor0
----
4
76
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5994
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE col1 - - + CAST( 8 AS SIGNED ) <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5994
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE col1 - - + CAST ( 8 AS INTEGER ) <> ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT ALL - 29 + MIN( + col2 ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5995
SELECT ALL - 29 + MIN ( + col2 ) FROM tab2 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5996
SELECT ALL * FROM tab1 cor0 WHERE NOT 95 / - ( + col1 ) IN ( + col1 / CAST( col2 AS SIGNED ) - ( + col0 + 85 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5996
SELECT ALL * FROM tab1 cor0 WHERE NOT 95 / - ( + col1 ) IN ( + col1 / CAST ( col2 AS INTEGER ) - ( + col0 + 85 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col1 - - col1 + - col0 + 61 * col2 col0 FROM tab1 AS cor0
----
3944
6533
8381

query I rowsort
SELECT ( col2 ) * 21 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN 50 AND + - ( - + 41 ) AND 48 BETWEEN col0 AND ( - col0 * 19 )
----

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6000
SELECT ALL 82 + COUNT( + - ( - CAST( NULL AS DECIMAL ) ) ) + + + 33 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6000
SELECT ALL 82 + COUNT ( + - ( - CAST ( NULL AS REAL ) ) ) + + + 33 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT ALL + ( - - ( - 0 ) ) + + COUNT( * ) + - - 35 AS col2 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-6001
SELECT ALL + ( - - ( - 0 ) ) + + COUNT ( * ) + - - 35 AS col2 FROM tab2
----
38

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6003
SELECT COUNT( * ) AS col0, MIN( ALL col0 ) + + + 51 col2 FROM tab1
----
3
102

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT ALL + ( + SUM( ( - 55 ) ) ) FROM tab2 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-6004
SELECT ALL + ( + SUM ( ( - 55 ) ) ) FROM tab2 AS cor0
----
-165

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL - col1 - - 18 AS col2 FROM tab2 AS cor0
----
-33
-49
-59

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

query I rowsort
SELECT - - col0 - + ( col2 ) - - + ( - 86 ) FROM tab1 AS cor0
----
-131
-60
-63

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 84 / - 9 BETWEEN ( + col1 ) AND - col2
----

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

query I rowsort
SELECT ALL + + ( + - col2 ) + col1 FROM tab1 cor0
----
-21
-54
-82

query I rowsort
SELECT ALL + 90 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT col0 * - col0 * - col1 * - col1 FROM tab1
----
-180625
-18292729
-509796

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT ( ( - 62 * - col2 <= ( - col2 ) ) )
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6016
SELECT ALL 50 DIV + + COUNT( * ) + + + 33 AS col2 FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-6016
SELECT ALL 50 / + + COUNT ( * ) + + + 33 AS col2 FROM tab1 AS cor0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6017
SELECT ALL - - CAST( + + 99 AS SIGNED ) DIV - + COUNT( ALL + col2 ) FROM tab1 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL - - CAST ( + + 99 AS INTEGER ) / - + COUNT ( ALL + col2 ) FROM tab1 cor0
----
-33

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6019
SELECT + 78 DIV + - col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6019
SELECT + 78 / + - col2 FROM tab1
----
-1
-1
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6020
SELECT ALL * FROM tab2 WHERE 60 * col0 * + + CAST( NULL AS DECIMAL ) + + col0 >= - col2 - + - col1 * + col1
----

skipif mysql # not compatible
query III rowsort label-6020
SELECT ALL * FROM tab2 WHERE 60 * col0 * + + CAST ( NULL AS REAL ) + + col0 >= - col2 - + - col1 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT + COUNT( 68 ) * + + 82 FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-6021
SELECT + COUNT ( 68 ) * + + 82 FROM tab0
----
246

onlyif mysql # aggregate syntax: 
query II rowsort label-6022
SELECT - COUNT( * ), - 52 AS col1 FROM tab2
----
-3
-52

skipif mysql # not compatible
query II rowsort label-6022
SELECT - COUNT ( * ), - 52 AS col1 FROM tab2
----
-3
-52

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

skipif mysql # not compatible
query I rowsort label-6023
SELECT DISTINCT SUM ( ALL + + CAST ( NULL AS REAL ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 31 + + col0 AS col0 FROM tab0
----
118
128
46

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( - - col1 ) NOT IN ( - ( - col2 ) * - col0 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT DISTINCT MAX( ALL - ( + 36 ) ) AS col0 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-6027
SELECT DISTINCT MAX ( ALL - ( + 36 ) ) AS col0 FROM tab0 AS cor0
----
-36

query I rowsort
SELECT DISTINCT ( + - 85 ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT ALL - 42 * - COUNT( 87 ) + + MIN( DISTINCT + + 20 ) FROM tab1, tab1 AS cor0
----
398

skipif mysql # not compatible
query I rowsort label-6029
SELECT ALL - 42 * - COUNT ( 87 ) + + MIN ( DISTINCT + + 20 ) FROM tab1, tab1 AS cor0
----
398

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 IN ( - + col2, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6032
SELECT * FROM tab1 WHERE + col0 * - + col2 + - 21 / - + CAST( + col0 AS SIGNED ) <= ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6032
SELECT * FROM tab1 WHERE + col0 * - + col2 + - 21 / - + CAST ( + col0 AS INTEGER ) <= ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 27 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT ALL - COUNT( 73 ) FROM tab1 AS cor0 WHERE ( + 54 * col1 * 46 + + col2 ) <= col2 * col1
----
0

skipif mysql # not compatible
query I rowsort label-6034
SELECT ALL - COUNT ( 73 ) FROM tab1 AS cor0 WHERE ( + 54 * col1 * 46 + + col2 ) <= col2 * col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6035
SELECT - + 65 * - - CAST( NULL AS SIGNED ) + - ( + - COUNT( * ) ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6035
SELECT - + 65 * - - CAST ( NULL AS INTEGER ) + - ( + - COUNT ( * ) ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6037
SELECT * FROM tab1 cor0 WHERE col1 + - - col2 NOT IN ( - + CAST( 98 AS SIGNED ), col2 / + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6037
SELECT * FROM tab1 cor0 WHERE col1 + - - col2 NOT IN ( - + CAST ( 98 AS INTEGER ), col2 / + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 41 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 13 + + + col0 FROM tab1
----
38
72
78

query I rowsort
SELECT ALL - - col1 * + col1 FROM tab2 WHERE col2 IS NOT NULL
----
2601
4489
5929

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 60 IN ( col1 )
----

query I rowsort
SELECT DISTINCT col0 * + 86 FROM tab0
----
1290
7482
8342

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

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 + + col1 IN ( + col2, col1 + 84 )
----
-51
-67
-77

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - col1 col2 FROM tab1 AS cor0
----
425
4277
714

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT ALL SUM( col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL SUM ( col2 ) AS col0 FROM tab2
----
121

query I rowsort
SELECT DISTINCT col0 * - 94 AS col0 FROM tab0
----
-1410
-8178
-9118

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 INNER JOIN tab0 cor1 ON NOT + + 78 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT - MAX( DISTINCT 64 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-64

skipif mysql # not compatible
query I rowsort label-6053
SELECT - MAX ( DISTINCT 64 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 49 AS col1, + 2 + 65 col0 FROM tab0
----
49
67
49
67
49
67

query I rowsort
SELECT DISTINCT 51 * - + col1 AS col2 FROM tab0 AS cor0
----
-1071
-4131
-51

query I rowsort
SELECT + 20 * + col0 + + - 54 FROM tab0 AS cor0 WHERE NOT 9 IN ( - 88 )
----
1686
1886
246

query II rowsort
SELECT - 87 * + col1 - + col2 AS col1, col1 AS col1 FROM tab2 AS cor0 WHERE NOT col0 / - 55 * + col0 IS NULL
----
-4460
51
-5887
67
-6739
77

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6059
SELECT - COUNT( - CAST( + + col2 AS SIGNED ) ) DIV - 38 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6059
SELECT - COUNT ( - CAST ( + + col2 AS INTEGER ) ) / - 38 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + + 57 * + + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
2907
3819
4389

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

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

query I rowsort
SELECT ALL - 35 * - 68 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to dd7393b1772f8555209486720f7d5ec1

query II rowsort
SELECT ALL + col0, - 19 AS col1 FROM tab0 WHERE ( + col1 IS NOT NULL )
----
15
-19
87
-19
97
-19

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6066
SELECT DISTINCT col2 * - ( col0 ) + - - 21 DIV + col1 + + col1 AS col1 FROM tab0 AS cor0
----
-624
-848
-9581

skipif mysql # not compatible
query I rowsort label-6066
SELECT DISTINCT col2 * - ( col0 ) + - - 21 / + col1 + + col1 AS col1 FROM tab0 AS cor0
----
-624
-848
-9581

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

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

query I rowsort
SELECT DISTINCT + 83 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( - 97 ) IS NOT NULL
----
83

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

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

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

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

query II rowsort
SELECT ALL - - col2 + + 46 * - 61, + ( + col1 ) * + 88 AS col2 FROM tab2 AS cor0
----
-2748
5896
-2766
6776
-2783
4488

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= 20 / + 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT DISTINCT - 97 - COUNT( * ) * - COUNT( * ) FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-6075
SELECT DISTINCT - 97 - COUNT ( * ) * - COUNT ( * ) FROM tab1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT DISTINCT 14 - MAX( ALL + + col1 ) AS col1 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-6076
SELECT DISTINCT 14 - MAX ( ALL + + col1 ) AS col1 FROM tab1
----
-33

query I rowsort
SELECT ALL 32 - + col1 FROM tab0
----
-49
11
31

query I rowsort
SELECT col1 - + 15 AS col0 FROM tab2
----
36
52
62

query II rowsort
SELECT DISTINCT + 37 * + col2 AS col0, col1 * ( - col1 ) + + + 60 FROM tab2
----
1480
-5869
2146
-4429
851
-2541

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT - - col0 BETWEEN col1 AND + col2 + + col1 + 87
----
-2

skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT - - col0 BETWEEN col1 AND + col2 + + col1 + 87
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6082
SELECT DISTINCT + - CAST( + 72 AS SIGNED ), + col1 AS col0 FROM tab1 AS cor0
----
-72
14
-72
47
-72
5

skipif mysql # not compatible
query II rowsort label-6082
SELECT DISTINCT + - CAST ( + 72 AS INTEGER ), + col1 AS col0 FROM tab1 AS cor0
----
-72
14
-72
47
-72
5

query I rowsort
SELECT + 84 AS col0 FROM tab2 cor0 WHERE NOT + col0 IN ( + col0, - 2 / col1 - + + col1 + + col0 )
----

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

skipif mysql # not compatible
query I rowsort label-6084
SELECT + COUNT ( DISTINCT + col2 ) AS col0 FROM tab2
----
3

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

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 0 >= NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 33 col0 FROM tab0 AS cor0
----
-1551
-3267
-330

query I rowsort
SELECT - - 26 * - col0 FROM tab1 AS cor0
----
-1326
-2210
-2366

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT DISTINCT - SUM( ALL - + col2 ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-6090
SELECT DISTINCT - SUM ( ALL - + col2 ) FROM tab2 cor0
----
121

query I rowsort
SELECT - 14 * col1 FROM tab0 AS cor0
----
-1134
-14
-294

onlyif mysql # DIV for integer division: 
query I rowsort label-6092
SELECT 45 DIV col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6092
SELECT 45 / col2 AS col1 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6093
SELECT DISTINCT + 31 DIV - col1 FROM tab0
----
-1
-31
0

skipif mysql # not compatible
query I rowsort label-6093
SELECT DISTINCT + 31 / - col1 FROM tab0
----
-1
-31
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6094
SELECT ALL 5 * col0 DIV - ( + col0 ) AS col1 FROM tab0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL 5 * col0 / - ( + col0 ) AS col1 FROM tab0
----
-5
-5
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-6095
SELECT ( col2 ) DIV - col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6095
SELECT ( col2 ) / - col1 AS col1 FROM tab2
----
0
0
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6098
SELECT - col0 DIV - 37 AS col0 FROM tab0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-6098
SELECT - col0 / - 37 AS col0 FROM tab0
----
0
2
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT ALL 91 + + COUNT( ALL - col1 ) FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-6100
SELECT ALL 91 + + COUNT ( ALL - col1 ) FROM tab0
----
94

query I rowsort
SELECT 55 - col0 FROM tab2 WHERE + col0 < + col2 * + col2 * - col1 AND + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT + COUNT( * ) * - 74 + SUM( + col0 ) + + + ( - 29 ) - + MIN( DISTINCT - + col2 ) FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-6102
SELECT + COUNT ( * ) * - 74 + SUM ( + col0 ) + + + ( - 29 ) - + MIN ( DISTINCT - + col2 ) FROM tab0 AS cor0
----
47

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

query I rowsort
SELECT 10 + - - 9 FROM tab1 AS cor0
----
19
19
19

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * - col2 * col0 * - 37 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6107
SELECT DISTINCT col0 DIV + 67 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-6107
SELECT DISTINCT col0 / + 67 FROM tab0
----
0
1

query I rowsort
SELECT + - 22 - - col2 FROM tab0 AS cor0
----
-12
25
77

query II rowsort
SELECT - col0 - col0, - col1 AS col1 FROM tab0 AS cor0
----
-174
-21
-194
-1
-30
-81

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6111
SELECT + + 32 DIV + MAX( DISTINCT - col0 ) - - 59 AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-6111
SELECT + + 32 / + MAX ( DISTINCT - col0 ) - - 59 AS col1 FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT - - col1 + 24 FROM tab1 AS cor0
----
29
38
71

query II rowsort
SELECT 19, - col0 AS col0 FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT + 75 + + 0, 99 * - col2 AS col2 FROM tab1 cor0
----
75
-5841
75
-6732
75
-9504

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

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

query I rowsort
SELECT ALL 97 - 69 + + + col2 FROM tab2
----
51
68
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT + MIN( ALL - - col0 ) + + + COUNT( * ) + 52 * - COUNT( - + col1 ) FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-6117
SELECT + MIN ( ALL - - col0 ) + + + COUNT ( * ) + 52 * - COUNT ( - + col1 ) FROM tab0
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6118
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> CAST( NULL AS SIGNED ) * + col1
----

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

query II rowsort
SELECT DISTINCT 14 AS col2, + 14 FROM tab2
----
14
14

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

query II rowsort
SELECT DISTINCT - col1 AS col1, - col2 * + ( + col0 ) AS col1 FROM tab2
----
-51
-1058
-67
-4350
-77
-2560

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

query I rowsort
SELECT + 37 * - - ( + 30 ) * - col1 * + 0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 45 * - ( col1 ) + + col1 - + 45 FROM tab0 cor0 WHERE NOT col0 / 16 * + 45 IS NULL
----
-3609
-89
-969

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

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

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

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

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

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

query I rowsort
SELECT ALL + col2 * - 23 - - 43 FROM tab0 AS cor0
----
-1038
-187
-2234

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6130
SELECT DISTINCT - col2 * col2, - ( + - CAST( - + ( - ( - - col0 ) ) AS SIGNED ) ) + - CAST( NULL AS SIGNED ) * - 52 - - + 85 AS col2 FROM tab0 AS cor0
----
-100
NULL
-2209
NULL
-9801
NULL

skipif mysql # not compatible
query II rowsort label-6130
SELECT DISTINCT - col2 * col2, - ( + - CAST ( - + ( - ( - - col0 ) ) AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) * - 52 - - + 85 AS col2 FROM tab0 AS cor0
----
-100
NULL
-2209
NULL
-9801
NULL

query II rowsort
SELECT + col2, col2 AS col1 FROM tab2 AS cor0 WHERE NOT col0 <> - col1
----

query I rowsort
SELECT ALL - col1 * - 17 FROM tab2 AS cor0
----
1139
1309
867

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

skipif mysql # not compatible
query I rowsort label-6133
SELECT ALL + COUNT ( * ) * + - 73 FROM tab2
----
-219

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

skipif mysql # not compatible
query I rowsort label-6134
SELECT ALL - COUNT ( ALL - col2 ) FROM tab0
----
-3

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

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE - 4 NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT + 53 + 75 AS col0 FROM tab1
----
128
128
128

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

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

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

skipif mysql # not compatible
query I rowsort label-6143
SELECT DISTINCT 64 + 47 * CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0
----
NULL

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

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

query I rowsort
SELECT ALL + col1 + - col2 * + - col0 FROM tab2 AS cor0
----
1109
2637
4417

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6147
SELECT ALL + - CAST( + col2 AS SIGNED ) AS col2, + CAST( - col2 AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0
----
-10
-870
-47
-705
-99
-9603

skipif mysql # not compatible
query II rowsort label-6147
SELECT ALL + - CAST ( + col2 AS INTEGER ) AS col2, + CAST ( - col2 AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0
----
-10
-870
-47
-705
-99
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT COUNT( DISTINCT + col0 ) * MAX( + - col0 ) FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-6148
SELECT COUNT ( DISTINCT + col0 ) * MAX ( + - col0 ) FROM tab2
----
-138

onlyif mysql # DIV for integer division: 
query II rowsort label-6149
SELECT ALL 7 DIV + col0 col2, + col2 * - col0 - + col1 AS col0 FROM tab0
----
0
-786
0
-891
0
-9604

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6149
SELECT ALL 7 / + col0 col2, + col2 * - col0 - + col1 AS col0 FROM tab0
----
0
-786
0
-891
0
-9604

query I rowsort
SELECT 54 * - 46 FROM tab0
----
-2484
-2484
-2484

query I rowsort
SELECT ALL ( - 19 ) AS col0 FROM tab2
----
-19
-19
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT 2 * - - col0 col0, - col0, - + col0 AS col0 FROM tab1
----
9 values hashing to 3af47f72d84b35db034e7082f15652f5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6153
SELECT - CAST( NULL AS SIGNED ), - col0 + - col0 AS col0 FROM tab2
----
NULL
-128
NULL
-150
NULL
-92

skipif mysql # not compatible
query II rowsort label-6153
SELECT - CAST ( NULL AS INTEGER ), - col0 + - col0 AS col0 FROM tab2
----
NULL
-128
NULL
-150
NULL
-92

query I rowsort
SELECT DISTINCT - col1 + col0 + - + col0 + + col1 * + + ( col1 ) AS col0 FROM tab1 cor0
----
182
20
2162

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6160
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 72 + - CAST( col2 AS SIGNED ) * col0 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6160
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 72 + - CAST ( col2 AS INTEGER ) * col0 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

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

query II rowsort
SELECT ALL - + col1 AS col0, 21 FROM tab1 WHERE + col2 * - 40 > col0 * + - col2 + + ( + - 65 )
----
-14
21
-47
21
-5
21

onlyif mysql # DIV for integer division: 
query I rowsort label-6165
SELECT col2 * + - col0 DIV col0 + - + 14 AS col0 FROM tab1
----
-110
-73
-82

skipif mysql # not compatible
query I rowsort label-6165
SELECT col2 * + - col0 / col0 + - + 14 AS col0 FROM tab1
----
-110
-73
-82

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

query I rowsort
SELECT + col2 + + - 34 AS col2 FROM tab2 cor0
----
-11
24
6

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

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL CAST ( NULL AS REAL ) + col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6169
SELECT DISTINCT - + 73 AS col1, - COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-73
-9

skipif mysql # not compatible
query II rowsort label-6169
SELECT DISTINCT - + 73 AS col1, - COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-73
-9

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

query II rowsort
SELECT - - col0 + - - col0 AS col2, - 35 AS col0 FROM tab0 WHERE + - 14 > NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6173
SELECT ALL 78 AS col0, COUNT( * ) col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
78
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6173
SELECT ALL 78 AS col0, COUNT ( * ) col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
78
9

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

query I rowsort
SELECT DISTINCT - + col0 * - 65 * col0 FROM tab2 AS cor0
----
137540
266240
365625

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6176
SELECT ALL - + COUNT ( * ) * + 7 + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 WHERE NOT ( - ( col2 ) IS NOT NULL )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6177
SELECT + COUNT ( - - col0 ) FROM tab1 cor0
----
3

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

skipif mysql # not compatible
query II rowsort label-6178
SELECT ALL + COUNT ( * ) AS col0, 14 FROM tab2
----
3
14

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT 41 >= - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6181
SELECT ALL + CAST( NULL AS SIGNED ), - col1 AS col1 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-6181
SELECT ALL + CAST ( NULL AS INTEGER ), - col1 AS col1 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 62 * - col0 + + col0 IS NOT NULL
----

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

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

query I rowsort
SELECT - 48 FROM tab2 WHERE NOT - col2 <= + 96
----

query I rowsort
SELECT ALL - 36 * - + 78 AS col1 FROM tab1
----
2808
2808
2808

query I rowsort
SELECT ALL ( - 34 ) AS col1 FROM tab0
----
-34
-34
-34

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN - col1 AND - col1
----

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

skipif mysql # not compatible
query I rowsort label-6191
SELECT MIN ( - col2 ) + - - CAST ( + 76 AS INTEGER ) FROM tab1 AS cor0
----
-20

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - 93 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6195
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - 93 IS NOT NULL
----
3

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6197
SELECT DISTINCT 14, + MIN( ALL - col2 ) AS col1 FROM tab1
----
14
-96

skipif mysql # not compatible
query II rowsort label-6197
SELECT DISTINCT 14, + MIN ( ALL - col2 ) AS col1 FROM tab1
----
14
-96

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6198
SELECT DISTINCT + 70, col2 / - - col2 + + - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
70
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6199
SELECT + 59, - COUNT( DISTINCT + - col1 ) AS col1 FROM tab0
----
59
-3

skipif mysql # not compatible
query II rowsort label-6199
SELECT + 59, - COUNT ( DISTINCT + - col1 ) AS col1 FROM tab0
----
59
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6200
SELECT COUNT( * ) - + + 67 * - - ( + CAST( - + COUNT( + col1 ) AS SIGNED ) ) col1, COUNT( * ) AS col2 FROM tab2 AS cor0
----
204
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6200
SELECT COUNT ( * ) - + + 67 * - - ( + CAST ( - + COUNT ( + col1 ) AS INTEGER ) ) col1, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
204
3

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

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

query I rowsort
SELECT - col2 + + - 5 AS col2 FROM tab1
----
-101
-64
-73

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT - ( - 2 ) FROM tab2 AS cor0 WHERE NOT col0 / + + 46 IS NOT NULL
----

query I rowsort
SELECT + 94 FROM tab0 cor0 WHERE NOT NULL IN ( - 53 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 91 * + 55 <> NULL
----

query II rowsort
SELECT DISTINCT - + ( - 62 ), 58 AS col1 FROM tab1 AS cor0
----
62
58

query I rowsort
SELECT - + 43 FROM tab0 cor0
----
-43
-43
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 88 - + + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6209
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 88 - + + col2 AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 92 * - ( + col0 ) col0 FROM tab2
----
-4232
-5888
-6900

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT - - COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6212
SELECT - - COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL = NULL
----
0

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6215
SELECT 22 DIV MIN( + 35 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6215
SELECT 22 / MIN ( + 35 ) AS col0 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE - 17 IN ( - 43 + - - 15 * + - 90 )
----

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

skipif mysql # not compatible
query II rowsort label-6217
SELECT ALL COUNT ( * ), + COUNT ( * ) FROM tab1 AS cor0
----
3
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6218
SELECT ALL + - 48 DIV ( + - COUNT( * ) ) + 0 + - 11 AS col0 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6218
SELECT ALL + - 48 / ( + - COUNT ( * ) ) + 0 + - 11 AS col0 FROM tab2 AS cor0
----
5

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

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

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

query II rowsort
SELECT + col1, - 80 + + col0 FROM tab2 cor0
----
51
-34
67
-5
77
-16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6222
SELECT DISTINCT CAST( NULL AS DECIMAL ) - - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6222
SELECT DISTINCT CAST ( NULL AS REAL ) - - col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT - COUNT( * ) + - + 54 - - MIN( - 76 ) FROM tab0
----
-133

skipif mysql # not compatible
query I rowsort label-6223
SELECT - COUNT ( * ) + - + 54 - - MIN ( - 76 ) FROM tab0
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT ALL + COUNT( - 81 ) - + 3 + MIN( DISTINCT + col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL + COUNT ( - 81 ) - + 3 + MIN ( DISTINCT + col0 ) FROM tab2
----
46

query I rowsort
SELECT - col1 + 43 AS col0 FROM tab2
----
-24
-34
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT - 66 + + - ( - COUNT( * ) ) FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-6226
SELECT - 66 + + - ( - COUNT ( * ) ) FROM tab1
----
-63

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

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

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

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT 92 + - - col0 + + + col0 IS NULL
----
14
47
5

query I rowsort
SELECT ALL col1 * - 44 + + ( + + col0 ) AS col0 FROM tab0 AS cor0
----
-3549
-837
53

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6231
SELECT ALL - col2 + + - ( CAST ( NULL AS INTEGER ) ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6232
SELECT DISTINCT + 54 - - - 13 * col2 DIV + 76 col2 FROM tab1 AS cor0
----
38
43
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6232
SELECT DISTINCT + 54 - - - 13 * col2 / + 76 col2 FROM tab1 AS cor0
----
38
43
44

query II rowsort
SELECT DISTINCT - 85 + + 28 + + - col2 AS col1, 92 AS col2 FROM tab1 AS cor0
----
-116
92
-125
92
-153
92

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

query I rowsort
SELECT DISTINCT - - 34 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6236
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 NOT BETWEEN - 89 / CAST( NULL AS SIGNED ) * col0 AND NULL )
----

skipif mysql # not compatible
query III rowsort label-6236
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 NOT BETWEEN - 89 / CAST ( NULL AS INTEGER ) * col0 AND NULL )
----

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

query I rowsort
SELECT DISTINCT + - 90 + - col2 FROM tab2 AS cor0 WHERE NOT col1 < - col0
----
-113
-130
-148

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

query I rowsort
SELECT - + col2 * - - col2 FROM tab2 cor0
----
-1600
-3364
-529

query I rowsort
SELECT 49 * col0 AS col1 FROM tab0 AS cor0
----
4263
4753
735

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6243
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 - + + 85 * CAST( NULL AS DECIMAL ) ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-6243
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 - + + 85 * CAST ( NULL AS REAL ) ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT + SUM( - + col0 ) * - 37 col0 FROM tab0 AS cor0
----
7363

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6244
SELECT + SUM ( - + col0 ) * - 37 col0 FROM tab0 AS cor0
----
7363

query I rowsort
SELECT ALL col2 * 26 AS col2 FROM tab0
----
1222
2574
260

query I rowsort
SELECT ALL col0 * - - 77 AS col0 FROM tab2
----
3542
4928
5775

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6247
SELECT ALL CAST( + SUM( DISTINCT - col2 ) AS SIGNED ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-6247
SELECT ALL CAST ( + SUM ( DISTINCT - col2 ) AS INTEGER ) FROM tab1
----
-223

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 * col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 31 + + - col2 + + - col2 AS col0 FROM tab1
----
-105
-161
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6250
SELECT DISTINCT CAST( + col1 AS SIGNED ), col1 col1 FROM tab0
----
1
1
21
21
81
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6250
SELECT DISTINCT CAST ( + col1 AS INTEGER ), col1 col1 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6251
SELECT + - MAX( ALL + - CAST( + - col2 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6251
SELECT + - MAX ( ALL + - CAST ( + - col2 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-96

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

skipif mysql # not compatible
query I rowsort label-6252
SELECT - - ( - + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 AND + col0 * col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6253
SELECT ALL - + col2 * - col0, + CAST( NULL AS SIGNED ) - - col0 AS col1 FROM tab2 AS cor0
----
1058
NULL
2560
NULL
4350
NULL

skipif mysql # not compatible
query II rowsort label-6253
SELECT ALL - + col2 * - col0, + CAST ( NULL AS INTEGER ) - - col0 AS col1 FROM tab2 AS cor0
----
1058
NULL
2560
NULL
4350
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT ALL COUNT( * ) * + 81 col2 FROM tab1
----
243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6254
SELECT ALL COUNT ( * ) * + 81 col2 FROM tab1
----
243

query III rowsort
SELECT * FROM tab2 WHERE ( - - 6 ) NOT BETWEEN 52 AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT + COUNT( * ) + + 92 + + + 47 FROM tab2
----
142

skipif mysql # not compatible
query I rowsort label-6256
SELECT + COUNT ( * ) + + 92 + + + 47 FROM tab2
----
142

query I rowsort
SELECT ALL + 1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT COUNT( * ) + + 28 AS col2 FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-6258
SELECT COUNT ( * ) + + 28 AS col2 FROM tab0 AS cor0
----
31

query I rowsort
SELECT ALL - + 66 + col1 FROM tab2 AS cor0
----
-15
1
11

query I rowsort
SELECT DISTINCT + + col2 + col1 * + + 59 FROM tab1 AS cor0
----
2841
354
922

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

query I rowsort
SELECT ALL - col0 - - 90 AS col2 FROM tab1 AS cor0
----
-1
39
5

query I rowsort
SELECT DISTINCT 83 + - 60 * - col1 FROM tab1 cor0
----
2903
383
923

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6264
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, col1 * + col0 AS col2 FROM tab0 AS cor0
----
NULL
1215
NULL
1827
NULL
97

skipif mysql # not compatible
query II rowsort label-6264
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, col1 * + col0 AS col2 FROM tab0 AS cor0
----
NULL
1215
NULL
1827
NULL
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6266
SELECT ALL SUM( - - 6 ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-6266
SELECT ALL SUM ( - - 6 ) FROM tab2
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-6267
SELECT - col1 DIV - - col1 - - + col2 col1 FROM tab1
----
58
67
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6267
SELECT - col1 / - - col1 - - + col2 col1 FROM tab1
----
58
67
95

onlyif mysql # DIV for integer division: 
query II rowsort label-6268
SELECT ALL + col2, 95 DIV - - col0 + ( + col2 ) + + ( + col2 ) + - col2 FROM tab0
----
10
11
47
53
99
99

skipif mysql # not compatible
query II rowsort label-6268
SELECT ALL + col2, 95 / - - col0 + ( + col2 ) + + ( + col2 ) + - col2 FROM tab0
----
10
11
47
53
99
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6269
SELECT + 42 DIV + COUNT( * ) - + 82 FROM tab1
----
-68

skipif mysql # not compatible
query I rowsort label-6269
SELECT + 42 / + COUNT ( * ) - + 82 FROM tab1
----
-68

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

query I rowsort
SELECT - col2 - 10 AS col0 FROM tab2
----
-33
-50
-68

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

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

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

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

query II rowsort
SELECT ALL col1, - col1 * - + col1 - col0 FROM tab2 AS cor0
----
51
2555
67
4414
77
5865

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - ( - + 40 ) + 63 < col2
----

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + 87
----

query I rowsort
SELECT ALL - 2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6278
SELECT - col0 DIV + + col2 AS col2 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6278
SELECT - col0 / + + col2 AS col2 FROM tab1 cor0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6279
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT - - CAST( + col0 AS SIGNED ) + - + CAST( NULL AS SIGNED ) > + col0 * ( + col1 ) )
----

skipif mysql # not compatible
query III rowsort label-6279
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT - - CAST ( + col0 AS INTEGER ) + - + CAST ( NULL AS INTEGER ) > + col0 * ( + col1 ) )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6281
SELECT + col1 DIV - 41 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6281
SELECT + col1 / - 41 FROM tab0
----
-1
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT DISTINCT + + MIN( + - 29 ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 * - + 44 IS NULL
----
-29

skipif mysql # not compatible
query I rowsort label-6283
SELECT DISTINCT + + MIN ( + - 29 ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 * - + 44 IS NULL
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-6284
SELECT DISTINCT 16 + - SUM( - col2 ) AS col0, 5 + - - 15 AS col0 FROM tab0 AS cor0
----
172
20

skipif mysql # not compatible
query II rowsort label-6284
SELECT DISTINCT 16 + - SUM ( - col2 ) AS col0, 5 + - - 15 AS col0 FROM tab0 AS cor0
----
172
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT DISTINCT + 58 * - + ( - + SUM( ALL + 83 ) ) col2 FROM tab2 cor0
----
14442

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6285
SELECT DISTINCT + 58 * - + ( - + SUM ( ALL + 83 ) ) col2 FROM tab2 cor0
----
14442

onlyif mysql # DIV for integer division: 
query I rowsort label-6286
SELECT ALL - col0 DIV - col0 + - col0 + + - ( col1 ) + col0 - col2 * col0 DIV + 29 + col0 FROM tab2 AS cor0
----
-100
-141
-40

skipif mysql # not compatible
query I rowsort label-6286
SELECT ALL - col0 / - col0 + - col0 + + - ( col1 ) + col0 - col2 * col0 / + 29 + col0 FROM tab2 AS cor0
----
-100
-141
-40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT ALL - MIN( - + col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-6289
SELECT ALL - MIN ( - + col1 ) AS col2 FROM tab0
----
81

query II rowsort
SELECT ALL - + col2 + + ( - col2 ) * - col1 AS col0, + 87 + + + col0 * col2 AS col2 FROM tab2 AS cor0
----
1150
1145
3040
2647
3828
4437

query I rowsort
SELECT + ( - 40 ) * - - col2 + - col1 AS col1 FROM tab1 AS cor0
----
-2365
-2767
-3854

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT DISTINCT MIN( 79 ) * 88 + + 1 FROM tab2 AS cor0
----
6953

skipif mysql # not compatible
query I rowsort label-6292
SELECT DISTINCT MIN ( 79 ) * 88 + + 1 FROM tab2 AS cor0
----
6953

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT ALL SUM( ALL col2 ) + - - 57 AS col2 FROM tab1 AS cor0
----
280

skipif mysql # not compatible
query I rowsort label-6294
SELECT ALL SUM ( ALL col2 ) + - - 57 AS col2 FROM tab1 AS cor0
----
280

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6295
SELECT * FROM tab2 AS cor0 WHERE + 44 * - 83 NOT BETWEEN + col2 / - - col1 AND - CAST( NULL AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6295
SELECT * FROM tab2 AS cor0 WHERE + 44 * - 83 NOT BETWEEN + col2 / - - col1 AND - CAST ( NULL AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col2 * - col2 + + col1 * + 12 AS col0, col0 FROM tab1 AS cor0
----
-3421
85
-4060
91
-9048
51

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

query I rowsort
SELECT ALL - ( - ( col2 ) ) - + - 16 * + col1 * - col1 + col0 FROM tab2 AS cor0
----
-41547
-71691
-94760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6299
SELECT DISTINCT - CAST( - col0 AS SIGNED ) * - ( col2 ) * 65 + + col2 * + 22 + 38 + 90 * - 4 * col1 + - col2 + + + col0 FROM tab0 AS cor0
----
-622341
-63775
-73945

skipif mysql # not compatible
query I rowsort label-6299
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) * - ( col2 ) * 65 + + col2 * + 22 + 38 + 90 * - 4 * col1 + - col2 + + + col0 FROM tab0 AS cor0
----
-622341
-63775
-73945

query I rowsort
SELECT DISTINCT + col2 + - col0 * - ( col1 ) FROM tab0 AS cor0
----
1262
1837
196

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE + 66 IN ( col0 * ( + 97 ), - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6304
SELECT ALL 40 - - CAST( + + 92 AS SIGNED ) AS col2 FROM tab0
----
132
132
132

skipif mysql # not compatible
query I rowsort label-6304
SELECT ALL 40 - - CAST ( + + 92 AS INTEGER ) AS col2 FROM tab0
----
132
132
132

query I rowsort
SELECT ALL - 54 * col0 + 32 + + col0 FROM tab2 AS cor0
----
-2406
-3360
-3943

query I rowsort
SELECT + 93 AS col2 FROM tab0 cor0 WHERE NOT ( NOT - ( 65 ) * - - ( + - 68 ) - + col2 + + - col1 / col0 IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6307
SELECT DISTINCT + 95 DIV + SUM( col1 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6307
SELECT DISTINCT + 95 / + SUM ( col1 ) FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6308
SELECT ALL COUNT( * ) + + COUNT( * ) FROM tab2 WHERE CAST( NULL AS SIGNED ) IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-6308
SELECT ALL COUNT ( * ) + + COUNT ( * ) FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
6

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

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

skipif mysql # not compatible
query II rowsort label-6310
SELECT COUNT ( * ), - MAX ( ALL - col2 ) AS col1 FROM tab1
----
3
59

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

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

query II rowsort
SELECT col0, col0 * + - ( + 65 ) FROM tab0 AS cor0
----
15
-975
87
-5655
97
-6305

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

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

query I rowsort
SELECT + 46 + 42 + 17 + + col2 AS col1 FROM tab1 AS cor0
----
164
173
201

query I rowsort
SELECT ALL - 91 FROM tab1 cor0
----
-91
-91
-91

query I rowsort
SELECT + 12 * - 70 + + 82 FROM tab2
----
-758
-758
-758

query I rowsort
SELECT DISTINCT - ( - 72 ) + - col2 + - 46 FROM tab2
----
-14
-32
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT DISTINCT COUNT( - - ( col0 ) ) AS col0 FROM tab0 AS cor0 WHERE + col1 >= + col2
----
2

skipif mysql # not compatible
query I rowsort label-6321
SELECT DISTINCT COUNT ( - - ( col0 ) ) AS col0 FROM tab0 AS cor0 WHERE + col1 >= + col2
----
2

query I rowsort
SELECT DISTINCT ( 38 ) AS col2 FROM tab2 AS cor0
----
38

query II rowsort
SELECT ALL col1 AS col0, + col2 * - 3 FROM tab1
----
14
-288
47
-204
5
-177

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6324
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + CAST( NULL AS SIGNED ) - + 91 IS NOT NULL AND NULL IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-6324
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + CAST ( NULL AS INTEGER ) - + 91 IS NOT NULL AND NULL IS NOT NULL
----

query I rowsort
SELECT ALL - - col0 + + - 44 AS col2 FROM tab0 AS cor0
----
-29
43
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6326
SELECT DISTINCT - col1 * - CAST( NULL AS SIGNED ) * + - 56, col2 * 67 * + col2 AS col1 FROM tab0 AS cor0
----
NULL
148003
NULL
656667
NULL
6700

skipif mysql # not compatible
query II rowsort label-6326
SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) * + - 56, col2 * 67 * + col2 AS col1 FROM tab0 AS cor0
----
NULL
148003
NULL
656667
NULL
6700

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT ( - 93 ) * ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE 69 * + col0 * - - col1 / - - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6330
SELECT ( - 93 ) * ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE 69 * + col0 * - - col1 / - - col0 IS NULL
----
0

query I rowsort
SELECT 15 * col1 * - col1 - - - col1 FROM tab2
----
-39066
-67402
-89012

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - 62 * - col2 + - 20 * + col2 AND + col1
----

query I rowsort
SELECT col2 * + 88 * + col0 FROM tab2
----
225280
382800
93104

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

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

query I rowsort
SELECT - 55 * + + ( - col1 ) AS col2 FROM tab2
----
2805
3685
4235

query I rowsort
SELECT ALL ( 82 ) * + col1 + - 59 AS col1 FROM tab0
----
1663
23
6583

onlyif mysql # DIV for integer division: 
query I rowsort label-6337
SELECT DISTINCT + 61 DIV - col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-6337
SELECT DISTINCT + 61 / - col0 FROM tab2
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT DISTINCT MAX( ALL - + col2 ) AS col0 FROM tab1 AS cor0 WHERE + 49 IS NOT NULL
----
-59

skipif mysql # not compatible
query I rowsort label-6338
SELECT DISTINCT MAX ( ALL - + col2 ) AS col0 FROM tab1 AS cor0 WHERE + 49 IS NOT NULL
----
-59

query I rowsort
SELECT ALL + col1 * - - 49 AS col1 FROM tab2
----
2499
3283
3773

query I rowsort
SELECT ( 64 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6341
SELECT CAST( - - col1 AS SIGNED ), + col2 FROM tab1 AS cor0 WHERE NOT col1 * + - col2 * + 94 IN ( ( col1 ), 87, + + col0 )
----
14
96
47
68
5
59

skipif mysql # not compatible
query II rowsort label-6341
SELECT CAST ( - - col1 AS INTEGER ), + col2 FROM tab1 AS cor0 WHERE NOT col1 * + - col2 * + 94 IN ( ( col1 ), 87, + + col0 )
----
14
96
47
68
5
59

query I rowsort
SELECT ALL + 63 * col1 + - - 97 AS col2 FROM tab2 cor0
----
3310
4318
4948

onlyif mysql # DIV for integer division: 
query I rowsort label-6343
SELECT 95 DIV - - 56 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6343
SELECT 95 / - - 56 AS col1 FROM tab2 AS cor0
----
1
1
1

query II rowsort
SELECT DISTINCT col2, 47 AS col2 FROM tab2 AS cor0
----
23
47
40
47
58
47

query II rowsort
SELECT ALL col0, + col0 * - ( - - col1 ) + col1 AS col2 FROM tab2
----
46
-2295
64
-4851
75
-4958

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > + col1 * + 85 + - + 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT - 26 * 16 * - - COUNT( * ) FROM tab1
----
-1248

skipif mysql # not compatible
query I rowsort label-6348
SELECT - 26 * 16 * - - COUNT ( * ) FROM tab1
----
-1248

query I rowsort
SELECT + col2 + - col2 * + 1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT 66 + + - COUNT( * ) * + - COUNT( DISTINCT - + col1 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-6350
SELECT 66 + + - COUNT ( * ) * + - COUNT ( DISTINCT - + col1 ) AS col1 FROM tab2
----
75

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6352
SELECT DISTINCT 13 + col2 AS col0, CAST( NULL AS DECIMAL ) * - col1 * - + col1 col0 FROM tab0
----
112
NULL
23
NULL
60
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6352
SELECT DISTINCT 13 + col2 AS col0, CAST ( NULL AS REAL ) * - col1 * - + col1 col0 FROM tab0
----
112
NULL
23
NULL
60
NULL

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

query I rowsort
SELECT DISTINCT - 50 * - ( - col0 ) + col2 AS col1 FROM tab2 AS cor0
----
-2277
-3160
-3692

query I rowsort
SELECT + + col1 FROM tab0 cor0 WHERE ( - + col2 IS NOT NULL )
----
1
21
81

query I rowsort
SELECT - ( 36 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT DISTINCT + COUNT( * ) * - 68 FROM tab2
----
-204

skipif mysql # not compatible
query I rowsort label-6357
SELECT DISTINCT + COUNT ( * ) * - 68 FROM tab2
----
-204

query I rowsort
SELECT DISTINCT - 13 * col2 * - 19 FROM tab2 AS cor0
----
14326
5681
9880

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT ALL + 24 + 23 + SUM( ALL col0 ) AS col0 FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-6360
SELECT ALL + 24 + 23 + SUM ( ALL col0 ) AS col0 FROM tab0 AS cor0
----
246

query I rowsort
SELECT DISTINCT - + col0 * - + ( - col0 ) + + col0 + + 87 + 55 + - col0 FROM tab0 AS cor0
----
-7427
-83
-9267

query I rowsort
SELECT 19 * - - col0 + 41 FROM tab1 AS cor0
----
1010
1656
1770

query I rowsort
SELECT DISTINCT - col0 - + - col1 + 37 FROM tab2 AS cor0
----
29
42
50

query I rowsort
SELECT ALL - + 15 AS col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-15
-15
-15

query I rowsort
SELECT ALL - ( - ( col1 ) ) * - 77 FROM tab2
----
-3927
-5159
-5929

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

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

query I rowsort
SELECT DISTINCT + 73 * 86 FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
6278

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6368
SELECT * FROM tab1 AS cor0 WHERE NOT - 99 / - col1 + + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6368
SELECT * FROM tab1 AS cor0 WHERE NOT - 99 / - col1 + + + CAST ( NULL AS INTEGER ) IS NULL
----

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

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

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

query I rowsort
SELECT - col1 * - col0 + col1 * - col1 FROM tab2 AS cor0
----
-1001
-255
536

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT + COUNT( ALL 39 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6373
SELECT + COUNT ( ALL 39 ) FROM tab1
----
3

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT NULL = - 62
----

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

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

query III rowsort
SELECT * FROM tab1 WHERE NULL = 91 * + col0 + - col0
----

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

query I rowsort
SELECT 61 + - 34 FROM tab2
----
27
27
27

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6380
SELECT ALL + COUNT ( CAST ( NULL AS INTEGER ) ) col1 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6381
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL BETWEEN col1 AND - CAST( NULL AS DECIMAL ) * 23
----
0

skipif mysql # not compatible
query I rowsort label-6381
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL BETWEEN col1 AND - CAST ( NULL AS REAL ) * 23
----
0

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

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

query I rowsort
SELECT DISTINCT + 67 * 94 FROM tab0
----
6298

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 10 NOT BETWEEN NULL AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 WHERE NULL IN ( col2 )
----

query I rowsort
SELECT col2 * - 81 FROM tab0
----
-3807
-8019
-810

query I rowsort
SELECT ALL + col2 + 14 * + 13 FROM tab0
----
192
229
281

query I rowsort
SELECT 95 * + col0 AS col2 FROM tab0
----
1425
8265
9215

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 68 * + col1 + - col1 ) = NULL
----

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

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 WHERE ( + col0 ) IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT + COUNT( DISTINCT + col1 ) * MIN( DISTINCT 86 ) - + 55 AS col1 FROM tab2
----
203

skipif mysql # not compatible
query I rowsort label-6394
SELECT + COUNT ( DISTINCT + col1 ) * MIN ( DISTINCT 86 ) - + 55 AS col1 FROM tab2
----
203

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT ALL + COUNT( * ) * 70 + 68 col0 FROM tab1
----
278

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6395
SELECT ALL + COUNT ( * ) * 70 + 68 col0 FROM tab1
----
278

query I rowsort
SELECT ALL + ( + col2 ) * 63 FROM tab0
----
2961
6237
630

query I rowsort
SELECT ALL col0 * 43 FROM tab2
----
1978
2752
3225

query I rowsort
SELECT ALL 16 AS col1 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT - 11 + 8 AS col1 FROM tab0
----
-3
-3
-3

query I rowsort
SELECT ALL - col1 + - 30 FROM tab2 AS cor0 WHERE ( col2 / 1 + col2 ) = NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6402
SELECT DISTINCT 33 - col0 AS col0 FROM tab1 WHERE CAST( - col0 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-6402
SELECT DISTINCT 33 - col0 AS col0 FROM tab1 WHERE CAST ( - col0 AS INTEGER ) < NULL
----

query I rowsort
SELECT 17 + 28 * col0 FROM tab0
----
2453
2733
437

query I rowsort
SELECT DISTINCT 86 FROM tab0 AS cor0 CROSS JOIN tab2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6405
SELECT DISTINCT col1 AS col1 FROM tab0 cor0 WHERE NOT ( col2 + 4 ) BETWEEN ( CAST( NULL AS SIGNED ) + + 50 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-6405
SELECT DISTINCT col1 AS col1 FROM tab0 cor0 WHERE NOT ( col2 + 4 ) BETWEEN ( CAST ( NULL AS INTEGER ) + + 50 ) AND NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT ALL - ( COUNT( * ) ) * + SUM( - 6 ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL - ( COUNT ( * ) ) * + SUM ( - 6 ) FROM tab2 AS cor0
----
54

query I rowsort
SELECT ALL 72 * + 54 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3888
3888
3888

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

query I rowsort
SELECT DISTINCT 83 * - ( col2 ) FROM tab2
----
-1909
-3320
-4814

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT MAX( + - ( - ( + col2 ) ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-6412
SELECT MAX ( + - ( - ( + col2 ) ) ) FROM tab0
----
99

query I rowsort
SELECT col2 + col1 * col1 AS col1 FROM tab2 WHERE NOT NULL BETWEEN col1 / col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6414
SELECT ALL + col0 / CAST( NULL AS SIGNED ) FROM tab2 WHERE + 92 + col1 IN ( - col0 * + 64 + + col2 * col2 )
----

skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL + col0 / CAST ( NULL AS INTEGER ) FROM tab2 WHERE + 92 + col1 IN ( - col0 * + 64 + + col2 * col2 )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN - col2 AND - 30
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6417
SELECT 26 DIV 50 AS col1 FROM tab0 WHERE NOT col1 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6417
SELECT 26 / 50 AS col1 FROM tab0 WHERE NOT col1 IS NULL
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE - 5 IN ( - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6420
SELECT + col2 DIV - - col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6420
SELECT + col2 / - - col0 FROM tab1
----
0
0
1

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

skipif mysql # not compatible
query I rowsort label-6421
SELECT 99 AS col0 FROM tab0 AS cor0 WHERE NOT ( + col0 ) + - col1 * col1 NOT BETWEEN ( NULL ) AND ( col2 + CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT + 21 * - MIN( DISTINCT - col1 ) FROM tab2 AS cor0
----
1617

skipif mysql # not compatible
query I rowsort label-6422
SELECT + 21 * - MIN ( DISTINCT - col1 ) FROM tab2 AS cor0
----
1617

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT 56 + + COUNT( * ) FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-6423
SELECT 56 + + COUNT ( * ) FROM tab0 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT + 21 * MIN( DISTINCT + col0 ) - - SUM( - 43 + 27 ) FROM tab1 WHERE NOT - col2 * 76 - col2 NOT BETWEEN NULL AND + col2 + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6424
SELECT + 21 * MIN ( DISTINCT + col0 ) - - SUM ( - 43 + 27 ) FROM tab1 WHERE NOT - col2 * 76 - col2 NOT BETWEEN NULL AND + col2 + + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT ALL + MIN( + 87 ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6425
SELECT ALL + MIN ( + 87 ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT DISTINCT 69 * - 52 + - 36 + + 23 * COUNT( DISTINCT + ( - col0 ) * col1 ) FROM tab0
----
-3555

skipif mysql # not compatible
query I rowsort label-6426
SELECT DISTINCT 69 * - 52 + - 36 + + 23 * COUNT ( DISTINCT + ( - col0 ) * col1 ) FROM tab0
----
-3555

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE NOT ( - 40 - col2 * - 63 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 68 col1, + 16 AS col0 FROM tab0
----
68
16
68
16
68
16

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 >= + 59
----
15
81
47

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6431
SELECT ALL + col1 * + 8 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE + 50 / 62 / 61 BETWEEN NULL AND - col0 / col2
----

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL + col1 * + 8 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE + 50 / 62 / 61 BETWEEN NULL AND - col0 / col2
----

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < + 53
----

query I rowsort
SELECT ALL - + ( col1 ) * + - col2 + col1 FROM tab0 AS cor0
----
100
231
3888

query I rowsort
SELECT + col0 * 59 - col0 AS col1 FROM tab0 AS cor0
----
5046
5626
870

query I rowsort
SELECT + + col0 * + + col0 AS col1 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # DIV for integer division: 
query I rowsort label-6438
SELECT DISTINCT 83 DIV col0 col0 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6438
SELECT DISTINCT 83 / col0 col0 FROM tab1 cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6439
SELECT - 51 * + - col1 * + ( + col1 ) + col2 DIV col0 FROM tab0 AS cor0
----
22491
334614
52

skipif mysql # not compatible
query I rowsort label-6439
SELECT - 51 * + - col1 * + ( + col1 ) + col2 / col0 FROM tab0 AS cor0
----
22491
334614
52

onlyif mysql # DIV for integer division: 
query I rowsort label-6440
SELECT - col0 DIV 10 * + col0 AS col2 FROM tab1 AS cor0
----
-255
-680
-819

skipif mysql # not compatible
query I rowsort label-6440
SELECT - col0 / 10 * + col0 AS col2 FROM tab1 AS cor0
----
-255
-680
-819

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 19 IS NULL AND NOT - col2 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * 1 * 85 + - col0 AS col0 FROM tab1
----
1139
340
3904

query I rowsort
SELECT DISTINCT col2 * ( 63 ) + - col0 * 80 AS col2 FROM tab2 AS cor0
----
-2231
-2346
-2600

onlyif mysql # aggregate syntax: 
query II rowsort label-6444
SELECT + + COUNT( * ) * COUNT( * ), 13 + - - 60 AS col2 FROM tab2 AS cor0
----
9
73

skipif mysql # not compatible
query II rowsort label-6444
SELECT + + COUNT ( * ) * COUNT ( * ), 13 + - - 60 AS col2 FROM tab2 AS cor0
----
9
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT - 6 * 13 + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE 39 < - col1
----
-78

skipif mysql # not compatible
query I rowsort label-6445
SELECT - 6 * 13 + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE 39 < - col1
----
-78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT DISTINCT - COUNT( + 40 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6447
SELECT DISTINCT - COUNT ( + 40 ) AS col0 FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 68 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT DISTINCT + - MAX( - - 91 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-91

skipif mysql # not compatible
query I rowsort label-6449
SELECT DISTINCT + - MAX ( - - 91 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-91

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE + 40 + + + col1 IN ( - col0 + - 45 * - col0 )
----

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

query II rowsort
SELECT + + col0 * + - ( - 33 ) AS col1, - col0 * - col2 FROM tab0 AS cor0
----
2871
870
3201
9603
495
705

query I rowsort
SELECT - + 69 * - 87 * 45 * + + 30 FROM tab1 cor0
----
8104050
8104050
8104050

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT - MAX( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-6456
SELECT - MAX ( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
46

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( col0 ) IN ( 62 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= - 47 * - + 62 + + col2 - + col2 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-84
-84
-84

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * + 84 * + + col1 * col1 - + col1 * - ( - 87 ) BETWEEN col0 AND 63 / - col2
----

query I rowsort
SELECT - 86 + AVG ( - col1 ) AS col1 FROM tab1 WHERE NOT + + col2 NOT IN ( + 73 )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 12 * - - col0 / + - 56 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT + ( + 47 ) * col0 AS col1 FROM tab1 AS cor0
----
2397
3995
4277

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6465
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + col0 / 44 + + CAST( NULL AS SIGNED ) - - + 41 * ( + col1 ) AND 45
----

skipif mysql # not compatible
query III rowsort label-6465
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + col0 / 44 + + CAST ( NULL AS INTEGER ) - - + 41 * ( + col1 ) AND 45
----

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

query I rowsort
SELECT 28 FROM tab1 AS cor0 WHERE NOT - col0 * + + 17 IN ( col2, 49 + - col1 )
----
28
28
28

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6469
SELECT ALL + col1 + + + col2 AS col1, - CAST( + 41 AS SIGNED ) AS col1 FROM tab1
----
110
-41
115
-41
64
-41

skipif mysql # not compatible
query II rowsort label-6469
SELECT ALL + col1 + + + col2 AS col1, - CAST ( + 41 AS INTEGER ) AS col1 FROM tab1
----
110
-41
115
-41
64
-41

query I rowsort
SELECT - col0 + - col2 + col0 FROM tab2
----
-23
-40
-58

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

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

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

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

query I rowsort
SELECT ALL ( + col1 ) + + + 68 AS col0 FROM tab2 AS cor0
----
119
135
145

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 * - - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6475
SELECT + CAST( col1 AS SIGNED ) + + ( col2 ) * + col2, col2 col0 FROM tab1 AS cor0
----
3486
59
4671
68
9230
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6475
SELECT + CAST ( col1 AS INTEGER ) + + ( col2 ) * + col2, col2 col0 FROM tab1 AS cor0
----
3486
59
4671
68
9230
96

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

query I rowsort
SELECT DISTINCT 84 - - - col0 * col2 AS col0 FROM tab2
----
-2476
-4266
-974

query I rowsort
SELECT 39 FROM tab1 WHERE - col0 IS NOT NULL
----
39
39
39

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6480
SELECT 59 + - - CAST( NULL AS SIGNED ) - + ( + 51 ) * COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6480
SELECT 59 + - - CAST ( NULL AS INTEGER ) - + ( + 51 ) * COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

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

query I rowsort
SELECT ALL - 22 * - - 21 FROM tab2
----
-462
-462
-462

onlyif mysql # DIV for integer division: 
query I rowsort label-6483
SELECT col1 DIV + - 89 - + col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-6483
SELECT col1 / + - 89 - + col1 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6484
SELECT - CAST( - - col1 AS SIGNED ) + - col0 FROM tab2 AS cor0 WHERE NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-6484
SELECT - CAST ( - - col1 AS INTEGER ) + - col0 FROM tab2 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN 24 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN 24 AND NULL
----
0

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT DISTINCT + + MIN( ALL + 29 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
29

skipif mysql # not compatible
query I rowsort label-6491
SELECT DISTINCT + + MIN ( ALL + 29 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
29

query I rowsort
SELECT DISTINCT - col1 * - - col2 * + 81 AS col1 FROM tab2
----
-249480
-314766
-95013

onlyif mysql # DIV for integer division: 
query II rowsort label-6493
SELECT ALL + col0 DIV col2 AS col1, + col2 FROM tab1
----
0
96
1
59
1
68

skipif mysql # not compatible
query II rowsort label-6493
SELECT ALL + col0 / col2 AS col1, + col2 FROM tab1
----
0
96
1
59
1
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT - SUM( DISTINCT col0 ) * 30 * - - COUNT( * ) FROM tab0 AS cor0
----
-17910

skipif mysql # not compatible
query I rowsort label-6496
SELECT - SUM ( DISTINCT col0 ) * 30 * - - COUNT ( * ) FROM tab0 AS cor0
----
-17910

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6497
SELECT DISTINCT + 85 DIV 61, - MAX( + - 22 ) AS col2 FROM tab2 AS cor0
----
1
22

skipif mysql # not compatible
query II rowsort label-6497
SELECT DISTINCT + 85 / 61, - MAX ( + - 22 ) AS col2 FROM tab2 AS cor0
----
1
22

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col1, col0 col0 FROM tab1
----
51
51
85
85
91
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6501
SELECT ALL - ( + 46 ) + - MAX( ALL + col1 ) * - 66 FROM tab2 cor0
----
5036

skipif mysql # not compatible
query I rowsort label-6501
SELECT ALL - ( + 46 ) + - MAX ( ALL + col1 ) * - 66 FROM tab2 cor0
----
5036

query I rowsort
SELECT ALL + + 85 AS col0 FROM tab1 AS cor0
----
85
85
85

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 = + + col1 + + 68 + ( + col0 ) / + + 22
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6507
SELECT - CAST( 80 AS SIGNED ) AS col1 FROM tab0 cor0
----
-80
-80
-80

skipif mysql # not compatible
query I rowsort label-6507
SELECT - CAST ( 80 AS INTEGER ) AS col1 FROM tab0 cor0
----
-80
-80
-80

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 40 + - 25 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT DISTINCT COUNT( * ) * 83 + - + COUNT( * ) + + 45 * 71 AS col1 FROM tab0 cor0
----
3441

skipif mysql # not compatible
query I rowsort label-6509
SELECT DISTINCT COUNT ( * ) * 83 + - + COUNT ( * ) + + 45 * 71 AS col1 FROM tab0 cor0
----
3441

query I rowsort
SELECT DISTINCT + col0 - + col0 - 99 * 45 + - 94 FROM tab2 AS cor0
----
-4549

query I rowsort
SELECT ALL + col0 * + + col2 + - col2 + + ( 69 ) FROM tab2 AS cor0
----
1104
2589
4361

query I rowsort
SELECT DISTINCT - col2 + 73 * 21 AS col1 FROM tab2 AS cor0
----
1475
1493
1510

query I rowsort
SELECT - col1 + - 76 AS col2 FROM tab1 AS cor0
----
-123
-81
-90

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

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

query I rowsort
SELECT + + col1 * - - ( col1 ) * - - 52 + - 36 * - - 93 FROM tab1 cor0
----
-2048
111520
6844

query I rowsort
SELECT ALL 20 - + col0 - + + col1 + col2 FROM tab0 AS cor0
----
-29
-78
21

query I rowsort
SELECT col0 + col2 * + + 40 AS col1 FROM tab2 AS cor0
----
1664
2395
966

query I rowsort
SELECT - 36 * ( + col1 ) + + 9 FROM tab0
----
-27
-2907
-747

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6520
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( 39, + col0 + col2, + 92 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6520
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( 39, + col0 + col2, + 92 + CAST ( NULL AS INTEGER ) )
----

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

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

query I rowsort
SELECT DISTINCT col0 * + 20 FROM tab1
----
1020
1700
1820

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

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL ( + ( + COUNT ( * ) ) ) * + + COUNT ( * ) FROM tab0
----
9

query I rowsort
SELECT ALL + - col2 FROM tab0 cor0 WHERE NOT ( + 49 ) IN ( 57, + col1 )
----
-10
-47
-99

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6526
SELECT - + 51 DIV - - col2, + col1 FROM tab1 AS cor0
----
0
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-6526
SELECT - + 51 / - - col2, + col1 FROM tab1 AS cor0
----
0
14
0
47
0
5

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

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

query II rowsort
SELECT ALL + 12, + 32 AS col2 FROM tab0 AS cor0
----
12
32
12
32
12
32

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6531
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + - CAST( + + 0 AS SIGNED ), col0 )
----

skipif mysql # not compatible
query III rowsort label-6531
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + - CAST ( + + 0 AS INTEGER ), col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT DISTINCT MIN( + + col0 ) * MIN( ALL 13 ) AS col1 FROM tab2 AS cor0
----
598

skipif mysql # not compatible
query I rowsort label-6532
SELECT DISTINCT MIN ( + + col0 ) * MIN ( ALL 13 ) AS col1 FROM tab2 AS cor0
----
598

query I rowsort
SELECT - - col0 * ( 94 ) + col2 FROM tab0 AS cor0
----
1457
8188
9217

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT ALL + 57 * - COUNT( * ) FROM tab0 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-6534
SELECT ALL + 57 * - COUNT ( * ) FROM tab0 AS cor0
----
-171

query I rowsort
SELECT DISTINCT + ( col1 ) * + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT ALL 31 * 2 * + COUNT( * ) FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL 31 * 2 * + COUNT ( * ) FROM tab0
----
186

query I rowsort
SELECT DISTINCT col1 * + col1 + - 0 FROM tab2
----
2601
4489
5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab2 WHERE ( NULL ) < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT DISTINCT COUNT( * ) * - - ( + + 25 ) * - - 60 col2 FROM tab2
----
4500

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6539
SELECT DISTINCT COUNT ( * ) * - - ( + + 25 ) * - - 60 col2 FROM tab2
----
4500

onlyif mysql # DIV for integer division: 
query II rowsort label-6540
SELECT ALL col0 + col2 + + 35 DIV + col0 AS col0, - col2 AS col0 FROM tab1
----
144
-59
147
-96
159
-68

skipif mysql # not compatible
query II rowsort label-6540
SELECT ALL col0 + col2 + + 35 / + col0 AS col0, - col2 AS col0 FROM tab1
----
144
-59
147
-96
159
-68

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

query I rowsort
SELECT - col0 * 38 FROM tab0
----
-3306
-3686
-570

query I rowsort
SELECT ALL col0 + col1 * 50 AS col0 FROM tab0 AS cor0
----
1137
147
4065

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

query I rowsort
SELECT DISTINCT + col2 * + - 60 + + - col1 + + col2 FROM tab2 AS cor0
----
-1408
-2437
-3489

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6547
SELECT - col1 / + CAST( NULL AS SIGNED ) * + 20 * + + 33 + 10 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6547
SELECT - col1 / + CAST ( NULL AS INTEGER ) * + 20 * + + 33 + 10 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 6 + + 38 * - col1 * - + 36 AS col2 FROM tab2
----
105330
69762
91650

query I rowsort
SELECT ALL - ( 50 ) FROM tab0 WHERE ( ( NOT NULL IS NOT NULL ) )
----
-50
-50
-50

query I rowsort
SELECT ALL - + col0 * + 7 + + col1 * + col0 * col0 FROM tab1 AS cor0
----
35530
36057
388570

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

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT + - 29 ) FROM tab0 AS cor0 WHERE 40 * col2 * + col0 <= + - col0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6554
SELECT ALL - CAST( 53 AS SIGNED ) + - MIN( DISTINCT - col1 ) FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-6554
SELECT ALL - CAST ( 53 AS INTEGER ) + - MIN ( DISTINCT - col1 ) FROM tab2 AS cor0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 * - - 22 - - 85 AS col1, + col1 col1 FROM tab1 cor0
----
-223
14
-25
5
-949
47

query I rowsort
SELECT DISTINCT col2 * - ( + + 27 ) AS col1 FROM tab0
----
-1269
-2673
-270

query III rowsort
SELECT * FROM tab2 WHERE + 70 = - col0
----

query I rowsort
SELECT ALL + col0 - ( 35 ) FROM tab0
----
-20
52
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6559
SELECT ALL COUNT( ALL - + col0 ) AS col2, COUNT( * ) DIV - + MIN( 80 ) + + - COUNT( * ) DIV 89 AS col0 FROM tab2
----
3
0

skipif mysql # not compatible
query II rowsort label-6559
SELECT ALL COUNT ( ALL - + col0 ) AS col2, COUNT ( * ) / - + MIN ( 80 ) + + - COUNT ( * ) / 89 AS col0 FROM tab2
----
3
0

query I rowsort
SELECT ( - col0 ) - + 41 * - + col0 FROM tab0
----
3480
3880
600

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT DISTINCT 76 * + + COUNT( * ) - MIN( - ( - 82 ) ) FROM tab2
----
146

skipif mysql # not compatible
query I rowsort label-6561
SELECT DISTINCT 76 * + + COUNT ( * ) - MIN ( - ( - 82 ) ) FROM tab2
----
146

query I rowsort
SELECT + 71 - - + col0 FROM tab0
----
158
168
86

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 37 - - col2 + - ( + 65 ) * - + 67 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * 10 FROM tab2
----
510
670
770

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT DISTINCT COUNT( * ) * - 7 FROM tab0 cor0
----
-21

skipif mysql # not compatible
query I rowsort label-6565
SELECT DISTINCT COUNT ( * ) * - 7 FROM tab0 cor0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6566
SELECT * FROM tab0 AS cor0 WHERE NOT - 25 <= - CAST( NULL AS SIGNED ) / + col0
----

skipif mysql # not compatible
query III rowsort label-6566
SELECT * FROM tab0 AS cor0 WHERE NOT - 25 <= - CAST ( NULL AS INTEGER ) / + col0
----

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

query I rowsort
SELECT ALL 5 * + col1 + - 35 AS col2 FROM tab1 AS cor0
----
-10
200
35

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * + col2 * + col0 > ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT SUM( ALL + + 1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6571
SELECT SUM ( ALL + + 1 ) AS col0 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6572
SELECT + col2 DIV 43 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6572
SELECT + col2 / 43 AS col1 FROM tab2
----
0
0
1

query I rowsort
SELECT - col0 * + 40 + - col1 FROM tab0 WHERE NOT NULL < + col2
----

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

query I rowsort
SELECT ALL - ( - col2 ) * 71 * - ( col0 ) AS col1 FROM tab1 WHERE ( NULL IS NULL )
----
-347616
-356065
-439348

query I rowsort
SELECT DISTINCT col0 * + 93 FROM tab1
----
4743
7905
8463

query I rowsort
SELECT + ( - col2 ) * - col1 AS col1 FROM tab1
----
1344
295
3196

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6581
SELECT DISTINCT - col0 + - col1 * - col1 AS col2, + col2 DIV col1 AS col0 FROM tab0 cor0
----
-96
99
354
0
6546
0

skipif mysql # not compatible
query II rowsort label-6581
SELECT DISTINCT - col0 + - col1 * - col1 AS col2, + col2 / col1 AS col0 FROM tab0 cor0
----
-96
99
354
0
6546
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6582
SELECT - + 70 DIV col0 + - - col1 * 79 + + col1 AS col1 FROM tab0 AS cor0
----
1680
6476
80

skipif mysql # not compatible
query I rowsort label-6582
SELECT - + 70 / col0 + - - col1 * 79 + + col1 AS col1 FROM tab0 AS cor0
----
1680
6476
80

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

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

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

query I rowsort
SELECT ALL + 65 + - col1 AS col0 FROM tab2 AS cor0
----
-12
-2
14

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 - 62 col1, + 33 AS col0 FROM tab0 AS cor0
----
-149
33
-159
33
-77
33

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT 11 + - ( + + SUM( + - col0 ) ) FROM tab1 AS cor0
----
238

skipif mysql # not compatible
query I rowsort label-6590
SELECT 11 + - ( + + SUM ( + - col0 ) ) FROM tab1 AS cor0
----
238

query I rowsort
SELECT DISTINCT + col1 + + + col0 + + + col1 FROM tab0 AS cor0
----
129
177
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6592
SELECT ALL col0 - + col0 DIV - col1 AS col0 FROM tab2
----
46
64
76

skipif mysql # not compatible
query I rowsort label-6592
SELECT ALL col0 - + col0 / - col1 AS col0 FROM tab2
----
46
64
76

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

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

query I rowsort
SELECT ALL - - col0 + + ( + col0 ) - + + 65 FROM tab0 WHERE NOT - col1 / + 91 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6596
SELECT - CAST( + col0 AS SIGNED ) * - col2 AS col2 FROM tab1 cor0
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-6596
SELECT - CAST ( + col0 AS INTEGER ) * - col2 AS col2 FROM tab1 cor0
----
4896
5015
6188

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

query I rowsort
SELECT - col1 AS col0 FROM tab1 cor0 WHERE NOT 5 * - col0 + 19 <> 67
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6600
SELECT DISTINCT col1 * col2 * - - CAST ( NULL AS INTEGER ) / + col0 col1 FROM tab2
----
NULL

query I rowsort
SELECT 5 * - - ( - col0 ) FROM tab0 AS cor0
----
-435
-485
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6602
SELECT DISTINCT - - 54, + CAST( + 45 AS SIGNED ) * - 83 AS col0 FROM tab2 AS cor0
----
54
-3735

skipif mysql # not compatible
query II rowsort label-6602
SELECT DISTINCT - - 54, + CAST ( + 45 AS INTEGER ) * - 83 AS col0 FROM tab2 AS cor0
----
54
-3735

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 * - + col0 col1 FROM tab0 AS cor0 WHERE NOT + ( - col1 ) IS NULL
----
-690
-783
-9506

onlyif mysql # DIV for integer division: 
query I rowsort label-6605
SELECT col0 * - col0 * - col0 + col1 DIV 61 FROM tab2 cor0
----
262145
421876
97336

skipif mysql # not compatible
query I rowsort label-6605
SELECT col0 * - col0 * - col0 + col1 / 61 FROM tab2 cor0
----
262145
421876
97336

query I rowsort
SELECT - 47 + + col2 AS col1 FROM tab0 AS cor0
----
-37
0
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6607
SELECT * FROM tab2 WHERE 49 * + CAST( - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6607
SELECT * FROM tab2 WHERE 49 * + CAST ( - col1 AS INTEGER ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 63 <> col1 * + - col1 * col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6609
SELECT DISTINCT MAX( ALL + 11 ) * + 93 AS col0, MAX( 80 ) AS col2 FROM tab0
----
1023
80

skipif mysql # not compatible
query II rowsort label-6609
SELECT DISTINCT MAX ( ALL + 11 ) * + 93 AS col0, MAX ( 80 ) AS col2 FROM tab0
----
1023
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6610
SELECT + 59 DIV - - 11 AS col0 FROM tab1
----
5
5
5

skipif mysql # not compatible
query I rowsort label-6610
SELECT + 59 / - - 11 AS col0 FROM tab1
----
5
5
5

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

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

query I rowsort
SELECT ALL col0 * + + col2 + 68 AS col2 FROM tab0
----
773
938
9671

onlyif mysql # aggregate syntax: 
query II rowsort label-6613
SELECT - SUM( DISTINCT + + ( + col1 ) ) AS col0, - 0 + + 99 AS col2 FROM tab1 AS cor0
----
-66
99

skipif mysql # not compatible
query II rowsort label-6613
SELECT - SUM ( DISTINCT + + ( + col1 ) ) AS col0, - 0 + + 99 AS col2 FROM tab1 AS cor0
----
-66
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6614
SELECT - CAST( - + col0 AS SIGNED ) * 24 / 1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-6614
SELECT - CAST ( - + col0 AS INTEGER ) * 24 / 1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT DISTINCT - 66 - COUNT( * ) col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6615
SELECT DISTINCT - 66 - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6616
SELECT + 39 DIV - col2 col0 FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-3
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6616
SELECT + 39 / - col2 col0 FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-3
0
0

query II rowsort
SELECT ALL 94, + 9 AS col2 FROM tab2
----
94
9
94
9
94
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6618
SELECT + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL >= + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6618
SELECT + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL >= + CAST ( NULL AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6619
SELECT DISTINCT + ( - ( CAST( NULL AS SIGNED ) ) ) AS col1, 30 AS col2, - col1 AS col1 FROM tab0 cor0
----
9 values hashing to 072000ef05741b572d5ec03bd064aee3

skipif mysql # not compatible
query III rowsort label-6619
SELECT DISTINCT + ( - ( CAST ( NULL AS INTEGER ) ) ) AS col1, 30 AS col2, - col1 AS col1 FROM tab0 cor0
----
9 values hashing to 072000ef05741b572d5ec03bd064aee3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6621
SELECT ALL 99 DIV + 62 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6621
SELECT ALL 99 / + 62 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6622
SELECT ALL COUNT( ALL col2 ), - 21 * - 57 AS col2 FROM tab0
----
3
1197

skipif mysql # not compatible
query II rowsort label-6622
SELECT ALL COUNT ( ALL col2 ), - 21 * - 57 AS col2 FROM tab0
----
3
1197

query II rowsort
SELECT ALL - 41, + col2 FROM tab1 WHERE - + 80 <> - + col1
----
-41
59
-41
68
-41
96

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6627
SELECT DISTINCT CAST( - SUM( ALL col1 ) AS SIGNED ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-6627
SELECT DISTINCT CAST ( - SUM ( ALL col1 ) AS INTEGER ) AS col1 FROM tab0
----
-103

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6629
SELECT col2 * 96 DIV - col1 AS col2 FROM tab0
----
-45
-55
-9504

skipif mysql # not compatible
query I rowsort label-6629
SELECT col2 * 96 / - col1 AS col2 FROM tab0
----
-45
-55
-9504

query II rowsort
SELECT DISTINCT - 37, col2 FROM tab2
----
-37
23
-37
40
-37
58

query I rowsort
SELECT DISTINCT + - col1 * + - col2 + - 59 AS col0 FROM tab0 AS cor0
----
151
3748
40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT DISTINCT + - COUNT( - col1 ) AS col2 FROM tab2 AS cor0 WHERE 20 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6633
SELECT DISTINCT + - COUNT ( - col1 ) AS col2 FROM tab2 AS cor0 WHERE 20 IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6634
SELECT + 44, MAX( - 77 ) DIV + + ( - 28 ) AS col1 FROM tab0 cor0
----
44
2

skipif mysql # not compatible
query II rowsort label-6634
SELECT + 44, MAX ( - 77 ) / + + ( - 28 ) AS col1 FROM tab0 cor0
----
44
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT ALL - 21 * - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-6636
SELECT ALL - 21 * - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT + 95 * - - COUNT( * ) + + MIN( + col2 ) FROM tab1
----
344

skipif mysql # not compatible
query I rowsort label-6638
SELECT + 95 * - - COUNT ( * ) + + MIN ( + col2 ) FROM tab1
----
344

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT ALL - COUNT( * ) + SUM( + col1 ) FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-6639
SELECT ALL - COUNT ( * ) + SUM ( + col1 ) FROM tab2
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6640
SELECT * FROM tab2 AS cor0 WHERE col1 + + col2 * - CAST( col0 AS SIGNED ) >= + - col2 / + 71
----

skipif mysql # not compatible
query III rowsort label-6640
SELECT * FROM tab2 AS cor0 WHERE col1 + + col2 * - CAST ( col0 AS INTEGER ) >= + - col2 / + 71
----

query I rowsort
SELECT - col1 + + 36 AS col2 FROM tab0 cor0
----
-45
15
35

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT + COUNT( DISTINCT 99 ) + + COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-8

skipif mysql # not compatible
query I rowsort label-6643
SELECT + COUNT ( DISTINCT 99 ) + + COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-8

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6645
SELECT ALL - SUM( ALL - 97 ) * COUNT( * ) DIV + - COUNT( - col0 ) col1 FROM tab2 cor0
----
-291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6645
SELECT ALL - SUM ( ALL - 97 ) * COUNT ( * ) / + - COUNT ( - col0 ) col1 FROM tab2 cor0
----
-291

onlyif mysql # DIV for integer division: 
query I rowsort label-6646
SELECT + + col0 DIV - - col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6646
SELECT + + col0 / - - col0 FROM tab2 AS cor0
----
1
1
1

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

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

query II rowsort
SELECT + col1 * col0 AS col1, 5 * - ( + - col1 ) AS col0 FROM tab1 AS cor0
----
425
25
4277
235
714
70

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT ( - 82 ) IN ( - col0, - col2 )
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 61 + + col1 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6654
SELECT DISTINCT - MAX( ALL - ( + col1 ) ) DIV + 30 AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6654
SELECT DISTINCT - MAX ( ALL - ( + col1 ) ) / + 30 AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT - + 26 * + col1 AS col0 FROM tab2 AS cor0
----
-1326
-1742
-2002

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6657
SELECT ALL + + 83 AS col1, - col2 DIV - 97 FROM tab1 AS cor0
----
83
0
83
0
83
0

skipif mysql # not compatible
query II rowsort label-6657
SELECT ALL + + 83 AS col1, - col2 / - 97 FROM tab1 AS cor0
----
83
0
83
0
83
0

query II rowsort
SELECT ALL + + col0 AS col0, col1 * + - col0 FROM tab1 AS cor0
----
51
-714
85
-425
91
-4277

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * ( + col1 ) col0 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT DISTINCT - AVG ( DISTINCT col1 ) / - - COUNT( * ) + 6 FROM tab2 WHERE NOT + 58 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6663
SELECT DISTINCT - AVG ( DISTINCT col1 ) / - - COUNT ( * ) + 6 FROM tab2 WHERE NOT + 58 IS NOT NULL
----
NULL

query I rowsort
SELECT + 32 + col0 AS col2 FROM tab1
----
117
123
83

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

query II rowsort
SELECT - col0 + + col0 AS col1, col2 AS col0 FROM tab1 cor0
----
0
59
0
68
0
96

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

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT col2 * - col1 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-6669
SELECT - ( - + 98 ) AS col2, - COUNT( * ) * MIN( - 2 ) FROM tab2 WHERE 27 * ( - col0 ) - col1 <= NULL
----
98
NULL

skipif mysql # not compatible
query II rowsort label-6669
SELECT - ( - + 98 ) AS col2, - COUNT ( * ) * MIN ( - 2 ) FROM tab2 WHERE 27 * ( - col0 ) - col1 <= NULL
----
98
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6670
SELECT col1 DIV - 92 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6670
SELECT col1 / - 92 FROM tab2
----
0
0
0

query I rowsort
SELECT - + col1 AS col0 FROM tab1 WHERE NULL >= - - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6672
SELECT ALL + CAST( COUNT( ALL + 97 ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6672
SELECT ALL + CAST ( COUNT ( ALL + 97 ) AS INTEGER ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT - - col2 * - - col2 + + 32 FROM tab2 AS cor0
----
1632
3396
561

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT + 59 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT + + COUNT( * ) FROM tab1 WHERE NOT - - 16 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-6675
SELECT + + COUNT ( * ) FROM tab1 WHERE NOT - - 16 < NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6676
SELECT DISTINCT - CAST( - - COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6676
SELECT DISTINCT - CAST ( - - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
-3

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

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

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

skipif mysql # not compatible
query I rowsort label-6678
SELECT - - col1 / - col2 * col1 - - ( + - 28 ) FROM tab1 AS cor0
----
-28
-28
-28

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

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

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

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

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

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

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

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

query II rowsort
SELECT col2 * + col0, col2 AS col1 FROM tab2 AS cor0
----
1058
23
2560
40
4350
58

query I rowsort
SELECT ALL 39 * + - col1 FROM tab2
----
-1989
-2613
-3003

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT DISTINCT - MAX( - col0 ) * + 87 * - 1 AS col1 FROM tab2
----
-4002

skipif mysql # not compatible
query I rowsort label-6687
SELECT DISTINCT - MAX ( - col0 ) * + 87 * - 1 AS col1 FROM tab2
----
-4002

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6688
SELECT ALL MAX( DISTINCT + CAST( + 66 AS SIGNED ) ) * - 80 AS col2 FROM tab1
----
-5280

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL MAX ( DISTINCT + CAST ( + 66 AS INTEGER ) ) * - 80 AS col2 FROM tab1
----
-5280

query I rowsort
SELECT ALL 35 AS col2 FROM tab1 WHERE + col0 IS NOT NULL
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT SUM( ( - 68 ) ) AS col2 FROM tab2
----
-204

skipif mysql # not compatible
query I rowsort label-6690
SELECT SUM ( ( - 68 ) ) AS col2 FROM tab2
----
-204

query II rowsort
SELECT DISTINCT - 55 * + - 84 AS col1, 17 * + col0 + - col2 AS col1 FROM tab0
----
4620
1469
4620
1550
4620
208

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6692
SELECT + + 67 FROM tab2 WHERE NOT NULL <= + CAST( NULL AS DECIMAL ) + col1 + + - CAST( + 3 AS SIGNED ) * col1 * + 66
----

skipif mysql # not compatible
query I rowsort label-6692
SELECT + + 67 FROM tab2 WHERE NOT NULL <= + CAST ( NULL AS REAL ) + col1 + + - CAST ( + 3 AS INTEGER ) * col1 * + 66
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT ALL - - MIN( ALL 96 ) FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-6694
SELECT ALL - - MIN ( ALL 96 ) FROM tab2 AS cor0
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6695
SELECT - 13 DIV - COUNT( * ) + + 74 AS col0 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-6695
SELECT - 13 / - COUNT ( * ) + + 74 AS col0 FROM tab2 AS cor0
----
78

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 + - - col1 IS NULL
----

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 < - - col0
----

query I rowsort
SELECT DISTINCT + - 13 + + - col2 FROM tab1 AS cor0
----
-109
-72
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-6700
SELECT col1 DIV - ( 58 ) + - col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6700
SELECT col1 / - ( 58 ) + - col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT 75 + col2 AS col0 FROM tab1
----
134
143
171

onlyif mysql # DIV for integer division: 
query I rowsort label-6702
SELECT DISTINCT 96 - 77 DIV 61 AS col2 FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-6702
SELECT DISTINCT 96 - 77 / 61 AS col2 FROM tab1
----
95

query I rowsort
SELECT DISTINCT - ( col1 ) * + - col2 FROM tab0
----
210
3807
99

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

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

skipif mysql # not compatible
query I rowsort label-6705
SELECT COUNT ( * ) + + 10 * + 75 FROM tab1
----
753

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

skipif mysql # not compatible
query I rowsort label-6706
SELECT DISTINCT - COUNT ( ALL + col1 ) + + - COUNT ( * ) / + MIN ( ALL col0 ) AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT - SUM( DISTINCT + 91 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-91

skipif mysql # not compatible
query I rowsort label-6707
SELECT - SUM ( DISTINCT + 91 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT + - COUNT( * ) * + 30 col1 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6708
SELECT + - COUNT ( * ) * + 30 col1 FROM tab0 AS cor0
----
-90

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 AS cor0 WHERE col2 = - - col0
----

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

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

query I rowsort
SELECT ALL + col2 + 18 AS col2 FROM tab1 AS cor0
----
114
77
86

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 91 = NULL
----

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

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

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

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

query I rowsort
SELECT ALL - - 92 AS col0 FROM tab0 AS cor0
----
92
92
92

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

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

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

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

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

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

query II rowsort
SELECT col0, + col2 + col2 AS col1 FROM tab2 AS cor0
----
46
46
64
80
75
116

query I rowsort
SELECT ( + + col0 ) * - 41 FROM tab2
----
-1886
-2624
-3075

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

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

query I rowsort
SELECT DISTINCT col2 * 58 + - + col0 FROM tab1 AS cor0
----
3337
3853
5517

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 BETWEEN + col0 * + col1 + - + ( + - 69 ) + + col2 - - - 45 AND + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6728
SELECT DISTINCT + SUM( 1 ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

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

query I rowsort
SELECT col0 FROM tab2 WHERE + + col2 * + 58 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6730
SELECT ALL + COUNT( * ) DIV + 88 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL + COUNT ( * ) / + 88 AS col2 FROM tab1
----
0

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6732
SELECT ALL * FROM tab0 AS cor0 WHERE - 62 / + - col0 + - + col0 - - col2 * + - CAST( NULL AS DECIMAL ) * col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6732
SELECT ALL * FROM tab0 AS cor0 WHERE - 62 / + - col0 + - + col0 - - col2 * + - CAST ( NULL AS REAL ) * col1 IS NOT NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= 69
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 9 IS NOT NULL
----

query II rowsort
SELECT col2 * - + ( + 67 ) - 35 * col1 * - + col2 AS col0, - 34 AS col1 FROM tab0
----
-3168
-34
130096
-34
6680
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT MAX( ALL + col2 ) FROM tab2 WHERE - + 63 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6737
SELECT MAX ( ALL + col2 ) FROM tab2 WHERE - + 63 IS NULL
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col0, - col1 col1 FROM tab0
----
-10
-21
-47
-81
-99
-1

query II rowsort
SELECT ALL col1, - ( - 42 ) AS col1 FROM tab0
----
1
42
21
42
81
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 - - + col2 col0 FROM tab2
----
115
132
150

query I rowsort
SELECT DISTINCT ( + + 25 ) AS col0 FROM tab2
----
25

query I rowsort
SELECT DISTINCT - col0 + - 82 FROM tab1
----
-133
-167
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT DISTINCT - COUNT( * ) * - 68 AS col0 FROM tab0 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-6744
SELECT DISTINCT - COUNT ( * ) * - 68 AS col0 FROM tab0 AS cor0
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT ALL - - SUM( ALL - 83 ) AS col2 FROM tab1 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL - - SUM ( ALL - 83 ) AS col2 FROM tab1 AS cor0
----
-249

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

skipif mysql # not compatible
query I rowsort label-6746
SELECT MIN ( 11 ) AS col2 FROM tab2 cor0
----
11

query I rowsort
SELECT DISTINCT 64 * + - col0 AS col2 FROM tab1 AS cor0
----
-3264
-5440
-5824

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + col1 ), - col0 col0 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6750
SELECT + col2 DIV - - ( - - col2 ) + - col0 * + CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-2600
-7224
-8280

skipif mysql # not compatible
query I rowsort label-6750
SELECT + col2 / - - ( - - col2 ) + - col0 * + CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-2600
-7224
-8280

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

skipif mysql # not compatible
query I rowsort label-6751
SELECT DISTINCT MAX ( col1 ) AS col2 FROM tab2
----
77

query I rowsort
SELECT ALL + + col2 FROM tab0 WHERE - col0 * + col0 IN ( - 65, col0 / - col0 )
----

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

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

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

query II rowsort
SELECT ALL col1 * - ( - + 10 ) + - + col2 + + col2 AS col2, col2 FROM tab2
----
510
23
670
58
770
40

query I rowsort
SELECT DISTINCT + + col1 FROM tab2 WHERE NULL NOT BETWEEN - - 56 + + col2 * + - col0 * col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT - COUNT( * ) + 49 AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-6757
SELECT - COUNT ( * ) + 49 AS col0 FROM tab2
----
46

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

query I rowsort
SELECT ALL - col2 * - - col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6761
SELECT ALL COUNT( * ) DIV - - 67 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6761
SELECT ALL COUNT ( * ) / - - 67 AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL col2 + + + col2 FROM tab2
----
116
46
80

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

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

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

query I rowsort
SELECT ALL - 71 + - ( ( + - col1 ) ) * - 95 * + ( - col0 ) AS col2 FROM tab2 AS cor0
----
222799
468089
477304

query I rowsort
SELECT + 37 + - + 9 FROM tab1 AS cor0
----
28
28
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6767
SELECT DISTINCT ( SUM( ALL + ( + col1 ) ) ) - + 67 DIV - - 87 + + COUNT( * ) AS col0 FROM tab1 cor0
----
69

skipif mysql # not compatible
query I rowsort label-6767
SELECT DISTINCT ( SUM ( ALL + ( + col1 ) ) ) - + 67 / - - 87 + + COUNT ( * ) AS col0 FROM tab1 cor0
----
69

query I rowsort
SELECT - 46 + - + col2 + col1 FROM tab0 AS cor0
----
-12
-144
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT - + COUNT( * ) + + 70 FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-6769
SELECT - + COUNT ( * ) + + 70 FROM tab2 AS cor0
----
67

query I rowsort
SELECT + col2 + + + col0 + + ( + - col1 ) * + col2 FROM tab0 AS cor0
----
-113
-3745
97

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 + col0 * 78 >= 43
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT DISTINCT col0 - + 78 + + col1 FROM tab0
----
18
20
30

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 + + 25 NOT IN ( + 87 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6775
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, - 95 FROM tab0, tab1 AS cor0
----
18 values hashing to 538d8f626beae6dba24c94b0be68f944

skipif mysql # not compatible
query II rowsort label-6775
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, - 95 FROM tab0, tab1 AS cor0
----
18 values hashing to 538d8f626beae6dba24c94b0be68f944

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT ( + COUNT( * ) ) * - 85 * + + MIN( ALL + - col0 ) FROM tab0 AS cor0
----
24735

skipif mysql # not compatible
query I rowsort label-6776
SELECT ( + COUNT ( * ) ) * - 85 * + + MIN ( ALL + - col0 ) FROM tab0 AS cor0
----
24735

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6778
SELECT ALL col2 DIV + - CAST( - col2 AS SIGNED ) col1 FROM tab2 AS cor0 WHERE - 88 IS NOT NULL
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6778
SELECT ALL col2 / + - CAST ( - col2 AS INTEGER ) col1 FROM tab2 AS cor0 WHERE - 88 IS NOT NULL
----
1
1
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT DISTINCT + COUNT( * ) * - 45 AS col1 FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-6781
SELECT DISTINCT + COUNT ( * ) * - 45 AS col1 FROM tab0
----
-135

onlyif mysql # aggregate syntax: 
query II rowsort label-6782
SELECT DISTINCT 25 AS col1, - MIN( DISTINCT col0 ) FROM tab2
----
25
-46

skipif mysql # not compatible
query II rowsort label-6782
SELECT DISTINCT 25 AS col1, - MIN ( DISTINCT col0 ) FROM tab2
----
25
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT + - SUM( col1 ) * - - 65 FROM tab0 AS cor0
----
-6695

skipif mysql # not compatible
query I rowsort label-6783
SELECT + - SUM ( col1 ) * - - 65 FROM tab0 AS cor0
----
-6695

query II rowsort
SELECT + 95 AS col1, - 21 FROM tab0 cor0
----
95
-21
95
-21
95
-21

query I rowsort
SELECT + 92 / + 34 / - - col2 + + col2 FROM tab2 AS cor0 WHERE NOT - 82 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6786
SELECT ALL + col1 AS col1, - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-6786
SELECT ALL + col1 AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6787
SELECT - COUNT ( * ) + - + COUNT ( * ) col2 FROM tab0 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6788
SELECT ALL - - 23 FROM tab1 AS cor0 WHERE NOT NULL > - CAST( NULL AS SIGNED ) + + - col2
----

skipif mysql # not compatible
query I rowsort label-6788
SELECT ALL - - 23 FROM tab1 AS cor0 WHERE NOT NULL > - CAST ( NULL AS INTEGER ) + + - col2
----

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

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

query I rowsort
SELECT - 95 * + - 85 FROM tab1
----
8075
8075
8075

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6793
SELECT DISTINCT 41 + + CAST( + 23 AS SIGNED ) - - COUNT( * ) AS col1 FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-6793
SELECT DISTINCT 41 + + CAST ( + 23 AS INTEGER ) - - COUNT ( * ) AS col1 FROM tab2
----
67

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6795
SELECT - - CAST( - 50 AS SIGNED ) AS col1, col2 AS col2 FROM tab1 AS cor0
----
-50
59
-50
68
-50
96

skipif mysql # not compatible
query II rowsort label-6795
SELECT - - CAST ( - 50 AS INTEGER ) AS col1, col2 AS col2 FROM tab1 AS cor0
----
-50
59
-50
68
-50
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6796
SELECT ALL - 49 col0, COUNT( * ) FROM tab2
----
-49
3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6797
SELECT ALL AVG ( + CAST( NULL AS SIGNED ) ) + COUNT( * ) AS col0 FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6797
SELECT ALL AVG ( + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) AS col0 FROM tab1, tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT + 60 + + - COUNT( * ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-6798
SELECT + 60 + + - COUNT ( * ) FROM tab2
----
57

query I rowsort
SELECT - 49 * + 47 FROM tab1 AS cor0
----
-2303
-2303
-2303

query I rowsort
SELECT DISTINCT + + 74 + 29 AS col1 FROM tab2 AS cor0
----
103

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

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

query I rowsort
SELECT ALL + 89 - - 22 AS col1 FROM tab1 AS cor0
----
111
111
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6803
SELECT ALL - 96 * MIN( DISTINCT - col2 ) DIV + 12 + + COUNT( * ) + + 62 + + 23 FROM tab2 AS cor0
----
552

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL - 96 * MIN ( DISTINCT - col2 ) / + 12 + + COUNT ( * ) + + 62 + + 23 FROM tab2 AS cor0
----
552

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

query I rowsort
SELECT ALL col1 + - 13 FROM tab1 AS cor0
----
-8
1
34

query I rowsort
SELECT DISTINCT - col1 - - 9 + col1 AS col2 FROM tab2 AS cor0
----
9

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

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

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

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

query II rowsort
SELECT col0, - 70 FROM tab0
----
15
-70
87
-70
97
-70

query I rowsort
SELECT 43 * - 8 FROM tab1
----
-344
-344
-344

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6812
SELECT ALL CAST( NULL AS DECIMAL ) * + AVG ( ALL - + ( - 95 ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6812
SELECT ALL CAST ( NULL AS REAL ) * + AVG ( ALL - + ( - 95 ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6813
SELECT COUNT( * ) * + - COUNT( * ), + SUM( DISTINCT + - col0 ) AS col2 FROM tab1
----
-9
-227

skipif mysql # not compatible
query II rowsort label-6813
SELECT COUNT ( * ) * + - COUNT ( * ), + SUM ( DISTINCT + - col0 ) AS col2 FROM tab1
----
-9
-227

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6815
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) * + col2 + + + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6815
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) * + col2 + + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT ALL - - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( - + 51 <> - col1 - + col1 - + 32 )
----
0

skipif mysql # not compatible
query I rowsort label-6816
SELECT ALL - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( - + 51 <> - col1 - + col1 - + 32 )
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6819
SELECT + - 55 DIV + COUNT( - col1 ) col1 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6819
SELECT + - 55 / + COUNT ( - col1 ) col1 FROM tab0 AS cor0
----
-18

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

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

skipif mysql # not compatible
query I rowsort label-6821
SELECT + MIN ( DISTINCT - col0 ) * ( + MIN ( col1 ) ) * COUNT ( * ) FROM tab1 AS cor0
----
-1365

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

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

query II rowsort
SELECT DISTINCT - col2, 7 * + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-59
413
-68
476
-96
672

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

query I rowsort
SELECT + ( col1 ) * - col2 + - 50 AS col1 FROM tab1
----
-1394
-3246
-345

query I rowsort
SELECT ALL + col1 - - col2 + + col1 / + - 82 * + col0 FROM tab0 WHERE NOT - 37 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - - col1 NOT BETWEEN - col1 AND col1
----

query II rowsort
SELECT 58 + - col2 + + col1 AS col2, 34 AS col2 FROM tab0
----
-40
34
69
34
92
34

query I rowsort
SELECT - 42 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6831
SELECT DISTINCT + COUNT ( * ) col2 FROM tab2, tab0 AS cor0
----
9

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6835
SELECT CAST( NULL AS SIGNED ) / col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6835
SELECT CAST ( NULL AS INTEGER ) / col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 77 * col0 + - col0 FROM tab2
----
-3588
-4992
-5850

onlyif mysql # DIV for integer division: 
query I rowsort label-6837
SELECT ALL - col1 * + col1 + + 11 DIV - 70 AS col0 FROM tab2
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL - col1 * + col1 + + 11 / - 70 AS col0 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT DISTINCT COUNT( * ) - - 10 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-6838
SELECT DISTINCT COUNT ( * ) - - 10 FROM tab1
----
13

query I rowsort
SELECT 15 + 19 AS col1 FROM tab2
----
34
34
34

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 61 NOT IN ( - ( col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 + 19 FROM tab1
----
24
33
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT MAX( col0 ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-6843
SELECT MAX ( col0 ) AS col2 FROM tab0
----
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 = + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * + 15 <> + col1 / + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT ALL SUM( col2 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL SUM ( col2 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( 86 ) < ( ( 30 ) )
----

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

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

query I rowsort
SELECT col1 * + col2 FROM tab0 WHERE 25 - col2 NOT BETWEEN col1 AND col2
----
210
3807
99

query I rowsort
SELECT DISTINCT col1 * - ( col1 * - 9 ) AS col0 FROM tab1 WHERE NOT col0 IS NULL
----
1764
19881
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6851
SELECT ALL col2 AS col0 FROM tab1 WHERE NOT ( col0 ) >= ( + CAST( NULL AS SIGNED ) / 49 + - ( - 32 ) )
----

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL col2 AS col0 FROM tab1 WHERE NOT ( col0 ) >= ( + CAST ( NULL AS INTEGER ) / 49 + - ( - 32 ) )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT + MIN( DISTINCT + 74 ) FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-6854
SELECT + MIN ( DISTINCT + 74 ) FROM tab0
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6855
SELECT ALL + 63 DIV + ( + COUNT( * ) ) FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-6855
SELECT ALL + 63 / + ( + COUNT ( * ) ) FROM tab2 AS cor0
----
21

query I rowsort
SELECT DISTINCT 14 FROM tab0 cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT 77 * col0 - - 88 AS col0 FROM tab2 AS cor0 WHERE NOT 95 = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 >= col2
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT - MAX( ALL 95 ) AS col2 FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-6859
SELECT - MAX ( ALL 95 ) AS col2 FROM tab0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT DISTINCT + + COUNT( * ) + - ( - MAX( ( + col1 ) ) ) FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-6860
SELECT DISTINCT + + COUNT ( * ) + - ( - MAX ( ( + col1 ) ) ) FROM tab2 AS cor0
----
80

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6862
SELECT ALL - 76 DIV - 39 + + col1 FROM tab1 AS cor0
----
15
48
6

skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL - 76 / - 39 + + col1 FROM tab1 AS cor0
----
15
48
6

query I rowsort
SELECT + col1 + - ( + col0 ) FROM tab2 AS cor0
----
-8
13
5

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 13 ) = - 39
----

query I rowsort
SELECT ALL + 31 AS col0 FROM tab2 WHERE NOT NULL = ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col0 * col1 col1 FROM tab1
----
-36125
-36414
-389207

query III rowsort
SELECT * FROM tab1 WHERE + col1 * col2 + 55 = ( NULL )
----

query I rowsort
SELECT + ( + - 29 ) * col2 FROM tab0
----
-1363
-2871
-290

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

skipif mysql # not compatible
query I rowsort label-6870
SELECT DISTINCT + COUNT ( * ) + + AVG ( - 11 ) + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6874
SELECT ALL ( + CAST( ( - COUNT( * ) ) AS SIGNED ) ) FROM tab2 WHERE ( NOT NULL NOT BETWEEN NULL AND 8 )
----
0

skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL ( + CAST ( ( - COUNT ( * ) ) AS INTEGER ) ) FROM tab2 WHERE ( NOT NULL NOT BETWEEN NULL AND 8 )
----
0

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

skipif mysql # not compatible
query I rowsort label-6875
SELECT DISTINCT - col2 / ( + + CAST ( NULL AS INTEGER ) ) - + col0 * + col1 AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT ( COUNT( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + ( - 31 ) IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-6876
SELECT ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + ( - 31 ) IS NULL
----
9

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

query I rowsort
SELECT + col2 * + col2 * ( 61 ) FROM tab2 AS cor0
----
205204
32269
97600

query I rowsort
SELECT DISTINCT - ( - 2 ) AS col2 FROM tab1
----
2

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 26 NOT BETWEEN 1 * 72 + + 13 AND NULL
----

query I rowsort
SELECT + col0 * col1 * + + 93 FROM tab2
----
218178
458304
467325

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

skipif mysql # not compatible
query I rowsort label-6882
SELECT ALL + ( + + 30 ) * COUNT ( * ) FROM tab2
----
90

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

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

query I rowsort
SELECT 61 * 64 + 50 FROM tab1 cor0 WHERE NOT ( ( NULL ) IS NULL )
----

query I rowsort
SELECT DISTINCT 5 * + col1 AS col2 FROM tab0 AS cor0
----
105
405
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT ALL + 52 * + SUM( + 72 ) * + + 1 AS col0 FROM tab2
----
11232

skipif mysql # not compatible
query I rowsort label-6886
SELECT ALL + 52 * + SUM ( + 72 ) * + + 1 AS col0 FROM tab2
----
11232

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT ALL COUNT( * ) + + 69 + COUNT( DISTINCT + 89 ) FROM tab0 WHERE ( NULL ) < 94
----
69

skipif mysql # not compatible
query I rowsort label-6887
SELECT ALL COUNT ( * ) + + 69 + COUNT ( DISTINCT + 89 ) FROM tab0 WHERE ( NULL ) < 94
----
69

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 > + 26
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6892
SELECT ALL col0 + - + 96 DIV col2 DIV - col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL col0 + - + 96 / col2 / - col2 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6893
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - 47 col0 FROM tab1
----
NULL

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

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

query I rowsort
SELECT ALL + ( + 32 ) + col0 AS col0 FROM tab0 cor0
----
119
129
47

query I rowsort
SELECT DISTINCT - col1 + 62 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - col0 + - + 68 AND - + 90
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6898
SELECT ALL + 14 * + + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 7, + col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6898
SELECT ALL + 14 * + + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 7, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6899
SELECT DISTINCT + MIN( + col0 ) + MIN( - + 4 ) AS col0 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-6899
SELECT DISTINCT + MIN ( + col0 ) + MIN ( - + 4 ) AS col0 FROM tab2 AS cor0
----
42

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6901
SELECT + SUM( ALL + CAST( - 2 AS SIGNED ) ) AS col1 FROM tab2 cor0
----
-6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT DISTINCT + ( + 67 ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-6902
SELECT DISTINCT + ( + 67 ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
70

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col1 * + + col2 = - col2
----

query I rowsort
SELECT - col0 + - col0 + + col0 FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT + col1 * - col2 * + col1 + - col0 FROM tab0
----
-196
-308382
-4497

query I rowsort
SELECT 9 + + + col1 AS col2 FROM tab1
----
14
23
56

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT COUNT( * ) + MIN( ALL + ( + col0 ) ) - - 56 AS col1 FROM tab2
----
105

skipif mysql # not compatible
query I rowsort label-6910
SELECT COUNT ( * ) + MIN ( ALL + ( + col0 ) ) - - 56 AS col1 FROM tab2
----
105

query I rowsort
SELECT col0 FROM tab1 WHERE ( NOT ( + col1 IS NULL ) )
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6912
SELECT DISTINCT - 96 DIV + 47 AS col1 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-6912
SELECT DISTINCT - 96 / + 47 AS col1 FROM tab2
----
-2

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6914
SELECT DISTINCT 11 + + - col2 DIV + col1 col1 FROM tab0
----
-88
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6914
SELECT DISTINCT 11 + + - col2 / + col1 col1 FROM tab0
----
-88
11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT DISTINCT - - 94 + 0 + - - 91 + + 35 - - COUNT( * ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-6916
SELECT DISTINCT - - 94 + 0 + - - 91 + + 35 - - COUNT ( * ) FROM tab1 AS cor0
----
223

onlyif mysql # DIV for integer division: 
query II rowsort label-6917
SELECT col1 AS col1, 52 DIV + col0 + - col2 AS col0 FROM tab1 cor0
----
14
-95
47
-68
5
-59

skipif mysql # not compatible
query II rowsort label-6917
SELECT col1 AS col1, 52 / + col0 + - col2 AS col0 FROM tab1 cor0
----
14
-95
47
-68
5
-59

query I rowsort
SELECT DISTINCT + col2 + - + col1 AS col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6919
SELECT - CAST( - - 61 AS SIGNED ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6919
SELECT - CAST ( - - 61 AS INTEGER ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6921
SELECT ALL COUNT( * ) col2 FROM tab1 WHERE NOT - col2 BETWEEN + + 1 * + CAST( col2 AS SIGNED ) + - + col2 AND col0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6921
SELECT ALL COUNT ( * ) col2 FROM tab1 WHERE NOT - col2 BETWEEN + + 1 * + CAST ( col2 AS INTEGER ) + - + col2 AND col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT ALL + - MIN( ALL col2 ) AS col1 FROM tab0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL + - MIN ( ALL col2 ) AS col1 FROM tab0 WHERE NOT col1 IS NOT NULL
----
NULL

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

query I rowsort
SELECT + 58 * + 57 * 7 AS col1 FROM tab2 AS cor0
----
23142
23142
23142

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

skipif mysql # not compatible
query I rowsort label-6925
SELECT ALL + - MAX ( 35 ) FROM tab1 AS cor0
----
-35

query I rowsort
SELECT DISTINCT 14 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT DISTINCT MAX( ALL + ( + col1 ) ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-6927
SELECT DISTINCT MAX ( ALL + ( + col1 ) ) FROM tab2
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6928
SELECT ALL - 97 AS col1, 49 * + CAST( + COUNT( col0 ) AS SIGNED ) AS col0 FROM tab1
----
-97
147

skipif mysql # not compatible
query II rowsort label-6928
SELECT ALL - 97 AS col1, 49 * + CAST ( + COUNT ( col0 ) AS INTEGER ) AS col0 FROM tab1
----
-97
147

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT + + COUNT( * ) * + 81 + + COUNT( * ) AS col0 FROM tab0 cor0
----
246

skipif mysql # not compatible
query I rowsort label-6929
SELECT + + COUNT ( * ) * + 81 + + COUNT ( * ) AS col0 FROM tab0 cor0
----
246

query I rowsort
SELECT ALL + - ( - 97 ) * + + 39 AS col2 FROM tab1 AS cor0
----
3783
3783
3783

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT + 1 * MIN( - - 5 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6931
SELECT + 1 * MIN ( - - 5 ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT - col1 FROM tab0 WHERE + 75 IS NULL
----

query I rowsort
SELECT col0 * col1 + - - ( col2 ) * + 37 AS col1 FROM tab1
----
2608
4266
6793

query I rowsort
SELECT + col2 * + 87 * - - ( col0 ) + 21 + + col1 * - - 70 AS col0 FROM tab1
----
426953
436676
541667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + + col0 ) + - 3 + - - col1, - col2 + - 64 * col1 col0 FROM tab2 AS cor0
----
138
-4968
139
-4346
94
-3287

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

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

query I rowsort
SELECT ALL - - col1 + + col0 * ( + col2 ) + - - col1 FROM tab2 AS cor0
----
1160
2714
4484

query I rowsort
SELECT - col2 + - col1 * - ( + col1 ) FROM tab2 AS cor0
----
2578
4431
5889

query I rowsort
SELECT - 34 + - col0 AS col0 FROM tab1 AS cor0
----
-119
-125
-85

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN col1 AND NULL
----

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

query I rowsort
SELECT - 37 AS col1 FROM tab2 cor0 WHERE NULL = NULL
----

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

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

query I rowsort
SELECT DISTINCT - AVG ( + col1 ) * - - 28 + + 18 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN col0 + - col2 AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6945
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 59 > + - CAST( + - 70 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6945
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 59 > + - CAST ( + - 70 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 9 * - 95 AS col0 FROM tab0
----
855
855
855

query II rowsort
SELECT col0, - 82 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6948
SELECT - 3 AS col2, CAST( - + col2 AS SIGNED ) AS col2 FROM tab2
----
-3
-23
-3
-40
-3
-58

skipif mysql # not compatible
query II rowsort label-6948
SELECT - 3 AS col2, CAST ( - + col2 AS INTEGER ) AS col2 FROM tab2
----
-3
-23
-3
-40
-3
-58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT DISTINCT MIN( DISTINCT - + col0 ) * 7 + 94 FROM tab1
----
-543

skipif mysql # not compatible
query I rowsort label-6950
SELECT DISTINCT MIN ( DISTINCT - + col0 ) * 7 + 94 FROM tab1
----
-543

onlyif mysql # DIV for integer division: 
query I rowsort label-6951
SELECT col2 DIV + 92 - - + 47 FROM tab0
----
47
47
48

skipif mysql # not compatible
query I rowsort label-6951
SELECT col2 / + 92 - - + 47 FROM tab0
----
47
47
48

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6954
SELECT + 20, CAST( - + col0 AS SIGNED ) DIV col0 AS col2 FROM tab2 AS cor0 WHERE NOT + 67 IS NULL
----
20
-1
20
-1
20
-1

skipif mysql # not compatible
query II rowsort label-6954
SELECT + 20, CAST ( - + col0 AS INTEGER ) / col0 AS col2 FROM tab2 AS cor0 WHERE NOT + 67 IS NULL
----
20
-1
20
-1
20
-1

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

query I rowsort
SELECT ALL - 38 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

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

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

query I rowsort
SELECT - col2 * + - 39 FROM tab1 AS cor0
----
2301
2652
3744

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

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

query I rowsort
SELECT DISTINCT - col0 * + col0 AS col0 FROM tab0 AS cor0 WHERE NOT col0 * + - col0 + + col2 BETWEEN ( + - col1 ) AND NULL
----
-225
-7569
-9409

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 * col1 NOT BETWEEN + col0 * - + 70 * + col2 * + col0 AND - 64 / + 65
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

query I rowsort
SELECT + + ( + 32 ) FROM tab0 AS cor0 WHERE NOT 93 IS NULL
----
32
32
32

query II rowsort
SELECT ALL + 3, col2 FROM tab1 cor0
----
3
59
3
68
3
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6967
SELECT ALL MAX( DISTINCT + 17 ), + COUNT( * ) AS col1 FROM tab2
----
17
3

skipif mysql # not compatible
query II rowsort label-6967
SELECT ALL MAX ( DISTINCT + 17 ), + COUNT ( * ) AS col1 FROM tab2
----
17
3

query II rowsort
SELECT - ( + ( 89 ) ) AS col2, col2 AS col0 FROM tab0
----
-89
10
-89
47
-89
99

query I rowsort
SELECT ALL + - 86 * col1 FROM tab1 AS cor0
----
-1204
-4042
-430

query II rowsort
SELECT DISTINCT + col2, 97 FROM tab0
----
10
97
47
97
99
97

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 16 < NULL
----

query I rowsort
SELECT - - col0 - - 41 FROM tab2 AS cor0
----
105
116
87

query I rowsort
SELECT - + col1 * + col2 * + col1 * + col0 + + - col1 FROM tab2 AS cor0 WHERE + 15 / - 7 NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT DISTINCT - - col1 - + 99 AS col0 FROM tab1 cor0
----
-52
-85
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6977
SELECT - 94 AS col2, - MAX( ALL + + 65 ) DIV + - COUNT( * ) FROM tab0 cor0 WHERE - 58 IS NOT NULL
----
-94
21

skipif mysql # not compatible
query II rowsort label-6977
SELECT - 94 AS col2, - MAX ( ALL + + 65 ) / + - COUNT ( * ) FROM tab0 cor0 WHERE - 58 IS NOT NULL
----
-94
21

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT + 11 + COUNT( * ) FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-6979
SELECT + 11 + COUNT ( * ) FROM tab0 AS cor0
----
14

query I rowsort
SELECT col2 * col1 * + col1 + + col0 * + col1 + col1 + - + col1 FROM tab0 AS cor0
----
196
309582
6237

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT DISTINCT COUNT( * ) * + - 14 + - 16 AS col2 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-6981
SELECT DISTINCT COUNT ( * ) * + - 14 + - 16 AS col2 FROM tab0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - + col2 * - col0 col2 FROM tab2
----
1081
2600
4408

query I rowsort
SELECT ALL col0 * + 75 FROM tab1
----
3825
6375
6825

query I rowsort
SELECT DISTINCT + 20 - - + ( col2 ) FROM tab1
----
116
79
88

query I rowsort
SELECT col2 * + 95 + - - col2 AS col1 FROM tab0
----
4512
9504
960

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

query III rowsort
SELECT * FROM tab1 WHERE col1 > col2 * col2 * - + 47
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 * + + 21 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6989
SELECT ALL col1 DIV - + ( 24 ) FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-6989
SELECT ALL col1 / - + ( 24 ) FROM tab0 AS cor0
----
-3
0
0

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

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

query I rowsort
SELECT DISTINCT 4 * - 0 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6993
SELECT ALL COUNT( * ) DIV + 10 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6993
SELECT ALL COUNT ( * ) / + 10 AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT + COUNT( * ) * MAX( + ( col1 ) ) AS col0 FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-6994
SELECT + COUNT ( * ) * MAX ( + ( col1 ) ) AS col0 FROM tab2
----
231

query I rowsort
SELECT DISTINCT col2 * 49 FROM tab2 cor0
----
1127
1960
2842

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT DISTINCT + + 95 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-6996
SELECT DISTINCT + + 95 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
285

query I rowsort
SELECT - - 38 * - col0 AS col1 FROM tab2 AS cor0
----
-1748
-2432
-2850

query I rowsort
SELECT DISTINCT + + 1 * + + col0 * - col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7000
SELECT 5 DIV + + col1 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7000
SELECT 5 / + + col1 AS col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - 3 * col0 * + col0 AS col2 FROM tab2 AS cor0
----
-12288
-16875
-6348

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7002
SELECT ALL + MIN ( ALL + col0 ) col0 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7003
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7003
SELECT DISTINCT - CAST ( NULL AS REAL ) * - col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT DISTINCT 11 + SUM( col2 ) FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-7004
SELECT DISTINCT 11 + SUM ( col2 ) FROM tab2
----
132

query I rowsort
SELECT ALL - 18 * + col0 * + - col2 AS col1 FROM tab2
----
19044
46080
78300

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7006
SELECT + MIN ( + col1 ) col0 FROM tab1 cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7007
SELECT ALL col0 * col0 + - + CAST( - col1 AS SIGNED ) col0 FROM tab0 AS cor0
----
306
7590
9410

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7007
SELECT ALL col0 * col0 + - + CAST ( - col1 AS INTEGER ) col0 FROM tab0 AS cor0
----
306
7590
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 30, 53 + - col2 col1 FROM tab2 AS cor0
----
30
-5
30
13
30
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7009
SELECT DISTINCT - col0 + + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-7009
SELECT DISTINCT - col0 + + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-8
13
5

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7011
SELECT ALL - CAST( + - MAX( DISTINCT + 76 ) AS SIGNED ) AS col2 FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-7011
SELECT ALL - CAST ( + - MAX ( DISTINCT + 76 ) AS INTEGER ) AS col2 FROM tab0
----
76

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

query I rowsort
SELECT ALL - col0 + 3 * - 47 FROM tab0 AS cor0
----
-156
-228
-238

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

skipif mysql # not compatible
query I rowsort label-7014
SELECT ALL + col2 - - CAST ( NULL AS INTEGER ) / 58 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT ALL - ( + MAX( DISTINCT - 45 ) ) AS col2 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-7015
SELECT ALL - ( + MAX ( DISTINCT - 45 ) ) AS col2 FROM tab0
----
45

query I rowsort
SELECT DISTINCT + ( 58 ) * 64 * + col2 * + col2 - - + col1 + + 89 AS col2 FROM tab0
----
36381402
371310
8199978

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT COUNT( * ) FROM tab2 WHERE - col0 = + col2 * - col1 + - col0
----
0

skipif mysql # not compatible
query I rowsort label-7017
SELECT COUNT ( * ) FROM tab2 WHERE - col0 = + col2 * - col1 + - col0
----
0

query I rowsort
SELECT ALL 14 - 5 AS col2 FROM tab0
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT DISTINCT SUM( ALL - 45 ) FROM tab2
----
-135

skipif mysql # not compatible
query I rowsort label-7019
SELECT DISTINCT SUM ( ALL - 45 ) FROM tab2
----
-135

query I rowsort
SELECT col2 * col0 * + 55 - + 62 * + - col2 FROM tab1
----
275232
279483
344556

query I rowsort
SELECT ALL + col1 * + ( - - ( ( + 83 ) ) ) AS col1 FROM tab1
----
1162
3901
415

onlyif mysql # aggregate syntax: 
query II rowsort label-7022
SELECT 5, - COUNT( * ) AS col0 FROM tab1
----
5
-3

skipif mysql # not compatible
query II rowsort label-7022
SELECT 5, - COUNT ( * ) AS col0 FROM tab1
----
5
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 * 17 col1 FROM tab1
----
105196
83232
85255

onlyif mysql # aggregate syntax: 
query II rowsort label-7024
SELECT DISTINCT - ( MAX( + + col2 ) ), COUNT( * ) * - MAX( + col2 ) AS col0 FROM tab0
----
-99
-297

skipif mysql # not compatible
query II rowsort label-7024
SELECT DISTINCT - ( MAX ( + + col2 ) ), COUNT ( * ) * - MAX ( + col2 ) AS col0 FROM tab0
----
-99
-297

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 col0, + 60 * - col2 col1 FROM tab0 AS cor0
----
-1
-5940
-21
-600
-81
-2820

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - - col2 col2 FROM tab0
----
100
2209
9801

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

query I rowsort
SELECT ALL + 6 * col2 AS col2 FROM tab2
----
138
240
348

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) > + col2 + col0 * - 2
----

query I rowsort
SELECT + + 96 AS col0 FROM tab0 cor0
----
96
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7038
SELECT DISTINCT + + 96 * CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-4896
-6432
-7392

skipif mysql # not compatible
query I rowsort label-7038
SELECT DISTINCT + + 96 * CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-4896
-6432
-7392

query I rowsort
SELECT col1 * - ( ( - col1 ) ) AS col1 FROM tab1
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7040
SELECT ALL - CAST( - - col0 AS SIGNED ) * + ( + + col0 ) AS col2 FROM tab2
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-7040
SELECT ALL - CAST ( - - col0 AS INTEGER ) * + ( + + col0 ) AS col2 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NULL >= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT DISTINCT - 57 * COUNT( * ) AS col2 FROM tab2
----
-171

skipif mysql # not compatible
query I rowsort label-7042
SELECT DISTINCT - 57 * COUNT ( * ) AS col2 FROM tab2
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT ALL ( - COUNT( * ) ) * - + MAX( + col1 ) FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-7043
SELECT ALL ( - COUNT ( * ) ) * - + MAX ( + col1 ) FROM tab1
----
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7044
SELECT DISTINCT 8 DIV - MAX( ALL - 25 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7044
SELECT DISTINCT 8 / - MAX ( ALL - 25 ) FROM tab0
----
0

query I rowsort
SELECT col1 + + 74 AS col2 FROM tab2
----
125
141
151

query I rowsort
SELECT DISTINCT 35 + - - 50 FROM tab2
----
85

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

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

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 + col2 <> - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7049
SELECT DISTINCT 5 DIV + 73 col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7049
SELECT DISTINCT 5 / + 73 col2 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + 82 > + 14
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 84 FROM tab0 AS cor0 WHERE - col1 NOT IN ( - 21 * - 76 + + col2 )
----
84
84
84

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

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL - + ( + ( + + SUM ( ALL - col2 ) ) ) - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
159

query I rowsort
SELECT ALL - + col2 + + 93 AS col2 FROM tab0 AS cor0
----
-6
46
83

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7055
SELECT + col0 AS col1, CAST( col2 AS SIGNED ) * col0 DIV col2 FROM tab2 AS cor0
----
46
46
64
64
75
75

skipif mysql # not compatible
query II rowsort label-7055
SELECT + col0 AS col1, CAST ( col2 AS INTEGER ) * col0 / col2 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT ALL + MIN( DISTINCT + + 10 ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL + MIN ( DISTINCT + + 10 ) FROM tab1
----
10

query I rowsort
SELECT 39 * 3 * - col1 * + col0 AS col1 FROM tab2
----
-274482
-576576
-587925

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT - SUM( - col2 ) FROM tab2 WHERE NOT 28 * + col0 * - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7058
SELECT - SUM ( - col2 ) FROM tab2 WHERE NOT 28 * + col0 * - col2 IS NOT NULL
----
NULL

query I rowsort
SELECT - 91 AS col0 FROM tab2 WHERE NOT NULL IN ( - + col2, ( + + col0 ), - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT ( - - ( - 51 ) ) * + - COUNT( * ) AS col1 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-7060
SELECT ( - - ( - 51 ) ) * + - COUNT ( * ) AS col1 FROM tab1
----
153

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

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

query I rowsort
SELECT + 9 * + + col2 FROM tab2 AS cor0
----
207
360
522

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

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

query II rowsort
SELECT DISTINCT + col1 AS col1, - col1 * + - ( + + col2 ) AS col1 FROM tab2
----
51
1173
67
3886
77
3080

query I rowsort
SELECT 48 + - col0 + - col2 * + col2 AS col0 FROM tab2 AS cor0
----
-1616
-3391
-527

query I rowsort
SELECT + + 98 + + - col1 * + 42 FROM tab0 AS cor0
----
-3304
-784
56

query I rowsort
SELECT + 59 + + col1 FROM tab1 AS cor0
----
106
64
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT ALL 29 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-7068
SELECT ALL 29 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 + col2 col2 FROM tab0 AS cor0
----
116
168
79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= + 59
----

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT COUNT( * ) + 29 col2 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7075
SELECT COUNT ( * ) + 29 col2 FROM tab1 AS cor0
----
32

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

skipif mysql # not compatible
query I rowsort label-7076
SELECT + MAX ( + 93 ) FROM tab1 AS cor0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-7077
SELECT DISTINCT + - col0 DIV - col0 AS col2 FROM tab2 WHERE - 61 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-7077
SELECT DISTINCT + - col0 / - col0 AS col2 FROM tab2 WHERE - 61 IS NOT NULL
----
1

query I rowsort
SELECT DISTINCT col0 * - col0 + col2 AS col0 FROM tab1
----
-2505
-7166
-8213

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT ALL 17 + + - MAX( + col1 ) * + COUNT( * ) FROM tab0
----
-226

skipif mysql # not compatible
query I rowsort label-7079
SELECT ALL 17 + + - MAX ( + col1 ) * + COUNT ( * ) FROM tab0
----
-226

query I rowsort
SELECT DISTINCT + col1 + + 84 FROM tab0
----
105
165
85

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE + 83 IS NULL
----

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

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

query I rowsort
SELECT - col0 + + 23 + + 20 + - + col0 * col0 FROM tab0
----
-197
-7613
-9463

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7084
SELECT + CAST( 9 AS SIGNED ) + - - col1 AS col0 FROM tab1
----
14
23
56

skipif mysql # not compatible
query I rowsort label-7084
SELECT + CAST ( 9 AS INTEGER ) + - - col1 AS col0 FROM tab1
----
14
23
56

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

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

query II rowsort
SELECT DISTINCT - col1, 6 FROM tab2 AS cor0 WHERE ( ( col0 + + 17 ) BETWEEN NULL AND ( + col2 ) )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7088
SELECT ALL - 37 DIV - col1 + - - ( col1 ) AS col0 FROM tab1 AS cor0
----
12
16
47

skipif mysql # not compatible
query I rowsort label-7088
SELECT ALL - 37 / - col1 + - - ( col1 ) AS col0 FROM tab1 AS cor0
----
12
16
47

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < 17
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND + col1 * + 18 / 60 + + col2
----

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

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

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

query I rowsort
SELECT + 89 * + col0 AS col1 FROM tab0
----
1335
7743
8633

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT ALL MIN( ALL + 46 ) FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-7095
SELECT ALL MIN ( ALL + 46 ) FROM tab1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT - MIN( ALL - 47 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7096
SELECT - MIN ( ALL - 47 ) AS col2 FROM tab1
----
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT + COUNT( col2 ) FROM tab1 WHERE NOT + col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7098
SELECT + COUNT ( col2 ) FROM tab1 WHERE NOT + col2 >= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7099
SELECT + col2, CAST( + 1 AS SIGNED ) FROM tab2
----
23
1
40
1
58
1

skipif mysql # not compatible
query II rowsort label-7099
SELECT + col2, CAST ( + 1 AS INTEGER ) FROM tab2
----
23
1
40
1
58
1

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 + + 84 ) NOT IN ( + 24 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT DISTINCT + + COUNT( DISTINCT - 87 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7102
SELECT DISTINCT + + COUNT ( DISTINCT - 87 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-7105
SELECT 46 * + COUNT ( * ) FROM tab2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT DISTINCT + COUNT( * ) + COUNT( * ) + - 96 col2 FROM tab1
----
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7106
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) + - 96 col2 FROM tab1
----
-90

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

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

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

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 31 + - col1 col1 FROM tab1 AS cor0
----
-36
-45
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT + SUM( ALL + col2 ) AS col0 FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-7111
SELECT + SUM ( ALL + col2 ) AS col0 FROM tab2 cor0
----
121

query I rowsort
SELECT DISTINCT + - 36 + + + col1 + + col0 FROM tab0 cor0
----
60
62
72

onlyif mysql # DIV for integer division: 
query I rowsort label-7113
SELECT ALL - 23 * col2 DIV - col2 - + col1 + col0 * - - 25 FROM tab0 AS cor0
----
2177
2447
317

skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL - 23 * col2 / - col2 - + col1 + col0 * - - 25 FROM tab0 AS cor0
----
2177
2447
317

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT col2 AS col2, 5 AS col0 FROM tab0
----
10
5
47
5
99
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7118
SELECT ALL * FROM tab1 WHERE NOT col1 IS NOT NULL AND + 84 / col0 NOT BETWEEN CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + 67 + + - 74 * - 91 * + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7118
SELECT ALL * FROM tab1 WHERE NOT col1 IS NOT NULL AND + 84 / col0 NOT BETWEEN CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + 67 + + - 74 * - 91 * + col1 AND NULL
----

query I rowsort
SELECT col0 * col2 + + - col1 FROM tab0
----
624
849
9602

onlyif mysql # DIV for integer division: 
query II rowsort label-7120
SELECT col0 DIV + 26 + + col1 AS col2, col1 + 98 + + + col1 AS col0 FROM tab1
----
15
126
50
192
8
108

skipif mysql # not compatible
query II rowsort label-7120
SELECT col0 / + 26 + + col1 AS col2, col1 + 98 + + + col1 AS col0 FROM tab1
----
15
126
50
192
8
108

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT ALL + + ( + COUNT( * ) ) * - + SUM( ALL + col2 ) + + 68 FROM tab2 WHERE NOT 87 + - 71 >= + col0
----
-295

skipif mysql # not compatible
query I rowsort label-7121
SELECT ALL + + ( + COUNT ( * ) ) * - + SUM ( ALL + col2 ) + + 68 FROM tab2 WHERE NOT 87 + - 71 >= + col0
----
-295

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 74 + - ( - + col2 ) col1 FROM tab1
----
133
142
170

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT ALL MIN( DISTINCT col0 ) + + 4 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL MIN ( DISTINCT col0 ) + + 4 FROM tab0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-7124
SELECT + + 62 DIV 10 AS col0 FROM tab1 AS cor0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-7124
SELECT + + 62 / 10 AS col0 FROM tab1 AS cor0
----
6
6
6

query III rowsort
SELECT * FROM tab2 cor0 WHERE 30 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7126
SELECT DISTINCT + + col1 + - col1 + col2 + - col0 + - col2 * 16 DIV + 86 - - 81 * 8 - - - 95 FROM tab2 AS cor0
----
522
526

skipif mysql # not compatible
query I rowsort label-7126
SELECT DISTINCT + + col1 + - col1 + col2 + - col0 + - col2 * 16 / + 86 - - 81 * 8 - - - 95 FROM tab2 AS cor0
----
522
526

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

query I rowsort
SELECT DISTINCT col0 - + - col1 - col2 * col2 FROM tab2
----
-1459
-3222
-432

query II rowsort
SELECT 37 - + col2, - col1 + + - col0 + + col2 AS col1 FROM tab2
----
-21
-84
-3
-101
14
-74

query I rowsort
SELECT ALL 45 * col0 FROM tab0
----
3915
4365
675

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

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

query I rowsort
SELECT ALL + + col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0, col2 / - col1 )
----

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

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

query I rowsort
SELECT DISTINCT + col2 * + ( - + 52 ) FROM tab0 cor0
----
-2444
-5148
-520

query I rowsort
SELECT + + col0 * - + col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

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

skipif mysql # not compatible
query I rowsort label-7136
SELECT ALL + 42 * + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> col2
----
0

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

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

query II rowsort
SELECT - - 15 * + 70 AS col2, + col2 AS col2 FROM tab0 AS cor0
----
1050
10
1050
47
1050
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT + MAX( DISTINCT - col2 ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-7140
SELECT + MAX ( DISTINCT - col2 ) AS col0 FROM tab1
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7141
SELECT - ( + - CAST( NULL AS SIGNED ) ) AS col1, 19 col0 FROM tab2, tab1 AS cor0
----
18 values hashing to 61678604e3d28543abb9cddb5aa519bb

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7141
SELECT - ( + - CAST ( NULL AS INTEGER ) ) AS col1, 19 col0 FROM tab2, tab1 AS cor0
----
18 values hashing to 61678604e3d28543abb9cddb5aa519bb

query I rowsort
SELECT DISTINCT - 75 FROM tab2, tab1 cor0
----
-75

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7144
SELECT DISTINCT COUNT ( * ) * - 81 col0 FROM tab1 WHERE NOT ( NOT col1 = NULL )
----
0

query I rowsort
SELECT + + col0 * 95 * - col1 + + ( + 59 ) AS col0 FROM tab2 AS cor0
----
-222811
-468101
-477316

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

skipif mysql # not compatible
query II rowsort label-7146
SELECT COUNT ( * ) AS col2, - COUNT ( * ) * + 62 AS col0 FROM tab1 AS cor0
----
3
-186

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7147
SELECT ALL + + 78 * + 87 * 98 * - col0 + - - CAST( - 33 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 <> + CAST( + col2 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-7147
SELECT ALL + + 78 * + 87 * 98 * - col0 + - - CAST ( - 33 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 <> + CAST ( + col2 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT - COUNT( - 66 ) + - + 73 FROM tab1 cor0
----
-76

skipif mysql # not compatible
query I rowsort label-7148
SELECT - COUNT ( - 66 ) + - + 73 FROM tab1 cor0
----
-76

query I rowsort
SELECT ALL ( + ( ( + 79 ) ) ) + + col0 AS col0 FROM tab1 AS cor0
----
130
164
170

query I rowsort
SELECT DISTINCT - 14 + 22 * col1 FROM tab1 AS cor0
----
1020
294
96

query I rowsort
SELECT + 91 + - - col0 * + - 31 FROM tab1 AS cor0
----
-1490
-2544
-2730

query I rowsort
SELECT + - 10 + + col2 AS col1 FROM tab0 AS cor0
----
0
37
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7153
SELECT + - col1, + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-7153
SELECT + - col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
-14
NULL
-47
NULL
-5
NULL

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

query I rowsort
SELECT DISTINCT col0 + + + col1 * - + col2 FROM tab1 AS cor0
----
-1293
-210
-3105

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

skipif mysql # not compatible
query I rowsort label-7156
SELECT ALL + MAX ( - + col0 ) FROM tab0 cor0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7157
SELECT ALL + COUNT( - 2 ) AS col0 FROM tab0 WHERE NOT - ( + + 70 ) NOT BETWEEN ( + CAST( NULL AS SIGNED ) / + 56 * + + col0 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7157
SELECT ALL + COUNT ( - 2 ) AS col0 FROM tab0 WHERE NOT - ( + + 70 ) NOT BETWEEN ( + CAST ( NULL AS INTEGER ) / + 56 * + + col0 ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT DISTINCT MIN( ALL + - col1 ) AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-7158
SELECT DISTINCT MIN ( ALL + - col1 ) AS col0 FROM tab2
----
-77

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

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

query I rowsort
SELECT col0 - + col2 * - 80 * + 90 FROM tab0
----
338415
712897
72087

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7161
SELECT DISTINCT + CAST( + col2 AS SIGNED ) AS col2, + col1 AS col1 FROM tab0
----
10
21
47
81
99
1

skipif mysql # not compatible
query II rowsort label-7161
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) AS col2, + col1 AS col1 FROM tab0
----
10
21
47
81
99
1

query I rowsort
SELECT ALL col1 * + col0 + - - col0 + - 19 FROM tab2
----
2373
4973
5081

query I rowsort
SELECT 2 - col2 FROM tab0
----
-45
-8
-97

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

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

query I rowsort
SELECT - + 42 * + col2 + col1 * ( col0 ) + + col2 + col0 + - col0 FROM tab2 AS cor0
----
1403
2647
3288

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT 17 * - + 22 + MAX( ALL + col0 ) FROM tab1 AS cor0
----
-283

skipif mysql # not compatible
query I rowsort label-7166
SELECT 17 * - + 22 + MAX ( ALL + col0 ) FROM tab1 AS cor0
----
-283

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7168
SELECT DISTINCT - col2 * 49 * col1 + - col1 DIV + col0 col1 FROM tab0 AS cor0
----
-10290
-186548
-4851

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7168
SELECT DISTINCT - col2 * 49 * col1 + - col1 / + col0 col1 FROM tab0 AS cor0
----
-10290
-186548
-4851

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = + + 45 + + + col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 <= + 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT DISTINCT SUM( 40 ) FROM tab1 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-7172
SELECT DISTINCT SUM ( 40 ) FROM tab1 AS cor0
----
120

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7176
SELECT ALL - COUNT( * ) * + + ( - 45 ) DIV - + COUNT( * ) + ( + + 45 ) * 11 FROM tab1
----
450

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL - COUNT ( * ) * + + ( - 45 ) / - + COUNT ( * ) + ( + + 45 ) * 11 FROM tab1
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) * 70 * - 19 AS col0 FROM tab0
----
11970

skipif mysql # not compatible
query I rowsort label-7177
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) * 70 * - 19 AS col0 FROM tab0
----
11970

query I rowsort
SELECT ALL col2 * + - 5 FROM tab2
----
-115
-200
-290

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT ALL + COUNT( * ) * + + 45 AS col2 FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-7179
SELECT ALL + COUNT ( * ) * + + 45 AS col2 FROM tab2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT + MIN( DISTINCT col0 ) + - - 58 FROM tab2 AS cor0
----
104

skipif mysql # not compatible
query I rowsort label-7180
SELECT + MIN ( DISTINCT col0 ) + - - 58 FROM tab2 AS cor0
----
104

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT - COUNT( * ) * - ( - - ( + - COUNT( * ) ) ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-7183
SELECT - COUNT ( * ) * - ( - - ( + - COUNT ( * ) ) ) FROM tab2
----
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT MAX( DISTINCT - 88 ) AS col2 FROM tab2 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-7185
SELECT MAX ( DISTINCT - 88 ) AS col2 FROM tab2 AS cor0
----
-88

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT - - MAX( ALL col1 ) + + COUNT( 24 ) col2 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7187
SELECT - - MAX ( ALL col1 ) + + COUNT ( 24 ) col2 FROM tab0 AS cor0
----
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT + 68 + + COUNT( * ) AS col1 FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-7189
SELECT + 68 + + COUNT ( * ) AS col1 FROM tab2
----
71

query II rowsort
SELECT - 34 + + - 12 + - col1 * - 23 + - col0 * + col0 AS col2, 37 + - col1 + col0 + + + col1 AS col2 FROM tab0
----
-7132
124
-9432
134
1592
52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT DISTINCT - COUNT( * ) + - MIN( ALL - 98 ) col2 FROM tab1
----
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7192
SELECT DISTINCT - COUNT ( * ) + - MIN ( ALL - 98 ) col2 FROM tab1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT DISTINCT - COUNT( * ) + + - COUNT( DISTINCT - col1 ) FROM tab2 WHERE NOT ( - 88 IS NULL )
----
-6

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT - COUNT ( * ) + + - COUNT ( DISTINCT - col1 ) FROM tab2 WHERE NOT ( - 88 IS NULL )
----
-6

query I rowsort
SELECT ( + 29 ) + - col2 + - + col2 + ( - 0 ) * + col1 AS col0 FROM tab1
----
-107
-163
-89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7195
SELECT ALL - CAST( NULL AS SIGNED ) col1, 86 + + col0 AS col1 FROM tab1
----
NULL
137
NULL
171
NULL
177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7195
SELECT ALL - CAST ( NULL AS INTEGER ) col1, 86 + + col0 AS col1 FROM tab1
----
NULL
137
NULL
171
NULL
177

query II rowsort
SELECT - + col0 AS col2, col0 - + 34 FROM tab2 AS cor0
----
-46
12
-64
30
-75
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT ALL ( - - 43 ) * - MAX( 99 ) FROM tab1
----
-4257

skipif mysql # not compatible
query I rowsort label-7197
SELECT ALL ( - - 43 ) * - MAX ( 99 ) FROM tab1
----
-4257

query III rowsort
SELECT * FROM tab2 WHERE NOT - 77 * + - 33 / col0 / - + col1 - + col2 <= NULL
----

query I rowsort
SELECT DISTINCT + 9 * - col2 FROM tab1
----
-531
-612
-864

onlyif mysql # DIV for integer division: 
query I rowsort label-7200
SELECT - + 44 DIV col0 * - col1 - - 82 DIV col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7200
SELECT - + 44 / col0 * - col1 - - 82 / col0 FROM tab1 AS cor0
----
0
0
1

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7204
SELECT + + 75 / - col1 FROM tab2 AS cor0
----
-1
-1
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7206
SELECT ALL col0 * + col1 AS col2, 53 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 88, - CAST( - col2 AS SIGNED ), - - col1 )
----

skipif mysql # not compatible
query II rowsort label-7206
SELECT ALL col0 * + col1 AS col2, 53 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 88, - CAST ( - col2 AS INTEGER ), - - col1 )
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7208
SELECT DISTINCT COUNT( * ) col2, 9 * + COUNT( * ) AS col0 FROM tab0
----
3
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7208
SELECT DISTINCT COUNT ( * ) col2, 9 * + COUNT ( * ) AS col0 FROM tab0
----
3
27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT SUM( DISTINCT + - 84 ) * - COUNT( * ) AS col0 FROM tab0
----
252

skipif mysql # not compatible
query I rowsort label-7210
SELECT SUM ( DISTINCT + - 84 ) * - COUNT ( * ) AS col0 FROM tab0
----
252

query I rowsort
SELECT ALL 79 * - col2 AS col0 FROM tab1
----
-4661
-5372
-7584

onlyif mysql # DIV for integer division: 
query I rowsort label-7212
SELECT ALL + ( - col2 ) DIV ( col2 ) AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7212
SELECT ALL + ( - col2 ) / ( col2 ) AS col2 FROM tab1
----
-1
-1
-1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7214
SELECT + + SUM( DISTINCT + ( + 4 ) ) AS col1 FROM tab2 WHERE NOT - - 73 * + - CAST( - 50 AS SIGNED ) * + + col0 IS NULL
----
4

skipif mysql # not compatible
query I rowsort label-7214
SELECT + + SUM ( DISTINCT + ( + 4 ) ) AS col1 FROM tab2 WHERE NOT - - 73 * + - CAST ( - 50 AS INTEGER ) * + + col0 IS NULL
----
4

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

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

query I rowsort
SELECT DISTINCT 15 + 88 + - + col2 FROM tab1 AS cor0
----
35
44
7

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

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

query I rowsort
SELECT DISTINCT 90 * + 40 FROM tab2 AS cor0
----
3600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col0 - - col1 + - + 3 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-100
-18
-90

query I rowsort
SELECT ALL 27 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

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

query I rowsort
SELECT 94 * col1 * col1 + col2 + + + col1 + col1 FROM tab0
----
195
41506
616943

query I rowsort
SELECT - 44 + + col0 + - 26 FROM tab2
----
-24
-6
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT DISTINCT - COUNT( * ) + - 33 * + COUNT( * ) + - - COUNT( * ) FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7225
SELECT DISTINCT - COUNT ( * ) + - 33 * + COUNT ( * ) + - - COUNT ( * ) FROM tab2 AS cor0
----
-99

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

query I rowsort
SELECT ALL - - col0 - + 61 FROM tab1 AS cor0
----
-10
24
30

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 < - col2
----
87
21
10

query I rowsort
SELECT ALL - + col1 - + col2 - col2 AS col2 FROM tab0 cor0
----
-175
-199
-41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7231
SELECT ALL * FROM tab2 WHERE - + col0 IN ( + col2, 61, - CAST( NULL AS SIGNED ), - 46 )
----
46
51
23

skipif mysql # not compatible
query III rowsort label-7231
SELECT ALL * FROM tab2 WHERE - + col0 IN ( + col2, 61, - CAST ( NULL AS INTEGER ), - 46 )
----
46
51
23

query III rowsort
SELECT * FROM tab0 WHERE 68 <= - col2
----

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

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

query I rowsort
SELECT DISTINCT + 71 + - col0 FROM tab2
----
-4
25
7

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + 90 = + 18 / - 52
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7238
SELECT - col2 AS col0 FROM tab2 WHERE NOT NULL IN ( - CAST( - + col0 AS SIGNED ) * ( col2 ) - + 41, col0 * + + 85 )
----

skipif mysql # not compatible
query I rowsort label-7238
SELECT - col2 AS col0 FROM tab2 WHERE NOT NULL IN ( - CAST ( - + col0 AS INTEGER ) * ( col2 ) - + 41, col0 * + + 85 )
----

query II rowsort
SELECT col0, - ( - + col0 ) FROM tab1
----
51
51
85
85
91
91

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

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

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

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

query I rowsort
SELECT 69 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # aggregate syntax: 
query II rowsort label-7243
SELECT 91, - COUNT( * ) AS col1 FROM tab0
----
91
-3

skipif mysql # not compatible
query II rowsort label-7243
SELECT 91, - COUNT ( * ) AS col1 FROM tab0
----
91
-3

query I rowsort
SELECT ALL - col0 - - col2 AS col2 FROM tab1 AS cor0 WHERE NOT 55 * + 46 IS NULL
----
-23
-26
45

query I rowsort
SELECT DISTINCT - 97 * - - 53 AS col1 FROM tab1 AS cor0
----
-5141

query I rowsort
SELECT + 48 AS col1 FROM tab0 cor0 WHERE NOT col1 > - col2
----

query II rowsort
SELECT col0, col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

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

query III rowsort
SELECT + 63, col0, - 95 * + 25 * - col0 + - col1 AS col2 FROM tab0 cor0
----
9 values hashing to 74d0e4c101690fed73452656390c3817

query I rowsort
SELECT col2 * col0 * + 8 AS col0 FROM tab1
----
39168
40120
49504

query I rowsort
SELECT ALL 7 * + 44 FROM tab1
----
308
308
308

onlyif mysql # DIV for integer division: 
query I rowsort label-7252
SELECT col1 DIV + + col0 + - col2 AS col1 FROM tab0
----
-10
-42
-99

skipif mysql # not compatible
query I rowsort label-7252
SELECT col1 / + + col0 + - col2 AS col1 FROM tab0
----
-10
-42
-99

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

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

query I rowsort
SELECT + col1 - 72 FROM tab1 cor0
----
-25
-58
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-7256
SELECT + + col1 DIV - - ( - - col2 ) + + + 93 FROM tab0 AS cor0
----
93
94
95

skipif mysql # not compatible
query I rowsort label-7256
SELECT + + col1 / - - ( - - col2 ) + + + 93 FROM tab0 AS cor0
----
93
94
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7257
SELECT * FROM tab1 cor0 WHERE 60 * + - 10 - - ( - 66 ) = - col2 * + col2 * + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7257
SELECT * FROM tab1 cor0 WHERE 60 * + - 10 - - ( - 66 ) = - col2 * + col2 * + + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7258
SELECT - ( ( - AVG ( DISTINCT + col1 ) ) ) * - + 2 col2 FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) > NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7258
SELECT - ( ( - AVG ( DISTINCT + col1 ) ) ) * - + 2 col2 FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) > NULL
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + 41 ) * - col1 * + 80 - col1 col2 FROM tab1 cor0
----
154113
16395
45906

query I rowsort
SELECT DISTINCT - + ( + 20 ) * - col0 - - + 27 * - col0 FROM tab1 AS cor0
----
-357
-595
-637

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT COUNT( * ) + + + COUNT( * ) + + 33 col0 FROM tab2
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7262
SELECT COUNT ( * ) + + + COUNT ( * ) + + 33 col0 FROM tab2
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 26 - + col1 AS col1, col1 * col1 col0 FROM tab2
----
-25
2601
-41
4489
-51
5929

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

skipif mysql # not compatible
query I rowsort label-7264
SELECT 30 / + + col1 AS col1 FROM tab0
----
0
1
30

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 94 NOT BETWEEN NULL AND 20
----

query I rowsort
SELECT ALL + col2 * - ( + + col2 ) AS col2 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # DIV for integer division: 
query I rowsort label-7267
SELECT DISTINCT + + col1 DIV + col0 + - 10 FROM tab2 AS cor0
----
-10
-9

skipif mysql # not compatible
query I rowsort label-7267
SELECT DISTINCT + + col1 / + col0 + - 10 FROM tab2 AS cor0
----
-10
-9

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

query I rowsort
SELECT 95 + + - col0 FROM tab2 AS cor0
----
20
31
49

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT col1 >= - 46
----

query I rowsort
SELECT + col2 + + - col0 + - + col2 + + + ( + - ( col1 ) ) * + col0 AS col0 FROM tab1 cor0
----
-4368
-510
-765

onlyif mysql # DIV for integer division: 
query II rowsort label-7272
SELECT - 8 + - ( 47 ) + + - col0 DIV - 32, - col1 + + col2 AS col2 FROM tab2 AS cor0
----
-53
-37
-53
-9
-54
-28

skipif mysql # not compatible
query II rowsort label-7272
SELECT - 8 + - ( 47 ) + + - col0 / - 32, - col1 + + col2 AS col2 FROM tab2 AS cor0
----
-53
-37
-53
-9
-54
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-7273
SELECT - 18 DIV + col1 FROM tab1 cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-7273
SELECT - 18 / + col1 FROM tab1 cor0
----
-1
-3
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7275
SELECT - + 60 DIV COUNT( * ) FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-20

skipif mysql # not compatible
query I rowsort label-7275
SELECT - + 60 / COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-20

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7278
SELECT ALL + col2 * - 13 + 47 DIV + 28 AS col1 FROM tab0
----
-1286
-129
-610

skipif mysql # not compatible
query I rowsort label-7278
SELECT ALL + col2 * - 13 + 47 / + 28 AS col1 FROM tab0
----
-1286
-129
-610

query I rowsort
SELECT DISTINCT col0 * - col0 + + 23 AS col1 FROM tab2
----
-2093
-4073
-5602

query II rowsort
SELECT + col0 AS col0, + 32 AS col2 FROM tab2
----
46
32
64
32
75
32

onlyif mysql # aggregate syntax: 
query II rowsort label-7281
SELECT ALL + 36 col1, COUNT( * ) FROM tab2
----
36
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT + ( + MAX( ALL - col2 ) ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-7282
SELECT + ( + MAX ( ALL - col2 ) ) FROM tab1 cor0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, - 83 AS col1 FROM tab1 AS cor0
----
59
-83
68
-83
96
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7284
SELECT - + CAST( - - 52 AS SIGNED ) + - col1 AS col0 FROM tab0 AS cor0
----
-133
-53
-73

skipif mysql # not compatible
query I rowsort label-7284
SELECT - + CAST ( - - 52 AS INTEGER ) + - col1 AS col0 FROM tab0 AS cor0
----
-133
-53
-73

query I rowsort
SELECT + 51 + + col1 AS col2 FROM tab1 AS cor0
----
56
65
98

query I rowsort
SELECT ALL - + col1 + - col2 * - - col0 + - - col2 FROM tab2 cor0
----
-1086
-2597
-4359

query I rowsort
SELECT DISTINCT 55 + + 17 * - - col1 AS col2 FROM tab0 AS cor0
----
1432
412
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7288
SELECT - COUNT( * ) + + + COUNT( * ) FROM tab0 WHERE col1 * + ( col0 ) + + - col2 * + CAST( col1 AS SIGNED ) <> + col0
----
0

skipif mysql # not compatible
query I rowsort label-7288
SELECT - COUNT ( * ) + + + COUNT ( * ) FROM tab0 WHERE col1 * + ( col0 ) + + - col2 * + CAST ( col1 AS INTEGER ) <> + col0
----
0

query I rowsort
SELECT DISTINCT - + col2 + - col2 * 6 - + 34 AS col2 FROM tab1 AS cor0
----
-447
-510
-706

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

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

query I rowsort
SELECT DISTINCT 65 AS col1 FROM tab0 AS cor0 WHERE col2 BETWEEN + ( + + col0 ) - - - 11 AND - 8 * + ( - col2 )
----
65

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7293
SELECT ALL + MIN( ALL + 12 ) AS col1, + 88 FROM tab1 cor0
----
12
88

skipif mysql # not compatible
query II rowsort label-7293
SELECT ALL + MIN ( ALL + 12 ) AS col1, + 88 FROM tab1 cor0
----
12
88

query I rowsort
SELECT ALL col1 * - 54 * - 24 FROM tab2
----
66096
86832
99792

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT + MAX( + 50 ) - - COUNT( * ) + - + SUM( ALL col2 ) + - 64 * + MIN( + col1 ) AS col2 FROM tab2 WHERE NOT col1 + - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7295
SELECT + MAX ( + 50 ) - - COUNT ( * ) + - + SUM ( ALL col2 ) + - 64 * + MIN ( + col1 ) AS col2 FROM tab2 WHERE NOT col1 + - col0 IS NOT NULL
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7297
SELECT - COUNT( * ) * CAST( - - 45 AS SIGNED ) AS col2 FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-7297
SELECT - COUNT ( * ) * CAST ( - - 45 AS INTEGER ) AS col2 FROM tab0
----
-135

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

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

query I rowsort
SELECT DISTINCT 24 * 50 FROM tab1
----
1200

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

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

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

query I rowsort
SELECT DISTINCT 90 * + 12 FROM tab1
----
1080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7303
SELECT DISTINCT + COUNT( * ) DIV + - 20 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7303
SELECT DISTINCT + COUNT ( * ) / + - 20 AS col2 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7304
SELECT DISTINCT + 26 DIV - 42 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7304
SELECT DISTINCT + 26 / - 42 AS col2 FROM tab0
----
0

query I rowsort
SELECT ALL col2 * + + col0 + - col0 FROM tab1 AS cor0
----
4845
4930
6097

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

query II rowsort
SELECT - col1 * ( col0 ), + col2 * + 26 AS col1 FROM tab1 AS cor0
----
-425
1534
-4277
1768
-714
2496

query I rowsort
SELECT ALL 42 - col2 FROM tab1
----
-17
-26
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7309
SELECT DISTINCT - CAST( + 55 AS SIGNED ) - + col0 FROM tab2
----
-101
-119
-130

skipif mysql # not compatible
query I rowsort label-7309
SELECT DISTINCT - CAST ( + 55 AS INTEGER ) - + col0 FROM tab2
----
-101
-119
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT - ( - COUNT( * ) ) FROM tab0 WHERE NULL NOT BETWEEN + col0 AND col0
----
0

skipif mysql # not compatible
query I rowsort label-7310
SELECT - ( - COUNT ( * ) ) FROM tab0 WHERE NULL NOT BETWEEN + col0 AND col0
----
0

query I rowsort
SELECT ALL - 89 FROM tab1 WHERE ( - 24 * 85 - col0 ) BETWEEN + col2 + + col0 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7312
SELECT * FROM tab0 WHERE NOT ( col2 + CAST( NULL AS SIGNED ) / + col0 ) <> - col1
----

skipif mysql # not compatible
query III rowsort label-7312
SELECT * FROM tab0 WHERE NOT ( col2 + CAST ( NULL AS INTEGER ) / + col0 ) <> - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7313
SELECT ALL CAST( NULL AS SIGNED ) * MIN( 74 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7313
SELECT ALL CAST ( NULL AS INTEGER ) * MIN ( 74 ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT 1 + - col1 FROM tab2
----
-50
-66
-76

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 22 ) IN ( col0 + - 59 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + col1 ) FROM tab2 WHERE NOT 85 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT DISTINCT 94 / - MAX( col0 ) FROM tab1 WHERE NOT ( NULL ) NOT IN ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7317
SELECT DISTINCT 94 / - MAX ( col0 ) FROM tab1 WHERE NOT ( NULL ) NOT IN ( - col1 )
----
NULL

query I rowsort
SELECT DISTINCT 20 AS col2 FROM tab1 WHERE NOT ( col2 ) > col2
----
20

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE NOT NULL <> + 51 * col2
----

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

query I rowsort
SELECT DISTINCT col1 * - 0 AS col1 FROM tab0
----
0

query I rowsort
SELECT - col1 * + col1 + col0 AS col2 FROM tab0
----
-354
-6546
96

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * - 98 NOT BETWEEN col1 AND ( col0 ) + + 15
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7324
SELECT col0 + - col1 FROM tab1 WHERE 18 * 49 NOT IN ( CAST( - col2 AS DECIMAL ) * - col2 )
----
37
44
80

skipif mysql # not compatible
query I rowsort label-7324
SELECT col0 + - col1 FROM tab1 WHERE 18 * 49 NOT IN ( CAST ( - col2 AS REAL ) * - col2 )
----
37
44
80

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

query I rowsort
SELECT col2 * - 6 + 30 AS col0 FROM tab1
----
-324
-378
-546

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

query I rowsort
SELECT ALL - 85 * + col0 AS col0 FROM tab2
----
-3910
-5440
-6375

query I rowsort
SELECT DISTINCT col0 - col0 * - col0 AS col1 FROM tab0
----
240
7656
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 - col2 col0 FROM tab0
----
-28
24
61

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

query I rowsort
SELECT 79 + col2 AS col2 FROM tab1
----
138
147
175

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

query I rowsort
SELECT DISTINCT col1 + + col1 * 15 AS col2 FROM tab1
----
224
752
80

query I rowsort
SELECT ALL 94 * 34 AS col1 FROM tab1 WHERE col1 NOT BETWEEN col1 * col1 AND NULL
----
3196
3196
3196

query III rowsort
SELECT * FROM tab2 WHERE - 84 * ( - col1 ) > + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7337
SELECT ALL col1 DIV + 62 + ( + ( col0 ) + - col2 ) FROM tab2 AS cor0
----
18
23
25

skipif mysql # not compatible
query I rowsort label-7337
SELECT ALL col1 / + 62 + ( + ( col0 ) + - col2 ) FROM tab2 AS cor0
----
18
23
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT DISTINCT 3 * + ( COUNT( * ) ) - 13 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7338
SELECT DISTINCT 3 * + ( COUNT ( * ) ) - 13 FROM tab0 AS cor0
----
-4

query I rowsort
SELECT ALL - 81 * + 66 - col2 * - col0 AS col2 FROM tab0 cor0
----
-4476
-4641
4257

query I rowsort
SELECT DISTINCT col0 + 95 FROM tab0 AS cor0
----
110
182
192

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

query I rowsort
SELECT 79 * + 12 AS col1 FROM tab0 AS cor0
----
948
948
948

onlyif mysql # DIV for integer division: 
query I rowsort label-7343
SELECT 23 DIV - 61 - col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7343
SELECT 23 / - 61 - col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT - col2 - ( + 50 + + 81 ) FROM tab2
----
-154
-171
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT ALL MIN( col0 ) + + 48 * 57 AS col0 FROM tab0 WHERE ( NULL ) IS NULL
----
2751

skipif mysql # not compatible
query I rowsort label-7345
SELECT ALL MIN ( col0 ) + + 48 * 57 AS col0 FROM tab0 WHERE ( NULL ) IS NULL
----
2751

query I rowsort
SELECT ALL 48 * + 98 FROM tab2
----
4704
4704
4704

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 <= ( + col0 + col2 * - 47 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 84 + col0 AS col0 FROM tab1 AS cor0
----
-33
1
7

query I rowsort
SELECT ALL ( col0 ) FROM tab2 AS cor0 WHERE NOT + 20 = 72
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL < col2 * 51
----

query I rowsort
SELECT ALL 82 * 6 FROM tab0 AS cor0
----
492
492
492

query I rowsort
SELECT DISTINCT ( - col2 ) FROM tab0 AS cor0 WHERE ( - col0 * 41 ) IS NULL
----

query I rowsort
SELECT DISTINCT + ( - - 26 ) * - col2 FROM tab0
----
-1222
-2574
-260

query I rowsort
SELECT DISTINCT - 48 * + 79 FROM tab1
----
-3792

query I rowsort
SELECT DISTINCT + col0 * ( - 68 ) AS col1 FROM tab0
----
-1020
-5916
-6596

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT COUNT( * ) * - + 1 * + 81 AS col2 FROM tab1
----
-243

skipif mysql # not compatible
query I rowsort label-7357
SELECT COUNT ( * ) * - + 1 * + 81 AS col2 FROM tab1
----
-243

query I rowsort
SELECT ALL + 21 * - col1 AS col1 FROM tab2
----
-1071
-1407
-1617

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT COUNT( * ) * + ( + COUNT( * ) ) * 62 AS col0 FROM tab2 AS cor0
----
558

skipif mysql # not compatible
query I rowsort label-7359
SELECT COUNT ( * ) * + ( + COUNT ( * ) ) * 62 AS col0 FROM tab2 AS cor0
----
558

query I rowsort
SELECT ALL + - 44 AS col1 FROM tab0 AS cor0
----
-44
-44
-44

query I rowsort
SELECT - + ( 89 ) * + col1 AS col1 FROM tab1 AS cor0
----
-1246
-4183
-445

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7363
SELECT col0 * 66 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
5742
6402
990

skipif mysql # not compatible
query I rowsort label-7363
SELECT col0 * 66 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
5742
6402
990

query I rowsort
SELECT DISTINCT 4 * col1 - + col0 FROM tab1 AS cor0
----
-65
5
97

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 71 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + 45 + - 51 + 65 * + col0 col0 FROM tab1 AS cor0
----
3360
5604
6000

query I rowsort
SELECT - 56 + col1 AS col1 FROM tab1 AS cor0
----
-42
-51
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 col0 FROM tab0 cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT - 18 * 88 + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1581

skipif mysql # not compatible
query I rowsort label-7371
SELECT - 18 * 88 + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1581

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

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL + 81 + + CAST ( NULL AS INTEGER ) + + - 18 * col1 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + + 33 * + 50 AS col1 FROM tab1 cor0 WHERE ( NULL ) < + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT DISTINCT + COUNT( + col1 ) + - - 13 FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-7374
SELECT DISTINCT + COUNT ( + col1 ) + - - 13 FROM tab1 AS cor0
----
16

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

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

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

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

query I rowsort
SELECT ALL - 58 + + col0 FROM tab0 cor0
----
-43
29
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT MAX( col1 ) FROM tab2 WHERE NULL NOT IN ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7378
SELECT MAX ( col1 ) FROM tab2 WHERE NULL NOT IN ( - col0 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7379
SELECT - COUNT ( DISTINCT - + col2 ) FROM tab2
----
-3

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

query I rowsort
SELECT DISTINCT + 32 + + + col1 FROM tab1
----
37
46
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7382
SELECT DISTINCT + 46 FROM tab1 WHERE - + CAST( - col2 AS SIGNED ) >= col2 * - 37 + + 53 / 69
----
46

skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT + 46 FROM tab1 WHERE - + CAST ( - col2 AS INTEGER ) >= col2 * - 37 + + 53 / 69
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7383
SELECT ALL - CAST( + - ( - - col0 ) AS SIGNED ) + - + 75 AS col2 FROM tab1
----
-24
10
16

skipif mysql # not compatible
query I rowsort label-7383
SELECT ALL - CAST ( + - ( - - col0 ) AS INTEGER ) + - + 75 AS col2 FROM tab1
----
-24
10
16

query I rowsort
SELECT DISTINCT + - col1 + - - col0 AS col0 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7385
SELECT * FROM tab2 AS cor0 WHERE CAST( + col1 AS DECIMAL ) = - 11
----

skipif mysql # not compatible
query III rowsort label-7385
SELECT * FROM tab2 AS cor0 WHERE CAST ( + col1 AS REAL ) = - 11
----

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE - 92 * + col1 > - + col0
----

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

query I rowsort
SELECT - + 98 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 51 + + 21 IN ( + 59 / + col1 )
----

query II rowsort
SELECT ALL + col2, - col0 FROM tab1
----
59
-85
68
-91
96
-51

query I rowsort
SELECT col2 * 18 AS col1 FROM tab2
----
1044
414
720

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( + - col1 ) NOT BETWEEN - ( - col0 ) * + 19 AND ( col2 )
----

query I rowsort
SELECT - 56 * 69 FROM tab0 AS cor0
----
-3864
-3864
-3864

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7395
SELECT DISTINCT 2 AS col0, COUNT( * ) * COUNT( * ) AS col1 FROM tab2 cor0
----
2
9

skipif mysql # not compatible
query II rowsort label-7395
SELECT DISTINCT 2 AS col0, COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 cor0
----
2
9

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

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL < ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7399
SELECT ALL 38 * CAST( NULL AS SIGNED ) FROM tab0 WHERE ( ( NULL > NULL ) )
----

skipif mysql # not compatible
query I rowsort label-7399
SELECT ALL 38 * CAST ( NULL AS INTEGER ) FROM tab0 WHERE ( ( NULL > NULL ) )
----

query II rowsort
SELECT col1, 94 * + 75 AS col2 FROM tab2
----
51
7050
67
7050
77
7050

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7401
SELECT * FROM tab0 WHERE NOT CAST( NULL AS DECIMAL ) IN ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-7401
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS REAL ) IN ( - col0 )
----

query II rowsort
SELECT col2, + 95 FROM tab2
----
23
95
40
95
58
95

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 27 * - col2 <> 27
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= 24
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7407
SELECT DISTINCT + col0 DIV - col0 FROM tab2 WHERE + - col2 + + 90 IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-7407
SELECT DISTINCT + col0 / - col0 FROM tab2 WHERE + - col2 + + 90 IS NOT NULL
----
-1

query I rowsort
SELECT 98 * - col2 FROM tab2 WHERE NULL IS NULL
----
-2254
-3920
-5684

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

query I rowsort
SELECT DISTINCT - 84 + col1 - + col2 AS col0 FROM tab0 AS cor0
----
-182
-50
-73

query I rowsort
SELECT ALL 38 + + + ( - 27 ) FROM tab2 AS cor0
----
11
11
11

query I rowsort
SELECT DISTINCT - col1 * - + col1 AS col0 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT - col2 + + + 60 FROM tab0 cor0
----
-39
13
50

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE 10 <= + - col2
----

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

query I rowsort
SELECT 34 + col0 FROM tab2
----
109
80
98

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

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

query I rowsort
SELECT 75 + col0 AS col2 FROM tab2
----
121
139
150

query I rowsort
SELECT col1 + + col2 + ( - col0 ) + 92 FROM tab2
----
120
142
145

query I rowsort
SELECT ALL col0 + col2 + col1 * - + col0 * col1 + - - col0 - + col2 FROM tab2
----
-119554
-336525
-379328

query I rowsort
SELECT ALL - - col2 * + col0 * + col0 - + col0 AS col0 FROM tab2 WHERE col0 + - + col2 IS NOT NULL
----
163776
326175
48622

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT DISTINCT 35 + MIN( + 83 ) AS col0 FROM tab2
----
118

skipif mysql # not compatible
query I rowsort label-7422
SELECT DISTINCT 35 + MIN ( + 83 ) AS col0 FROM tab2
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT - 21 * - COUNT( * ) col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7423
SELECT - 21 * - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
63

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE ( col1 + + 23 + - - 7 ) < NULL
----

query I rowsort
SELECT ALL 79 + + col1 AS col1 FROM tab0 cor0
----
100
160
80

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

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

query I rowsort
SELECT DISTINCT - col1 + 1 * - - col0 AS col2 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT - col0 - + ( + - 53 ) * - 6 AS col0 FROM tab2 AS cor0
----
-364
-382
-393

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

query II rowsort
SELECT - col2 AS col0, + col1 FROM tab0 AS cor0 WHERE NOT + col2 >= - 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT ALL + + COUNT( DISTINCT - col1 ) * - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 32 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-7431
SELECT ALL + + COUNT ( DISTINCT - col1 ) * - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 32 IS NULL
----
-9

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

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

query I rowsort
SELECT + 63 AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

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

query II rowsort
SELECT ALL ( + col2 ), col0 AS col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT - + ( 94 ) * + - COUNT( * ) FROM tab1 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-7436
SELECT - + ( 94 ) * + - COUNT ( * ) FROM tab1 AS cor0
----
282

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

query I rowsort
SELECT DISTINCT + 6 AS col2 FROM tab0 cor0
----
6

query III rowsort
SELECT ALL * FROM tab1 WHERE + 38 + ( + 2 ) * + col1 NOT IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 22 * col0 FROM tab2
----
1012
1408
1650

query I rowsort
SELECT DISTINCT col0 * 82 FROM tab0
----
1230
7134
7954

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 >= col2 * - 87
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * - 43 AS col2 FROM tab0
----
-3483
-43
-903

query I rowsort
SELECT + col0 * + + 3 FROM tab1 AS cor0
----
153
255
273

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT + + MIN( 70 ) AS col1 FROM tab2 AS cor0 WHERE NOT - 83 >= + col2
----
70

skipif mysql # not compatible
query I rowsort label-7445
SELECT + + MIN ( 70 ) AS col1 FROM tab2 AS cor0 WHERE NOT - 83 >= + col2
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-7446
SELECT DISTINCT col2 DIV - 35 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7446
SELECT DISTINCT col2 / - 35 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7447
SELECT ALL - 41 + + ( - 40 ) + - col1 DIV - col2 FROM tab1 AS cor0
----
-81
-81
-81

skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL - 41 + + ( - 40 ) + - col1 / - col2 FROM tab1 AS cor0
----
-81
-81
-81

query II rowsort
SELECT col1, + 9 + - 26 FROM tab2 AS cor0
----
51
-17
67
-17
77
-17

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN 5 AND NULL
----

query I rowsort
SELECT 73 FROM tab2 AS cor0 WHERE NULL IS NULL
----
73
73
73

query I rowsort
SELECT ALL 97 - - ( + col1 ) - - + col2 + + - col1 * - 65 FROM tab0
----
1493
262
5490

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

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

query II rowsort
SELECT col1 - - + col0 AS col1, + col1 AS col1 FROM tab0
----
108
21
96
81
98
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 + 34 * - col0 col0 FROM tab0
----
-2921
-3261
-473

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + + col2 - col1 * - 97 > + - col0 / + ( col2 ) - - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + + 79 + - col0 * + 24 AND - col2 * col2 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-7456
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + + 79 + - col0 * + 24 AND - col2 * col2 * - col1
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7458
SELECT DISTINCT - - 44 DIV + - 49 + - MIN( 6 ) AS col1 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7458
SELECT DISTINCT - - 44 / + - 49 + - MIN ( 6 ) AS col1 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT + + col2 * + 51 FROM tab2 AS cor0 WHERE NOT ( - col1 / + - col1 IS NULL )
----
1173
2040
2958

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7461
SELECT DISTINCT + + 67 * - + COUNT( * ) * + - 9 AS col0, - COUNT( * ) col2 FROM tab0 AS cor0
----
1809
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7461
SELECT DISTINCT + + 67 * - + COUNT ( * ) * + - 9 AS col0, - COUNT ( * ) col2 FROM tab0 AS cor0
----
1809
-3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7463
SELECT 35 DIV - - ( - col1 ) AS col2 FROM tab0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-7463
SELECT 35 / - - ( - col1 ) AS col2 FROM tab0
----
-1
-35
0

query III rowsort
SELECT ALL * FROM tab2 WHERE 84 * + col0 / + 50 <> + - 52
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 39 + col1 col1 FROM tab1
----
25
71
76

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 ) > NULL
----

query I rowsort
SELECT - + 9 AS col0 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
-9
-9
-9

query II rowsort
SELECT ALL col0 AS col1, 17 AS col1 FROM tab2
----
46
17
64
17
75
17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7470
SELECT SUM( + + col1 ) AS col0 FROM tab0 WHERE col0 + + CAST( + - 38 AS DECIMAL ) BETWEEN NULL AND ( - - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7470
SELECT SUM ( + + col1 ) AS col0 FROM tab0 WHERE col0 + + CAST ( + - 38 AS REAL ) BETWEEN NULL AND ( - - col0 )
----
NULL

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

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

query I rowsort
SELECT col1 + 82 FROM tab1 AS cor0
----
129
87
96

query I rowsort
SELECT - 74 + - col0 AS col1 FROM tab1 AS cor0
----
-125
-159
-165

query I rowsort
SELECT DISTINCT - + col2 * - + col0 + + col2 + col2 AS col2 FROM tab1 AS cor0
----
5088
5133
6324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7476
SELECT DISTINCT + col0 - CAST( + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-7476
SELECT DISTINCT + col0 - CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE - col1 * - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT ALL - MAX( + - col1 ) + 21 - - 97 AS col0 FROM tab0 AS cor0
----
119

skipif mysql # not compatible
query I rowsort label-7478
SELECT ALL - MAX ( + - col1 ) + 21 - - 97 AS col0 FROM tab0 AS cor0
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-7479
SELECT 83 DIV - - col2 + 73 + - col2 DIV 72 * col0 FROM tab0
----
-24
74
81

skipif mysql # not compatible
query I rowsort label-7479
SELECT 83 / - - col2 + 73 + - col2 / 72 * col0 FROM tab0
----
-24
74
81

onlyif mysql # aggregate syntax: 
query II rowsort label-7480
SELECT - COUNT( * ) + - 12 + - MIN( + + col1 ) AS col2, ( + 27 ) FROM tab1
----
-20
27

skipif mysql # not compatible
query II rowsort label-7480
SELECT - COUNT ( * ) + - 12 + - MIN ( + + col1 ) AS col2, ( + 27 ) FROM tab1
----
-20
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7481
SELECT + col0 * - + col0 + + col0 + - col1 * 21 + - + CAST( col2 AS SIGNED ) FROM tab0
----
-1958
-7933
-9432

skipif mysql # not compatible
query I rowsort label-7481
SELECT + col0 * - + col0 + + col0 + - col1 * 21 + - + CAST ( col2 AS INTEGER ) FROM tab0
----
-1958
-7933
-9432

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT ALL 42 - + COUNT( * ) AS col2 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-7482
SELECT ALL 42 - + COUNT ( * ) AS col2 FROM tab1
----
39

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE + col0 * - 17 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL - 98 AS col1 FROM tab2 WHERE NOT - 38 > - col1 * - 99
----
-98
-98
-98

query I rowsort
SELECT DISTINCT 96 * + col0 AS col0 FROM tab2
----
4416
6144
7200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7486
SELECT + col0 + - - col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE - + col1 - col0 >= NULL
----

skipif mysql # not compatible
query I rowsort label-7486
SELECT + col0 + - - col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE - + col1 - col0 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7487
SELECT ALL 41 DIV - col0 AS col0 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-7487
SELECT ALL 41 / - col0 AS col0 FROM tab0
----
-2
0
0

query I rowsort
SELECT ALL + - 70 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col0, 3 col0 FROM tab0 AS cor0
----
-1
3
-21
3
-81
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 33 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT ALL - + ( - COUNT( * ) ) * + 28 AS col0 FROM tab2 cor0
----
84

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL - + ( - COUNT ( * ) ) * + 28 AS col0 FROM tab2 cor0
----
84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7492
SELECT DISTINCT + CAST( + 49 AS SIGNED ) DIV - col0 col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7492
SELECT DISTINCT + CAST ( + 49 AS INTEGER ) / - col0 col1 FROM tab2 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7493
SELECT - COUNT( DISTINCT 80 ) * 29 DIV 75 * + 82 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7493
SELECT - COUNT ( DISTINCT 80 ) * 29 / 75 * + 82 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7494
SELECT ALL + 31 DIV + + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7494
SELECT ALL + 31 / + + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 67 * - + col1 FROM tab2 AS cor0 WHERE NOT - col1 + col0 IS NULL
----
3417
4489
5159

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT - MIN( ALL - ( + col2 ) ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7496
SELECT - MIN ( ALL - ( + col2 ) ) FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT 50 * - - COUNT( * ) * - - 38 * + ( - + MAX( DISTINCT 42 ) ) AS col1 FROM tab1 AS cor0
----
-239400

skipif mysql # not compatible
query I rowsort label-7497
SELECT 50 * - - COUNT ( * ) * - - 38 * + ( - + MAX ( DISTINCT 42 ) ) AS col1 FROM tab1 AS cor0
----
-239400

query I rowsort
SELECT - - ( col2 ) * ( - - col0 ) FROM tab1 AS cor0
----
4896
5015
6188

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 - 95 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7500
SELECT + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7500
SELECT + + CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query II rowsort
SELECT ALL col0, - 52 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
-52
85
-52
91
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT ALL - COUNT( ALL col0 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7502
SELECT ALL - COUNT ( ALL col0 ) AS col0 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT + 23 IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7504
SELECT - COUNT( * ) DIV - 67 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7504
SELECT - COUNT ( * ) / - 67 AS col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT 2 + - col2 AS col2 FROM tab2
----
-21
-38
-56

query II rowsort
SELECT 17 AS col2, ( + - col0 ) AS col2 FROM tab0
----
17
-15
17
-87
17
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 + - - col1 col2 FROM tab1
----
101
134
92

query II rowsort
SELECT DISTINCT col1 + - 19, + 15 FROM tab1 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7509
SELECT - col0 / col1 * - + 55 - - - col1 * + col2 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7509
SELECT - col0 / col1 * - + 55 - - - col1 * + col2 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 40 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + 40 ) FROM tab0 cor0
----
40
40
40

query I rowsort
SELECT ALL 62 - - + ( + col0 ) - + col2 AS col0 FROM tab2 AS cor0
----
79
85
86

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 + 1 IS NULL
----

query I rowsort
SELECT ALL ( col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT - col0 - col2 IS NOT NULL )
----
23
40
58

query I rowsort
SELECT DISTINCT + col1 * 16 FROM tab1
----
224
752
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT 33 * - - COUNT( * ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-7516
SELECT 33 * - - COUNT ( * ) FROM tab1
----
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < 49
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7519
SELECT MIN( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7519
SELECT MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1, tab2 AS cor0
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 65 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT ALL + + 42 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT + 72 * + - col0 FROM tab0
----
-1080
-6264
-6984

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7523
SELECT DISTINCT - COUNT( * ) DIV - 20 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7523
SELECT DISTINCT - COUNT ( * ) / - 20 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7524
SELECT DISTINCT - col1 col1, + col2 DIV + + 73 AS col1 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7524
SELECT DISTINCT - col1 col1, + col2 / + + 73 AS col1 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

query II rowsort
SELECT DISTINCT - + col2 AS col1, + col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7526
SELECT + + ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE NULL IS NULL OR NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7526
SELECT + + ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE NULL IS NULL OR NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7527
SELECT DISTINCT + - col2, - CAST( + + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

skipif mysql # not compatible
query II rowsort label-7527
SELECT DISTINCT + - col2, - CAST ( + + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7528
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
3

query II rowsort
SELECT DISTINCT + col2, + col2 AS col1 FROM tab0 AS cor0
----
10
10
47
47
99
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + - - col2 = 27
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7531
SELECT - + 1 DIV - 1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7531
SELECT - + 1 / - 1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + col0 * + col1 + + + col0 AS col1 FROM tab2 AS cor0
----
2392
4992
5100

query II rowsort
SELECT ALL 24 * 82, col0 FROM tab1
----
1968
51
1968
85
1968
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - ( ( col1 ) ) col0 FROM tab2
----
-28
-37
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7535
SELECT DISTINCT col1 DIV + + 44 AS col2 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-7535
SELECT DISTINCT col1 / + + 44 AS col2 FROM tab0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7536
SELECT ALL col2 * - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL col2 * - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7537
SELECT + 39, ( COUNT( - 0 ) ) + + COUNT( * ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
39
0

skipif mysql # not compatible
query II rowsort label-7537
SELECT + 39, ( COUNT ( - 0 ) ) + + COUNT ( * ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
39
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 BETWEEN NULL AND col1
----

query II rowsort
SELECT ALL ( col1 ) AS col1, - col0 * + col0 FROM tab2
----
51
-2116
67
-5625
77
-4096

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT ALL + 59 + - COUNT( * ) + COUNT( * ) + - 84 AS col1 FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-7540
SELECT ALL + 59 + - COUNT ( * ) + COUNT ( * ) + - 84 AS col1 FROM tab1
----
-25

query II rowsort
SELECT ALL + col0 AS col1, - col1 - 79 + 25 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + col0 / - 4 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 - - 32 FROM tab0
----
-49
11
31

query II rowsort
SELECT DISTINCT - col2, - 11 AS col1 FROM tab0 WHERE NOT - - col0 IS NULL
----
-10
-11
-47
-11
-99
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-7545
SELECT ALL - col0 DIV col1 + + + col1 AS col2 FROM tab1
----
-12
11
46

skipif mysql # not compatible
query I rowsort label-7545
SELECT ALL - col0 / col1 + + + col1 AS col2 FROM tab1
----
-12
11
46

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE - - col2 IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7547
SELECT - + col1 * col1 + 44 * - ( + ( - ( + col0 ) ) ) + + CAST( NULL AS DECIMAL ) + - 50, - 92 AS col0 FROM tab0 AS cor0
----
NULL
-92
NULL
-92
NULL
-92

skipif mysql # not compatible
query II rowsort label-7547
SELECT - + col1 * col1 + 44 * - ( + ( - ( + col0 ) ) ) + + CAST ( NULL AS REAL ) + - 50, - 92 AS col0 FROM tab0 AS cor0
----
NULL
-92
NULL
-92
NULL
-92

query I rowsort
SELECT ALL - col0 + + ( 17 ) FROM tab1 AS cor0
----
-34
-68
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7549
SELECT DISTINCT - + CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7549
SELECT DISTINCT - + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - - col2 * - - 29 - - - col2 * + - 86 + - 55 FROM tab0 AS cor0
----
1095
11330
5350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7551
SELECT ALL 40 - + CAST( NULL AS SIGNED ) - + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7551
SELECT ALL 40 - + CAST ( NULL AS INTEGER ) - + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT - + MIN( - col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7552
SELECT - + MIN ( - col1 ) AS col2 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT DISTINCT - MIN( DISTINCT 17 ) FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-7553
SELECT DISTINCT - MIN ( DISTINCT 17 ) FROM tab1
----
-17

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE ( NOT ( ( NOT ( NOT + 79 IS NOT NULL ) ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT DISTINCT + COUNT( * ) * 22 * - COUNT( * ) AS col2 FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-7555
SELECT DISTINCT + COUNT ( * ) * 22 * - COUNT ( * ) AS col2 FROM tab0
----
-198

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + + ( + + col2 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 50 FROM tab1 WHERE NOT - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT ALL - - MAX( + col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL - - MAX ( + col0 ) AS col2 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7559
SELECT COUNT( * ) DIV 89 DIV - - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7559
SELECT COUNT ( * ) / 89 / - - COUNT ( * ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT DISTINCT ( - 30 ) + + - COUNT( * ) FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-7560
SELECT DISTINCT ( - 30 ) + + - COUNT ( * ) FROM tab1
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7561
SELECT DISTINCT + COUNT( ALL - col1 ) DIV - 9 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7561
SELECT DISTINCT + COUNT ( ALL - col1 ) / - 9 AS col1 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7562
SELECT + col2 * ( - 20 ) + + col1 DIV col0 FROM tab0 cor0
----
-1980
-200
-935

skipif mysql # not compatible
query I rowsort label-7562
SELECT + col2 * ( - 20 ) + + col1 / col0 FROM tab0 cor0
----
-1980
-200
-935

query I rowsort
SELECT ALL - 73 * - + col2 AS col2 FROM tab1 AS cor0
----
4307
4964
7008

query I rowsort
SELECT ALL - 33 + + + 79 FROM tab2 AS cor0
----
46
46
46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= - ( 46 ) * + ( + ( - col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7566
SELECT ALL + - 87 DIV ( - 50 ) DIV + col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7566
SELECT ALL + - 87 / ( - 50 ) / + col1 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7567
SELECT ALL col1 DIV col0 DIV - col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7567
SELECT ALL col1 / col0 / - col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - col0 FROM tab1 WHERE - + ( + + 12 ) IS NULL
----

query II rowsort
SELECT col0 AS col0, - col0 * - + col0 AS col2 FROM tab0
----
15
225
87
7569
97
9409

query I rowsort
SELECT DISTINCT + col2 + + - col2 AS col2 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7571
SELECT - CAST( + + col2 AS SIGNED ) AS col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7571
SELECT - CAST ( + + col2 AS INTEGER ) AS col1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL 6 + col0 AS col0 FROM tab2
----
52
70
81

query II rowsort
SELECT DISTINCT - col2 AS col0, 64 AS col2 FROM tab0
----
-10
64
-47
64
-99
64

query I rowsort
SELECT DISTINCT - col0 + col1 * + ( + - 36 ) AS col1 FROM tab2 AS cor0
----
-1882
-2487
-2836

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 56 + + col1 col1 FROM tab1 cor0
----
120
166
171

query I rowsort
SELECT ALL - col1 - - col1 * col2 AS col0 FROM tab0 cor0
----
189
3726
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7577
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT NULL > - col1
----

skipif mysql # not compatible
query I rowsort label-7577
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL > - col1
----

query II rowsort
SELECT ALL 28 - + - 99 AS col0, - col2 FROM tab0
----
127
-10
127
-47
127
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-7579
SELECT DISTINCT - COUNT( * ) AS col2, - 8 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
-8

skipif mysql # not compatible
query II rowsort label-7579
SELECT DISTINCT - COUNT ( * ) AS col2, - 8 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7580
SELECT + + MAX( - col2 ) DIV - 53 - - 92 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-7580
SELECT + + MAX ( - col2 ) / - 53 - - 92 FROM tab2 AS cor0
----
92

query I rowsort
SELECT + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT ALL - SUM( ALL + + col2 ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-7582
SELECT ALL - SUM ( ALL + + col2 ) AS col2 FROM tab1
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7583
SELECT CAST( 68 AS SIGNED ) col2 FROM tab2
----
68
68
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7583
SELECT CAST ( 68 AS INTEGER ) col2 FROM tab2
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT ALL COUNT( * ) * 66 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-7584
SELECT ALL COUNT ( * ) * 66 FROM tab1
----
198

onlyif mysql # aggregate syntax: 
query II rowsort label-7585
SELECT + 37 col0, + COUNT( * ) * MIN( + + col0 ) FROM tab2
----
37
138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7585
SELECT + 37 col0, + COUNT ( * ) * MIN ( + + col0 ) FROM tab2
----
37
138

onlyif mysql # aggregate syntax: 
query II rowsort label-7586
SELECT - COUNT( * ) AS col1, - 54 AS col0 FROM tab0 AS cor0
----
-3
-54

skipif mysql # not compatible
query II rowsort label-7586
SELECT - COUNT ( * ) AS col1, - 54 AS col0 FROM tab0 AS cor0
----
-3
-54

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 20 IN ( - col0, + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 60 * + col2 FROM tab2 AS cor0
----
-1380
-2400
-3480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 97 * - col2 col2, ( + 61 ) * - + 49 * - 52 AS col0 FROM tab1
----
-5723
155428
-6596
155428
-9312
155428

query I rowsort
SELECT + - 44 * + 75 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 38560de6dccfa8988e82616f58846735

query II rowsort
SELECT - ( + 72 ), + col1 AS col2 FROM tab2 AS cor0
----
-72
51
-72
67
-72
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7592
SELECT ALL CAST( NULL AS SIGNED ) / 76 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL CAST ( NULL AS INTEGER ) / 76 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7593
SELECT ALL - COUNT( * ) DIV + - 62 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7593
SELECT ALL - COUNT ( * ) / + - 62 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT ALL + MIN( 98 ) FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-7594
SELECT ALL + MIN ( 98 ) FROM tab0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT - MAX( 68 ) * + MIN( ALL - ( - col1 ) ) + + COUNT( * ) * + 80 FROM tab2
----
-3228

skipif mysql # not compatible
query I rowsort label-7595
SELECT - MAX ( 68 ) * + MIN ( ALL - ( - col1 ) ) + + COUNT ( * ) * + 80 FROM tab2
----
-3228

onlyif mysql # DIV for integer division: 
query I rowsort label-7596
SELECT ( - col2 ) DIV col2 + - - col1 + + 72 * + - col1 AS col0 FROM tab1
----
-3338
-356
-995

skipif mysql # not compatible
query I rowsort label-7596
SELECT ( - col2 ) / col2 + - - col1 + + 72 * + - col1 AS col0 FROM tab1
----
-3338
-356
-995

query I rowsort
SELECT ALL - - col0 * - - col2 AS col2 FROM tab2 WHERE NOT NULL < ( - 46 )
----

query II rowsort
SELECT DISTINCT 17 AS col0, - col0 * - + 93 AS col0 FROM tab2
----
17
4278
17
5952
17
6975

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT 96 * + COUNT( * ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-7599
SELECT 96 * + COUNT ( * ) FROM tab1
----
288

query I rowsort
SELECT DISTINCT + col0 * 38 * + 49 + + 17 FROM tab0
----
162011
180631
27947

query I rowsort
SELECT ALL - + col2 + - - col1 FROM tab0 cor0
----
-98
11
34

query I rowsort
SELECT + 49 * + col1 AS col0 FROM tab1 AS cor0
----
2303
245
686

query I rowsort
SELECT - + 11 AS col2 FROM tab2 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT COUNT( * ) - - COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7604
SELECT COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab0
----
6

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7606
SELECT DISTINCT + - 53 / CAST( NULL AS SIGNED ) - - ( + col2 ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7606
SELECT DISTINCT + - 53 / CAST ( NULL AS INTEGER ) - - ( + col2 ) FROM tab0 cor0
----
NULL

query II rowsort
SELECT ( + col1 ) AS col2, + 99 * col2 AS col2 FROM tab2 AS cor0
----
51
2277
67
5742
77
3960

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( - 43 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col0 * + 30, col1 FROM tab2
----
1380
51
1920
77
2250
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7610
SELECT DISTINCT CAST( + CAST( - ( col0 ) AS SIGNED ) AS SIGNED ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7610
SELECT DISTINCT CAST ( + CAST ( - ( col0 ) AS INTEGER ) AS INTEGER ) FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT DISTINCT + COUNT( * ) * 40 FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-7611
SELECT DISTINCT + COUNT ( * ) * 40 FROM tab1
----
120

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * - + 66 + + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7613
SELECT MAX( ALL - col1 ) AS col2 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7613
SELECT MAX ( ALL - col1 ) AS col2 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 17 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
17

query I rowsort
SELECT + 36 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT ALL - - ( - COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7616
SELECT ALL - - ( - COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT DISTINCT + 87 + + col2 AS col1 FROM tab0 AS cor0
----
134
186
97

query I rowsort
SELECT + 95 + - + 75 + - 53 - - + 27 + - 14 + + col2 FROM tab1 AS cor0
----
39
48
76

query II rowsort
SELECT + 52 AS col2, + 89 FROM tab1 AS cor0
----
52
89
52
89
52
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT DISTINCT + 70 * + MAX( - 97 ) * - + 76 AS col2 FROM tab1 AS cor0 WHERE + col2 > + + col1
----
516040

skipif mysql # not compatible
query I rowsort label-7620
SELECT DISTINCT + 70 * + MAX ( - 97 ) * - + 76 AS col2 FROM tab1 AS cor0 WHERE + col2 > + + col1
----
516040

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7621
SELECT col1, + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-7621
SELECT col1, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7622
SELECT DISTINCT - + CAST( + col0 AS SIGNED ) FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7622
SELECT DISTINCT - + CAST ( + col0 AS INTEGER ) FROM tab0 cor0
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND NULL
----

query II rowsort
SELECT ALL col2 AS col1, + 17 * + col1 + - 71 + 14 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7625
SELECT ALL 41 DIV - col2 - + + col0 AS col2 FROM tab0
----
-15
-91
-97

skipif mysql # not compatible
query I rowsort label-7625
SELECT ALL 41 / - col2 - + + col0 AS col2 FROM tab0
----
-15
-91
-97

query III rowsort
SELECT * FROM tab1 WHERE ( + 66 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7627
SELECT 37 DIV - MAX( ALL - col1 ) FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-7627
SELECT 37 / - MAX ( ALL - col1 ) FROM tab0
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 27 col1 FROM tab1
----
-27

query I rowsort
SELECT - - 73 + 29 * - - col0 AS col2 FROM tab0 cor0
----
2596
2886
508

query I rowsort
SELECT ALL - + ( col2 ) - col0 AS col2 FROM tab0 cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7631
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab0
----
9

query I rowsort
SELECT 62 * 75 FROM tab2
----
4650
4650
4650

onlyif mysql # DIV for integer division: 
query I rowsort label-7633
SELECT DISTINCT + + 82 DIV + col1 AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7633
SELECT DISTINCT + + 82 / + col1 AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT DISTINCT - ( - COUNT( * ) ) col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7634
SELECT DISTINCT - ( - COUNT ( * ) ) col0 FROM tab0 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col0, + col1 + - 94 FROM tab1 AS cor0
----
59
-89
68
-47
96
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT - COUNT( * ) * MIN( + ( - - col0 ) ) FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-7636
SELECT - COUNT ( * ) * MIN ( + ( - - col0 ) ) FROM tab1 AS cor0
----
-153

query I rowsort
SELECT DISTINCT ( - - 34 ) FROM tab0 cor0
----
34

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 <= + + col2 * col1 * + 85 / + 14
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 * + - col0 * + col2 + - + 66 col2 FROM tab2 AS cor0
----
-117826
-200166
-48734

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> + 67
----

query I rowsort
SELECT DISTINCT 74 * + col0 AS col2 FROM tab0
----
1110
6438
7178

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 40 > col2 * + ( + col2 ) * - ( + 21 ) + col1
----

query II rowsort
SELECT DISTINCT col1, + 59 FROM tab0
----
1
59
21
59
81
59

query II rowsort
SELECT 54 AS col2, col0 FROM tab2
----
54
46
54
64
54
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7645
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) + - + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) + - + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + - 81 AS col2 FROM tab1 AS cor0
----
-13
-22
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 1 * - 56 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7648
SELECT ALL col1 DIV + col1 + - col1 + + 46 + 32 FROM tab0 AS cor0
----
-2
58
78

skipif mysql # not compatible
query I rowsort label-7648
SELECT ALL col1 / + col1 + - col1 + + 46 + 32 FROM tab0 AS cor0
----
-2
58
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT DISTINCT - COUNT( DISTINCT - 55 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7649
SELECT DISTINCT - COUNT ( DISTINCT - 55 ) FROM tab2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7650
SELECT + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7650
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 + - ( - 36 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NULL > 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT DISTINCT + + SUM( ALL - + col1 ) * - + MAX( DISTINCT + col1 ) + - - 56 AS col2 FROM tab1 cor0
----
3158

skipif mysql # not compatible
query I rowsort label-7653
SELECT DISTINCT + + SUM ( ALL - + col1 ) * - + MAX ( DISTINCT + col1 ) + - - 56 AS col2 FROM tab1 cor0
----
3158

query II rowsort
SELECT ALL + + 42 + + + 58, 49 AS col0 FROM tab1 AS cor0
----
100
49
100
49
100
49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 97 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + 48 + + + col0 - col1 AS col0 FROM tab0 AS cor0
----
-18
114
144

query I rowsort
SELECT DISTINCT - col1 + + - ( - col1 ) * + + col1 AS col0 FROM tab0 AS cor0
----
0
420
6480

query I rowsort
SELECT + col2 + col1 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT ALL 49 - col0 + - col0 AS col1 FROM tab2 AS cor0
----
-101
-43
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col1 - - col0 col0 FROM tab1 AS cor0
----
135
165
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT DISTINCT + - COUNT( * ) + + COUNT( * ) - SUM( + + 76 ) AS col2 FROM tab0 WHERE NOT + - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7661
SELECT DISTINCT + - COUNT ( * ) + + COUNT ( * ) - SUM ( + + 76 ) AS col2 FROM tab0 WHERE NOT + - col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT DISTINCT + COUNT( * ) - 90 * - 76 FROM tab1
----
6843

skipif mysql # not compatible
query I rowsort label-7662
SELECT DISTINCT + COUNT ( * ) - 90 * - 76 FROM tab1
----
6843

query I rowsort
SELECT col2 + ( 32 ) AS col0 FROM tab1
----
100
128
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT ALL + SUM( DISTINCT - - col2 ) col0 FROM tab2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7664
SELECT ALL + SUM ( DISTINCT - - col2 ) col0 FROM tab2
----
121

query I rowsort
SELECT - 57 + - + col2 AS col1 FROM tab2
----
-115
-80
-97

query I rowsort
SELECT ALL + 95 * col2 AS col0 FROM tab1
----
5605
6460
9120

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7667
SELECT ALL CAST( NULL AS DECIMAL ) * - col1 + - col2 AS col2, col0 AS col2 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-7667
SELECT ALL CAST ( NULL AS REAL ) * - col1 + - col2 AS col2, col0 AS col2 FROM tab0
----
NULL
15
NULL
87
NULL
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 56 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7669
SELECT + 7 DIV MAX( col1 ) FROM tab1 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7669
SELECT + 7 / MAX ( col1 ) FROM tab1 WHERE NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7670
SELECT + CAST( NULL AS SIGNED ) * - - col2 * + 15 * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7670
SELECT + CAST ( NULL AS INTEGER ) * - - col2 * + 15 * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( + 32 ) FROM tab1 AS cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT + - MIN( ALL - col0 ) AS col0 FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-7672
SELECT + - MIN ( ALL - col0 ) AS col0 FROM tab0 cor0
----
97

query I rowsort
SELECT - 9 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query II rowsort
SELECT col0 - + col1, 31 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-13
31
-5
31
8
31

onlyif mysql # DIV for integer division: 
query I rowsort label-7675
SELECT - 31 DIV - 78 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7675
SELECT - 31 / - 78 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT - - 37 * COUNT( * ) FROM tab1 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-7676
SELECT - - 37 * COUNT ( * ) FROM tab1 AS cor0
----
111

query I rowsort
SELECT col2 * + col1 + - col0 AS col0 FROM tab2 cor0 WHERE NOT ( - 76 ) < ( NULL )
----

query I rowsort
SELECT ALL col2 + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( - col0 ) > NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 < NULL
----

query II rowsort
SELECT ALL + + col2 * - + col2 AS col0, - 40 FROM tab0 AS cor0
----
-100
-40
-2209
-40
-9801
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT - COUNT( * ) FROM tab0 WHERE NOT col2 NOT BETWEEN ( NULL ) AND col1
----
0

skipif mysql # not compatible
query I rowsort label-7681
SELECT - COUNT ( * ) FROM tab0 WHERE NOT col2 NOT BETWEEN ( NULL ) AND col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT DISTINCT + COUNT( DISTINCT - 22 ) * + + COUNT( * ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7682
SELECT DISTINCT + COUNT ( DISTINCT - 22 ) * + + COUNT ( * ) AS col0 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7683
SELECT ALL col0 DIV ( + + col0 ) AS col0, col1 FROM tab1
----
1
14
1
47
1
5

skipif mysql # not compatible
query II rowsort label-7683
SELECT ALL col0 / ( + + col0 ) AS col0, col1 FROM tab1
----
1
14
1
47
1
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7684
SELECT - + 10 DIV - 94 + - - COUNT( * ) FROM tab0 WHERE NOT + CAST( + + col0 AS SIGNED ) * + 62 < - col0 * ( - col0 ) + + 10
----
1

skipif mysql # not compatible
query I rowsort label-7684
SELECT - + 10 / - 94 + - - COUNT ( * ) FROM tab0 WHERE NOT + CAST ( + + col0 AS INTEGER ) * + 62 < - col0 * ( - col0 ) + + 10
----
1

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE NOT + - col0 - - ( - 27 ) * + col1 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT + 69 * + COUNT( * ) AS col2 FROM tab0
----
207

skipif mysql # not compatible
query I rowsort label-7686
SELECT + 69 * + COUNT ( * ) AS col2 FROM tab0
----
207

query I rowsort
SELECT DISTINCT 48 + + col2 AS col0 FROM tab1
----
107
116
144

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT + ( COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7688
SELECT + ( COUNT ( * ) ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT ALL ( ( - COUNT( ALL - + ( - + 76 ) ) ) ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7689
SELECT ALL ( ( - COUNT ( ALL - + ( - + 76 ) ) ) ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT + 33 + 23 FROM tab2 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT - SUM( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-7691
SELECT - SUM ( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
-195

query II rowsort
SELECT + - col0 AS col1, col0 AS col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7693
SELECT CAST( NULL AS SIGNED ) * col2 + + 77 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7693
SELECT CAST ( NULL AS INTEGER ) * col2 + + 77 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT ALL COUNT( * ) + COUNT( * ) col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7694
SELECT ALL COUNT ( * ) + COUNT ( * ) col1 FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT + 9 - 20 AS col0 FROM tab0 AS cor0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT ALL - COUNT( ALL + 25 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL - COUNT ( ALL + 25 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col2 FROM tab0 WHERE NULL IN ( + col1, + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE - + col2 = NULL
----

query I rowsort
SELECT + + 57 AS col0 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT + 5 * ( - ( + + col1 ) ) FROM tab2 AS cor0
----
-255
-335
-385

onlyif mysql # DIV for integer division: 
query I rowsort label-7701
SELECT - + 34 DIV - - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7701
SELECT - + 34 / - - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + 68 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT - MIN( ALL col0 ) col0 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7703
SELECT - MIN ( ALL col0 ) col0 FROM tab0
----
-15

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 = NULL
----

query I rowsort
SELECT ALL + col2 / - col2 + + col0 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT - - COUNT( ALL + + col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7706
SELECT - - COUNT ( ALL + + col2 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT + - COUNT( DISTINCT + col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7707
SELECT + - COUNT ( DISTINCT + col2 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7708
SELECT DISTINCT + - col0, 80 / - + 91 / - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-7708
SELECT DISTINCT + - col0, 80 / - + 91 / - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT ALL + MAX( DISTINCT - 23 ) * + 27 + + - 53 FROM tab1 AS cor0
----
-674

skipif mysql # not compatible
query I rowsort label-7709
SELECT ALL + MAX ( DISTINCT - 23 ) * + 27 + + - 53 FROM tab1 AS cor0
----
-674

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 < NULL
----

query I rowsort
SELECT - 73 + + 1 * - - col0 AS col1 FROM tab2 AS cor0 WHERE NOT col2 * + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT COUNT( - col0 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7712
SELECT COUNT ( - col0 ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT COUNT( * ) * + ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7713
SELECT COUNT ( * ) * + ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT DISTINCT + + ( 34 ) * + - COUNT( * ) col0 FROM tab1 cor0
----
-102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7714
SELECT DISTINCT + + ( 34 ) * + - COUNT ( * ) col0 FROM tab1 cor0
----
-102

query I rowsort
SELECT - - 7 * + 80 FROM tab2 AS cor0
----
560
560
560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7716
SELECT + 48 / - + col1 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7716
SELECT + 48 / - + col1 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT - MIN( col1 ) + 43 AS col2 FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-7717
SELECT - MIN ( col1 ) + 43 AS col2 FROM tab2
----
-8

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT ALL MAX( ALL - ( 82 ) ) col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7719
SELECT ALL MAX ( ALL - ( 82 ) ) col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7720
SELECT - - col2 + + col1 DIV + col1 FROM tab2 AS cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-7720
SELECT - - col2 + + col1 / + col1 FROM tab2 AS cor0
----
24
41
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7721
SELECT ALL CAST( NULL AS SIGNED ) + - + 48 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7721
SELECT ALL CAST ( NULL AS INTEGER ) + - + 48 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT ALL - COUNT( * ) * + - COUNT( - col1 ) + - 27 * - 17 FROM tab2 cor0
----
468

skipif mysql # not compatible
query I rowsort label-7722
SELECT ALL - COUNT ( * ) * + - COUNT ( - col1 ) + - 27 * - 17 FROM tab2 cor0
----
468

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab1 AS cor0 WHERE - col0 * col2 IS NOT NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7724
SELECT DISTINCT - 5 DIV - col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7724
SELECT DISTINCT - 5 / - col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7725
SELECT 45 / + col2 * + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7725
SELECT 45 / + col2 * + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 38 <= - ( col0 ) + + col1 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-7727
SELECT - ( col0 ) - - - 89 AS col2, 42 + + 30 DIV - + col2 + col0 AS col1 FROM tab1
----
-140
93
-174
127
-180
133

skipif mysql # not compatible
query II rowsort label-7727
SELECT - ( col0 ) - - - 89 AS col2, 42 + + 30 / - + col2 + col0 AS col1 FROM tab1
----
-140
93
-174
127
-180
133

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT DISTINCT COUNT( * ) * + - 87 + + MAX( col2 ) FROM tab1
----
-165

skipif mysql # not compatible
query I rowsort label-7728
SELECT DISTINCT COUNT ( * ) * + - 87 + + MAX ( col2 ) FROM tab1
----
-165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 21 + + col2 col1 FROM tab0 AS cor0
----
120
31
68

query I rowsort
SELECT - - col2 + - + col1 AS col0 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7731
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7731
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 col0 FROM tab2 cor0
----
-17
-23
-24

query I rowsort
SELECT + col1 + + col0 + - + col2 AS col2 FROM tab2 AS cor0
----
101
74
84

onlyif mysql # aggregate syntax: 
query II rowsort label-7734
SELECT COUNT( * ) AS col1, - 58 AS col0 FROM tab0
----
3
-58

skipif mysql # not compatible
query II rowsort label-7734
SELECT COUNT ( * ) AS col1, - 58 AS col0 FROM tab0
----
3
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-7735
SELECT ALL col2 DIV - 83 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL col2 / - 83 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7736
SELECT ALL + 3, - CAST( + col2 AS SIGNED ) AS col2 FROM tab1
----
3
-59
3
-68
3
-96

skipif mysql # not compatible
query II rowsort label-7736
SELECT ALL + 3, - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1
----
3
-59
3
-68
3
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT ALL MAX( ALL ( - col1 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7737
SELECT ALL MAX ( ALL ( - col1 ) ) FROM tab0
----
-1

query II rowsort
SELECT DISTINCT col0 AS col1, ( - + col0 ) FROM tab2 cor0
----
46
-46
64
-64
75
-75

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( ( + - col1 ) * - - col0 < NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7740
SELECT - COUNT( * ) AS col0, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-7740
SELECT - COUNT ( * ) AS col0, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7741
SELECT ALL + col1 DIV + 87 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7741
SELECT ALL + col1 / + 87 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7742
SELECT DISTINCT 26 DIV 12 AS col2 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-7742
SELECT DISTINCT 26 / 12 AS col2 FROM tab2 AS cor0
----
2

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NOT NULL <= NULL )
----

query II rowsort
SELECT DISTINCT + - 43 AS col0, 13 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-43
13

query II rowsort
SELECT + - col2 + - + 24, 46 AS col1 FROM tab1 AS cor0
----
-120
46
-83
46
-92
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7746
SELECT ALL + col0 * col1 + - ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7746
SELECT ALL + col0 * col1 + - ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT ALL + MIN( ALL col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7747
SELECT ALL + MIN ( ALL col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * + col1 col2, col1 - 99 FROM tab1 AS cor0
----
1344
-85
295
-94
3196
-52

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7750
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col0 BETWEEN col1 + + col0 AND NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7750
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col0 BETWEEN col1 + + col0 AND NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT ALL MIN( DISTINCT + col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-7751
SELECT ALL MIN ( DISTINCT + col0 ) AS col0 FROM tab1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7752
SELECT * FROM tab2 WHERE + + CAST( - 18 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7752
SELECT * FROM tab2 WHERE + + CAST ( - 18 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT COUNT( ALL + - ( - + col0 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7753
SELECT COUNT ( ALL + - ( - + col0 ) ) FROM tab2
----
3

query II rowsort
SELECT - + col2 + col2, 76 FROM tab0 WHERE ( 49 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT 50 + - COUNT( * ) FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7755
SELECT 50 + - COUNT ( * ) FROM tab2 AS cor0
----
47

query I rowsort
SELECT - 51 + + - 78 AS col2 FROM tab0 AS cor0
----
-129
-129
-129

query I rowsort
SELECT - 55 + + col0 FROM tab2 AS cor0
----
-9
20
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT ALL + - 68 + - COUNT( * ) col2 FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7758
SELECT ALL + - 68 + - COUNT ( * ) col2 FROM tab2 AS cor0
----
-71

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT col0 + col2 IS NULL
----
14
47
5

query I rowsort
SELECT ALL + col0 * - col1 FROM tab2 WHERE col1 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( col1 + + col2 )
----

query I rowsort
SELECT - 13 + - col1 FROM tab2
----
-64
-80
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT + COUNT( ALL + col0 ) * 38 AS col2 FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-7763
SELECT + COUNT ( ALL + col0 ) * 38 AS col2 FROM tab0
----
114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab2 WHERE NOT 98 / + col0 IS NULL
----
46
64
75

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 / 82 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 30 FROM tab2 WHERE NOT ( col1 ) = 58 * col1 + - col0
----
30

query I rowsort
SELECT + col2 + - 10 * 72 AS col0 FROM tab2
----
-662
-680
-697

query I rowsort
SELECT 31 + col0 * - ( 51 ) AS col1 FROM tab0
----
-4406
-4916
-734

query III rowsort
SELECT * FROM tab0 WHERE ( col0 ) > ( 31 * + col1 )
----
97
1
99

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE NOT NULL < ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7771
SELECT DISTINCT 54 DIV - col0 - 78 FROM tab0
----
-78
-81

skipif mysql # not compatible
query I rowsort label-7771
SELECT DISTINCT 54 / - col0 - 78 FROM tab0
----
-78
-81

query I rowsort
SELECT + ( - col2 ) + col2 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE + 37 IS NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT col2 - col0 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT + COUNT( ALL col0 ) AS col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7776
SELECT + COUNT ( ALL col0 ) AS col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT - col1 + + 28 AS col2 FROM tab0 WHERE col0 NOT IN ( - col1 )
----
-53
27
7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 58 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( - col0 ) AS col1 FROM tab0 WHERE NOT 44 > col1
----
15

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 >= col1 * 93
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 3 + col0 * - 44 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT col2 < + col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7783
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - COUNT( * ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7783
SELECT DISTINCT CAST ( NULL AS REAL ) * - COUNT ( * ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT 57 * - col1 AS col2 FROM tab2 AS cor0
----
-2907
-3819
-4389

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 47 ) < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 > ( + col2 )
----

query I rowsort
SELECT ALL - ( - col2 ) * + ( - col0 ) AS col0 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT 46 * col1 + + 39 FROM tab2
----
2385
3121
3581

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-7789
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7790
SELECT col1 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) NOT IN ( ( col2 ) + col0 * - 5 )
----

skipif mysql # not compatible
query I rowsort label-7790
SELECT col1 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) NOT IN ( ( col2 ) + col0 * - 5 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7791
SELECT + - col1 DIV + 5 AS col2 FROM tab0 AS cor0
----
-16
-4
0

skipif mysql # not compatible
query I rowsort label-7791
SELECT + - col1 / + 5 AS col2 FROM tab0 AS cor0
----
-16
-4
0

query I rowsort
SELECT ALL AVG ( DISTINCT + col1 ) * - 19 FROM tab2 AS cor0 WHERE - col2 * col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7793
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
14
47
5

query I rowsort
SELECT - 7 * - 50 + + 48 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + + ( col2 ) * - 88 AS col2 FROM tab2 AS cor0
----
-1978
-3456
-5029

onlyif mysql # DIV for integer division: 
query I rowsort label-7796
SELECT + + 67 + - col1 DIV + col0 AS col1 FROM tab0 cor0
----
62
67
67

skipif mysql # not compatible
query I rowsort label-7796
SELECT + + 67 + - col1 / + col0 AS col1 FROM tab0 cor0
----
62
67
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7797
SELECT + COUNT( * ) DIV - 24 + MIN( - col1 ) DIV COUNT( * ) FROM tab2 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-7797
SELECT + COUNT ( * ) / - 24 + MIN ( - col1 ) / COUNT ( * ) FROM tab2 cor0
----
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 91 ) col2 FROM tab0 AS cor0
----
-91

query I rowsort
SELECT col1 * - ( + 14 ) * - 27 + - col2 FROM tab2
----
19255
25268
29066

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT + COUNT( ALL - col2 ) + 98 FROM tab1
----
101

skipif mysql # not compatible
query I rowsort label-7800
SELECT + COUNT ( ALL - col2 ) + 98 FROM tab1
----
101

query I rowsort
SELECT DISTINCT col2 * - col2 + 87 FROM tab1
----
-3394
-4537
-9129

query I rowsort
SELECT 82 + - 27 AS col0 FROM tab0
----
55
55
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + - 60 ) col0 FROM tab1
----
-60
-60
-60

query I rowsort
SELECT + 99 + col0 FROM tab2
----
145
163
174

query I rowsort
SELECT DISTINCT - 56 + + col2 FROM tab0
----
-46
-9
43

query I rowsort
SELECT + 98 * col1 + - col0 AS col1 FROM tab0
----
1
1971
7923

query III rowsort
SELECT * FROM tab2 WHERE NULL >= 52
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7808
SELECT ALL - col0 * - 15 + + 29 DIV col0 AS col0 FROM tab0
----
1305
1455
226

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL - col0 * - 15 + + 29 / col0 AS col0 FROM tab0
----
1305
1455
226

onlyif mysql # DIV for integer division: 
query I rowsort label-7809
SELECT ( col2 ) + col0 DIV col2 AS col1 FROM tab2
----
25
41
59

skipif mysql # not compatible
query I rowsort label-7809
SELECT ( col2 ) + col0 / col2 AS col1 FROM tab2
----
25
41
59

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 < ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 * 76 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 87 <> ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 col0 FROM tab0 AS cor0
----
75
75
75

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( - 61 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7815
SELECT ALL + col2 * CAST( col1 AS SIGNED ) FROM tab0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL + col2 * CAST ( col1 AS INTEGER ) FROM tab0
----
210
3807
99

query II rowsort
SELECT ALL col2 AS col0, - 80 + - col1 AS col2 FROM tab0
----
10
-101
47
-161
99
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7817
SELECT - + COUNT( * ) * CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7817
SELECT - + COUNT ( * ) * CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7818
SELECT + CAST( NULL AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7818
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col2 * col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * + + col0 AS col1 FROM tab2 cor0
----
-1058
-2560
-4350

query I rowsort
SELECT + col1 + + col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7822
SELECT ALL + - col2 * 96 * col0 DIV col0 AS col1 FROM tab2 AS cor0
----
-2208
-3840
-5568

skipif mysql # not compatible
query I rowsort label-7822
SELECT ALL + - col2 * 96 * col0 / col0 AS col1 FROM tab2 AS cor0
----
-2208
-3840
-5568

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7823
SELECT ALL + col0, col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-7823
SELECT ALL + col0, col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 * + col0 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
4785
5335
825

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT + COUNT( * ) * 9 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-7825
SELECT + COUNT ( * ) * 9 FROM tab1 AS cor0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-7826
SELECT 43 DIV - col2 col1 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7826
SELECT 43 / - col2 col1 FROM tab0 AS cor0
----
-4
0
0

query II rowsort
SELECT DISTINCT col1, col0 * + - col0 FROM tab0 AS cor0
----
1
-9409
21
-7569
81
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT ALL - MAX( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7828
SELECT ALL - MAX ( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-7829
SELECT ALL col0 * - col2 DIV ( + col2 ) FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL col0 * - col2 / ( + col2 ) FROM tab0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( ( 22 ) ) BETWEEN ( - 14 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 FROM tab0 cor0 WHERE NOT ( NULL ) IN ( - - col2 * col2 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT ALL - MIN( ALL col0 ) + - 95 FROM tab0 AS cor0 WHERE NOT ( NULL NOT BETWEEN + + 60 / + col1 AND ( - col1 + col1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL - MIN ( ALL col0 ) + - 95 FROM tab0 AS cor0 WHERE NOT ( NULL NOT BETWEEN + + 60 / + col1 AND ( - col1 + col1 ) )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * - 25 <> - + ( + col0 )
----

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT NULL <= - 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NULL NOT IN ( + col0 * col0 - col2 + - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7835
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NULL NOT IN ( + col0 * col0 - col2 + - col1 )
----
0

query I rowsort
SELECT + 60 + + 8 - - 76 - - col1 * col1 AS col0 FROM tab2 AS cor0
----
2745
4633
6073

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT ALL - COUNT( * ) * - 88 + - + 46 col2 FROM tab1 AS cor0
----
218

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7837
SELECT ALL - COUNT ( * ) * - 88 + - + 46 col2 FROM tab1 AS cor0
----
218

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col1 + col0 ) IS NOT NULL
----

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-15
-87
-97

query I rowsort
SELECT + col1 + - col1 FROM tab2 AS cor0 WHERE ( col1 * + ( - 49 ) ) IS NOT NULL
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = - 37
----

query I rowsort
SELECT DISTINCT 47 * col1 AS col0 FROM tab2 cor0
----
2397
3149
3619

query II rowsort
SELECT DISTINCT - + 54 AS col0, col0 * col2 AS col2 FROM tab1 AS cor0
----
-54
4896
-54
5015
-54
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7844
SELECT ALL CAST( 91 AS SIGNED ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL CAST ( 91 AS INTEGER ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7845
SELECT ALL col0, + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-7845
SELECT ALL col0, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7846
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( - 52 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7846
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( - 52 AS REAL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - + col2 BETWEEN + + col0 * + col0 AND NULL
----

query I rowsort
SELECT - ( col2 ) - + 25 FROM tab0
----
-124
-35
-72

query I rowsort
SELECT + ( - col0 ) + - + 99 AS col0 FROM tab1 AS cor0
----
-150
-184
-190

query I rowsort
SELECT col1 + ( + col0 ) * + col1 * - col0 FROM tab0 AS cor0
----
-158928
-18144
-9408

query I rowsort
SELECT DISTINCT col0 - - + col1 FROM tab0 AS cor0
----
108
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - 97 col0 FROM tab1 AS cor0
----
-102
-111
-144

query I rowsort
SELECT DISTINCT + - 25 - + col0 AS col1 FROM tab0 AS cor0
----
-112
-122
-40

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 54 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7855
SELECT - col2 DIV 31 AS col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7855
SELECT - col2 / 31 AS col2 FROM tab2
----
-1
-1
0

query II rowsort
SELECT - col1 * - + col0 - + - col1 AS col0, col2 FROM tab2 AS cor0
----
2397
23
5005
40
5092
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col2 * - - col1 col0 FROM tab1 AS cor0
----
-1475
-150212
-18816

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT - ( - COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT ( + col2 + - 57 * col2 ) > col0 + + - 78
----
3

skipif mysql # not compatible
query I rowsort label-7859
SELECT - ( - COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT ( + col2 + - 57 * col2 ) > col0 + + - 78
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7860
SELECT * FROM tab0 AS cor0 WHERE NOT ( 34 / - col0 * col2 ) BETWEEN ( + ( col0 ) + + ( CAST( + col0 AS SIGNED ) ) ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7860
SELECT * FROM tab0 AS cor0 WHERE NOT ( 34 / - col0 * col2 ) BETWEEN ( + ( col0 ) + + ( CAST ( + col0 AS INTEGER ) ) ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 col1 FROM tab0 AS cor0
----
14
14
14

query I rowsort
SELECT DISTINCT - col1 * - - col2 * + 98 AS col0 FROM tab0
----
-20580
-373086
-9702

query II rowsort
SELECT ALL - 93 AS col1, col0 * + col0 AS col0 FROM tab0
----
-93
225
-93
7569
-93
9409

onlyif mysql # DIV for integer division: 
query I rowsort label-7864
SELECT ALL ( - - ( col1 ) ) DIV + + 59 + 22 * - - col1 * + col0 FROM tab1
----
15708
9350
94094

skipif mysql # not compatible
query I rowsort label-7864
SELECT ALL ( - - ( col1 ) ) / + + 59 + 22 * - - col1 * + col0 FROM tab1
----
15708
9350
94094

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col2, 95 + + col1 col1 FROM tab0
----
15
176
87
116
97
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT DISTINCT - 63 * - COUNT( * ) AS col1 FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-7866
SELECT DISTINCT - 63 * - COUNT ( * ) AS col1 FROM tab2
----
189

query II rowsort
SELECT 57 AS col0, 53 AS col2 FROM tab1
----
57
53
57
53
57
53

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * - col1 * col2 * - - 73 BETWEEN ( - col0 ) AND - 74 + - 78
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, 86 * + + ( - col0 ) col1 FROM tab2
----
23
-3956
40
-5504
58
-6450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 81 AS col2, + 3 col1 FROM tab1
----
81
3
81
3
81
3

query II rowsort
SELECT ALL col2 AS col2, - 24 AS col1 FROM tab1 AS cor0
----
59
-24
68
-24
96
-24

query I rowsort
SELECT + col0 * - col2 * col0 * - col0 AS col1 FROM tab2 AS cor0
----
10485760
2238728
24468750

query I rowsort
SELECT + 87 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 + + ( - - 15 ) * + 4 + col2 >= NULL
----

query II rowsort
SELECT ALL 8 * - col1, - 29 AS col2 FROM tab0
----
-168
-29
-648
-29
-8
-29

query I rowsort
SELECT ALL + 78 FROM tab1 WHERE NOT + + col1 >= 8
----
78

query I rowsort
SELECT ALL col1 * - + 42 AS col2 FROM tab0
----
-3402
-42
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT ALL COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7877
SELECT ALL COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT - col2 + ( col2 ) + - 29 FROM tab1 AS cor0 WHERE - 80 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT DISTINCT + + COUNT( * ) + + 8 AS col1 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-7879
SELECT DISTINCT + + COUNT ( * ) + + 8 AS col1 FROM tab0 AS cor0
----
11

query I rowsort
SELECT ALL - col0 + + - 39 AS col0 FROM tab0 cor0
----
-126
-136
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT DISTINCT COUNT( * ) + - 41 FROM tab2 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-7881
SELECT DISTINCT COUNT ( * ) + - 41 FROM tab2 AS cor0
----
-38

query I rowsort
SELECT col0 + - col0 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT 68 * - col2 + 35 AS col0 FROM tab1
----
-3977
-4589
-6493

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT ALL + MIN( DISTINCT - 14 ) AS col0 FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-7884
SELECT ALL + MIN ( DISTINCT - 14 ) AS col0 FROM tab2
----
-14

query I rowsort
SELECT col0 + + ( + - col1 ) FROM tab1
----
37
44
80

query I rowsort
SELECT - col1 + 24 FROM tab0
----
-57
23
3

query I rowsort
SELECT ( - + 91 ) + + - 71 - col1 FROM tab2
----
-213
-229
-239

query I rowsort
SELECT DISTINCT + 44 * 9 FROM tab1
----
396

onlyif mysql # DIV for integer division: 
query I rowsort label-7889
SELECT ALL col0 + - 32 - + col2 * + - col1 DIV col1 + + + col2 FROM tab0
----
263
75
77

skipif mysql # not compatible
query I rowsort label-7889
SELECT ALL col0 + - 32 - + col2 * + - col1 / col1 + + + col2 FROM tab0
----
263
75
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7890
SELECT ALL + col0 DIV - - col0 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7890
SELECT ALL + col0 / - - col0 AS col2 FROM tab1
----
1
1
1

query I rowsort
SELECT + 91 * ( col2 ) * - col1 + col1 AS col2 FROM tab0
----
-19089
-346356
-9008

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE 90 - - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7893
SELECT ALL + col1 DIV 83 col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7893
SELECT ALL + col1 / 83 col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - col1 * - ( + + 71 ) * - col2 - + + col0 + + 20 * - 44 FROM tab1
----
-21910
-227887
-96355

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7895
SELECT ALL CAST( - MAX( DISTINCT + - col0 ) AS SIGNED ) FROM tab2 WHERE NOT ( + 21 * + + col0 + - + 28 ) IS NULL
----
46

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL CAST ( - MAX ( DISTINCT + - col0 ) AS INTEGER ) FROM tab2 WHERE NOT ( + 21 * + + col0 + - + 28 ) IS NULL
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT + 69 - COUNT( * ) AS col0 FROM tab0 cor0
----
66

skipif mysql # not compatible
query I rowsort label-7896
SELECT + 69 - COUNT ( * ) AS col0 FROM tab0 cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7897
SELECT * FROM tab0 AS cor0 WHERE ( 9 * + 79 * - - col0 + + + 50 ) BETWEEN CAST( + 43 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7897
SELECT * FROM tab0 AS cor0 WHERE ( 9 * + 79 * - - col0 + + + 50 ) BETWEEN CAST ( + 43 AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT ALL MIN( - 90 ) FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL MIN ( - 90 ) FROM tab1 AS cor0
----
-90

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IS NULL OR ( NULL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 85 col0, 4 AS col0 FROM tab2 AS cor0
----
-85
4

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT - col1 * - + col1 * - + col2 AS col0 FROM tab2 cor0
----
-237160
-260362
-59823

query I rowsort
SELECT col0 * + 55 FROM tab2 AS cor0 WHERE NOT NULL >= - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7904
SELECT + SUM( - - col1 ) * + + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7904
SELECT + SUM ( - - col1 ) * + + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + col1 AS col1, ( - col2 ) AS col0 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT ALL - COUNT( * ) * SUM( ALL + col0 ) AS col1 FROM tab1
----
-681

skipif mysql # not compatible
query I rowsort label-7906
SELECT ALL - COUNT ( * ) * SUM ( ALL + col0 ) AS col1 FROM tab1
----
-681

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( - col0 ) NOT BETWEEN NULL AND ( + 94 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7908
SELECT * FROM tab1 WHERE NOT NULL IN ( + col1, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7908
SELECT * FROM tab1 WHERE NOT NULL IN ( + col1, CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7909
SELECT DISTINCT * FROM tab2 WHERE col2 / - + col2 - - col1 * + col2 + + 36 * - col2 + + - col1 * - CAST( NULL AS SIGNED ) / + + col2 / 55 NOT IN ( 97 )
----

skipif mysql # not compatible
query III rowsort label-7909
SELECT DISTINCT * FROM tab2 WHERE col2 / - + col2 - - col1 * + col2 + + 36 * - col2 + + - col1 * - CAST ( NULL AS INTEGER ) / + + col2 / 55 NOT IN ( 97 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT ALL - MIN( + - ( - 61 ) ) col1 FROM tab1
----
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7910
SELECT ALL - MIN ( + - ( - 61 ) ) col1 FROM tab1
----
-61

query I rowsort
SELECT DISTINCT - - col0 AS col2 FROM tab0 WHERE NOT 82 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7912
SELECT 81, + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
81
0

skipif mysql # not compatible
query II rowsort label-7912
SELECT 81, + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
81
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - 53 - - col1 + 33 + col1 * + + col0, col2, + 76 * - 7 + - - ( + col1 ) )
----

query I rowsort
SELECT + ( - 74 ) FROM tab0 AS cor0 WHERE ( 67 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + 44 NOT IN ( + + 1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7916
SELECT CAST( NULL AS SIGNED ) + col0 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7916
SELECT CAST ( NULL AS INTEGER ) + col0 col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 WHERE col1 * + col2 + col1 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7918
SELECT - MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7918
SELECT - MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7920
SELECT - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 85 + - col1 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7920
SELECT - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 85 + - col1 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 * - ( col0 ) * - 97 + + col1 FROM tab0 AS cor0
----
-21744
-734172
-912672

query I rowsort
SELECT ( + 67 ) AS col0 FROM tab0 AS cor0
----
67
67
67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 76 + col0 < + + col0 - + - col0
----
85
5
59
91
47
68

query I rowsort
SELECT ALL + 85 - - col1 + col1 + col2 * - col2 FROM tab2 AS cor0
----
-1361
-3145
-342

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7925
SELECT DISTINCT + col1 + - CAST( - col2 AS SIGNED ) * + + col1 FROM tab0 AS cor0
----
100
231
3888

skipif mysql # not compatible
query I rowsort label-7925
SELECT DISTINCT + col1 + - CAST ( - col2 AS INTEGER ) * + + col1 FROM tab0 AS cor0
----
100
231
3888

query I rowsort
SELECT ALL + col1 * - + col0 + + - 40 * col2 AS col2 FROM tab2 AS cor0
----
-3266
-6528
-7345

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 ) NOT BETWEEN - 90 AND NULL
----

query I rowsort
SELECT ALL - 38 + + col1 FROM tab1 AS cor0 WHERE + col2 * + col2 * - col1 IS NOT NULL
----
-24
-33
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT - 90 - ( - COUNT( * ) ) FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-7929
SELECT - 90 - ( - COUNT ( * ) ) FROM tab1
----
-87

query I rowsort
SELECT DISTINCT - col0 - 19 FROM tab2
----
-65
-83
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7931
SELECT + COUNT( * ) - + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7931
SELECT + COUNT ( * ) - + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT 14 * - SUM( - 63 ) - + 64 * - 48 FROM tab1
----
5718

skipif mysql # not compatible
query I rowsort label-7933
SELECT 14 * - SUM ( - 63 ) - + 64 * - 48 FROM tab1
----
5718

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7934
SELECT COUNT( * ) DIV + - 64 + + ( - + 37 ) * + + COUNT( DISTINCT - + ( CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7934
SELECT COUNT ( * ) / + - 64 + + ( - + 37 ) * + + COUNT ( DISTINCT - + ( CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + - 50 AS col2, - 39 * - col0 col1 FROM tab1 WHERE col0 - - 28 + col1 * + col1 <= - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT DISTINCT - MIN( DISTINCT col1 ) + - ( MAX( 82 ) ) AS col0 FROM tab2
----
-133

skipif mysql # not compatible
query I rowsort label-7936
SELECT DISTINCT - MIN ( DISTINCT col1 ) + - ( MAX ( 82 ) ) AS col0 FROM tab2
----
-133

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> col1 * + col0 + - 57 AND col2 IS NULL
----

query I rowsort
SELECT ALL ( + + col2 ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL + ( - - 84 ) AS col0 FROM tab0 AS cor0
----
84
84
84

query I rowsort
SELECT DISTINCT - + 28 + 71 AS col0 FROM tab2 cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT col2 >= col1
----

query II rowsort
SELECT ( + + col2 ), 2 AS col1 FROM tab0
----
10
2
47
2
99
2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col2 / - - col0 + - - 99 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT - MAX( ALL + col0 ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-7944
SELECT - MAX ( ALL + col0 ) AS col1 FROM tab1
----
-91

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE - col0 <= + - col2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7946
SELECT ALL * FROM tab1 WHERE ( + + CAST( NULL AS SIGNED ) ) = + col1
----

skipif mysql # not compatible
query III rowsort label-7946
SELECT ALL * FROM tab1 WHERE ( + + CAST ( NULL AS INTEGER ) ) = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT 34 + 52 - 62 + - + 88 + + + 0 + - COUNT( * ) AS col1 FROM tab0
----
-67

skipif mysql # not compatible
query I rowsort label-7947
SELECT 34 + 52 - 62 + - + 88 + + + 0 + - COUNT ( * ) AS col1 FROM tab0
----
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 + - - col2 col1 FROM tab1 cor0
----
124
87
96

query I rowsort
SELECT ALL + col0 + + 61 FROM tab1 AS cor0
----
112
146
152

query I rowsort
SELECT ALL - ( - 22 ) FROM tab2 AS cor0
----
22
22
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 68 * - 51 col2 FROM tab1 AS cor0
----
-3468

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( + + col2 ) + - 50 > ( NULL )
----

query I rowsort
SELECT DISTINCT + 56 + col2 FROM tab2
----
114
79
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL < ( 88 )
----
0

skipif mysql # not compatible
query I rowsort label-7954
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL < ( 88 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT ALL + COUNT( * ) + 44 AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7955
SELECT ALL + COUNT ( * ) + 44 AS col2 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT DISTINCT - COUNT( col1 ) + - - 43 + - - COUNT( * ) FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-7956
SELECT DISTINCT - COUNT ( col1 ) + - - 43 + - - COUNT ( * ) FROM tab1 AS cor0
----
43

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7957
SELECT ALL - ( + col2 ) DIV + CAST( - - col2 AS SIGNED ) + + 97 + + + 4 + - - col2 * - col1 FROM tab1 AS cor0
----
-1244
-195
-3096

skipif mysql # not compatible
query I rowsort label-7957
SELECT ALL - ( + col2 ) / + CAST ( - - col2 AS INTEGER ) + + 97 + + + 4 + - - col2 * - col1 FROM tab1 AS cor0
----
-1244
-195
-3096

query I rowsort
SELECT - col2 * + + col2 + col0 * + col0 + + - col1 + col1 AS col1 FROM tab1 AS cor0
----
-6615
3657
3744

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= + col1
----

query I rowsort
SELECT DISTINCT col2 + 71 * col0 AS col0 FROM tab2 AS cor0
----
3289
4584
5383

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NULL IS NOT NULL OR ( NULL ) IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT - COUNT( * ) * COUNT( * ) AS col2 FROM tab2, tab2 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7962
SELECT - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2, tab2 cor0
----
-81

query III rowsort
SELECT * FROM tab1 WHERE ( NULL > col0 + + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7964
SELECT DISTINCT 94 AS col0, col0 + - + CAST( NULL AS SIGNED ) FROM tab0
----
94
NULL

skipif mysql # not compatible
query II rowsort label-7964
SELECT DISTINCT 94 AS col0, col0 + - + CAST ( NULL AS INTEGER ) FROM tab0
----
94
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT + 66 * + - COUNT( * ) AS col2 FROM tab2
----
-198

skipif mysql # not compatible
query I rowsort label-7965
SELECT + 66 * + - COUNT ( * ) AS col2 FROM tab2
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT ALL COUNT( * ) * + + 82 col1 FROM tab2
----
246

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7966
SELECT ALL COUNT ( * ) * + + 82 col1 FROM tab2
----
246

onlyif mysql # DIV for integer division: 
query I rowsort label-7967
SELECT ALL 33 DIV col1 FROM tab1
----
0
2
6

skipif mysql # not compatible
query I rowsort label-7967
SELECT ALL 33 / col1 FROM tab1
----
0
2
6

query I rowsort
SELECT - ( - 19 ) FROM tab1 cor0
----
19
19
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7969
SELECT ALL MIN( DISTINCT + col1 ) DIV - 62 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL MIN ( DISTINCT + col1 ) / - 62 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

query II rowsort
SELECT + - 26 AS col2, + col1 AS col2 FROM tab1 cor0
----
-26
14
-26
47
-26
5

query II rowsort
SELECT ALL col0 AS col1, + ( 22 ) FROM tab0 AS cor0
----
15
22
87
22
97
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7972
SELECT ALL - CAST( - 99 AS SIGNED ) AS col1 FROM tab2
----
99
99
99

skipif mysql # not compatible
query I rowsort label-7972
SELECT ALL - CAST ( - 99 AS INTEGER ) AS col1 FROM tab2
----
99
99
99

query II rowsort
SELECT DISTINCT + ( 70 ) AS col0, + col1 + col1 FROM tab0 AS cor0
----
70
162
70
2
70
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7974
SELECT DISTINCT - 26 * - - MIN( + 6 ) col2 FROM tab2 AS cor0 WHERE NOT 59 * - col0 - + - CAST( + col2 AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7974
SELECT DISTINCT - 26 * - - MIN ( + 6 ) col2 FROM tab2 AS cor0 WHERE NOT 59 * - col0 - + - CAST ( + col2 AS INTEGER ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT + MIN( + - col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7975
SELECT + MIN ( + - col0 ) AS col2 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT - 76 * + col1 AS col2 FROM tab2 AS cor0
----
-3876
-5092
-5852

onlyif mysql # DIV for integer division: 
query II rowsort label-7977
SELECT ALL + - 5 DIV - col1 AS col0, + ( - - col1 ) AS col0 FROM tab2 AS cor0
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-7977
SELECT ALL + - 5 / - col1 AS col0, + ( - - col1 ) AS col0 FROM tab2 AS cor0
----
0
51
0
67
0
77

query I rowsort
SELECT DISTINCT - 59 + - ( - 82 ) FROM tab2 AS cor0
----
23

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT NULL IS NULL )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7980
SELECT ALL + CAST( - 39 AS SIGNED ) col0 FROM tab2
----
-39
-39
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7980
SELECT ALL + CAST ( - 39 AS INTEGER ) col0 FROM tab2
----
-39
-39
-39

query I rowsort
SELECT DISTINCT + - 96 * + + col1 * + 13 FROM tab1 AS cor0
----
-17472
-58656
-6240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, + col2 + + + 79 col2 FROM tab1 AS cor0
----
14
175
47
147
5
138

query I rowsort
SELECT - 0 FROM tab0 AS cor0 WHERE NULL BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT - COUNT( * ) * - 62 AS col1 FROM tab2 cor0
----
186

skipif mysql # not compatible
query I rowsort label-7984
SELECT - COUNT ( * ) * - 62 AS col1 FROM tab2 cor0
----
186

onlyif mysql # DIV for integer division: 
query I rowsort label-7985
SELECT + - 30 DIV col0 + + - col2 + + ( - col2 ) DIV + col0 AS col0 FROM tab1 AS cor0
----
-59
-68
-97

skipif mysql # not compatible
query I rowsort label-7985
SELECT + - 30 / col0 + + - col2 + + ( - col2 ) / + col0 AS col0 FROM tab1 AS cor0
----
-59
-68
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 >= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - col1 + + ( + + col0 ) AS col1 FROM tab1 AS cor0
----
37
44
80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 6 * 35 * - ( col0 ) + - + col0 / + col0 + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 - - - col2 * col2 FROM tab0 AS cor0
----
-110
-2256
-9900

onlyif mysql # aggregate syntax: 
query II rowsort label-7991
SELECT 94 * 1 AS col0, + ( + + COUNT( * ) ) AS col2 FROM tab0
----
94
3

skipif mysql # not compatible
query II rowsort label-7991
SELECT 94 * 1 AS col0, + ( + + COUNT ( * ) ) AS col2 FROM tab0
----
94
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT DISTINCT COUNT( * ) * + - 92 * + 90 FROM tab1
----
-24840

skipif mysql # not compatible
query I rowsort label-7992
SELECT DISTINCT COUNT ( * ) * + - 92 * + 90 FROM tab1
----
-24840

query I rowsort
SELECT ( - + col0 ) * + 57 FROM tab2
----
-2622
-3648
-4275

query I rowsort
SELECT ALL col1 * - - col0 AS col0 FROM tab0
----
1215
1827
97

query I rowsort
SELECT - col2 * + 63 AS col2 FROM tab2
----
-1449
-2520
-3654

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7997
SELECT + CAST( + COUNT( * ) AS SIGNED ) * - COUNT( ALL - + 32 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-7997
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) * - COUNT ( ALL - + 32 ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT COUNT( * ) * - MIN( ALL - col1 ) AS col2 FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-7998
SELECT COUNT ( * ) * - MIN ( ALL - col1 ) AS col2 FROM tab1
----
141

query III rowsort
SELECT * FROM tab0 WHERE NOT 60 * - - col2 < + col1 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * + + 6 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT ALL - COUNT( ALL 94 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8001
SELECT ALL - COUNT ( ALL 94 ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT 16 * + col2 FROM tab2
----
368
640
928

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT DISTINCT + 1 * - + COUNT( * ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8003
SELECT DISTINCT + 1 * - + COUNT ( * ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT - ( 83 ) FROM tab1 AS cor0
----
-83
-83
-83

query I rowsort
SELECT DISTINCT - 86 + - col0 AS col0 FROM tab2 AS cor0
----
-132
-150
-161

onlyif mysql # aggregate syntax: 
query II rowsort label-8006
SELECT ALL + 64, COUNT( * ) AS col0 FROM tab2 AS cor0
----
64
3

skipif mysql # not compatible
query II rowsort label-8006
SELECT ALL + 64, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
64
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT ALL 62 + 76 + + COUNT( * ) * + + COUNT( * ) FROM tab2 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL 62 + 76 + + COUNT ( * ) * + + COUNT ( * ) FROM tab2 AS cor0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT - + MIN( DISTINCT - col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8008
SELECT - + MIN ( DISTINCT - col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-8009
SELECT ALL 44 * + COUNT( * ) * 61 AS col2, + 95 col1 FROM tab1, tab1 cor0
----
24156
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8009
SELECT ALL 44 * + COUNT ( * ) * 61 AS col2, + 95 col1 FROM tab1, tab1 cor0
----
24156
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + 32, 59 col2 FROM tab2
----
109
59
83
59
99
59

query II rowsort
SELECT col2 + + - col2 AS col1, 93 AS col2 FROM tab1
----
0
93
0
93
0
93

query I rowsort
SELECT 72 + + - col0 FROM tab2
----
-3
26
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8013
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( + - col0 * - CAST( + col2 AS SIGNED ), + col0 )
----

skipif mysql # not compatible
query I rowsort label-8013
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( + - col0 * - CAST ( + col2 AS INTEGER ), + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8014
SELECT DISTINCT CAST( - 91 AS SIGNED ) + - col2 AS col2 FROM tab2
----
-114
-131
-149

skipif mysql # not compatible
query I rowsort label-8014
SELECT DISTINCT CAST ( - 91 AS INTEGER ) + - col2 AS col2 FROM tab2
----
-114
-131
-149

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8015
SELECT 34 + 26 AS col0, + col1 * - CAST( NULL AS SIGNED ) FROM tab1
----
60
NULL
60
NULL
60
NULL

skipif mysql # not compatible
query II rowsort label-8015
SELECT 34 + 26 AS col0, + col1 * - CAST ( NULL AS INTEGER ) FROM tab1
----
60
NULL
60
NULL
60
NULL

query I rowsort
SELECT ALL + col1 * - col0 + + 9 FROM tab1
----
-416
-4268
-705

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8017
SELECT DISTINCT - col0 * - col0 - + - CAST( - + CAST( NULL AS DECIMAL ) AS SIGNED ) + - col0 * col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8017
SELECT DISTINCT - col0 * - col0 - + - CAST ( - + CAST ( NULL AS REAL ) AS INTEGER ) + - col0 * col1 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - + col0 + + 1 col1 FROM tab1 AS cor0
----
-143
-146
-158

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IN ( + 51 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8020
SELECT + COUNT( * ), - 30 AS col1 FROM tab2 AS cor0 WHERE + col1 IS NULL
----
0
-30

skipif mysql # not compatible
query II rowsort label-8020
SELECT + COUNT ( * ), - 30 AS col1 FROM tab2 AS cor0 WHERE + col1 IS NULL
----
0
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT DISTINCT - 58 + - - 15 * COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-8021
SELECT DISTINCT - 58 + - - 15 * COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8022
SELECT CAST( col1 AS SIGNED ) + - 75 FROM tab2 AS cor0
----
-24
-8
2

skipif mysql # not compatible
query I rowsort label-8022
SELECT CAST ( col1 AS INTEGER ) + - 75 FROM tab2 AS cor0
----
-24
-8
2

query II rowsort
SELECT ALL col1, + col2 * + + col0 AS col1 FROM tab0 AS cor0
----
1
9603
21
870
81
705

query II rowsort
SELECT DISTINCT + - col1 AS col1, col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT DISTINCT + + MIN( DISTINCT 51 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8025
SELECT DISTINCT + + MIN ( DISTINCT 51 ) AS col2 FROM tab2 AS cor0
----
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= - col1 * + col1
----

query II rowsort
SELECT 2 AS col0, - col1 FROM tab2
----
2
-51
2
-67
2
-77

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 NOT BETWEEN + col0 AND ( - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT ALL + SUM( DISTINCT - + col1 ) col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8029
SELECT ALL + SUM ( DISTINCT - + col1 ) col1 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT ALL COUNT( col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8030
SELECT ALL COUNT ( col0 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8031
SELECT ALL * FROM tab2 cor0 WHERE NOT + CAST( NULL AS DECIMAL ) BETWEEN ( + + col0 ) AND + 57 - 15
----

skipif mysql # not compatible
query III rowsort label-8031
SELECT ALL * FROM tab2 cor0 WHERE NOT + CAST ( NULL AS REAL ) BETWEEN ( + + col0 ) AND + 57 - 15
----

query I rowsort
SELECT DISTINCT + 32 * + - 71 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-2272

query II rowsort
SELECT ALL 74, col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
74
10
74
47
74
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 34 * - 60 IS NOT NULL
----

query I rowsort
SELECT 52 + 63 AS col1 FROM tab2 AS cor0
----
115
115
115

query II rowsort
SELECT DISTINCT col0 * - + 46, col1 FROM tab2 AS cor0
----
-2116
51
-2944
77
-3450
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8037
SELECT ALL CAST( NULL AS SIGNED ) + col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8037
SELECT ALL CAST ( NULL AS INTEGER ) + col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 90 * + 96 )
----

query II rowsort
SELECT - col2 AS col1, - 6 FROM tab2
----
-23
-6
-40
-6
-58
-6

query I rowsort
SELECT ALL 49 * - - col2 + + + 6 + - 1 + 0 AS col2 FROM tab2
----
1132
1965
2847

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT DISTINCT + COUNT( * ) + + 73 AS col2 FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-8042
SELECT DISTINCT + COUNT ( * ) + + 73 AS col2 FROM tab2
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-8043
SELECT - col1 DIV - 23 + 56 AS col1 FROM tab2 AS cor0
----
58
58
59

skipif mysql # not compatible
query I rowsort label-8043
SELECT - col1 / - 23 + 56 AS col1 FROM tab2 AS cor0
----
58
58
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT DISTINCT 33 - - + COUNT( * ) FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-8044
SELECT DISTINCT 33 - - + COUNT ( * ) FROM tab2 AS cor0
----
36

query I rowsort
SELECT + + col2 + - 16 AS col0 FROM tab0 AS cor0
----
-6
31
83

onlyif mysql # DIV for integer division: 
query I rowsort label-8046
SELECT ALL - - 13 DIV col2 + + 28 + col1 * + - col1 * - + 77 AS col1 FROM tab1 AS cor0
----
15120
170121
1953

skipif mysql # not compatible
query I rowsort label-8046
SELECT ALL - - 13 / col2 + + 28 + col1 * + - col1 * - + 77 AS col1 FROM tab1 AS cor0
----
15120
170121
1953

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col0 / col2 IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8048
SELECT DISTINCT + COUNT( * ) DIV 72 AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8048
SELECT DISTINCT + COUNT ( * ) / 72 AS col2 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL - 55 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8050
SELECT - 32 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8050
SELECT - 32 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 * + + col2 * + col1 col1 FROM tab0
----
18690
338823
8811

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8052
SELECT CAST( + col2 AS SIGNED ) * - 53 AS col2 FROM tab1 AS cor0
----
-3127
-3604
-5088

skipif mysql # not compatible
query I rowsort label-8052
SELECT CAST ( + col2 AS INTEGER ) * - 53 AS col2 FROM tab1 AS cor0
----
-3127
-3604
-5088

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 80 AND - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8054
SELECT - 19, 39 DIV + col2 * + - 26 * col0 AS col1 FROM tab1
----
-19
0
-19
0
-19
0

skipif mysql # not compatible
query II rowsort label-8054
SELECT - 19, 39 / + col2 * + - 26 * col0 AS col1 FROM tab1
----
-19
0
-19
0
-19
0

query I rowsort
SELECT - col0 * - col0 FROM tab0 WHERE NOT + 36 IS NOT NULL
----

query I rowsort
SELECT col1 * + - ( col0 ) FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT col0 * 36 * + + 82 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8058
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * 47 * + CAST( NULL AS SIGNED ) + + - col2 <= NULL
----

skipif mysql # not compatible
query III rowsort label-8058
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * 47 * + CAST ( NULL AS INTEGER ) + + - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT DISTINCT + COUNT( DISTINCT + col1 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8059
SELECT DISTINCT + COUNT ( DISTINCT + col1 ) FROM tab2 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 69 + + 2 IN ( + + col0, - col1 + + 9, + + 88 * - col1, + 17 * - - 12, 63 + ( - + col1 ), col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT ( - - ( COUNT( * ) ) ) * - 27 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8061
SELECT ( - - ( COUNT ( * ) ) ) * - 27 FROM tab1 AS cor0
----
-81

query I rowsort
SELECT ALL - 71 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT ALL + COUNT( * ) + - MAX( - - col0 ) * 71 FROM tab0
----
-6884

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL + COUNT ( * ) + - MAX ( - - col0 ) * 71 FROM tab0
----
-6884

query II rowsort
SELECT ALL + col1, 70 * + ( col2 ) * + 16 + + - col1 FROM tab0
----
1
110879
21
11179
81
52559

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab0 cor0 WHERE - col0 = col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 79 / - 13 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 29 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8069
SELECT DISTINCT + col0 * CAST( + + col2 AS SIGNED ) * + 57 * col2 FROM tab1 AS cor0
----
16865445
23984688
26790912

skipif mysql # not compatible
query I rowsort label-8069
SELECT DISTINCT + col0 * CAST ( + + col2 AS INTEGER ) * + 57 * col2 FROM tab1 AS cor0
----
16865445
23984688
26790912

query I rowsort
SELECT + ( - - ( - + 11 ) ) + - col0 FROM tab1
----
-102
-62
-96

query II rowsort
SELECT + 19 + + col1 AS col1, 43 AS col0 FROM tab0 WHERE - + 50 IS NOT NULL
----
100
43
20
43
40
43

query I rowsort
SELECT + 73 FROM tab1 WHERE col2 IS NOT NULL
----
73
73
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 + - + 41 col1 FROM tab2
----
33
76
84

query I rowsort
SELECT - 27 + + 57 AS col2 FROM tab0
----
30
30
30

query I rowsort
SELECT + 7 * + col2 FROM tab2
----
161
280
406

query I rowsort
SELECT DISTINCT - col2 + + col1 * - col2 AS col0 FROM tab1
----
-1440
-3264
-354

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT DISTINCT + COUNT( * ) + 21 AS col2 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-8077
SELECT DISTINCT + COUNT ( * ) + 21 AS col2 FROM tab2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT DISTINCT - - 19 + COUNT( ALL col2 ) AS col2 FROM tab2 cor0
----
22

skipif mysql # not compatible
query I rowsort label-8078
SELECT DISTINCT - - 19 + COUNT ( ALL col2 ) AS col2 FROM tab2 cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT + - COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 34 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8079
SELECT + - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 34 AND NULL
----
0

query II rowsort
SELECT col1 - + col2 AS col1, + col2 + + 58 * - col1 AS col0 FROM tab2 AS cor0
----
28
-2935
37
-4426
9
-3828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8081
SELECT + AVG ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8081
SELECT + AVG ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT ALL + col2 - + - ( col0 ) FROM tab2 AS cor0
----
104
133
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8083
SELECT ALL col1 - + CAST( NULL AS DECIMAL ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8083
SELECT ALL col1 - + CAST ( NULL AS REAL ) col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8084
SELECT DISTINCT col1 * - ( - - col1 ) AS col1, - col2 DIV + col1 FROM tab2
----
-2601
0
-4489
0
-5929
0

skipif mysql # not compatible
query II rowsort label-8084
SELECT DISTINCT col1 * - ( - - col1 ) AS col1, - col2 / + col1 FROM tab2
----
-2601
0
-4489
0
-5929
0

query II rowsort
SELECT DISTINCT 45, col0 FROM tab0
----
45
15
45
87
45
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8086
SELECT 4 DIV - COUNT( * ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8086
SELECT 4 / - COUNT ( * ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT DISTINCT + MAX( - 74 ) FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT + MAX ( - 74 ) FROM tab0 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT COUNT( DISTINCT 84 ) col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8088
SELECT COUNT ( DISTINCT 84 ) col0 FROM tab0 cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8089
SELECT + CAST( + 60 AS SIGNED ) * col0 * col0 AS col2 FROM tab2 AS cor0
----
126960
245760
337500

skipif mysql # not compatible
query I rowsort label-8089
SELECT + CAST ( + 60 AS INTEGER ) * col0 * col0 AS col2 FROM tab2 AS cor0
----
126960
245760
337500

onlyif mysql # DIV for integer division: 
query I rowsort label-8090
SELECT + - col2 DIV + 50 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8090
SELECT + - col2 / + 50 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query II rowsort
SELECT - - 77 AS col1, 51 FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col0, col2 FROM tab2 WHERE col2 < + col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + + 27 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT + COUNT( * ) col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8095
SELECT + COUNT ( * ) col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 + - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + ( + 70 ) FROM tab1 AS cor0
----
70

query I rowsort
SELECT DISTINCT + 10 + + col2 * ( - 10 ) * + + ( col2 ) AS col0 FROM tab2 AS cor0
----
-15990
-33630
-5280

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT - ( + - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8099
SELECT - ( + - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + + 41 * - - col1 FROM tab2 AS cor0
----
2091
2747
3157

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + ( - - col0 ) / col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 * col0 col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 WHERE NOT - + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT DISTINCT COUNT( * ) - 7 col2 FROM tab2
----
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8104
SELECT DISTINCT COUNT ( * ) - 7 col2 FROM tab2
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 11 col2 FROM tab0
----
11
11
11

query II rowsort
SELECT ALL + col1, col0 * - + 67 FROM tab0
----
1
-6499
21
-5829
81
-1005

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT ALL COUNT( ALL + + 36 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL COUNT ( ALL + + 36 ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8108
SELECT - col0 + CAST( + col2 AS SIGNED ) FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-8108
SELECT - col0 + CAST ( + col2 AS INTEGER ) FROM tab2
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT + ( - 7 ) + - ( - + COUNT( * ) ) + + SUM( DISTINCT + 0 ) FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-8109
SELECT + ( - 7 ) + - ( - + COUNT ( * ) ) + + SUM ( DISTINCT + 0 ) FROM tab0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8110
SELECT ALL CAST( NULL AS SIGNED ) col1, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8110
SELECT ALL CAST ( NULL AS INTEGER ) col1, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT DISTINCT - col1 + + col0 + - col1 AS col2 FROM tab1
----
-3
23
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8112
SELECT ALL - col0 AS col2 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * - col2 IS NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8112
SELECT ALL - col0 AS col2 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - col2 IS NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8113
SELECT * FROM tab2 AS cor0 WHERE 65 + col1 NOT BETWEEN 6 + - col0 + + 76 AND - col0 + + CAST( NULL AS SIGNED ) * - ( 15 ) * CAST( ( 78 ) AS SIGNED ) * - 49
----

skipif mysql # not compatible
query III rowsort label-8113
SELECT * FROM tab2 AS cor0 WHERE 65 + col1 NOT BETWEEN 6 + - col0 + + 76 AND - col0 + + CAST ( NULL AS INTEGER ) * - ( 15 ) * CAST ( ( 78 ) AS INTEGER ) * - 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT DISTINCT - - COUNT( + col2 ) FROM tab2 cor0 WHERE 36 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT - - COUNT ( + col2 ) FROM tab2 cor0 WHERE 36 IS NOT NULL
----
3

query I rowsort
SELECT + col0 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT + + 19 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8117
SELECT col2 * + - 37 AS col0, + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
-1480
NULL
-2146
NULL
-851
NULL

skipif mysql # not compatible
query II rowsort label-8117
SELECT col2 * + - 37 AS col0, + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
-1480
NULL
-2146
NULL
-851
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8118
SELECT SUM( - CAST( NULL AS SIGNED ) ) * + 57 + COUNT( * ) - - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8118
SELECT SUM ( - CAST ( NULL AS INTEGER ) ) * + 57 + COUNT ( * ) - - COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8119
SELECT ALL + 58 DIV - - col1 col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8119
SELECT ALL + 58 / - - col1 col1 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT SUM( + col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8120
SELECT SUM ( + col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE + 0 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT ALL - COUNT( * ) FROM tab1 WHERE NULL NOT BETWEEN + col1 + col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NULL NOT BETWEEN + col1 + col1 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8123
SELECT CAST( - ( - - 68 ) AS SIGNED ) AS col1, - 60 * col2 FROM tab2
----
-68
-1380
-68
-2400
-68
-3480

skipif mysql # not compatible
query II rowsort label-8123
SELECT CAST ( - ( - - 68 ) AS INTEGER ) AS col1, - 60 * col2 FROM tab2
----
-68
-1380
-68
-2400
-68
-3480

query I rowsort
SELECT ALL 30 * - + col0 FROM tab2
----
-1380
-1920
-2250

query I rowsort
SELECT 65 + - 95 AS col2 FROM tab1
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT + ( - 15 ) + + MIN( + + col2 ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-8126
SELECT + ( - 15 ) + + MIN ( + + col2 ) FROM tab2 AS cor0
----
8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + col0 + + 24 / - - 39 = NULL
----

query I rowsort
SELECT DISTINCT + - ( + col0 ) FROM tab0 cor0
----
-15
-87
-97

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NOT NULL IS NULL )
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT ALL - - COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL - - COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND - 68
----

query I rowsort
SELECT ALL ( - 51 ) AS col0 FROM tab2 cor0
----
-51
-51
-51

query I rowsort
SELECT DISTINCT - + col2 * - 60 + + col2 + - 29 FROM tab1 AS cor0
----
3570
4119
5827

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT DISTINCT - SUM( ALL col0 ) + - - 61 AS col0 FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-8134
SELECT DISTINCT - SUM ( ALL col0 ) + - - 61 AS col0 FROM tab0 AS cor0
----
-138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8135
SELECT ALL COUNT( * ) - - 99 DIV 11 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8135
SELECT ALL COUNT ( * ) - - 99 / 11 FROM tab1 AS cor0
----
12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8136
SELECT 0 DIV - 36 + - CAST( col0 AS SIGNED ) * - - col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-8136
SELECT 0 / - 36 + - CAST ( col0 AS INTEGER ) * - - col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8137
SELECT ALL + - COUNT( * ) DIV 85 + + SUM( ALL + ( col2 ) ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-8137
SELECT ALL + - COUNT ( * ) / 85 + + SUM ( ALL + ( col2 ) ) AS col2 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT DISTINCT ( COUNT( ALL 5 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8138
SELECT DISTINCT ( COUNT ( ALL 5 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8139
SELECT - 36 + ( - + CAST( + col1 AS SIGNED ) ) - + col1 + 64 AS col0 FROM tab1
----
-66
0
18

skipif mysql # not compatible
query I rowsort label-8139
SELECT - 36 + ( - + CAST ( + col1 AS INTEGER ) ) - + col1 + 64 AS col0 FROM tab1
----
-66
0
18

onlyif mysql # DIV for integer division: 
query I rowsort label-8140
SELECT + col2 DIV col0 + - col2 + ( + + col1 ) * + + 37 + - 86 AS col2 FROM tab2
----
1778
2335
2723

skipif mysql # not compatible
query I rowsort label-8140
SELECT + col2 / col0 + - col2 + ( + + col1 ) * + + 37 + - 86 AS col2 FROM tab2
----
1778
2335
2723

onlyif mysql # aggregate syntax: 
query II rowsort label-8141
SELECT ALL - COUNT( * ) + + SUM( - col1 ) AS col1, + COUNT( * ) FROM tab0
----
-106
3

skipif mysql # not compatible
query II rowsort label-8141
SELECT ALL - COUNT ( * ) + + SUM ( - col1 ) AS col1, + COUNT ( * ) FROM tab0
----
-106
3

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 93 > NULL
----

query II rowsort
SELECT + + col2 AS col2, 75 AS col1 FROM tab0 WHERE NULL IS NULL OR 51 + 31 IS NULL
----
10
75
47
75
99
75

query I rowsort
SELECT ALL col0 * + col1 * col1 AS col0 FROM tab2
----
119646
336675
379456

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * + + col1 AS col2 FROM tab1
----
1344
295
3196

query I rowsort
SELECT DISTINCT - 62 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-62

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 69
----

query II rowsort
SELECT - - col0 AS col2, - col0 * - 78 + + 43 * + 62 AS col1 FROM tab0 AS cor0
----
15
3836
87
9452
97
10232

query I rowsort
SELECT col2 * + 51 * - - col1 AS col0 FROM tab2 AS cor0
----
157080
198186
59823

query I rowsort
SELECT + + col2 * - col0 AS col0 FROM tab2 cor0
----
-1058
-2560
-4350

query II rowsort
SELECT ALL col0 AS col1, col0 + + 19 AS col0 FROM tab1 AS cor0
----
51
70
85
104
91
110

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT - - ( - COUNT( * ) ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8154
SELECT - - ( - COUNT ( * ) ) AS col2 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8155
SELECT - - CAST( NULL AS SIGNED ) * - + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8155
SELECT - - CAST ( NULL AS INTEGER ) * - + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 45 * 27 FROM tab2 AS cor0
----
1215
1215
1215

query I rowsort
SELECT 90 + + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 55 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8158
SELECT * FROM tab1 WHERE NOT ( ( - CAST( NULL AS SIGNED ) BETWEEN - - 84 AND NULL ) )
----

skipif mysql # not compatible
query III rowsort label-8158
SELECT * FROM tab1 WHERE NOT ( ( - CAST ( NULL AS INTEGER ) BETWEEN - - 84 AND NULL ) )
----

query I rowsort
SELECT DISTINCT + 58 FROM tab1 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL - col0 * - - col1 AS col2 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT - ( col1 ) * + + col1 AS col2 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8162
SELECT DISTINCT * FROM tab0 cor0 WHERE - CAST( - + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8162
SELECT DISTINCT * FROM tab0 cor0 WHERE - CAST ( - + col2 AS INTEGER ) IS NULL
----

query I rowsort
SELECT - + col0 / + - col2 AS col0 FROM tab0 AS cor0 WHERE col1 + + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT - MAX( ALL - 33 ) * + + 28 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
924

skipif mysql # not compatible
query I rowsort label-8164
SELECT - MAX ( ALL - 33 ) * + + 28 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8165
SELECT - - CAST( + 5 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-8165
SELECT - - CAST ( + 5 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8166
SELECT - COUNT( * ), - 78 AS col1 FROM tab2 AS cor0
----
-3
-78

skipif mysql # not compatible
query II rowsort label-8166
SELECT - COUNT ( * ), - 78 AS col1 FROM tab2 AS cor0
----
-3
-78

query II rowsort
SELECT + col2, + 4 FROM tab0 AS cor0
----
10
4
47
4
99
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8168
SELECT ALL - 41 + col1 + + + 15 + - 60 + col1 * 6 * - - CAST( col0 AS SIGNED ) AS col2, col2 FROM tab1 AS cor0
----
2469
59
25623
68
4212
96

skipif mysql # not compatible
query II rowsort label-8168
SELECT ALL - 41 + col1 + + + 15 + - 60 + col1 * 6 * - - CAST ( col0 AS INTEGER ) AS col2, col2 FROM tab1 AS cor0
----
2469
59
25623
68
4212
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT + MIN( DISTINCT + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8169
SELECT + MIN ( DISTINCT + col2 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT ALL col2 * ( - 75 ) + + col2 + + - 13 AS col1 FROM tab1 AS cor0
----
-4379
-5045
-7117

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 <= + col0
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8172
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) * - - col1 + CAST( - 15 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----

skipif mysql # not compatible
query I rowsort label-8172
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) * - - col1 + CAST ( - 15 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + col1 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - 23 + - col0 - + + col2 col0 FROM tab2 cor0
----
1201
460
816

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 BETWEEN NULL AND + + col0 * + col1 * - + col0
----

query I rowsort
SELECT - 45 * ( ( col2 ) ) AS col0 FROM tab1
----
-2655
-3060
-4320

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8178
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8178
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( col0 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8179
SELECT COUNT( * ) AS col0, - MIN( + col1 ) col2 FROM tab0
----
3
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8179
SELECT COUNT ( * ) AS col0, - MIN ( + col1 ) col2 FROM tab0
----
3
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8180
SELECT ALL MAX( ALL - col0 ) DIV SUM( ALL - col0 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL MAX ( ALL - col0 ) / SUM ( ALL - col0 ) AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8181
SELECT COUNT( * ) AS col0, + 60 FROM tab1
----
3
60

skipif mysql # not compatible
query II rowsort label-8181
SELECT COUNT ( * ) AS col0, + 60 FROM tab1
----
3
60

query I rowsort
SELECT ALL + col2 * - - col1 * + col1 AS col0 FROM tab2
----
237160
260362
59823

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8184
SELECT col1 - col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < - CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8184
SELECT col1 - col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < - CAST ( - col2 AS INTEGER )
----

query I rowsort
SELECT + - ( - 95 ) AS col0 FROM tab0 AS cor0
----
95
95
95

query I rowsort
SELECT - + col2 FROM tab2 AS cor0 WHERE NOT - col2 >= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8187
SELECT - col0 * col2 + CAST( + CAST( + ( col2 ) AS SIGNED ) AS SIGNED ) + - ( - 79 ) - + 52 FROM tab0 AS cor0
----
-631
-833
-9477

skipif mysql # not compatible
query I rowsort label-8187
SELECT - col0 * col2 + CAST ( + CAST ( + ( col2 ) AS INTEGER ) AS INTEGER ) + - ( - 79 ) - + 52 FROM tab0 AS cor0
----
-631
-833
-9477

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT DISTINCT + ( COUNT( * ) ) * + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8188
SELECT DISTINCT + ( COUNT ( * ) ) * + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8189
SELECT col1 DIV CAST( + col0 AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
47
65
75

skipif mysql # not compatible
query I rowsort label-8189
SELECT col1 / CAST ( + col0 AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0
----
47
65
75

query I rowsort
SELECT 76 + + + col1 FROM tab2
----
127
143
153

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8191
SELECT DISTINCT - col1 * - - CAST( - - ( + col2 ) AS SIGNED ) AS col1, - col0 AS col2 FROM tab0
----
-210
-87
-3807
-15
-99
-97

skipif mysql # not compatible
query II rowsort label-8191
SELECT DISTINCT - col1 * - - CAST ( - - ( + col2 ) AS INTEGER ) AS col1, - col0 AS col2 FROM tab0
----
-210
-87
-3807
-15
-99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT 99 + - COUNT( * ) - COUNT( * ) FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-8192
SELECT 99 + - COUNT ( * ) - COUNT ( * ) FROM tab1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT ALL COUNT( * ) * - 4 AS col2 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL COUNT ( * ) * - 4 AS col2 FROM tab2
----
-12

query I rowsort
SELECT ALL col0 + 93 AS col2 FROM tab1
----
144
178
184

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8195
SELECT CAST( col2 AS SIGNED ) * - 24 + - col2, col1 * col1 AS col1 FROM tab1
----
-1475
25
-1700
2209
-2400
196

skipif mysql # not compatible
query II rowsort label-8195
SELECT CAST ( col2 AS INTEGER ) * - 24 + - col2, col1 * col1 AS col1 FROM tab1
----
-1475
25
-1700
2209
-2400
196

query I rowsort
SELECT DISTINCT - 91 * - col1 FROM tab1
----
1274
4277
455

query I rowsort
SELECT col2 + + - 0 FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT col0 + - - col0 * - col0 - + - col0 * + 10 FROM tab2
----
-1610
-3392
-4800

query I rowsort
SELECT DISTINCT + 64 + - col2 FROM tab0
----
-35
17
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - - col1 ) + + col2 col2 FROM tab2 cor0
----
117
125
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8201
SELECT DISTINCT - + 15 + + col2 DIV + 88 FROM tab1 AS cor0
----
-14
-15

skipif mysql # not compatible
query I rowsort label-8201
SELECT DISTINCT - + 15 + + col2 / + 88 FROM tab1 AS cor0
----
-14
-15

query I rowsort
SELECT DISTINCT + - 18 * ( + - col0 ) AS col0 FROM tab2 AS cor0
----
1152
1350
828

query I rowsort
SELECT 20 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8204
SELECT DISTINCT - COUNT( * ) DIV + 91 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN 92 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT - COUNT ( * ) / + 91 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN 92 AND NULL
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 56 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT - 15 * - SUM( + ( 60 ) ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8206
SELECT - 15 * - SUM ( + ( 60 ) ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT COUNT( * ) + - COUNT( * ) col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8207
SELECT COUNT ( * ) + - COUNT ( * ) col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + col1 - + + 46 FROM tab1 AS cor0
----
-32
-41
1

query I rowsort
SELECT + 72 + + ( + col1 ) FROM tab2 AS cor0
----
123
139
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 53 * - col0 * 69 + - col2 + 52 + col0 col2 FROM tab1 AS cor0
----
26421903
30283692
9511864

query I rowsort
SELECT 63 * - col2 - col0 * + col0 + - + 72 + + + col0 AS col0 FROM tab0 AS cor0
----
-15621
-3243
-8184

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 IN ( - col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8213
SELECT ALL 7 DIV + MIN( col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL 7 / + MIN ( col2 ) FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 87, col1 * - ( - 4 ) col0 FROM tab1
----
-87
188
-87
20
-87
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT - MAX( + + 57 ) AS col1 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-8215
SELECT - MAX ( + + 57 ) AS col1 FROM tab1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT ALL + SUM( DISTINCT col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-8216
SELECT ALL + SUM ( DISTINCT col1 ) AS col0 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT ALL + - 68 - - - COUNT( * ) AS col2 FROM tab1 WHERE NOT - ( 31 ) IS NULL
----
-71

skipif mysql # not compatible
query I rowsort label-8217
SELECT ALL + - 68 - - - COUNT ( * ) AS col2 FROM tab1 WHERE NOT - ( 31 ) IS NULL
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT ALL COUNT( * ) - + ( - 42 ) AS col2 FROM tab2, tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8218
SELECT ALL COUNT ( * ) - + ( - 42 ) AS col2 FROM tab2, tab1 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8219
SELECT DISTINCT + + CAST( + 18 AS SIGNED ) FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-8219
SELECT DISTINCT + + CAST ( + 18 AS INTEGER ) FROM tab1 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT - COUNT( * ) * - + COUNT( * ) + - + 55 FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8220
SELECT - COUNT ( * ) * - + COUNT ( * ) + - + 55 FROM tab1 AS cor0
----
-46

query I rowsort
SELECT + col1 * - - col1 * ( + col0 ) AS col0 FROM tab2 cor0
----
119646
336675
379456

query II rowsort
SELECT + col1, + 83 AS col2 FROM tab1 AS cor0
----
14
83
47
83
5
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8223
SELECT ALL col1 * + - col1 AS col0 FROM tab2 cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8223
SELECT ALL col1 * + - col1 AS col0 FROM tab2 cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8224
SELECT - 75 AS col2, - col1 DIV + - col0 + - - 68 col0 FROM tab2 cor0
----
-75
68
-75
69
-75
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8224
SELECT - 75 AS col2, - col1 / + - col0 + - - 68 col0 FROM tab2 cor0
----
-75
68
-75
69
-75
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8225
SELECT DISTINCT * FROM tab0 WHERE NOT col0 + - CAST( NULL AS SIGNED ) IN ( 95 + + 7 )
----

skipif mysql # not compatible
query III rowsort label-8225
SELECT DISTINCT * FROM tab0 WHERE NOT col0 + - CAST ( NULL AS INTEGER ) IN ( 95 + + 7 )
----

query I rowsort
SELECT + ( 46 ) AS col1 FROM tab2 WHERE NOT - col1 >= + ( + col1 ) * - 22
----

query I rowsort
SELECT + col0 + 3 FROM tab0
----
100
18
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT COUNT( * ) + + 16 AS col0 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-8228
SELECT COUNT ( * ) + + 16 AS col0 FROM tab2
----
19

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 * 43 ) > NULL
----

query I rowsort
SELECT 5 * - ( - col0 * + col1 ) AS col2 FROM tab1
----
2125
21385
3570

query I rowsort
SELECT DISTINCT + 15 - col2 FROM tab0
----
-32
-84
5

query I rowsort
SELECT DISTINCT col1 * - 1 AS col0 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 ) NOT IN ( 89 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 72 FROM tab1 WHERE 77 IS NOT NULL
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT + ( COUNT( * ) ) FROM tab2 WHERE NOT + ( col2 ) + + col2 * col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8235
SELECT + ( COUNT ( * ) ) FROM tab2 WHERE NOT + ( col2 ) + + col2 * col0 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - 76 * + col1 + col0 * - col1 AS col2 FROM tab0
----
-173
-3423
-7371

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8237
SELECT CAST( ( 15 ) AS SIGNED ) * - ( - 72 ) + 25 FROM tab2
----
1105
1105
1105

skipif mysql # not compatible
query I rowsort label-8237
SELECT CAST ( ( 15 ) AS INTEGER ) * - ( - 72 ) + 25 FROM tab2
----
1105
1105
1105

query I rowsort
SELECT 36 AS col2 FROM tab1 WHERE ( - col2 ) > ( col0 - 9 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 ) > + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 - + ( col1 ) = col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8241
SELECT DISTINCT - col1 * - CAST( col1 AS SIGNED ) col2 FROM tab2
----
2601
4489
5929

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8241
SELECT DISTINCT - col1 * - CAST ( col1 AS INTEGER ) col2 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT - col2 - 21 AS col0 FROM tab0
----
-120
-31
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-8243
SELECT ALL 45 DIV col1 col0 FROM tab2 WHERE NOT 4 BETWEEN NULL AND - 45
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8243
SELECT ALL 45 / col1 col0 FROM tab2 WHERE NOT 4 BETWEEN NULL AND - 45
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * - 16 NOT BETWEEN ( - col0 * col2 + 65 ) AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 86 + 26 FROM tab2 AS cor0
----
112
112
112

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN NULL AND col1 / col0
----
0

skipif mysql # not compatible
query I rowsort label-8246
SELECT COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN NULL AND col1 / col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) + 26 col1 FROM tab2 AS cor0
----
101
72
90

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 72 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT DISTINCT MIN( ALL 50 ) * + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
450

skipif mysql # not compatible
query I rowsort label-8249
SELECT DISTINCT MIN ( ALL 50 ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
450

query I rowsort
SELECT DISTINCT 2 * + ( + ( - 41 ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2
----
-82

query I rowsort
SELECT DISTINCT + 19 + col0 AS col1 FROM tab1
----
104
110
70

onlyif mysql # DIV for integer division: 
query I rowsort label-8252
SELECT - ( + 41 ) DIV + 29 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8252
SELECT - ( + 41 ) / + 29 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - + col0 + col2 * - col2 FROM tab1 AS cor0
----
-3566
-4715
-9267

query I rowsort
SELECT - - col1 * col0 - - col2 AS col2 FROM tab1 AS cor0
----
4345
484
810

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT 51 - + COUNT( * ) AS col1 FROM tab0 cor0
----
48

skipif mysql # not compatible
query I rowsort label-8255
SELECT 51 - + COUNT ( * ) AS col1 FROM tab0 cor0
----
48

query I rowsort
SELECT + col0 - - col0 FROM tab2 AS cor0 WHERE NULL < + col2 / ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8257
SELECT + ( + col0 ) - col1 * - ( - 1 DIV - col2 - col2 ) FROM tab1 AS cor0
----
-1293
-210
-3105

skipif mysql # not compatible
query I rowsort label-8257
SELECT + ( + col0 ) - col1 * - ( - 1 / - col2 - col2 ) FROM tab1 AS cor0
----
-1293
-210
-3105

query I rowsort
SELECT ALL + col2 * + col2 + + ( - col2 + - col2 ) AS col0 FROM tab0 AS cor0
----
2115
80
9603

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col0 ) + - 34 * col0 < ( NULL )
----

query I rowsort
SELECT - 49 FROM tab2 AS cor0 WHERE NOT - col0 IN ( - col1 / + col1 )
----
-49
-49
-49

query I rowsort
SELECT 59 * 58 FROM tab0
----
3422
3422
3422

query III rowsort
SELECT * FROM tab1 WHERE NULL < 28 OR NOT - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT - MIN( DISTINCT - col1 ) + MAX( ALL - col0 ) AS col2 FROM tab2 WHERE + 23 NOT BETWEEN - col2 * + ( 38 ) + ( - col2 ) AND NULL OR NOT col2 * col2 BETWEEN + col2 * col0 AND ( NULL )
----
31

skipif mysql # not compatible
query I rowsort label-8263
SELECT - MIN ( DISTINCT - col1 ) + MAX ( ALL - col0 ) AS col2 FROM tab2 WHERE + 23 NOT BETWEEN - col2 * + ( 38 ) + ( - col2 ) AND NULL OR NOT col2 * col2 BETWEEN + col2 * col0 AND ( NULL )
----
31

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 + col1 AS col0 FROM tab2 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8266
SELECT ALL - + 91 / + - CAST( NULL AS SIGNED ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8266
SELECT ALL - + 91 / + - CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON ( NULL ) IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 74 * - 78 IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-8268
SELECT COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 74 * - 78 IS NULL
----
9

query II rowsort
SELECT col1 AS col2, + col1 * col1 AS col0 FROM tab0
----
1
1
21
441
81
6561

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT col2 * + 89 BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT DISTINCT - ( COUNT( * ) ) + + + MIN( col0 ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-8271
SELECT DISTINCT - ( COUNT ( * ) ) + + + MIN ( col0 ) FROM tab1
----
48

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col0 * col1 ) < NULL
----

query I rowsort
SELECT ALL col0 * 27 FROM tab2 AS cor0 WHERE NOT - col2 + + 33 NOT IN ( 77 / - 16 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT + 96 + - ( SUM( - ( 83 ) ) ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 AND ( + - col1 * + 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8274
SELECT + 96 + - ( SUM ( - ( 83 ) ) ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 AND ( + - col1 * + 8 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT ALL COUNT( * ) * - COUNT( * ) * - ( + COUNT( * ) ) + + 96 AS col1 FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-8275
SELECT ALL COUNT ( * ) * - COUNT ( * ) * - ( + COUNT ( * ) ) + + 96 AS col1 FROM tab0 AS cor0
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8276
SELECT * FROM tab2 cor0 WHERE + 43 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8276
SELECT * FROM tab2 cor0 WHERE + 43 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT 53, - col2 AS col2 FROM tab0 AS cor0
----
53
-10
53
-47
53
-99

query I rowsort
SELECT ALL + 0 * + 77 + + col1 + - 13 FROM tab1 cor0
----
-8
1
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8279
SELECT DISTINCT col0 AS col2, CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

skipif mysql # not compatible
query II rowsort label-8279
SELECT DISTINCT col0 AS col2, CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

query II rowsort
SELECT DISTINCT - 76 AS col0, - 40 FROM tab2 AS cor0
----
-76
-40

query I rowsort
SELECT 99 FROM tab2 WHERE NULL IS NULL
----
99
99
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col1 ) BETWEEN 82 + col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col0 + - 70 AS col0, col1 FROM tab2
----
-116
51
-134
77
-145
67

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 / - 66 NOT IN ( 3 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE ( 71 + col0 ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 * - 99 col2 FROM tab2
----
5072
6691
7663

query I rowsort
SELECT ALL + 24 + - col0 + + col1 * col2 FROM tab0 AS cor0 WHERE NULL >= + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 > ( + col1 )
----

query I rowsort
SELECT DISTINCT - - col2 + - ( + - col0 ) + + - col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8290
SELECT + ( + col1 ) - + + col1 DIV + col1 FROM tab2
----
50
66
76

skipif mysql # not compatible
query I rowsort label-8290
SELECT + ( + col1 ) - + + col1 / + col1 FROM tab2
----
50
66
76

query I rowsort
SELECT col2 FROM tab2 WHERE NOT + col0 * ( - ( col1 ) ) + + ( - 97 ) NOT IN ( + col1 * col1 ) OR NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8292
SELECT DISTINCT - CAST( - 92 AS SIGNED ) AS col2 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-8292
SELECT DISTINCT - CAST ( - 92 AS INTEGER ) AS col2 FROM tab1
----
92

query I rowsort
SELECT DISTINCT - 29 * - + col2 AS col1 FROM tab0 cor0
----
1363
2871
290

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT ALL - - COUNT( * ) * - 76 AS col1 FROM tab1 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-8294
SELECT ALL - - COUNT ( * ) * - 76 AS col1 FROM tab1 AS cor0
----
-228

query I rowsort
SELECT + - col0 * 59 * - col2 * - + col2 AS col1 FROM tab2 AS cor0
----
-1435706
-14885700
-6041600

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT DISTINCT - 6 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-8297
SELECT DISTINCT - 6 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-18

query I rowsort
SELECT DISTINCT + col0 * + 80 FROM tab1 AS cor0
----
4080
6800
7280

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT ALL COUNT( * ) * 86 FROM tab1
----
258

skipif mysql # not compatible
query I rowsort label-8299
SELECT ALL COUNT ( * ) * 86 FROM tab1
----
258

query I rowsort
SELECT DISTINCT + 17 * - 91 * col1 FROM tab2 WHERE NULL IS NULL
----
-103649
-119119
-78897

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL > NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8302
SELECT ALL COUNT( * ) * + 43 * - ( 31 ) col2, - 9 DIV 10 FROM tab2
----
-3999
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8302
SELECT ALL COUNT ( * ) * + 43 * - ( 31 ) col2, - 9 / 10 FROM tab2
----
-3999
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT MIN( ALL col0 ) * - - COUNT( * ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8303
SELECT MIN ( ALL col0 ) * - - COUNT ( * ) FROM tab0 AS cor0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8304
SELECT DISTINCT + ( + - CAST( - col2 AS SIGNED ) ) col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8304
SELECT DISTINCT + ( + - CAST ( - col2 AS INTEGER ) ) col1 FROM tab2 AS cor0
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab2 WHERE ( + col0 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8306
SELECT + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND col2 + - - 62
----

query I rowsort
SELECT ALL - col2 * - col0 + + + col1 FROM tab1 AS cor0
----
4910
5020
6235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8309
SELECT DISTINCT - ( + - col0 ) * CAST( - col0 AS SIGNED ) + - col2 FROM tab0 AS cor0
----
-272
-7579
-9508

skipif mysql # not compatible
query I rowsort label-8309
SELECT DISTINCT - ( + - col0 ) * CAST ( - col0 AS INTEGER ) + - col2 FROM tab0 AS cor0
----
-272
-7579
-9508

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT - - SUM( + col0 ) col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8310
SELECT - - SUM ( + col0 ) col0 FROM tab1 AS cor0
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8311
SELECT ALL col2 AS col1 FROM tab2 cor0 WHERE NOT CAST( col0 AS SIGNED ) BETWEEN col0 * - 35 + + + 46 + + 52 + col1 AND ( + 4 )
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8311
SELECT ALL col2 AS col1 FROM tab2 cor0 WHERE NOT CAST ( col0 AS INTEGER ) BETWEEN col0 * - 35 + + + 46 + + 52 + col1 AND ( + 4 )
----
23
40
58

query I rowsort
SELECT - - 78 * + col0 AS col1 FROM tab2 AS cor0
----
3588
4992
5850

query III rowsort
SELECT * FROM tab2 cor0 WHERE + ( + 35 ) > - 72
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col0 NOT BETWEEN NULL AND ( + 97 )
----

query I rowsort
SELECT + col0 * + 65 AS col0 FROM tab0 cor0
----
5655
6305
975

query I rowsort
SELECT ALL col0 * + - ( + 67 ) FROM tab2
----
-3082
-4288
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT ALL - SUM( + + col0 ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL - SUM ( + + col0 ) AS col0 FROM tab2
----
-185

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 48 NOT BETWEEN + - col1 * + col0 + - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8319
SELECT DISTINCT + 42 AS col1, MAX( + col0 ) FROM tab1
----
42
91

skipif mysql # not compatible
query II rowsort label-8319
SELECT DISTINCT + 42 AS col1, MAX ( + col0 ) FROM tab1
----
42
91

query I rowsort
SELECT ALL + - col0 AS col1 FROM tab0 WHERE col2 IS NULL
----

query I rowsort
SELECT + 60 + - 26 + col1 - 21 * - col2 FROM tab0
----
1102
2114
265

query III rowsort
SELECT * FROM tab0 WHERE - + col0 * + col2 BETWEEN - col1 AND NULL
----

query I rowsort
SELECT ALL + - 50 - + + col0 FROM tab2 cor0
----
-114
-125
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8324
SELECT - 19 FROM tab2 WHERE NOT ( col1 * + col2 BETWEEN NULL AND + CAST( - - 80 AS SIGNED ) )
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-8324
SELECT - 19 FROM tab2 WHERE NOT ( col1 * + col2 BETWEEN NULL AND + CAST ( - - 80 AS INTEGER ) )
----
-19
-19
-19

query I rowsort
SELECT - 26 * - - col0 * - 26 FROM tab0
----
10140
58812
65572

query I rowsort
SELECT DISTINCT 14 * + 36 FROM tab2
----
504

query I rowsort
SELECT col2 - + col1 AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-28
-37
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * 4 NOT IN ( - + 92 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 97 <= NULL
----

query I rowsort
SELECT ALL 76 * col1 AS col0 FROM tab0 AS cor0 WHERE ( + ( 48 ) ) * - col0 * + col2 <> + 36 - - 77 / ( 64 )
----
1596
6156
76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8331
SELECT CAST( - 57 AS SIGNED ) DIV + col0 AS col1, col0 DIV + col0 FROM tab2
----
-1
1
0
1
0
1

skipif mysql # not compatible
query II rowsort label-8331
SELECT CAST ( - 57 AS INTEGER ) / + col0 AS col1, col0 / + col0 FROM tab2
----
-1
1
0
1
0
1

query II rowsort
SELECT col0 AS col1, - col1 FROM tab0
----
15
-81
87
-21
97
-1

query II rowsort
SELECT col2, 47 AS col2 FROM tab1
----
59
47
68
47
96
47

query I rowsort
SELECT DISTINCT ( - + col1 ) FROM tab2
----
-51
-67
-77

query I rowsort
SELECT ALL col0 * + 38 FROM tab0
----
3306
3686
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, + 43 FROM tab0
----
1
43
21
43
81
43

query I rowsort
SELECT DISTINCT - 52 * - + 94 AS col1 FROM tab1
----
4888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8338
SELECT ALL + CAST( NULL AS SIGNED ) * - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8338
SELECT ALL + CAST ( NULL AS INTEGER ) * - col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT MIN( DISTINCT + + col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8339
SELECT MIN ( DISTINCT + + col0 ) FROM tab2
----
46

query I rowsort
SELECT + col2 + col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8341
SELECT DISTINCT + 25 DIV - - 50 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8341
SELECT DISTINCT + 25 / - - 50 AS col1 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > 7 - - 60 * col1 * - col2
----

query I rowsort
SELECT - 38 AS col2 FROM tab1 WHERE ( 85 ) >= + col2 + - - col1 + - col2
----
-38
-38
-38

query I rowsort
SELECT DISTINCT 84 * - ( + + col2 ) FROM tab0
----
-3948
-8316
-840

query I rowsort
SELECT - 3 + - - col2 * col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
3478
4621
9213

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + - 90 AND col2 * - col0
----

query I rowsort
SELECT DISTINCT + 29 * - col1 FROM tab1
----
-1363
-145
-406

query I rowsort
SELECT ALL ( - col1 ) + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + - ( - col2 ) * col2 * ( - 49 ) FROM tab2 cor0
----
-164911
-25967
-78464

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE col1 + + + col0 > - col0
----
51
85
91

query I rowsort
SELECT ALL 6 + + - col1 FROM tab1 AS cor0
----
-41
-8
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 90 < NULL AND col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * - 15 + - 47 AS col2 FROM tab0 AS cor0
----
1258
1408
178

query I rowsort
SELECT ALL - col2 - - + col2 + + - col0 - - col1 FROM tab0 cor0
----
-66
-96
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8355
SELECT ALL - CAST( NULL AS SIGNED ) / col1 AS col0, + 25 FROM tab1
----
NULL
25
NULL
25
NULL
25

skipif mysql # not compatible
query II rowsort label-8355
SELECT ALL - CAST ( NULL AS INTEGER ) / col1 AS col0, + 25 FROM tab1
----
NULL
25
NULL
25
NULL
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT COUNT( * ) + + - 42 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-8356
SELECT COUNT ( * ) + + - 42 FROM tab0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-8357
SELECT DISTINCT + col2 DIV + + 67 AS col2 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-8357
SELECT DISTINCT + col2 / + + 67 AS col2 FROM tab0
----
0
1

query I rowsort
SELECT col0 * ( - 4 ) * - col0 FROM tab1
----
10404
28900
33124

query II rowsort
SELECT + + col1 AS col0, col2 FROM tab1 WHERE NULL NOT IN ( 67 * - col2 * - 24, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT ALL ( MIN( - - col1 ) ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL ( MIN ( - - col1 ) ) AS col1 FROM tab1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8361
SELECT ALL + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) + + COUNT( DISTINCT - + 98 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + COUNT ( DISTINCT - + 98 ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8362
SELECT ALL * FROM tab1 WHERE NOT - col1 + ( - - CAST( 39 AS SIGNED ) ) BETWEEN - 51 * col0 * + - col1 AND col2 + - ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8362
SELECT ALL * FROM tab1 WHERE NOT - col1 + ( - - CAST ( 39 AS INTEGER ) ) BETWEEN - 51 * col0 * + - col1 AND col2 + - ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - col2 + + col1 + - 54 AS col1 FROM tab1 AS cor0
----
10
56
61

query I rowsort
SELECT ALL + - 61 - + + col2 AS col2 FROM tab1 AS cor0
----
-120
-129
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT DISTINCT + COUNT( * ) - + - 52 AS col1 FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-8365
SELECT DISTINCT + COUNT ( * ) - + - 52 AS col1 FROM tab1 AS cor0
----
55

query I rowsort
SELECT - 31 - + - 38 AS col0 FROM tab0 AS cor0
----
7
7
7

query I rowsort
SELECT ALL 41 + - 14 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 IN ( 34 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT ALL + - MAX( ALL - - col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8369
SELECT ALL + - MAX ( ALL - - col2 ) FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT ALL - SUM( DISTINCT - - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-8370
SELECT ALL - SUM ( DISTINCT - - col0 ) FROM tab1 AS cor0
----
-227

query II rowsort
SELECT ALL col0 AS col1, + 18 FROM tab0 AS cor0
----
15
18
87
18
97
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT - 2 * + COUNT( * ) AS col2 FROM tab1 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8372
SELECT - 2 * + COUNT ( * ) AS col2 FROM tab1 cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + 67 ) col1 FROM tab2 AS cor0
----
67
67
67

query I rowsort
SELECT + col1 * + col2 + + - 9 + - 9 AS col0 FROM tab2 AS cor0
----
1155
3062
3868

onlyif mysql # aggregate syntax: 
query II rowsort label-8375
SELECT - + SUM( + col1 ) * - COUNT( * ) AS col1, - 32 FROM tab1 AS cor0
----
198
-32

skipif mysql # not compatible
query II rowsort label-8375
SELECT - + SUM ( + col1 ) * - COUNT ( * ) AS col1, - 32 FROM tab1 AS cor0
----
198
-32

query I rowsort
SELECT ALL - - col2 * 43 FROM tab1 AS cor0
----
2537
2924
4128

query I rowsort
SELECT ALL + 55 FROM tab2 cor0 WHERE NOT + col2 * + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - + col2 / - 63 + - - col2 FROM tab1 AS cor0 WHERE NOT 43 * - col2 NOT IN ( - - col1, col0, + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8379
SELECT ( COUNT( * ) ) DIV - 42 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8379
SELECT ( COUNT ( * ) ) / - 42 AS col2 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 72 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * 20 FROM tab0
----
1620
20
420

query I rowsort
SELECT DISTINCT - - 91 * - 58 AS col0 FROM tab0 WHERE - 28 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT DISTINCT - MIN( 77 ) FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8383
SELECT DISTINCT - MIN ( 77 ) FROM tab1 AS cor0
----
-77

query I rowsort
SELECT ALL - col1 * - col1 * + - col1 AS col2 FROM tab0 AS cor0
----
-1
-531441
-9261

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8385
SELECT DISTINCT + MAX( - + col1 ) DIV + - 42 col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8385
SELECT DISTINCT + MAX ( - + col1 ) / + - 42 col1 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8386
SELECT DISTINCT col0 DIV - 49 AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8386
SELECT DISTINCT col0 / - 49 AS col2 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT 22 FROM tab2 WHERE 53 IS NOT NULL
----
22

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8388
SELECT ALL + CAST( 35 AS DECIMAL ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL + CAST ( 35 AS REAL ) + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 10 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 23 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT DISTINCT 92 - + - COUNT( * ) FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-8391
SELECT DISTINCT 92 - + - COUNT ( * ) FROM tab0 AS cor0
----
95

query I rowsort
SELECT col1 * + 1 * - ( + col1 ) FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-8393
SELECT COUNT( * ) AS col0, - COUNT( * ) FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-8393
SELECT COUNT ( * ) AS col0, - COUNT ( * ) FROM tab2 AS cor0
----
3
-3

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE + col2 <= - col2
----

query I rowsort
SELECT - 67 * - - col2 FROM tab1 AS cor0
----
-3953
-4556
-6432

query I rowsort
SELECT ALL + col2 * + col2 - - - col2 * - 4 FROM tab2 AS cor0
----
1760
3596
621

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 - - - col2 <= + 26
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( 65 ) AS col2 FROM tab0 AS cor0
----
65
65
65

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 93 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8400
SELECT DISTINCT ( 95 ) DIV MAX( + col1 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8400
SELECT DISTINCT ( 95 ) / MAX ( + col1 ) AS col0 FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8401
SELECT - 97 DIV 54 + col2 * - + col2 col1 FROM tab0
----
-101
-2210
-9802

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8401
SELECT - 97 / 54 + col2 * - + col2 col1 FROM tab0
----
-101
-2210
-9802

query I rowsort
SELECT - col0 + + 14 FROM tab1
----
-37
-71
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, col2 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT ALL + col1 * col1 + + - 94 - - col0 FROM tab2
----
2553
4470
5899

query II rowsort
SELECT DISTINCT - col1, + col1 FROM tab2
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT ALL COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8406
SELECT ALL COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8407
SELECT + 69 AS col2, SUM( - ( 12 ) ) FROM tab2 AS cor0
----
69
-36

skipif mysql # not compatible
query II rowsort label-8407
SELECT + 69 AS col2, SUM ( - ( 12 ) ) FROM tab2 AS cor0
----
69
-36

query II rowsort
SELECT DISTINCT - - col1, col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT DISTINCT + ( - ( - col2 ) ) FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + + col1 - + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8411
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, + col0 + + col0 FROM tab1 AS cor0
----
51
102
85
170
91
182

query II rowsort
SELECT + + col2 * - col0 AS col1, col0 FROM tab2 AS cor0
----
-1058
46
-2560
64
-4350
75

query I rowsort
SELECT 49 * - - col2 AS col2 FROM tab0 AS cor0
----
2303
4851
490

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8415
SELECT ALL + ( + 4 ) + CAST( - ( - col2 ) AS SIGNED ) FROM tab2 cor0 WHERE NOT + 53 IS NULL
----
27
44
62

skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL + ( + 4 ) + CAST ( - ( - col2 ) AS INTEGER ) FROM tab2 cor0 WHERE NOT + 53 IS NULL
----
27
44
62

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 <= + col1 * + + col2 + + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < - 73 / + col0 - + ( - 49 ) * - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col1 / - col2, col1 + 66, - 63 )
----

query I rowsort
SELECT ALL ( + ( - col0 ) ) AS col2 FROM tab2
----
-46
-64
-75

query II rowsort
SELECT col2 + + + 28 + + + col1 * + col1, 70 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + 25 * - 99 * ( + col1 ) AS col1 FROM tab1
----
-116325
-12375
-34650

query I rowsort
SELECT + + col1 FROM tab2 WHERE NOT ( NOT + 39 * - ( + col2 ) IS NOT NULL )
----
51
67
77

query I rowsort
SELECT col2 + - 76 AS col0 FROM tab1
----
-17
-8
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8424
SELECT CAST( 68 AS SIGNED ) + - col2 + + col1 + + - 99 FROM tab0
----
-129
-20
3

skipif mysql # not compatible
query I rowsort label-8424
SELECT CAST ( 68 AS INTEGER ) + - col2 + + col1 + + - 99 FROM tab0
----
-129
-20
3

query I rowsort
SELECT col1 + - col2 - + 15 FROM tab0
----
-113
-4
19

query I rowsort
SELECT + 26 FROM tab1, tab0 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT DISTINCT col0 + 33 FROM tab1
----
118
124
84

query I rowsort
SELECT DISTINCT + col1 + + 78 AS col1 FROM tab1 cor0
----
125
83
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8429
SELECT ALL + CAST( CAST( 48 AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-8429
SELECT ALL + CAST ( CAST ( 48 AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT DISTINCT - 70 * + COUNT( * ) FROM tab1 cor0
----
-210

skipif mysql # not compatible
query I rowsort label-8430
SELECT DISTINCT - 70 * + COUNT ( * ) FROM tab1 cor0
----
-210

query I rowsort
SELECT col0 * + col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
425
4277
714

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8432
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= + CAST( ( - col0 ) AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8432
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= + CAST ( ( - col0 ) AS REAL )
----

query II rowsort
SELECT ALL col2 AS col1, col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + col1 col0 FROM tab2 AS cor0
----
2601
4489
5929

query III rowsort
SELECT * FROM tab1 WHERE NULL IS NULL AND NULL IN ( - col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT - col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NULL = - 26 - + col1 * + 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT + - COUNT( * ) + MAX( - col1 ) * - MIN( - col1 ) FROM tab2 AS cor0
----
-3930

skipif mysql # not compatible
query I rowsort label-8438
SELECT + - COUNT ( * ) + MAX ( - col1 ) * - MIN ( - col1 ) FROM tab2 AS cor0
----
-3930

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN - 83 + col1 AND - col2 * - - 60
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + + 55 FROM tab0 AS cor0
----
102
154
65

query I rowsort
SELECT ALL - 16 - + col2 AS col2 FROM tab1 AS cor0
----
-112
-75
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8443
SELECT + CAST( + + MIN( ALL + col2 ) AS SIGNED ) FROM tab2 WHERE NOT - col1 * + col2 * - 10 >= + + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8443
SELECT + CAST ( + + MIN ( ALL + col2 ) AS INTEGER ) FROM tab2 WHERE NOT - col1 * + col2 * - 10 >= + + col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8444
SELECT * FROM tab1 WHERE NOT NULL >= - + 82 / + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8444
SELECT * FROM tab1 WHERE NOT NULL >= - + 82 / + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8445
SELECT - CAST( NULL AS SIGNED ) / col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8445
SELECT - CAST ( NULL AS INTEGER ) / col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8446
SELECT ALL + CAST( 9 AS SIGNED ) FROM tab0, tab2 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

skipif mysql # not compatible
query I rowsort label-8446
SELECT ALL + CAST ( 9 AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NOT ( + - 17 ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + - 46 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT - 45 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

query II rowsort
SELECT ALL - 16, + 64 AS col0 FROM tab0
----
-16
64
-16
64
-16
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8451
SELECT ALL col1 DIV + ( - + ( + 21 ) ) + col2 col1 FROM tab0 AS cor0
----
44
9
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8451
SELECT ALL col1 / + ( - + ( + 21 ) ) + col2 col1 FROM tab0 AS cor0
----
44
9
99

query I rowsort
SELECT + 91 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT - 38 AS col0, 36 AS col0 FROM tab2 AS cor0
----
-38
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT - MAX( - - col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8454
SELECT - MAX ( - - col0 ) AS col2 FROM tab0 AS cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8455
SELECT + col2 * - CAST( NULL AS SIGNED ) + - col0 + - + col2 / - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8455
SELECT + col2 * - CAST ( NULL AS INTEGER ) + - col0 + - + col2 / - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT + + MIN( DISTINCT + - ( + col1 ) ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8456
SELECT + + MIN ( DISTINCT + - ( + col1 ) ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT ( - 46 ) AS col2 FROM tab0 AS cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8458
SELECT * FROM tab2 cor0 WHERE NOT CAST( NULL AS SIGNED ) * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8458
SELECT * FROM tab2 cor0 WHERE NOT CAST ( NULL AS INTEGER ) * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + - ( + 0 ) ) AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE + col2 * col0 - - 73 >= + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT DISTINCT + COUNT( DISTINCT ( col0 ) ) + + - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8461
SELECT DISTINCT + COUNT ( DISTINCT ( col0 ) ) + + - COUNT ( * ) FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 9 + + 84 - 56 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ( + col0 ) AS col2, col1 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query II rowsort label-8464
SELECT DISTINCT COUNT( * ) + + COUNT( * ) AS col1, 51 * 88 FROM tab0 AS cor0
----
6
4488

skipif mysql # not compatible
query II rowsort label-8464
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) AS col1, 51 * 88 FROM tab0 AS cor0
----
6
4488

query I rowsort
SELECT + 24 * - + col0 + + col0 AS col0 FROM tab0 AS cor0
----
-2001
-2231
-345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8466
SELECT MIN( + + CAST( col2 AS SIGNED ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8466
SELECT MIN ( + + CAST ( col2 AS INTEGER ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + col0 * - 56 + col1 FROM tab0 AS cor0
----
-4851
-5431
-759

query II rowsort
SELECT + 72 + 99 AS col0, col2 FROM tab0 AS cor0
----
171
10
171
47
171
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8469
SELECT COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT + COUNT( DISTINCT - + col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8470
SELECT + COUNT ( DISTINCT - + col1 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 7 + + 2 - col1 * + col1 AS col0 FROM tab2 AS cor0
----
-2606
-4494
-5934

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8472
SELECT DISTINCT - col2, ( - 57 ) AS col1 FROM tab2 cor0 WHERE 68 <= - + col2 * + - CAST( + 88 AS SIGNED )
----
-23
-57
-40
-57
-58
-57

skipif mysql # not compatible
query II rowsort label-8472
SELECT DISTINCT - col2, ( - 57 ) AS col1 FROM tab2 cor0 WHERE 68 <= - + col2 * + - CAST ( + 88 AS INTEGER )
----
-23
-57
-40
-57
-58
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT + SUM( ALL - 34 ) AS col0 FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-8473
SELECT + SUM ( ALL - 34 ) AS col0 FROM tab2 AS cor0
----
-102

query I rowsort
SELECT col2 * col2 + - col0 - + col0 * + 99 FROM tab0 AS cor0
----
-8600
101
709

onlyif mysql # aggregate syntax: 
query II rowsort label-8475
SELECT - MAX( ALL - col0 ) AS col1, + 72 FROM tab1 cor0 WHERE NULL IS NULL
----
51
72

skipif mysql # not compatible
query II rowsort label-8475
SELECT - MAX ( ALL - col0 ) AS col1, + 72 FROM tab1 cor0 WHERE NULL IS NULL
----
51
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT - - 38 - + COUNT( ALL col2 ) FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-8476
SELECT - - 38 - + COUNT ( ALL col2 ) FROM tab1 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT DISTINCT - 99 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8477
SELECT DISTINCT - 99 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8478
SELECT + CAST( NULL AS SIGNED ) - + col1 + 65 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8478
SELECT + CAST ( NULL AS INTEGER ) - + col1 + 65 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 3 * - + col1 - + + col1 AS col1 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # DIV for integer division: 
query I rowsort label-8480
SELECT DISTINCT + col1 DIV col2 * col0 + - 87 + + col0 FROM tab1 AS cor0
----
-2
-36
4

skipif mysql # not compatible
query I rowsort label-8480
SELECT DISTINCT + col1 / col2 * col0 + - 87 + + col0 FROM tab1 AS cor0
----
-2
-36
4

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 79 + + 24 IS NULL AND NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT ALL MIN( + col2 ) - - 31 * + + 58 - - 47 AS col0 FROM tab2 AS cor0
----
1868

skipif mysql # not compatible
query I rowsort label-8482
SELECT ALL MIN ( + col2 ) - - 31 * + + 58 - - 47 AS col0 FROM tab2 AS cor0
----
1868

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8483
SELECT ALL + col0 + + - col2 + CAST( + col0 AS SIGNED ) AS col1 FROM tab0 cor0
----
-17
164
95

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL + col0 + + - col2 + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 cor0
----
-17
164
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8484
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN CAST( - col1 AS SIGNED ) AND - - col1
----

skipif mysql # not compatible
query III rowsort label-8484
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN CAST ( - col1 AS INTEGER ) AND - - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8485
SELECT + 40 * - SUM( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8485
SELECT + 40 * - SUM ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8486
SELECT ALL COUNT( ALL CAST( 95 AS SIGNED ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL COUNT ( ALL CAST ( 95 AS INTEGER ) ) FROM tab1
----
3

query II rowsort
SELECT ( col2 ) AS col0, + 50 AS col1 FROM tab0
----
10
50
47
50
99
50

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN + + col2 + + - col1 * - + 44 AND NULL
----

query II rowsort
SELECT ALL - col1 * - col1, + col0 FROM tab0
----
1
97
441
87
6561
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8490
SELECT * FROM tab1 AS cor0 WHERE NOT - ( - col1 ) * CAST( col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8490
SELECT * FROM tab1 AS cor0 WHERE NOT - ( - col1 ) * CAST ( col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT DISTINCT COUNT( * ) * + 30 AS col2 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-8491
SELECT DISTINCT COUNT ( * ) * + 30 AS col2 FROM tab2
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8492
SELECT ALL 25 + + 31 + + + 84 DIV 51 AS col1 FROM tab2 AS cor0
----
57
57
57

skipif mysql # not compatible
query I rowsort label-8492
SELECT ALL 25 + + 31 + + + 84 / 51 AS col1 FROM tab2 AS cor0
----
57
57
57

query II rowsort
SELECT DISTINCT + col0 AS col1, + col1 - col0 + - 6 * col1 + - col2 AS col2 FROM tab1 cor0
----
51
-217
85
-169
91
-394

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8494
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= + col0 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8494
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= + col0 + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col0 + - 97 FROM tab2
----
-143
-161
-172

onlyif mysql # DIV for integer division: 
query II rowsort label-8496
SELECT ALL + col1 AS col2, col2 DIV + 56 AS col1 FROM tab1
----
14
1
47
1
5
1

skipif mysql # not compatible
query II rowsort label-8496
SELECT ALL + col1 AS col2, col2 / + 56 AS col1 FROM tab1
----
14
1
47
1
5
1

query III rowsort
SELECT * FROM tab1 WHERE col0 * - 75 * - - 56 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT - COUNT( * ) + - 42 AS col2 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-8498
SELECT - COUNT ( * ) + - 42 AS col2 FROM tab2
----
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + col1 col2 FROM tab0 WHERE NULL IS NULL
----
-66
-96
66

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col2 + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8501
SELECT DISTINCT ( + + 74 ) + - + col1 DIV col2 AS col2 FROM tab0 AS cor0
----
72
73
74

skipif mysql # not compatible
query I rowsort label-8501
SELECT DISTINCT ( + + 74 ) + - + col1 / col2 AS col2 FROM tab0 AS cor0
----
72
73
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8502
SELECT DISTINCT - 11 * - CAST( 77 AS SIGNED ) - COUNT( * ) - - + SUM( DISTINCT + + 61 ) AS col2, + 78 FROM tab1 AS cor0
----
905
78

skipif mysql # not compatible
query II rowsort label-8502
SELECT DISTINCT - 11 * - CAST ( 77 AS INTEGER ) - COUNT ( * ) - - + SUM ( DISTINCT + + 61 ) AS col2, + 78 FROM tab1 AS cor0
----
905
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 11 col1, - col2 AS col2 FROM tab2 AS cor0
----
-11
-23
-11
-40
-11
-58

query I rowsort
SELECT + + col1 - - ( + 40 ) * + ( + col0 ) AS col1 FROM tab1 AS cor0
----
2054
3405
3687

query I rowsort
SELECT ALL ( + + ( + - col1 ) ) FROM tab2 WHERE NOT + col2 * + + 59 NOT BETWEEN ( - - col0 / col0 * - col1 + col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8506
SELECT + col0 DIV + - col1 - + - CAST( 76 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE - 99 IS NOT NULL
----
75
76
76

skipif mysql # not compatible
query I rowsort label-8506
SELECT + col0 / + - col1 - + - CAST ( 76 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE - 99 IS NOT NULL
----
75
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT DISTINCT SUM( + + col0 ) + COUNT( * ) * - SUM( DISTINCT - - 19 ) FROM tab1 AS cor0
----
170

skipif mysql # not compatible
query I rowsort label-8507
SELECT DISTINCT SUM ( + + col0 ) + COUNT ( * ) * - SUM ( DISTINCT - - 19 ) FROM tab1 AS cor0
----
170

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 47 <= NULL
----

query I rowsort
SELECT - col1 * 26 + 39 + - 90 FROM tab0 AS cor0
----
-2157
-597
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8511
SELECT ALL ( - + CAST( - 9 AS SIGNED ) ) FROM tab0 AS cor0
----
9
9
9

skipif mysql # not compatible
query I rowsort label-8511
SELECT ALL ( - + CAST ( - 9 AS INTEGER ) ) FROM tab0 AS cor0
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT - + 62 * + - COUNT( * ) FROM tab1 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-8512
SELECT - + 62 * + - COUNT ( * ) FROM tab1 AS cor0
----
186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) col2 FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8514
SELECT DISTINCT col0, col2 + - CAST( ( + col2 ) AS SIGNED ) col2 FROM tab0
----
15
0
87
0
97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8514
SELECT DISTINCT col0, col2 + - CAST ( ( + col2 ) AS INTEGER ) col2 FROM tab0
----
15
0
87
0
97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT MAX( - 8 ) FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-8515
SELECT MAX ( - 8 ) FROM tab2
----
-8

query I rowsort
SELECT + 98 * + 43 AS col1 FROM tab0
----
4214
4214
4214

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT + COUNT( * ) FROM tab1 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8517
SELECT + COUNT ( * ) FROM tab1 WHERE NOT NULL > NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 23 AS col0, 82 col2 FROM tab1
----
23
82
23
82
23
82

query I rowsort
SELECT - col0 * + + col1 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT ALL - ( + 28 ) FROM tab2
----
-28
-28
-28

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - ( + 19 ) * - + col0 / + + col1 + - - 72 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT + - COUNT( * ) * COUNT( * ) + + - 46 AS col0 FROM tab1 cor0
----
-55

skipif mysql # not compatible
query I rowsort label-8522
SELECT + - COUNT ( * ) * COUNT ( * ) + + - 46 AS col0 FROM tab1 cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT - MIN( ALL - - col0 ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8523
SELECT - MIN ( ALL - - col0 ) AS col0 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT COUNT( + 71 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8524
SELECT COUNT ( + 71 ) AS col1 FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8525
SELECT ALL + + COUNT( * ) AS col2, + AVG ( DISTINCT col0 ) * 37 AS col0 FROM tab0 WHERE NOT NULL IN ( + + col0, - ( + - col1 ) / 75, CAST( NULL AS SIGNED ) * + col1 )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8525
SELECT ALL + + COUNT ( * ) AS col2, + AVG ( DISTINCT col0 ) * 37 AS col0 FROM tab0 WHERE NOT NULL IN ( + + col0, - ( + - col1 ) / 75, CAST ( NULL AS INTEGER ) * + col1 )
----
0
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 - + 34 NOT IN ( + + 37 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) * col1 col1 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT - - ( - - 41 ) AS col0 FROM tab1 AS cor0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT 30 * COUNT( - - col0 ) FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-8529
SELECT 30 * COUNT ( - - col0 ) FROM tab0 AS cor0
----
90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = ( + col0 * + + col1 * + col2 * col2 - - 35 )
----

query II rowsort
SELECT DISTINCT - + col2 * 57, + col0 * 35 AS col0 FROM tab2 AS cor0
----
-1311
1610
-2280
2240
-3306
2625

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8532
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 >= NULL
----
0

query I rowsort
SELECT ALL 36 * - 78 * col1 FROM tab2
----
-143208
-188136
-216216

query I rowsort
SELECT ALL 8 + + 3 + 28 + + col1 AS col2 FROM tab0
----
120
40
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT COUNT( DISTINCT - ( - ( col0 ) ) ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8535
SELECT COUNT ( DISTINCT - ( - ( col0 ) ) ) FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col2 + 85 AS col1 FROM tab2
----
108
125
143

query I rowsort
SELECT + 19 * + - col2 + + col2 + ( - 2 ) FROM tab0 cor0
----
-1784
-182
-848

query I rowsort
SELECT DISTINCT + - col2 + + 12 FROM tab2 AS cor0
----
-11
-28
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8539
SELECT + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8540
SELECT ALL SUM( ALL + - col0 ) AS col2, 33 col0 FROM tab0
----
-199
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8540
SELECT ALL SUM ( ALL + - col0 ) AS col2, 33 col0 FROM tab0
----
-199
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT DISTINCT COUNT( 6 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8541
SELECT DISTINCT COUNT ( 6 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8542
SELECT - CAST( NULL AS DECIMAL ) col2, CAST( NULL AS SIGNED ) * 43 / + - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8542
SELECT - CAST ( NULL AS REAL ) col2, CAST ( NULL AS INTEGER ) * 43 / + - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8543
SELECT DISTINCT + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8543
SELECT DISTINCT + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 <= + + col0 + col0 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT DISTINCT + COUNT( * ) * - 91 AS col0 FROM tab2 cor0
----
-273

skipif mysql # not compatible
query I rowsort label-8545
SELECT DISTINCT + COUNT ( * ) * - 91 AS col0 FROM tab2 cor0
----
-273

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= - 8 - - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT DISTINCT MAX( DISTINCT ( + col1 ) ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8547
SELECT DISTINCT MAX ( DISTINCT ( + col1 ) ) AS col2 FROM tab1
----
47

query I rowsort
SELECT 24 * + - 53 AS col0 FROM tab1
----
-1272
-1272
-1272

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT DISTINCT + SUM( DISTINCT + col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-8549
SELECT DISTINCT + SUM ( DISTINCT + col2 ) AS col1 FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT ALL SUM( ALL + - 24 ) FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-8550
SELECT ALL SUM ( ALL + - 24 ) FROM tab0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8551
SELECT - - CAST( NULL AS SIGNED ) * + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8551
SELECT - - CAST ( NULL AS INTEGER ) * + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

onlyif mysql # DIV for integer division: 
query I rowsort label-8553
SELECT 26 DIV 87 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8553
SELECT 26 / 87 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT ALL + ( - + COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8554
SELECT ALL + ( - + COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8555
SELECT + 5 * + 30 FROM tab1 WHERE + CAST( + 86 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-8555
SELECT + 5 * + 30 FROM tab1 WHERE + CAST ( + 86 AS INTEGER ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT ALL 60 + - 84 + - COUNT( * ) FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-8556
SELECT ALL 60 + - 84 + - COUNT ( * ) FROM tab1 AS cor0
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + + col2 + + col0 col1 FROM tab0 AS cor0
----
184
293
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8558
SELECT - - MAX( ALL + col1 ) + CAST( - 19 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-8558
SELECT - - MAX ( ALL + col1 ) + CAST ( - 19 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
62

query I rowsort
SELECT 40 + - col1 FROM tab0 AS cor0
----
-41
19
39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8560
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 * - col0 - + - CAST( + col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8560
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 * - col0 - + - CAST ( + col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8561
SELECT + col2 * + + col0 + 50 - - col2 + - - col2 DIV + col0 * + + col2 - - 51 DIV col0 * 41 - 67 AS col2 FROM tab2 AS cor0
----
1105
2583
4391

skipif mysql # not compatible
query I rowsort label-8561
SELECT + col2 * + + col0 + 50 - - col2 + - - col2 / + col0 * + + col2 - - 51 / col0 * 41 - 67 AS col2 FROM tab2 AS cor0
----
1105
2583
4391

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8562
SELECT DISTINCT - - col1 / col1 col2, col0 / - - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL >= - col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8562
SELECT DISTINCT - - col1 / col1 col2, col0 / - - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT DISTINCT + 67 + - MAX( + col2 ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8563
SELECT DISTINCT + 67 + - MAX ( + col2 ) AS col0 FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT - ( + + 51 ) * + - col2 + - col1 FROM tab0 AS cor0
----
2316
489
5048

query I rowsort
SELECT DISTINCT col0 * - 83 / col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL + col2 * + col0 - + col0 AS col1 FROM tab1 AS cor0
----
4845
4930
6097

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8567
SELECT + CAST( col0 AS SIGNED ) + - col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8567
SELECT + CAST ( col0 AS INTEGER ) + - col0 AS col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - col1 + 84 * - 6 AS col0, - 60 * + col1 col0 FROM tab2
----
-1677
-3060
-3584
-4620
-4390
-4020

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8569
SELECT * FROM tab2 WHERE NULL IN ( + 9, CAST( 29 AS SIGNED ) * - 68 + + - col0 )
----

skipif mysql # not compatible
query III rowsort label-8569
SELECT * FROM tab2 WHERE NULL IN ( + 9, CAST ( 29 AS INTEGER ) * - 68 + + - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8570
SELECT col1 DIV 57 AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8570
SELECT col1 / 57 AS col0 FROM tab2
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 col2 FROM tab0
----
-49
-49
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8572
SELECT - col2 col0 FROM tab2 AS cor0 WHERE NULL < + col1 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8572
SELECT - col2 col0 FROM tab2 AS cor0 WHERE NULL < + col1 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8573
SELECT CAST( NULL AS SIGNED ) - - 1 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8573
SELECT CAST ( NULL AS INTEGER ) - - 1 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 * + 3 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 29 col2 FROM tab2 AS cor0
----
-29
-29
-29

query I rowsort
SELECT - 30 AS col2 FROM tab2 AS cor0 WHERE NOT - 43 <= ( - col1 + - 64 + - col0 * + 61 )
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT ALL + COUNT( * ) * + SUM( ALL - col1 ) FROM tab2 AS cor0
----
-585

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL + COUNT ( * ) * + SUM ( ALL - col1 ) FROM tab2 AS cor0
----
-585

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT DISTINCT - - SUM( col2 ) * + COUNT( * ) FROM tab2 cor0
----
363

skipif mysql # not compatible
query I rowsort label-8578
SELECT DISTINCT - - SUM ( col2 ) * + COUNT ( * ) FROM tab2 cor0
----
363

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8579
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + + CAST( - 45 AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-8579
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + + CAST ( - 45 AS INTEGER ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8580
SELECT ALL 47 DIV + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8580
SELECT ALL 47 / + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT col2 * - ( - - col2 ) FROM tab2 cor0
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT - - MAX( ALL col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8583
SELECT - - MAX ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
97

query I rowsort
SELECT - ( 96 ) AS col1 FROM tab0 WHERE NOT + col2 IS NULL
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT DISTINCT COUNT( ALL + - col0 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8585
SELECT DISTINCT COUNT ( ALL + - col0 ) col1 FROM tab1
----
3

query II rowsort
SELECT DISTINCT + col2 AS col1, 27 FROM tab0
----
10
27
47
27
99
27

query I rowsort
SELECT DISTINCT - 80 * + + col0 + - col2 * + 34 AS col2 FROM tab1 AS cor0
----
-7344
-8806
-9592

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND + col0 + + col1
----

query I rowsort
SELECT ALL col1 + 43 + + - col0 AS col2 FROM tab0 AS cor0
----
-23
-53
109

query I rowsort
SELECT - - 9 + col2 + + col0 FROM tab1 AS cor0
----
153
156
168

query I rowsort
SELECT - - 33 * + col2 + col1 AS col2 FROM tab0 AS cor0
----
1632
3268
351

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 = 89 * 47 / col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - 58 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT DISTINCT 96 + - COUNT( + col2 ) AS col2 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-8594
SELECT DISTINCT 96 + - COUNT ( + col2 ) AS col2 FROM tab0
----
93

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - col1 BETWEEN NULL AND + + 73
----

query I rowsort
SELECT DISTINCT ( 84 ) - ( - 55 ) FROM tab1 AS cor0 WHERE ( + ( 79 ) < + + 35 * col2 )
----
139

query I rowsort
SELECT ALL + col2 - - ( col0 ) AS col2 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT DISTINCT ( + + COUNT( * ) ) FROM tab2 cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8598
SELECT DISTINCT ( + + COUNT ( * ) ) FROM tab2 cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT DISTINCT 15 - col1 AS col0 FROM tab2
----
-36
-52
-62

query II rowsort
SELECT DISTINCT 62, + col2 FROM tab1
----
62
59
62
68
62
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8601
SELECT col0 DIV 26 + - 16 * - col2 FROM tab1
----
1091
1537
947

skipif mysql # not compatible
query I rowsort label-8601
SELECT col0 / 26 + - 16 * - col2 FROM tab1
----
1091
1537
947

query I rowsort
SELECT ALL + + 55 * + + 49 * - - col2 - - col0 FROM tab0 WHERE NOT + 33 <= - col1
----
126680
266902
27037

onlyif mysql # DIV for integer division: 
query I rowsort label-8603
SELECT + col2 + + 61 DIV + 24 FROM tab2
----
25
42
60

skipif mysql # not compatible
query I rowsort label-8603
SELECT + col2 + + 61 / + 24 FROM tab2
----
25
42
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 col2 FROM tab2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8605
SELECT - 29 + col0 + - 13 * + + 0 DIV + col1 FROM tab0
----
-14
58
68

skipif mysql # not compatible
query I rowsort label-8605
SELECT - 29 + col0 + - 13 * + + 0 / + col1 FROM tab0
----
-14
58
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT + ( + COUNT( DISTINCT + - 61 ) ) + - 67 AS col1 FROM tab2 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8606
SELECT + ( + COUNT ( DISTINCT + - 61 ) ) + - 67 AS col1 FROM tab2 cor0
----
-66

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND 36
----

query II rowsort
SELECT DISTINCT - col0, col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0 WHERE NOT - 25 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT + 97 AS col2 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8611
SELECT DISTINCT - 21 * CAST( - col0 AS SIGNED ) AS col0 FROM tab0
----
1827
2037
315

skipif mysql # not compatible
query I rowsort label-8611
SELECT DISTINCT - 21 * CAST ( - col0 AS INTEGER ) AS col0 FROM tab0
----
1827
2037
315

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT ALL - COUNT( * ) * + MIN( DISTINCT - ( - + 99 ) ) + 72 col2 FROM tab1 AS cor0
----
-225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8612
SELECT ALL - COUNT ( * ) * + MIN ( DISTINCT - ( - + 99 ) ) + 72 col2 FROM tab1 AS cor0
----
-225

query II rowsort
SELECT DISTINCT - col2 * + - col0 * + + col2 - - col0, 89 * - 46 AS col0 FROM tab1 AS cor0
----
295970
-4094
420875
-4094
470067
-4094

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8614
SELECT ALL SUM( DISTINCT - CAST( + - 63 AS SIGNED ) ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
63

skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL SUM ( DISTINCT - CAST ( + - 63 AS INTEGER ) ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
63

query II rowsort
SELECT DISTINCT - col2, - 48 * + - 27 AS col2 FROM tab0
----
-10
1296
-47
1296
-99
1296

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT DISTINCT - COUNT( * ) + COUNT( * ) + 72 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-8616
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) + 72 FROM tab1
----
72

query I rowsort
SELECT + ( + 76 ) + col2 FROM tab1
----
135
144
172

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8618
SELECT 70 DIV - - MIN( - col2 ) + - 0 AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8618
SELECT 70 / - - MIN ( - col2 ) + - 0 AS col0 FROM tab2
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - - 92 col1 FROM tab2
----
15
25
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT - ( + ( - - COUNT( * ) ) ) + 8 col2 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8620
SELECT - ( + ( - - COUNT ( * ) ) ) + 8 col2 FROM tab1
----
5

query I rowsort
SELECT + 68 + col2 AS col2 FROM tab0
----
115
167
78

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 22 + + col0 > - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT ( 29 ) * - COUNT( * ) FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-8623
SELECT ( 29 ) * - COUNT ( * ) FROM tab2 AS cor0
----
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 col0 FROM tab1 AS cor0 WHERE - col0 * - + col1 - col1 IS NOT NULL
----
66
66
66

query I rowsort
SELECT ALL - 50 + col0 FROM tab0 AS cor0
----
-35
37
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8626
SELECT 80 AS col1, - col2 / 98 AS col0 FROM tab1 cor0 WHERE NULL BETWEEN NULL AND CAST( + + col2 AS SIGNED ) + + - ( - col2 )
----

skipif mysql # not compatible
query II rowsort label-8626
SELECT 80 AS col1, - col2 / 98 AS col0 FROM tab1 cor0 WHERE NULL BETWEEN NULL AND CAST ( + + col2 AS INTEGER ) + + - ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 ) - + col0 + - - col0 col0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL + col1 + 26 AS col2 FROM tab2 AS cor0
----
103
77
93

query I rowsort
SELECT DISTINCT + 12 - + col2 + + - col1 AS col2 FROM tab1 AS cor0
----
-103
-52
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT + SUM( - 23 ) + + ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-8630
SELECT + SUM ( - 23 ) + + ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT 15 * COUNT( - col0 ) col2 FROM tab2
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8631
SELECT 15 * COUNT ( - col0 ) col2 FROM tab2
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8632
SELECT - MAX( + + col2 ) DIV - 88 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8632
SELECT - MAX ( + + col2 ) / - 88 col1 FROM tab2
----
0

query I rowsort
SELECT + 5 * + + col1 * + col0 FROM tab0
----
485
6075
9135

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT DISTINCT 68 * - + COUNT( - col1 ) AS col2 FROM tab0 WHERE NOT ( NOT - col0 NOT BETWEEN NULL AND + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8634
SELECT DISTINCT 68 * - + COUNT ( - col1 ) AS col2 FROM tab0 WHERE NOT ( NOT - col0 NOT BETWEEN NULL AND + + col1 )
----
0

query I rowsort
SELECT 20 FROM tab1 WHERE col2 BETWEEN NULL AND + 54
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 * + col2 BETWEEN + + 83 AND - + col2 + + + 87 * - + 98
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8637
SELECT DISTINCT - ( ( 71 ) ) * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8637
SELECT DISTINCT - ( ( 71 ) ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8638
SELECT CAST( NULL AS SIGNED ) / - COUNT( * ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8638
SELECT CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT DISTINCT + SUM( ALL col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-8639
SELECT DISTINCT + SUM ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8640
SELECT + COUNT( CAST( NULL AS SIGNED ) ) DIV + MAX( ALL 12 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8640
SELECT + COUNT ( CAST ( NULL AS INTEGER ) ) / + MAX ( ALL 12 ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT ALL - SUM( - + col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-8641
SELECT ALL - SUM ( - + col0 ) FROM tab2
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8642
SELECT DISTINCT + CAST( - + col0 AS SIGNED ) * - col2 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-8642
SELECT DISTINCT + CAST ( - + col0 AS INTEGER ) * - col2 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT DISTINCT + 76 + + 0 * MIN( - 42 ) - + 3 AS col2 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-8643
SELECT DISTINCT + 76 + + 0 * MIN ( - 42 ) - + 3 AS col2 FROM tab2
----
73

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8645
SELECT DISTINCT - CAST( - 89 AS SIGNED ) * + + 46 + + COUNT( * ) - COUNT( * ) AS col2 FROM tab0 AS cor0
----
4094

skipif mysql # not compatible
query I rowsort label-8645
SELECT DISTINCT - CAST ( - 89 AS INTEGER ) * + + 46 + + COUNT ( * ) - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
4094

query I rowsort
SELECT - col0 + - 85 AS col1 FROM tab0 AS cor0
----
-100
-172
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT - - COUNT( * ) + 25 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
34

skipif mysql # not compatible
query I rowsort label-8647
SELECT - - COUNT ( * ) + 25 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
34

query I rowsort
SELECT - - ( - 14 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-8649
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 41 * - CAST( 16 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-8649
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 41 * - CAST ( 16 AS INTEGER ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 * + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT 89 + + col2 AS col1 FROM tab1 AS cor0
----
148
157
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8652
SELECT ALL col0 + + 72 + CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
164
200
222

skipif mysql # not compatible
query I rowsort label-8652
SELECT ALL col0 + + 72 + CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
164
200
222

onlyif mysql # DIV for integer division: 
query I rowsort label-8653
SELECT col0 + - - 63 DIV - + col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
84
91

skipif mysql # not compatible
query I rowsort label-8653
SELECT col0 + - - 63 / - + col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
84
91

query I rowsort
SELECT + ( - 58 ) AS col2 FROM tab2 AS cor0
----
-58
-58
-58

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 - - - col2 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8656
SELECT ALL - COUNT( * ) * + + 3 * + CAST( NULL AS SIGNED ) AS col2, + MIN( 73 ) FROM tab0 AS cor0 WHERE NULL < col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8656
SELECT ALL - COUNT ( * ) * + + 3 * + CAST ( NULL AS INTEGER ) AS col2, + MIN ( 73 ) FROM tab0 AS cor0 WHERE NULL < col1
----
NULL
NULL

query I rowsort
SELECT - 7 - - col1 FROM tab2 cor0
----
44
60
70

query I rowsort
SELECT DISTINCT + ( + 10 ) AS col0 FROM tab2 WHERE col0 = + col1 AND NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT + COUNT( * ) FROM tab1 WHERE 36 / col0 / col2 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8659
SELECT + COUNT ( * ) FROM tab1 WHERE 36 / col0 / col2 BETWEEN NULL AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - 21 col2 FROM tab2
----
72
88
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT MIN( - col0 ) col1 FROM tab2
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8661
SELECT MIN ( - col0 ) col1 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT 84 * - COUNT( * ) AS col1 FROM tab2
----
-252

skipif mysql # not compatible
query I rowsort label-8662
SELECT 84 * - COUNT ( * ) AS col1 FROM tab2
----
-252

query I rowsort
SELECT DISTINCT + 55 * - ( - + 53 ) AS col1 FROM tab1
----
2915

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8664
SELECT ALL - col0 * - - CAST( + col1 AS SIGNED ) FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-8664
SELECT ALL - col0 * - - CAST ( + col1 AS INTEGER ) FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 73 BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL col0, 94 * + + col1 FROM tab0 cor0
----
15
7614
87
1974
97
94

query I rowsort
SELECT + 94 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - + 88 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8668
SELECT ALL - CAST( NULL AS SIGNED ) * - 45 * - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL - CAST ( NULL AS INTEGER ) * - 45 * - COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - + col0 * 97 FROM tab2 cor0
----
-4462
-6208
-7275

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT - 74 * + COUNT( * ) FROM tab2 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-8670
SELECT - 74 * + COUNT ( * ) FROM tab2 AS cor0
----
-222

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 = + col1 + - 27
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT + - COUNT( ALL - col2 ) * + - 9 * + 25 AS col1 FROM tab2 AS cor0
----
675

skipif mysql # not compatible
query I rowsort label-8672
SELECT + - COUNT ( ALL - col2 ) * + - 9 * + 25 AS col1 FROM tab2 AS cor0
----
675

query I rowsort
SELECT + 47 + + col2 AS col0 FROM tab2
----
105
70
87

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8674
SELECT + col2 + + CAST( NULL AS SIGNED ) / + + col1 * - + col2 * + CAST( - 95 AS DECIMAL ) * + 73 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8674
SELECT + col2 + + CAST ( NULL AS INTEGER ) / + + col1 * - + col2 * + CAST ( - 95 AS REAL ) * + 73 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8675
SELECT CAST( + - col0 AS SIGNED ) + + - col0 + - 59 * col2 AS col0 FROM tab2
----
-1449
-2488
-3572

skipif mysql # not compatible
query I rowsort label-8675
SELECT CAST ( + - col0 AS INTEGER ) + + - col0 + - 59 * col2 AS col0 FROM tab2
----
-1449
-2488
-3572

query I rowsort
SELECT col1 + 54 AS col2 FROM tab0
----
135
55
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8677
SELECT 68 DIV col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8677
SELECT 68 / col0 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT DISTINCT + 26 + SUM( + col0 ) FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-8678
SELECT DISTINCT + 26 + SUM ( + col0 ) FROM tab0
----
225

query III rowsort
SELECT * FROM tab0 WHERE NOT - 99 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8680
SELECT + CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8680
SELECT + CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 48 + + col0 * - col1 FROM tab2
----
-2394
-4976
-5073

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 * - ( 17 ) - + col2 col2 FROM tab0
----
-1693
-1730
-1782

query I rowsort
SELECT + 37 + + col2 AS col0 FROM tab2
----
60
77
95

query I rowsort
SELECT ALL col0 FROM tab1 WHERE + 17 NOT IN ( - col2 * col0 )
----
51
85
91

query I rowsort
SELECT + 72 + + 84 AS col0 FROM tab1
----
156
156
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8686
SELECT ALL + col2 * + ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8686
SELECT ALL + col2 * + ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8688
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8688
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 BETWEEN NULL AND 54
----

query III rowsort
SELECT * FROM tab2 WHERE - 20 + col0 BETWEEN NULL AND + col1
----

query I rowsort
SELECT - col0 + - 89 * col1 FROM tab2
----
-4585
-6038
-6917

query I rowsort
SELECT ALL - ( - 52 ) * + 28 FROM tab1
----
1456
1456
1456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 + col2 col0 FROM tab2
----
110
128
93

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT - col1 + col2 >= ( 61 )
----
-59
-68

query I rowsort
SELECT col2 + - 88 FROM tab1
----
-20
-29
8

query I rowsort
SELECT 20 FROM tab1 WHERE + col0 IS NOT NULL
----
20
20
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 + col0 col0 FROM tab2
----
112
130
141

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( - col1 ) * - col1 ) NOT IN ( - col1 / col1 )
----

query I rowsort
SELECT - ( + 56 ) FROM tab0
----
-56
-56
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-8700
SELECT 45 DIV - col1 + col2 AS col1 FROM tab1
----
50
68
93

skipif mysql # not compatible
query I rowsort label-8700
SELECT 45 / - col1 + col2 AS col1 FROM tab1
----
50
68
93

query I rowsort
SELECT ALL + col1 - - col1 * col0 AS col0 FROM tab1
----
430
4324
728

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT - ( - MIN( col0 ) ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8702
SELECT - ( - MIN ( col0 ) ) AS col1 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT ALL - ( - SUM( col1 ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL - ( - SUM ( col1 ) ) FROM tab1
----
66

query I rowsort
SELECT - col1 * 76 + + 86 AS col0 FROM tab2
----
-3790
-5006
-5766

onlyif mysql # DIV for integer division: 
query I rowsort label-8705
SELECT ALL - 35 DIV + col0 FROM tab0 WHERE ( NULL ) IS NULL
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-8705
SELECT ALL - 35 / + col0 FROM tab0 WHERE ( NULL ) IS NULL
----
-2
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT DISTINCT - MAX( ALL col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8706
SELECT DISTINCT - MAX ( ALL col1 ) AS col1 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT DISTINCT COUNT( * ) * - MIN( + col2 ) AS col0 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-8707
SELECT DISTINCT COUNT ( * ) * - MIN ( + col2 ) AS col0 FROM tab1 AS cor0
----
-177

query I rowsort
SELECT DISTINCT - 11 * col1 AS col2 FROM tab1 AS cor0
----
-154
-517
-55

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT col1 * col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 8 + col0 * - col1 ) NOT IN ( + 99 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( ( - col2 ) ) col2 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( col1 ) - + 46 * col1 NOT IN ( - col2 + ( - 73 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * 11 AS col1 FROM tab1 AS cor0 WHERE ( 94 * + col1 + + col1 ) IS NOT NULL
----
1001
561
935

query I rowsort
SELECT - ( col1 ) * 53 FROM tab0 AS cor0
----
-1113
-4293
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8715
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8715
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT + 57 * col1 FROM tab1 cor0
----
2679
285
798

query I rowsort
SELECT 68 * + 67 FROM tab2 AS cor0
----
4556
4556
4556

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT DISTINCT COUNT( * ) + - 70 AS col2 FROM tab0 WHERE NOT NULL IN ( col0 )
----
-70

skipif mysql # not compatible
query I rowsort label-8719
SELECT DISTINCT COUNT ( * ) + - 70 AS col2 FROM tab0 WHERE NOT NULL IN ( col0 )
----
-70

query I rowsort
SELECT ALL + 88 * + 63 AS col0 FROM tab1
----
5544
5544
5544

query I rowsort
SELECT + col2 FROM tab1 WHERE ( col0 ) IS NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE ( 75 + col1 ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT DISTINCT + ( + + col0 ) + col1 AS col2 FROM tab0
----
108
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - + col1 col1 FROM tab1
----
37
44
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 col1 FROM tab0 WHERE + col2 * ( - 99 ) < col2 * col1
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT + MAX( ALL + 82 ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-8726
SELECT + MAX ( ALL + 82 ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col1, 85 col0 FROM tab2
----
-46
85
-64
85
-75
85

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE ( ( 43 * - 89 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT + 62 * COUNT( * ) FROM tab1
----
186

skipif mysql # not compatible
query I rowsort label-8729
SELECT + 62 * COUNT ( * ) FROM tab1
----
186

onlyif mysql # DIV for integer division: 
query I rowsort label-8730
SELECT ALL col0 * col0 DIV - ( - col1 ) + - col2 FROM tab1 AS cor0
----
108
1386
89

skipif mysql # not compatible
query I rowsort label-8730
SELECT ALL col0 * col0 / - ( - col1 ) + - col2 FROM tab1 AS cor0
----
108
1386
89

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * - + col1 = - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - col1 * - 20 FROM tab0 AS cor0
----
-1620
-20
-420

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > + 38 + 80
----

query I rowsort
SELECT ALL + ( + col0 ) * + 58 AS col2 FROM tab0 AS cor0
----
5046
5626
870

onlyif mysql # DIV for integer division: 
query I rowsort label-8735
SELECT ALL + 5 DIV - + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL + 5 / - + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT ( + COUNT( ALL - 49 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8736
SELECT ( + COUNT ( ALL - 49 ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT col0 - col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col1 + + col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 IN ( 65 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8739
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + ( - CAST( col1 AS SIGNED ) ) / + col1 AND ( + CAST( NULL AS SIGNED ) * - col2 )
----

skipif mysql # not compatible
query III rowsort label-8739
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + ( - CAST ( col1 AS INTEGER ) ) / + col1 AND ( + CAST ( NULL AS INTEGER ) * - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8740
SELECT DISTINCT + + col2 DIV + 40 FROM tab1 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-8740
SELECT DISTINCT + + col2 / + 40 FROM tab1 AS cor0
----
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8741
SELECT ALL + col1 DIV + col2 col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8741
SELECT ALL + col1 / + col2 col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT DISTINCT COUNT( * ) + - COUNT( * ) * 86 AS col0 FROM tab0 WHERE - 68 IS NOT NULL
----
-255

skipif mysql # not compatible
query I rowsort label-8742
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) * 86 AS col0 FROM tab0 WHERE - 68 IS NOT NULL
----
-255

query II rowsort
SELECT DISTINCT ( col1 ), col2 AS col2 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT - MIN( DISTINCT + ( + col1 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8744
SELECT - MIN ( DISTINCT + ( + col1 ) ) FROM tab0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 91 NOT IN ( + 0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 * + ( + 37 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 15 * - ( 83 ) AS col1 FROM tab1
----
-1245

query I rowsort
SELECT - col0 * - 34 FROM tab1
----
1734
2890
3094

onlyif mysql # DIV for integer division: 
query I rowsort label-8749
SELECT col2 DIV 56 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8749
SELECT col2 / 56 AS col1 FROM tab0
----
0
0
1

query I rowsort
SELECT ALL col2 * + col0 * col1 FROM tab0
----
18270
57105
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8751
SELECT DISTINCT - CAST( - 21 AS SIGNED ) * + 90 FROM tab2 WHERE NOT + col0 - + col1 <> col0
----

skipif mysql # not compatible
query I rowsort label-8751
SELECT DISTINCT - CAST ( - 21 AS INTEGER ) * + 90 FROM tab2 WHERE NOT + col0 - + col1 <> col0
----

query I rowsort
SELECT DISTINCT + 88 - + col0 FROM tab2 AS cor0 WHERE + col0 * col1 <= 71
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( ( 3 ) = ( - col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col1, - col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-51
-67
-67
-77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8755
SELECT DISTINCT + 56 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8755
SELECT DISTINCT + 56 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + - 17 + + col2 * + ( + col0 ) - + col1 * 55 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8757
SELECT DISTINCT + col2 DIV + col1 * + + col1 + + - col1 + col1 AS col0 FROM tab0 AS cor0
----
0
99

skipif mysql # not compatible
query I rowsort label-8757
SELECT DISTINCT + col2 / + col1 * + + col1 + + - col1 + col1 AS col0 FROM tab0 AS cor0
----
0
99

query I rowsort
SELECT ALL 90 AS col1 FROM tab2 AS cor0 WHERE col2 = NULL
----

query I rowsort
SELECT DISTINCT - - 36 FROM tab1 cor0
----
36

query I rowsort
SELECT DISTINCT + col1 + - + col2 FROM tab1 AS cor0
----
-21
-54
-82

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 * + - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT DISTINCT + COUNT( * ) + 66 col0 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8762
SELECT DISTINCT + COUNT ( * ) + 66 col0 FROM tab1 AS cor0
----
69

query I rowsort
SELECT - + col0 FROM tab1 AS cor0 WHERE col1 NOT IN ( + + 43, col0 )
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-8764
SELECT DISTINCT + 49, COUNT( * ) AS col1 FROM tab2
----
49
3

skipif mysql # not compatible
query II rowsort label-8764
SELECT DISTINCT + 49, COUNT ( * ) AS col1 FROM tab2
----
49
3

query I rowsort
SELECT DISTINCT 62 + - 83 AS col0 FROM tab1 WHERE NOT - col1 + + col0 <= ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT COUNT( col0 ) + - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8766
SELECT COUNT ( col0 ) + - COUNT ( * ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8767
SELECT DISTINCT CAST( + col1 AS SIGNED ) col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8767
SELECT DISTINCT CAST ( + col1 AS INTEGER ) col2 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8768
SELECT + - col0 * + CAST( + col2 AS SIGNED ) AS col0 FROM tab0 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-8768
SELECT + - col0 * + CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 WHERE NULL = NULL
----

query II rowsort
SELECT col2, col1 + - col2 AS col1 FROM tab2
----
23
28
40
37
58
9

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN 51 * + col2 AND 36
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8771
SELECT + 29 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( + ( + + col1 ) )
----

skipif mysql # not compatible
query I rowsort label-8771
SELECT + 29 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( + ( + + col1 ) )
----

query I rowsort
SELECT DISTINCT - col1 + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( - col0 ) BETWEEN col1 + col2 * - + col0 - + col2 AND ( col1 )
----

query I rowsort
SELECT DISTINCT - col1 + - 73 AS col1 FROM tab1
----
-120
-78
-87

query I rowsort
SELECT - col1 - - ( - 43 ) + + - ( - col2 ) FROM tab1
----
-22
11
39

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 17 IS NULL AND col2 = 35
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8776
SELECT col0 * + col0 DIV + col0 + + col1 FROM tab2
----
141
142
97

skipif mysql # not compatible
query I rowsort label-8776
SELECT col0 * + col0 / + col0 + + col1 FROM tab2
----
141
142
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + 47 AS col0, + col1 - 2 + - col0 col1 FROM tab2
----
105
-10
70
3
87
11

query I rowsort
SELECT ALL - 16 * col2 AS col1 FROM tab1
----
-1088
-1536
-944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8779
SELECT DISTINCT + COUNT( * ) * - CAST( + COUNT( DISTINCT col2 ) AS SIGNED ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8779
SELECT DISTINCT + COUNT ( * ) * - CAST ( + COUNT ( DISTINCT col2 ) AS INTEGER ) AS col2 FROM tab0
----
-9

query I rowsort
SELECT ALL - + col2 * + + 49 * + col2 FROM tab2 AS cor0
----
-164836
-25921
-78400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8781
SELECT 0 + 35 FROM tab1 AS cor0 WHERE NOT 80 + col1 + - + col0 <= CAST( NULL AS SIGNED ) + - col0 / 48
----

skipif mysql # not compatible
query I rowsort label-8781
SELECT 0 + 35 FROM tab1 AS cor0 WHERE NOT 80 + col1 + - + col0 <= CAST ( NULL AS INTEGER ) + - col0 / 48
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 / - + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8783
SELECT ALL 32 * - CAST( - + 44 AS SIGNED ) + + ( - col0 ) col2 FROM tab2 cor0
----
1333
1344
1362

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8783
SELECT ALL 32 * - CAST ( - + 44 AS INTEGER ) + + ( - col0 ) col2 FROM tab2 cor0
----
1333
1344
1362

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col1 + + + col1 ) BETWEEN NULL AND col2 * col0 + 52 + - 43
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 66 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT ALL MIN( col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL MIN ( col2 ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL - col0 * - col2 + + col2 FROM tab1 AS cor0
----
4992
5074
6256

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT + COUNT( ALL + + 5 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8788
SELECT + COUNT ( ALL + + 5 ) FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8789
SELECT ALL col1 * + - CAST( NULL AS DECIMAL ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8789
SELECT ALL col1 * + - CAST ( NULL AS REAL ) col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE NOT + 86 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 78 col1 FROM tab2 AS cor0
----
78
78
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8792
SELECT CAST( - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8792
SELECT CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8793
SELECT * FROM tab1 cor0 WHERE NOT col1 * - CAST( + col1 AS SIGNED ) + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8793
SELECT * FROM tab1 cor0 WHERE NOT col1 * - CAST ( + col1 AS INTEGER ) + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT DISTINCT + 15 * - COUNT( * ) FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-8794
SELECT DISTINCT + 15 * - COUNT ( * ) FROM tab2 AS cor0
----
-45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8795
SELECT col0 DIV col0 * + + col1, - CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-8795
SELECT col0 / col0 * + + col1, - CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT NULL >= 92 / + col1 * + col0 + + + ( + - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT NULL >= 92 / + col1 * + col0 + + + ( + - col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT - COUNT( * ) + + 63 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-8797
SELECT - COUNT ( * ) + + 63 FROM tab2
----
60

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE ( + 38 IS NOT NULL )
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT ALL - col2 + + + col0 AS col1 FROM tab1
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT DISTINCT + COUNT( * ) + + ( 47 ) FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-8800
SELECT DISTINCT + COUNT ( * ) + + ( 47 ) FROM tab1 AS cor0
----
50

query I rowsort
SELECT DISTINCT - 43 + + ( - col1 ) FROM tab0 AS cor0
----
-124
-44
-64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8802
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 5 * - CAST( NULL AS SIGNED ) / - + 25 * - 66 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8802
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 5 * - CAST ( NULL AS INTEGER ) / - + 25 * - 66 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8803
SELECT DISTINCT - MIN( DISTINCT - col2 ) DIV 65 + - - ( - + 7 ) AS col1 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8803
SELECT DISTINCT - MIN ( DISTINCT - col2 ) / 65 + - - ( - + 7 ) AS col1 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT 19 - + 4 AS col2 FROM tab0 AS cor0 WHERE col2 - + col2 + + 34 * + ( col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT + - col1 + - 85 FROM tab2 AS cor0
----
-136
-152
-162

query I rowsort
SELECT - 89 * col2 * + col1 FROM tab0 cor0
----
-18690
-338823
-8811

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE ( col0 ) < + col1
----
-2

skipif mysql # not compatible
query I rowsort label-8807
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE ( col0 ) < + col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT + ( + 95 ) + - 23 + + - COUNT( * ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-8808
SELECT + ( + 95 ) + - 23 + + - COUNT ( * ) FROM tab1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8809
SELECT COUNT( * ) + 91 * - 77 AS col2, + CAST( NULL AS SIGNED ) * + COUNT( ALL - col2 ) AS col2 FROM tab1
----
-7004
NULL

skipif mysql # not compatible
query II rowsort label-8809
SELECT COUNT ( * ) + 91 * - 77 AS col2, + CAST ( NULL AS INTEGER ) * + COUNT ( ALL - col2 ) AS col2 FROM tab1
----
-7004
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8810
SELECT ALL - col0 DIV - 38 + 75 + - col2 AS col2 FROM tab2
----
18
36
53

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL - col0 / - 38 + 75 + - col2 AS col2 FROM tab2
----
18
36
53

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT IN ( col2 )
----

query II rowsort
SELECT - 48 + + col0 * + - 4 AS col0, col2 FROM tab2 AS cor0
----
-232
23
-304
40
-348
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT DISTINCT + + 6 + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-3

skipif mysql # not compatible
query I rowsort label-8813
SELECT DISTINCT + + 6 + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-3

query I rowsort
SELECT DISTINCT - 54 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-8815
SELECT DISTINCT - COUNT( * ) AS col2, + 30 AS col0 FROM tab0
----
-3
30

skipif mysql # not compatible
query II rowsort label-8815
SELECT DISTINCT - COUNT ( * ) AS col2, + 30 AS col0 FROM tab0
----
-3
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 14 col0 FROM tab1
----
196
658
70

query I rowsort
SELECT ALL + 6 * + + col1 AS col1 FROM tab2
----
306
402
462

query I rowsort
SELECT ALL 3 * + col2 AS col0 FROM tab1
----
177
204
288

query I rowsort
SELECT - col0 * - + 60 * + 5 FROM tab2 cor0
----
13800
19200
22500

onlyif mysql # DIV for integer division: 
query I rowsort label-8820
SELECT ALL col0 DIV - col0 * - col2 DIV - col0 DIV col2 + - col0 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8820
SELECT ALL col0 / - col0 * - col2 / - col0 / col2 + - col0 FROM tab2 cor0
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < 77 * - + col1 * - - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8822
SELECT ALL 55 AS col0, + 30 + + - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab1 AS cor0
----
55
NULL

skipif mysql # not compatible
query II rowsort label-8822
SELECT ALL 55 AS col0, + 30 + + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0
----
55
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8823
SELECT ALL + col2 * + + col1 * - + col1 DIV - + col1 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL + col2 * + + col1 * - + col1 / - + col1 FROM tab1
----
1344
295
3196

query I rowsort
SELECT DISTINCT 3 * - ( - 74 ) * - col1 + + 3 + + + 80 FROM tab0
----
-139
-17899
-4579

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8825
SELECT + 15 DIV - + COUNT( * ) FROM tab0 WHERE NOT - 14 IS NULL
----
-5

skipif mysql # not compatible
query I rowsort label-8825
SELECT + 15 / - + COUNT ( * ) FROM tab0 WHERE NOT - 14 IS NULL
----
-5

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT 99 / col2 + - col0 NOT IN ( 36 * - + col1 + + 94 + - col1 * + col2 * + col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8827
SELECT ALL - col1 DIV - col1 AS col2, ( + col2 ) AS col2 FROM tab2
----
1
23
1
40
1
58

skipif mysql # not compatible
query II rowsort label-8827
SELECT ALL - col1 / - col1 AS col2, ( + col2 ) AS col2 FROM tab2
----
1
23
1
40
1
58

query I rowsort
SELECT DISTINCT 99 + + + col1 * - 29 * - - ( col0 ) - - 17 * - 24 AS col2 FROM tab2 WHERE col0 IS NOT NULL
----
-143221
-146034
-68343

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8829
SELECT - 36 * col2 AS col1, - CAST( - 44 AS SIGNED ) FROM tab1
----
-2124
44
-2448
44
-3456
44

skipif mysql # not compatible
query II rowsort label-8829
SELECT - 36 * col2 AS col1, - CAST ( - 44 AS INTEGER ) FROM tab1
----
-2124
44
-2448
44
-3456
44

query I rowsort
SELECT DISTINCT - 4 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 / col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT ALL - + COUNT( ALL col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL - + COUNT ( ALL col0 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - - 42 * col0 * col2 * col2 AS col2 FROM tab1 AS cor0
----
12427170
17672928
19740672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 23 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT MIN( ALL + 13 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
13

skipif mysql # not compatible
query I rowsort label-8835
SELECT MIN ( ALL + 13 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
13

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8836
SELECT 26 + col1 * col2 FROM tab1 WHERE + + 61 BETWEEN NULL AND - - 6 * + CAST( + + col0 AS DECIMAL ) + - 36 + CAST( + ( col0 ) AS SIGNED ) * - + col0 * col0 / - + 67
----

skipif mysql # not compatible
query I rowsort label-8836
SELECT 26 + col1 * col2 FROM tab1 WHERE + + 61 BETWEEN NULL AND - - 6 * + CAST ( + + col0 AS REAL ) + - 36 + CAST ( + ( col0 ) AS INTEGER ) * - + col0 * col0 / - + 67
----

query I rowsort
SELECT + + 31 + - col0 FROM tab1 AS cor0
----
-20
-54
-60

query II rowsort
SELECT DISTINCT - ( + + col1 ) + 54 AS col0, col1 FROM tab1 cor0
----
40
14
49
5
7
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT + - COUNT( * ) * 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-8839
SELECT + - COUNT ( * ) * COUNT ( * ) + + ( + + COUNT ( * ) ) col0 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT - + 83 + + 88 AS col0 FROM tab2 AS cor0
----
5
5
5

query I rowsort
SELECT + 58 + - 29 AS col2 FROM tab1 AS cor0
----
29
29
29

onlyif mysql # DIV for integer division: 
query II rowsort label-8842
SELECT DISTINCT + 14 DIV - col2 * + + col1 AS col0, - col0 * + ( - - 8 ) * - col1 FROM tab1 AS cor0
----
0
3400
0
34216
0
5712

skipif mysql # not compatible
query II rowsort label-8842
SELECT DISTINCT + 14 / - col2 * + + col1 AS col0, - col0 * + ( - - 8 ) * - col1 FROM tab1 AS cor0
----
0
3400
0
34216
0
5712

query II rowsort
SELECT + 75 * - + col1, - col1 AS col0 FROM tab2
----
-3825
-51
-5025
-67
-5775
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT - MAX( ALL + col0 ) * + 17 * ( + COUNT( * ) ) * - 23 AS col0 FROM tab2
----
87975

skipif mysql # not compatible
query I rowsort label-8844
SELECT - MAX ( ALL + col0 ) * + 17 * ( + COUNT ( * ) ) * - 23 AS col0 FROM tab2
----
87975

query II rowsort
SELECT ( - 14 ), col1 + - 8 AS col2 FROM tab1
----
-14
-3
-14
39
-14
6

query I rowsort
SELECT DISTINCT + 24 * + col0 FROM tab1 WHERE + - 72 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT AVG ( ALL col0 ) col2 FROM tab1 WHERE 61 IS NULL
----
NULL

query I rowsort
SELECT ALL + 71 FROM tab0 cor0
----
71
71
71

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 / ( - col1 ) * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 25 NOT BETWEEN ( + 5 - - col1 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8850
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 25 NOT BETWEEN ( + 5 - - col1 ) AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8851
SELECT CAST( + col2 AS SIGNED ) * col0 * + + col0 FROM tab0 AS cor0
----
10575
75690
931491

skipif mysql # not compatible
query I rowsort label-8851
SELECT CAST ( + col2 AS INTEGER ) * col0 * + + col0 FROM tab0 AS cor0
----
10575
75690
931491

query I rowsort
SELECT ALL + ( + 84 ) FROM tab2 AS cor0
----
84
84
84

query II rowsort
SELECT + + 24, + 12 AS col1 FROM tab1 AS cor0
----
24
12
24
12
24
12

query II rowsort
SELECT col0 AS col1, col0 + + col1 * + ( + col0 ) FROM tab1 AS cor0
----
51
765
85
510
91
4368

query I rowsort
SELECT col1 * + - 55 + - - col1 FROM tab1 AS cor0
----
-2538
-270
-756

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 97 <= 40
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 * - 75 FROM tab2
----
-3450
-4800
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT ALL 85 + MIN( ALL + col2 ) AS col0 FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-8858
SELECT ALL 85 + MIN ( ALL + col2 ) AS col0 FROM tab1
----
144

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 NOT IN ( 40 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8860
SELECT DISTINCT ( + col2 ) DIV - - col0 + 20 AS col2 FROM tab0
----
20
21
23

skipif mysql # not compatible
query I rowsort label-8860
SELECT DISTINCT ( + col2 ) / - - col0 + 20 AS col2 FROM tab0
----
20
21
23

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 7 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 60 * col2 + col2 FROM tab0 AS cor0
----
2867
6039
610

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT DISTINCT + + MAX( col1 ) + - 29 AS col0 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-8863
SELECT DISTINCT + + MAX ( col1 ) + - 29 AS col0 FROM tab0 AS cor0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-8864
SELECT ALL col0 + col0 + - col0 DIV - 21 FROM tab0 AS cor0
----
178
198
30

skipif mysql # not compatible
query I rowsort label-8864
SELECT ALL col0 + col0 + - col0 / - 21 FROM tab0 AS cor0
----
178
198
30

query II rowsort
SELECT + - col0 - col1, - ( + col1 ) AS col2 FROM tab2 AS cor0
----
-141
-77
-142
-67
-97
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT ALL + COUNT( * ) - + 97 AS col2 FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-8866
SELECT ALL + COUNT ( * ) - + 97 AS col2 FROM tab0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT DISTINCT + MIN( DISTINCT - col2 ) col2 FROM tab1
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8867
SELECT DISTINCT + MIN ( DISTINCT - col2 ) col2 FROM tab1
----
-96

query III rowsort
SELECT * FROM tab2 WHERE ( + - ( + + 93 ) * - 30 + + + col2 * + ( - + 38 ) * ( + ( 8 ) ) * col2 + + col2 / - 34 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT ALL COUNT( * ) AS col1 FROM tab2 WHERE NOT col1 NOT BETWEEN - - 25 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL COUNT ( * ) AS col1 FROM tab2 WHERE NOT col1 NOT BETWEEN - - 25 AND NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8870
SELECT COUNT( * ) DIV - 9 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8870
SELECT COUNT ( * ) / - 9 AS col2 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8871
SELECT col1 DIV 60 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8871
SELECT col1 / 60 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - 25 * + col2 - - + 15 + - col1 + 61 AS col2 FROM tab1 AS cor0
----
-1404
-1671
-2338

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT MAX( + - col2 ) AS col1 FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8873
SELECT MAX ( + - col2 ) AS col1 FROM tab2 cor0
----
-23

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col2 ) NOT IN ( 94 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - ( + - ( - - 63 ) ) AS col2, 49 * - 72 FROM tab1 AS cor0
----
63
-3528
63
-3528
63
-3528

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 16 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 64 ) <> col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 47 * 79 AS col1 FROM tab0 AS cor0
----
3713
3713
3713

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + + 31 < col1
----
87
21
10
97
1
99

query I rowsort
SELECT + - 96 * - col2 FROM tab2 AS cor0
----
2208
3840
5568

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT + MAX( ALL 79 ) FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-8881
SELECT + MAX ( ALL 79 ) FROM tab0 AS cor0
----
79

query I rowsort
SELECT DISTINCT + ( col1 ) * + col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT IN ( - + 37, 76, - col2, + - col1 ) )
----

query I rowsort
SELECT 50 + + - col0 FROM tab1
----
-1
-35
-41

query I rowsort
SELECT - col1 * - + col2 + - + col2 FROM tab1
----
1248
236
3128

query I rowsort
SELECT DISTINCT + col2 * 65 AS col2 FROM tab1
----
3835
4420
6240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8886
SELECT ALL CAST( NULL AS SIGNED ) + - 15 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL CAST ( NULL AS INTEGER ) + - 15 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT DISTINCT - MIN( + - 81 ) * - ( + - 2 ) AS col1 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-8887
SELECT DISTINCT - MIN ( + - 81 ) * - ( + - 2 ) AS col1 FROM tab0
----
162

query I rowsort
SELECT ALL + 82 + - 48 AS col1 FROM tab2 AS cor0
----
34
34
34

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND - ( + col2 ) / col0
----

query I rowsort
SELECT DISTINCT col0 + - - 91 + + col2 * + - 70 FROM tab0
----
-3184
-522
-6742

query II rowsort
SELECT ALL 16 + - col1, ( col2 ) FROM tab2
----
-35
23
-51
58
-61
40

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col0 * - col1 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8893
SELECT DISTINCT - 48 - CAST( - MIN( DISTINCT col0 ) AS SIGNED ) FROM tab0 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-8893
SELECT DISTINCT - 48 - CAST ( - MIN ( DISTINCT col0 ) AS INTEGER ) FROM tab0 cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE - 95 NOT BETWEEN 48 AND + + col1
----
-3

skipif mysql # not compatible
query I rowsort label-8894
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE - 95 NOT BETWEEN 48 AND + + col1
----
-3

query I rowsort
SELECT DISTINCT - col2 + - col2 * col0 + + + col1 FROM tab2 AS cor0
----
-1030
-2523
-4341

query I rowsort
SELECT ALL col2 * col2 * - col0 - col1 * - col0 FROM tab2 AS cor0
----
-21988
-247275
-97472

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT - + COUNT( * ) AS col0 FROM tab0 cor0 WHERE col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8897
SELECT - + COUNT ( * ) AS col0 FROM tab0 cor0 WHERE col0 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT + 39 - + + col1 FROM tab1 AS cor0
----
-8
25
34

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 94 BETWEEN 87 AND - col2 + ( col0 ) + - col0 / + col2
----

query II rowsort
SELECT col0 AS col1, - 61 FROM tab2 AS cor0
----
46
-61
64
-61
75
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT DISTINCT - COUNT( + 0 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8901
SELECT DISTINCT - COUNT ( + 0 ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT + col1 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT COUNT( DISTINCT ( - col0 ) ) * - 90 FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-8903
SELECT COUNT ( DISTINCT ( - col0 ) ) * - 90 FROM tab2
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT DISTINCT MAX( ALL + ( 86 ) ) FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-8904
SELECT DISTINCT MAX ( ALL + ( 86 ) ) FROM tab2
----
86

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + - 77 * 26 + + col2 AND - - col2
----

query I rowsort
SELECT ALL - col1 * - 60 * - col0 FROM tab0
----
-109620
-5820
-72900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8907
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT + CAST( + - 4 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-8907
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT + CAST ( + - 4 AS INTEGER ) > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT + - ( + SUM( DISTINCT col1 ) ) col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8909
SELECT + - ( + SUM ( DISTINCT col1 ) ) col0 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8910
SELECT DISTINCT COUNT( * ) DIV - - MIN( ALL - col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8910
SELECT DISTINCT COUNT ( * ) / - - MIN ( ALL - col1 ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8911
SELECT * FROM tab0 WHERE NOT col0 BETWEEN ( - - CAST( col0 AS SIGNED ) ) AND ( + col2 )
----
87
21
10

skipif mysql # not compatible
query III rowsort label-8911
SELECT * FROM tab0 WHERE NOT col0 BETWEEN ( - - CAST ( col0 AS INTEGER ) ) AND ( + col2 )
----
87
21
10

query I rowsort
SELECT - + col0 * - + 63 FROM tab2 AS cor0
----
2898
4032
4725

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8913
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( col2 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8913
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( col2 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 13 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + ( - 6 ) FROM tab1 AS cor0
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8916
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8916
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT ALL 24 * 13 AS col2 FROM tab1 AS cor0
----
312
312
312

query I rowsort
SELECT DISTINCT - + 94 AS col1 FROM tab2 AS cor0
----
-94

query I rowsort
SELECT col1 + 69 AS col2 FROM tab0
----
150
70
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT 76 + COUNT( col0 ) FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-8920
SELECT 76 + COUNT ( col0 ) FROM tab1
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8921
SELECT COUNT( * ) + + + CAST( NULL AS SIGNED ) * + 65 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8921
SELECT COUNT ( * ) + + + CAST ( NULL AS INTEGER ) * + 65 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8922
SELECT + + 60 + - - 52 DIV - + COUNT( * ) + - 91 AS col1 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-8922
SELECT + + 60 + - - 52 / - + COUNT ( * ) + - 91 AS col1 FROM tab0 AS cor0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8923
SELECT - + CAST( - COUNT( * ) AS SIGNED ) * - 25 + - ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8923
SELECT - + CAST ( - COUNT ( * ) AS INTEGER ) * - 25 + - ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col1 - - 85 + - col2 - + ( - col0 ) FROM tab2 AS cor0
----
32
35
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - 40 col2 FROM tab0 AS cor0
----
-30
59
7

query I rowsort
SELECT + - 87 AS col0 FROM tab0 AS cor0 WHERE col2 NOT IN ( + col1, 56 )
----
-87
-87
-87

query I rowsort
SELECT DISTINCT - col2 * + 22 + + 83 - 48 AS col1 FROM tab1 AS cor0
----
-1263
-1461
-2077

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT + COUNT( * ) - - 63 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8928
SELECT + COUNT ( * ) - - 63 FROM tab1 AS cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + + col0 col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT ALL SUM( ALL - 96 ) AS col1 FROM tab2 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL SUM ( ALL - 96 ) AS col1 FROM tab2 AS cor0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT + SUM( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8931
SELECT + SUM ( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT DISTINCT + ( 23 ) AS col2 FROM tab2
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 col2 FROM tab1
----
-8
-8
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, + 46 + - 13 FROM tab1
----
51
33
85
33
91
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT 49 * + SUM( - col1 ) * + 1 AS col2 FROM tab0
----
-5047

skipif mysql # not compatible
query I rowsort label-8935
SELECT 49 * + SUM ( - col1 ) * + 1 AS col2 FROM tab0
----
-5047

query I rowsort
SELECT DISTINCT 44 * - + 69 FROM tab2
----
-3036

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT 67 * COUNT( * ) FROM tab1
----
201

skipif mysql # not compatible
query I rowsort label-8937
SELECT 67 * COUNT ( * ) FROM tab1
----
201

query I rowsort
SELECT ( - col1 ) * ( + 93 ) * - col1 FROM tab0
----
41013
610173
93

query I rowsort
SELECT DISTINCT + + col2 + - 96 + - col1 FROM tab2 WHERE NULL IS NULL
----
-105
-124
-133

query I rowsort
SELECT DISTINCT col0 * + 23 AS col2 FROM tab2
----
1058
1472
1725

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT 90 * - ( - COUNT( * ) ) FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-8941
SELECT 90 * - ( - COUNT ( * ) ) FROM tab0
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT DISTINCT COUNT( * ) * + - SUM( + ( col1 ) ) AS col1 FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-8942
SELECT DISTINCT COUNT ( * ) * + - SUM ( + ( col1 ) ) AS col1 FROM tab1
----
-198

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8943
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( col0, 88 + - col0 * + ( - ( - + CAST( + - 29 AS DECIMAL ) ) ), + col2 )
----

skipif mysql # not compatible
query III rowsort label-8943
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( col0, 88 + - col0 * + ( - ( - + CAST ( + - 29 AS REAL ) ) ), + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( 99, col2 / - 50, - 49, - col1 + + col1 * + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 34 col1, ( col1 ) FROM tab1 AS cor0
----
-34
14
-34
47
-34
5

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8948
SELECT - COUNT( DISTINCT - col1 ) AS col1, COUNT( - + 49 ) AS col1 FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-8948
SELECT - COUNT ( DISTINCT - col1 ) AS col1, COUNT ( - + 49 ) AS col1 FROM tab1
----
-3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8949
SELECT DISTINCT - 7 * - - MIN( CAST( - - col2 AS SIGNED ) ) + - 27 AS col0 FROM tab1 AS cor0
----
-440

skipif mysql # not compatible
query I rowsort label-8949
SELECT DISTINCT - 7 * - - MIN ( CAST ( - - col2 AS INTEGER ) ) + - 27 AS col0 FROM tab1 AS cor0
----
-440

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT ALL - MIN( ALL - col1 ) FROM tab0 AS cor0 WHERE NOT 34 BETWEEN - col1 AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL - MIN ( ALL - col1 ) FROM tab0 AS cor0 WHERE NOT 34 BETWEEN - col1 AND ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT + 8 + + + ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
5

skipif mysql # not compatible
query I rowsort label-8951
SELECT + 8 + + + ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
5

query II rowsort
SELECT ALL + 34 * + 41 AS col2, col0 AS col0 FROM tab1 AS cor0
----
1394
51
1394
85
1394
91

query I rowsort
SELECT col1 + - - 67 AS col2 FROM tab0
----
148
68
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8954
SELECT - COUNT( * ) + - 83 DIV 53 FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-8954
SELECT - COUNT ( * ) + - 83 / 53 FROM tab0
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, col2 * - - col0 col0 FROM tab2
----
23
1058
40
2560
58
4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8956
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
3

query II rowsort
SELECT col0 AS col1, + col2 + + + 76 * + + col0 FROM tab0
----
15
1187
87
6622
97
7471

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col2 BETWEEN + - col0 AND + - col2
----
87
21
10

query II rowsort
SELECT + + 57 AS col1, + col2 FROM tab0 AS cor0
----
57
10
57
47
57
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 * - + col0 col1 FROM tab1 AS cor0
----
-4794
-7990
-8554

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 64 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8962
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT 64 * - 75 + col0 + + 68 * + col2 + - col0 * + + CAST( - ( col1 ) AS SIGNED ) IS NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8962
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT 64 * - 75 + col0 + + 68 * + col2 + - col0 * + + CAST ( - ( col1 ) AS INTEGER ) IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT DISTINCT SUM( + 62 ) FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-8963
SELECT DISTINCT SUM ( + 62 ) FROM tab2 AS cor0
----
186

onlyif mysql # DIV for integer division: 
query III rowsort label-8964
SELECT col1, col1 DIV - - 41 AS col0, + - col0 - - col2 + - + 49 AS col1 FROM tab2
----
9 values hashing to 2a0b0ab9f16ab35aa93b84f0850f9838

skipif mysql # not compatible
query III rowsort label-8964
SELECT col1, col1 / - - 41 AS col0, + - col0 - - col2 + - + 49 AS col1 FROM tab2
----
9 values hashing to 2a0b0ab9f16ab35aa93b84f0850f9838

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT COUNT( * ) * 80 AS col1 FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-8965
SELECT COUNT ( * ) * 80 AS col1 FROM tab1
----
240

query I rowsort
SELECT DISTINCT col0 * + 10 AS col1 FROM tab1
----
510
850
910

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT DISTINCT 27 - + - COUNT( * ) AS col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND - col1
----
27

skipif mysql # not compatible
query I rowsort label-8967
SELECT DISTINCT 27 - + - COUNT ( * ) AS col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND - col1
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + - col0 col0 FROM tab0
----
705
870
9603

query I rowsort
SELECT DISTINCT ( - 91 ) FROM tab2
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 43 col1 FROM tab0 AS cor0
----
-43
-43
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1, - ( col0 ) + - + col1 - - 2 col2 FROM tab2 AS cor0
----
-51
-95
-67
-140
-77
-139

query I rowsort
SELECT + 8 * - 81 FROM tab0 AS cor0
----
-648
-648
-648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8973
SELECT ALL + CAST( NULL AS SIGNED ) / COUNT( * ) / + 11 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8973
SELECT ALL + CAST ( NULL AS INTEGER ) / COUNT ( * ) / + 11 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col0 * + - ( 41 ) FROM tab1
----
-2091
-3485
-3731

query III rowsort
SELECT * FROM tab2 WHERE NOT + 69 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + + 26 col1 FROM tab1
----
122
85
94

query I rowsort
SELECT 4 + col2 AS col2 FROM tab1
----
100
63
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8978
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8978
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT + 89 * col1, - col0 AS col2 FROM tab1 AS cor0
----
1246
-51
4183
-91
445
-85

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 + + 62 + + - 87 + col2 - col2 * col0 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT ALL + COUNT( * ) + + 21 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL + COUNT ( * ) + + 21 FROM tab2 AS cor0
----
24

query II rowsort
SELECT - - col1, - col1 AS col0 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

query II rowsort
SELECT + - col2, ( 36 ) AS col0 FROM tab1 AS cor0
----
-59
36
-68
36
-96
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 74 AS col1, + col0 col0 FROM tab0 AS cor0
----
-74
15
-74
87
-74
97

query I rowsort
SELECT + col1 * - col2 * col2 + + + 72 + col0 * + 36 + - ( - col2 ) FROM tab0 AS cor0
----
-178270
-6138
1114

query I rowsort
SELECT ALL + - ( + - col0 ) AS col2 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8987
SELECT ALL - col2 * col0 * - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8987
SELECT ALL - col2 * col0 * - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8988
SELECT CAST( + col2 AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8988
SELECT CAST ( + col2 AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL NOT BETWEEN - col0 * - + 37 - - + col2 + - col2 / - - col2 * - col1 + + 17 AND + 59 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8990
SELECT DISTINCT 12 * 6 AS col1, col1 + - + 3 DIV - col2 AS col0 FROM tab2
----
72
51
72
67
72
77

skipif mysql # not compatible
query II rowsort label-8990
SELECT DISTINCT 12 * 6 AS col1, col1 + - + 3 / - col2 AS col0 FROM tab2
----
72
51
72
67
72
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8991
SELECT DISTINCT - COUNT( * ) DIV - MAX( DISTINCT + col1 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8991
SELECT DISTINCT - COUNT ( * ) / - MAX ( DISTINCT + col1 ) FROM tab1
----
0

query I rowsort
SELECT ALL + + 56 - + ( - + 18 ) FROM tab0 WHERE NOT + + col2 IS NULL
----
74
74
74

query II rowsort
SELECT ALL ( col1 ) AS col0, + col2 * + 20 * - 62 + 28 AS col0 FROM tab0
----
1
-122732
21
-12372
81
-58252

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8994
SELECT CAST( - col2 AS SIGNED ) * 95 + - 31 * - CAST( NULL AS SIGNED ), 97 + - col0 col1 FROM tab2
----
NULL
22
NULL
33
NULL
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8994
SELECT CAST ( - col2 AS INTEGER ) * 95 + - 31 * - CAST ( NULL AS INTEGER ), 97 + - col0 col1 FROM tab2
----
NULL
22
NULL
33
NULL
51

onlyif mysql # DIV for integer division: 
query I rowsort label-8995
SELECT col0 DIV - 44 + 38 AS col2 FROM tab0 AS cor0
----
36
37
38

skipif mysql # not compatible
query I rowsort label-8995
SELECT col0 / - 44 + 38 AS col2 FROM tab0 AS cor0
----
36
37
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8996
SELECT + 41 * - - CAST( + 73 AS SIGNED ) + + + col2 AS col0 FROM tab2 AS cor0
----
3016
3033
3051

skipif mysql # not compatible
query I rowsort label-8996
SELECT + 41 * - - CAST ( + 73 AS INTEGER ) + + + col2 AS col0 FROM tab2 AS cor0
----
3016
3033
3051

query I rowsort
SELECT ALL 42 * col2 * col2 + + col2 AS col1 FROM tab2 AS cor0
----
141346
22241
67240

query I rowsort
SELECT DISTINCT 4 - col2 * + + col2 AS col1 FROM tab0 AS cor0
----
-2205
-96
-9797

query I rowsort
SELECT ALL ( - + col0 ) - col2 FROM tab1 AS cor0
----
-144
-147
-159

query II rowsort
SELECT DISTINCT + 98 - - col0 AS col0, - col2 FROM tab0 AS cor0
----
113
-47
185
-10
195
-99

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE NOT ( + 69 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - + 95 * 1 * - 7 AND col0
----

query I rowsort
SELECT + col2 * + - 94 AS col2 FROM tab0
----
-4418
-9306
-940

onlyif mysql # DIV for integer division: 
query II rowsort label-9004
SELECT + - 19 AS col0, - 20 DIV col1 FROM tab1 AS cor0
----
-19
-1
-19
-4
-19
0

skipif mysql # not compatible
query II rowsort label-9004
SELECT + - 19 AS col0, - 20 / col1 FROM tab1 AS cor0
----
-19
-1
-19
-4
-19
0

query I rowsort
SELECT + - 96 * col0 FROM tab2 AS cor0
----
-4416
-6144
-7200

query II rowsort
SELECT DISTINCT 34 AS col1, + col0 * - - col0 FROM tab0 cor0
----
34
225
34
7569
34
9409

query I rowsort
SELECT + col0 * - ( - - col1 ) FROM tab1 cor0
----
-425
-4277
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 74 col1 FROM tab0 AS cor0
----
-74
-74
-74

query I rowsort
SELECT + 45 * + 85 + + col0 AS col2 FROM tab2 AS cor0
----
3871
3889
3900

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col2 * + col2 + - + col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9011
SELECT ALL ( + col2 ) * - col0 + + - 15 + + 60, 23 DIV + ( + col0 ) + + 1 AS col1 FROM tab0
----
-660
2
-825
1
-9558
1

skipif mysql # not compatible
query II rowsort label-9011
SELECT ALL ( + col2 ) * - col0 + + - 15 + + 60, 23 / + ( + col0 ) + + 1 AS col1 FROM tab0
----
-660
2
-825
1
-9558
1

query I rowsort
SELECT + col2 * col0 * - col2 FROM tab1 WHERE NOT - - 52 + 81 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT DISTINCT + 45 * + - SUM( - col0 ) FROM tab0
----
8955

skipif mysql # not compatible
query I rowsort label-9013
SELECT DISTINCT + 45 * + - SUM ( - col0 ) FROM tab0
----
8955

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT + + SUM( DISTINCT - - col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9014
SELECT + + SUM ( DISTINCT - - col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9015
SELECT ALL - col2 * - - col0 + col0 + CAST( - + col2 AS SIGNED ) FROM tab0 AS cor0
----
-737
-793
-9605

skipif mysql # not compatible
query I rowsort label-9015
SELECT ALL - col2 * - - col0 + col0 + CAST ( - + col2 AS INTEGER ) FROM tab0 AS cor0
----
-737
-793
-9605

query II rowsort
SELECT ALL - - col0 * - 37, + col0 FROM tab0 AS cor0
----
-3219
87
-3589
97
-555
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9017
SELECT + COUNT( * ) DIV - 56 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9017
SELECT + COUNT ( * ) / - 56 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT col0 NOT BETWEEN NULL AND - + col2 - - ( - col1 ) * - col1 / ( 94 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9019
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9019
SELECT DISTINCT + CAST ( NULL AS REAL ) * + - col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 61 + - 74 FROM tab1 AS cor0
----
-13
-13
-13

query I rowsort
SELECT + + col1 + col0 + + col1 * - + 90 AS col0 FROM tab1 AS cor0
----
-1195
-360
-4092

query I rowsort
SELECT ALL col2 + 46 * + col0 AS col0 FROM tab2 cor0
----
2139
2984
3508

onlyif mysql # DIV for integer division: 
query I rowsort label-9023
SELECT DISTINCT 47 * + 36 + - - col1 + 53 DIV - ( - ( - col2 ) ) col0 FROM tab1 AS cor0
----
1697
1706
1739

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9023
SELECT DISTINCT 47 * + 36 + - - col1 + 53 / - ( - ( - col2 ) ) col0 FROM tab1 AS cor0
----
1697
1706
1739

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 15 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT - COUNT( * ) + 88 AS col1 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-9025
SELECT - COUNT ( * ) + 88 AS col1 FROM tab0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT - MAX( col0 ) col2 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9026
SELECT - MAX ( col0 ) col2 FROM tab1
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9028
SELECT DISTINCT 57 + 29 + + col0 - + + CAST( NULL AS SIGNED ) * + col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9028
SELECT DISTINCT 57 + 29 + + col0 - + + CAST ( NULL AS INTEGER ) * + col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9029
SELECT + CAST( 18 AS SIGNED ), CAST( NULL AS DECIMAL ) / - col0 col0 FROM tab1
----
18
NULL
18
NULL
18
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9029
SELECT + CAST ( 18 AS INTEGER ), CAST ( NULL AS REAL ) / - col0 col0 FROM tab1
----
18
NULL
18
NULL
18
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9030
SELECT 11 * SUM( DISTINCT + - CAST( - col1 AS SIGNED ) ) AS col1, 95 AS col1 FROM tab2
----
2145
95

skipif mysql # not compatible
query II rowsort label-9030
SELECT 11 * SUM ( DISTINCT + - CAST ( - col1 AS INTEGER ) ) AS col1, 95 AS col1 FROM tab2
----
2145
95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9031
SELECT - CAST( NULL AS DECIMAL ) / - MIN( ALL - 75 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9031
SELECT - CAST ( NULL AS REAL ) / - MIN ( ALL - 75 ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT AVG ( DISTINCT - + 40 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT - col2 * - 77 * + 96 FROM tab1
----
436128
502656
709632

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 BETWEEN NULL AND + + 81 + + 44
----

query I rowsort
SELECT DISTINCT col2 * 19 FROM tab0 AS cor0
----
1881
190
893

onlyif mysql # DIV for integer division: 
query II rowsort label-9036
SELECT DISTINCT + 74 * col1 AS col0, + col2 DIV - - col0 + - - 22 AS col0 FROM tab2 AS cor0
----
3774
22
4958
22
5698
22

skipif mysql # not compatible
query II rowsort label-9036
SELECT DISTINCT + 74 * col1 AS col0, + col2 / - - col0 + - - 22 AS col0 FROM tab2 AS cor0
----
3774
22
4958
22
5698
22

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + - 16 <> NULL
----

query I rowsort
SELECT ALL - + 38 AS col1 FROM tab2 cor0
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-9040
SELECT ( - COUNT( * ) ), COUNT( + col1 ) AS col0 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-9040
SELECT ( - COUNT ( * ) ), COUNT ( + col1 ) AS col0 FROM tab2 AS cor0
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9041
SELECT + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) = - - CAST( - + col0 AS SIGNED ) * + 3
----

skipif mysql # not compatible
query I rowsort label-9041
SELECT + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) = - - CAST ( - + col0 AS INTEGER ) * + 3
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9042
SELECT - - 30 * + + COUNT( * ) AS col0, - SUM( ALL - - 95 ) AS col2 FROM tab2 cor0
----
90
-285

skipif mysql # not compatible
query II rowsort label-9042
SELECT - - 30 * + + COUNT ( * ) AS col0, - SUM ( ALL - - 95 ) AS col2 FROM tab2 cor0
----
90
-285

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 col2 FROM tab1 AS cor0
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT ALL SUM( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9044
SELECT ALL SUM ( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT ALL - col2 * + - col2 AS col2 FROM tab2
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9046
SELECT - CAST( NULL AS SIGNED ) * + 38 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9046
SELECT - CAST ( NULL AS INTEGER ) * + 38 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 69 AS col1, 79 * + 72 FROM tab0
----
-69
5688
-69
5688
-69
5688

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9048
SELECT DISTINCT col0, CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-9048
SELECT DISTINCT col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

query II rowsort
SELECT ALL - col2 * + col0 + + + col1 AS col0, + ( col0 ) AS col2 FROM tab1
----
-4882
51
-5010
85
-6141
91

query II rowsort
SELECT + col0, + col2 AS col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

query II rowsort
SELECT DISTINCT + col1, col2 - - col1 AS col0 FROM tab1 AS cor0
----
14
110
47
115
5
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT DISTINCT + ( - COUNT( col1 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9052
SELECT DISTINCT + ( - COUNT ( col1 ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT 25 + + 93 AS col2 FROM tab0
----
118
118
118

query I rowsort
SELECT DISTINCT - 63 * + 47 AS col0 FROM tab0, tab2 AS cor0
----
-2961

query I rowsort
SELECT - + 64 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query II rowsort
SELECT + - ( + col0 ) AS col2, ( + col0 ) FROM tab1 WHERE + + col0 * + col2 > + - col0
----
-51
51
-85
85
-91
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= + - 89
----

query I rowsort
SELECT DISTINCT col1 + - + 37 AS col2 FROM tab0 AS cor0
----
-16
-36
44

query I rowsort
SELECT ALL col0 - - + 78 AS col2 FROM tab0
----
165
175
93

query I rowsort
SELECT DISTINCT - col2 + + - 93 + + - 95 + - col1 AS col1 FROM tab2
----
-262
-305
-313

onlyif mysql # DIV for integer division: 
query I rowsort label-9061
SELECT + 11 DIV - col2 + col2 + 38 DIV + + col2 * 4 AS col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9061
SELECT + 11 / - col2 + col2 + 38 / + + col2 * 4 AS col1 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT COUNT( * ) + + - MAX( + col0 ) * + 93 AS col2 FROM tab0
----
-9018

skipif mysql # not compatible
query I rowsort label-9062
SELECT COUNT ( * ) + + - MAX ( + col0 ) * + 93 AS col2 FROM tab0
----
-9018

query I rowsort
SELECT DISTINCT col2 * - col0 * + col2 + - - col1 AS col1 FROM tab0
----
-33054
-8679
-950696

query I rowsort
SELECT - col0 + - col1 + 6 FROM tab1 AS cor0
----
-132
-59
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + - 43 col0 FROM tab2 AS cor0
----
-101
-66
-83

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 35 - - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT DISTINCT + + ( - - COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9068
SELECT DISTINCT + + ( - - COUNT ( * ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 6 BETWEEN + 77 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9070
SELECT + CAST( + 8 AS SIGNED ) AS col2 FROM tab2
----
8
8
8

skipif mysql # not compatible
query I rowsort label-9070
SELECT + CAST ( + 8 AS INTEGER ) AS col2 FROM tab2
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9071
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
0

query I rowsort
SELECT + + col2 * - 25 FROM tab0 cor0
----
-1175
-2475
-250

query II rowsort
SELECT + 87 AS col1, + ( col0 ) * + 96 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 * - ( + + col0 ) AND - 86
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0, - col1 col2 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-9075
SELECT ALL - 62, + col1 + 65 DIV col2 AS col1 FROM tab2 cor0
----
-62
53
-62
68
-62
78

skipif mysql # not compatible
query II rowsort label-9075
SELECT ALL - 62, + col1 + 65 / col2 AS col1 FROM tab2 cor0
----
-62
53
-62
68
-62
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT + COUNT( * ) + COUNT( * ) * + - 35 + 70 col1 FROM tab1 AS cor0 WHERE NOT col0 * - 13 IS NULL
----
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9076
SELECT + COUNT ( * ) + COUNT ( * ) * + - 35 + 70 col1 FROM tab1 AS cor0 WHERE NOT col0 * - 13 IS NULL
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT - 88 * - + 50 * + COUNT( * ) col1 FROM tab0 AS cor0
----
13200

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9077
SELECT - 88 * - + 50 * + COUNT ( * ) col1 FROM tab0 AS cor0
----
13200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 col2, col1 FROM tab1 cor0
----
-59
5
-68
47
-96
14

query I rowsort
SELECT - col2 FROM tab1 cor0 WHERE NOT + col2 IS NULL
----
-59
-68
-96

query I rowsort
SELECT ALL - 74 + + col2 AS col2 FROM tab2
----
-16
-34
-51

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) <= + 46 + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9082
SELECT DISTINCT - 52 DIV + 44 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-9082
SELECT DISTINCT - 52 / + 44 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 col1 FROM tab0
----
-80
-80
-80

query I rowsort
SELECT DISTINCT 84 + + col2 FROM tab1
----
143
152
180

query I rowsort
SELECT ALL + - col2 + + ( + - col0 ) AS col2 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT col0 * + - col2 AS col1 FROM tab2 cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( - col1 ) / + col0 < + 11 + + 4
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * + 29 + + - 27 FROM tab2 AS cor0
----
1133
1655
640

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IN ( + col0 + 90 + col0, 62, 94, col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9089
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IN ( + col0 + 90 + col0, 62, 94, col1 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + + ( - 45 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col1 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT + col0 * - col0 + 14 FROM tab1 AS cor0
----
-2587
-7211
-8267

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT ALL - ( + COUNT( * ) ) - + + ( + ( + - 83 ) ) AS col1 FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL - ( + COUNT ( * ) ) - + + ( + ( + - 83 ) ) AS col1 FROM tab0 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT ( - COUNT( * ) ) + 25 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-9095
SELECT ( - COUNT ( * ) ) + 25 FROM tab2 AS cor0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9096
SELECT + col1 * + CAST( NULL AS SIGNED ) - - 31 AS col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9096
SELECT + col1 * + CAST ( NULL AS INTEGER ) - - 31 AS col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + + 74 FROM tab1 AS cor0
----
125
159
165

query I rowsort
SELECT ALL + - 81 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9099
SELECT + CAST( + 61 AS SIGNED ) FROM tab2 AS cor0
----
61
61
61

skipif mysql # not compatible
query I rowsort label-9099
SELECT + CAST ( + 61 AS INTEGER ) FROM tab2 AS cor0
----
61
61
61

onlyif mysql # DIV for integer division: 
query I rowsort label-9100
SELECT col2 DIV - 30 FROM tab1
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-9100
SELECT col2 / - 30 FROM tab1
----
-1
-2
-3

query I rowsort
SELECT + col1 * ( + + col1 ) AS col1 FROM tab1
----
196
2209
25

query I rowsort
SELECT ALL + 67 * + 97 FROM tab0
----
6499
6499
6499

onlyif mysql # aggregate syntax: 
query II rowsort label-9103
SELECT - COUNT( * ) - + 65 AS col2, 65 FROM tab2
----
-68
65

skipif mysql # not compatible
query II rowsort label-9103
SELECT - COUNT ( * ) - + 65 AS col2, 65 FROM tab2
----
-68
65

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 21 * - + col2 IS NULL
----

query I rowsort
SELECT + col1 AS col0 FROM tab2 cor0 WHERE NOT col0 * col0 * + + 39 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT - MIN( - col1 ) FROM tab2 WHERE NOT NULL < + col2 * + 36 + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9106
SELECT - MIN ( - col1 ) FROM tab2 WHERE NOT NULL < + col2 * + 36 + - col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9107
SELECT ALL col1 DIV + - col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9107
SELECT ALL col1 / + - col2 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9108
SELECT - COUNT( * ) DIV - 83 FROM tab0 AS cor0 WHERE NOT ( col1 ) * col1 + - 12 * + - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9108
SELECT - COUNT ( * ) / - 83 FROM tab0 AS cor0 WHERE NOT ( col1 ) * col1 + - 12 * + - col0 IS NULL
----
0

query I rowsort
SELECT col0 * - 49 FROM tab1 AS cor0
----
-2499
-4165
-4459

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT 67 * + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-9110
SELECT 67 * + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
201

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 69 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * - ( 51 ) AS col2 FROM tab0 AS cor0
----
4437
4947
765

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9113
SELECT - + CAST( 91 AS SIGNED ) FROM tab0 AS cor0
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-9113
SELECT - + CAST ( 91 AS INTEGER ) FROM tab0 AS cor0
----
-91
-91
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-9114
SELECT + col1 DIV 54 * - - col0 FROM tab2
----
0
64
75

skipif mysql # not compatible
query I rowsort label-9114
SELECT + col1 / 54 * - - col0 FROM tab2
----
0
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9115
SELECT ALL CAST( NULL AS SIGNED ) / + - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9115
SELECT ALL CAST ( NULL AS INTEGER ) / + - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 AS col1 FROM tab0 WHERE NOT + ( - 57 ) BETWEEN NULL AND - col0
----
87
97

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + 54 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT DISTINCT ( + MAX( ALL + 12 ) ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-9118
SELECT DISTINCT ( + MAX ( ALL + 12 ) ) FROM tab2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT ALL COUNT( ALL - + col2 ) + - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL COUNT ( ALL - + col2 ) + - COUNT ( * ) FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9120
SELECT ALL 31 AS col0 FROM tab0 WHERE CAST( + 51 AS SIGNED ) * + - ( + 50 ) * col0 + + 56 + CAST( + 79 AS SIGNED ) NOT IN ( - col0, + 57, + - 33 * - 77, - + 92 - + + col2, - - 13, - 0 * - col2 + - 16, + col0 * + - col2 )
----
31
31
31

skipif mysql # not compatible
query I rowsort label-9120
SELECT ALL 31 AS col0 FROM tab0 WHERE CAST ( + 51 AS INTEGER ) * + - ( + 50 ) * col0 + + 56 + CAST ( + 79 AS INTEGER ) NOT IN ( - col0, + 57, + - 33 * - 77, - + 92 - + + col2, - - 13, - 0 * - col2 + - 16, + col0 * + - col2 )
----
31
31
31

query I rowsort
SELECT + 70 + + + col0 AS col2 FROM tab0 WHERE col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 32 * + + 67 IS NULL
----

query I rowsort
SELECT - col2 * - - col1 AS col0 FROM tab0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab0 WHERE col1 IN ( + col1, col1, + 98, + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT + 65 + - - COUNT( * ) AS col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
65

skipif mysql # not compatible
query I rowsort label-9126
SELECT + 65 + - - COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT DISTINCT + 26 + + SUM( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-9127
SELECT DISTINCT + 26 + + SUM ( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-9128
SELECT - + 86 - - COUNT( * ) AS col0, - COUNT( * ) col1 FROM tab0 cor0
----
-83
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9128
SELECT - + 86 - - COUNT ( * ) AS col0, - COUNT ( * ) col1 FROM tab0 cor0
----
-83
-3

query I rowsort
SELECT ALL + 53 - col2 FROM tab1 AS cor0
----
-15
-43
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT ALL COUNT( * ) - - - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL COUNT ( * ) - - - COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT - 13 * + 27 * + + 81 FROM tab0
----
-28431
-28431
-28431

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9133
SELECT - - MAX( + 18 ) DIV + - 94 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9133
SELECT - - MAX ( + 18 ) / + - 94 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 > + col0
----
75
67
58

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - col1 AND col0
----

query I rowsort
SELECT - 9 FROM tab0 WHERE ( NULL ) NOT IN ( 11 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9137
SELECT DISTINCT 87 * col1 + + col0 DIV 6 col2 FROM tab2
----
4444
5841
6709

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9137
SELECT DISTINCT 87 * col1 + + col0 / 6 col2 FROM tab2
----
4444
5841
6709

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9138
SELECT * FROM tab0 WHERE NOT + col1 + col1 NOT BETWEEN ( CAST( NULL AS SIGNED ) ) AND + col2
----

skipif mysql # not compatible
query III rowsort label-9138
SELECT * FROM tab0 WHERE NOT + col1 + col1 NOT BETWEEN ( CAST ( NULL AS INTEGER ) ) AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT MIN( DISTINCT - 49 ) + - 36 * COUNT( * ) AS col0 FROM tab0
----
-157

skipif mysql # not compatible
query I rowsort label-9139
SELECT MIN ( DISTINCT - 49 ) + - 36 * COUNT ( * ) AS col0 FROM tab0
----
-157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9140
SELECT DISTINCT + col2 * - col0 FROM tab2 WHERE NOT col1 + ( + col0 ) * CAST( NULL AS SIGNED ) >= + col0
----

skipif mysql # not compatible
query I rowsort label-9140
SELECT DISTINCT + col2 * - col0 FROM tab2 WHERE NOT col1 + ( + col0 ) * CAST ( NULL AS INTEGER ) >= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT ALL ( - COUNT( * ) ) + - 25 FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-9141
SELECT ALL ( - COUNT ( * ) ) + - 25 FROM tab1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT 84 + COUNT( * ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-9142
SELECT 84 + COUNT ( * ) FROM tab2
----
87

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT 78 IS NULL
----
10
47
99

query I rowsort
SELECT col2 FROM tab2 WHERE NOT + col0 + 66 IS NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 WHERE - 98 + + col1 * col1 NOT IN ( 20 )
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9146
SELECT + CAST( - 47 AS SIGNED ) + - 88 col2 FROM tab0
----
-135
-135
-135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9146
SELECT + CAST ( - 47 AS INTEGER ) + - 88 col2 FROM tab0
----
-135
-135
-135

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) <> 10
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9148
SELECT ALL * FROM tab1 WHERE NOT + col2 <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9148
SELECT ALL * FROM tab1 WHERE NOT + col2 <> + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 col0 FROM tab1
----
51

query III rowsort
SELECT ALL * FROM tab2 WHERE + 7 BETWEEN - col1 / col2 + - col2 AND + 92
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 FROM tab0 WHERE NOT - col1 BETWEEN - ( 28 ) - + 27 * col0 AND + col2
----

query I rowsort
SELECT + col0 * 75 + 61 FROM tab0
----
1186
6586
7336

query I rowsort
SELECT DISTINCT - col0 * - ( 64 ) FROM tab1
----
3264
5440
5824

query III rowsort
SELECT * FROM tab1 WHERE NOT - 76 + col2 > ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9155
SELECT * FROM tab1 WHERE col1 <= ( CAST( + col2 AS DECIMAL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9155
SELECT * FROM tab1 WHERE col1 <= ( CAST ( + col2 AS REAL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9156
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND + CAST( - 85 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9156
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND + CAST ( - 85 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT COUNT( ALL 30 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9157
SELECT COUNT ( ALL 30 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT ( - col2 ) * col1 AS col2 FROM tab2
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 col2 FROM tab1 WHERE NOT NULL NOT BETWEEN - col2 AND + 19
----

query I rowsort
SELECT + 71 + - 3 AS col1 FROM tab2
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT DISTINCT - COUNT( * ) col0 FROM tab1 cor0 WHERE NOT NULL < col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9161
SELECT DISTINCT - COUNT ( * ) col0 FROM tab1 cor0 WHERE NOT NULL < col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT - COUNT( * ) + 94 AS col2 FROM tab1 WHERE 76 IN ( + col1 / + 29 - + 26 )
----
94

skipif mysql # not compatible
query I rowsort label-9162
SELECT - COUNT ( * ) + 94 AS col2 FROM tab1 WHERE 76 IN ( + col1 / + 29 - + 26 )
----
94

query I rowsort
SELECT ALL 86 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 96 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + + col1 col2 FROM tab1 cor0
----
-37
-44
-80

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE + col0 IN ( - col0 - + 11 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9167
SELECT DISTINCT - col0 DIV + col1 + col0 AS col0 FROM tab1 AS cor0
----
48
68
90

skipif mysql # not compatible
query I rowsort label-9167
SELECT DISTINCT - col0 / + col1 + col0 AS col0 FROM tab1 AS cor0
----
48
68
90

query I rowsort
SELECT DISTINCT + ( + 26 ) FROM tab2 AS cor0
----
26

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= + col0 + - 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT + 58 * COUNT( * ) FROM tab0 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-9170
SELECT + 58 * COUNT ( * ) FROM tab0 AS cor0
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT DISTINCT - COUNT( - col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9171
SELECT DISTINCT - COUNT ( - col2 ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 BETWEEN - col0 * 84 AND - col2 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT 49 + + ( + ( - 69 ) - 30 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9174
SELECT + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT - col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9174
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT - col1 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT - COUNT( DISTINCT - - ( + 19 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9175
SELECT - COUNT ( DISTINCT - - ( + 19 ) ) FROM tab0
----
-1

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT ( - ( 45 ) ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( col1 * 46 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT ALL + + MAX( 98 ) FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-9178
SELECT ALL + + MAX ( 98 ) FROM tab0 AS cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT + MAX( - 38 ) * 31 FROM tab0 AS cor0
----
-1178

skipif mysql # not compatible
query I rowsort label-9179
SELECT + MAX ( - 38 ) * 31 FROM tab0 AS cor0
----
-1178

query I rowsort
SELECT - - col1 * 59 + - col0 AS col0 FROM tab1 AS cor0
----
210
2682
775

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9181
SELECT CAST( NULL AS DECIMAL ) + + 65 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN col2 AND + col0
----

skipif mysql # not compatible
query I rowsort label-9181
SELECT CAST ( NULL AS REAL ) + + 65 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN col2 AND + col0
----

query I rowsort
SELECT DISTINCT 84 * + col2 + col2 AS col2 FROM tab2
----
1955
3400
4930

query I rowsort
SELECT ALL - 41 * - + col2 + - col1 + + col1 AS col1 FROM tab1
----
2419
2788
3936

query II rowsort
SELECT - 33, + ( - - 22 ) * col2 AS col2 FROM tab0 AS cor0
----
-33
1034
-33
2178
-33
220

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + + col2 >= ( NULL )
----

query I rowsort
SELECT ( col1 ) FROM tab0 AS cor0 WHERE - 18 * + col0 >= ( + 94 )
----

query II rowsort
SELECT - 40 AS col0, + col2 AS col2 FROM tab2 AS cor0
----
-40
23
-40
40
-40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9188
SELECT + + col1 * - col2 * - col0 + col2 DIV - 76 AS col0 FROM tab0 AS cor0
----
18270
57105
9602

skipif mysql # not compatible
query I rowsort label-9188
SELECT + + col1 * - col2 * - col0 + col2 / - 76 AS col0 FROM tab0 AS cor0
----
18270
57105
9602

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT ALL + SUM( DISTINCT + - col2 ) * - ( + 66 ) FROM tab2 AS cor0
----
7986

skipif mysql # not compatible
query I rowsort label-9189
SELECT ALL + SUM ( DISTINCT + - col2 ) * - ( + 66 ) FROM tab2 AS cor0
----
7986

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NULL OR NOT col1 BETWEEN NULL AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + ( 93 ) ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT - - 72 * + COUNT( * ) FROM tab0 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-9192
SELECT - - 72 * + COUNT ( * ) FROM tab0 AS cor0
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT COUNT( * ) * - - MIN( + - 47 ) FROM tab2 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-9193
SELECT COUNT ( * ) * - - MIN ( + - 47 ) FROM tab2 AS cor0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT ALL - 63 * + + 41 + + COUNT( * ) col0 FROM tab1 AS cor0
----
-2580

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9194
SELECT ALL - 63 * + + 41 + + COUNT ( * ) col0 FROM tab1 AS cor0
----
-2580

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9195
SELECT DISTINCT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / + col1 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9195
SELECT DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / + col1 + + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN + col0 AND + col2 / + ( - col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9197
SELECT ALL - 63 DIV + MIN( ALL - 39 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL - 63 / + MIN ( ALL - 39 ) FROM tab0
----
1

query I rowsort
SELECT ALL 55 FROM tab2 WHERE NOT col0 < + col2 * col2 - 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT DISTINCT SUM( ( + - 65 ) ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-9199
SELECT DISTINCT SUM ( ( + - 65 ) ) AS col0 FROM tab2
----
-195

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col1 ) > + col1 * + 83
----

query I rowsort
SELECT DISTINCT + 39 + - + col1 + - + ( + + col1 ) AS col0 FROM tab1
----
-55
11
29

onlyif mysql # DIV for integer division: 
query I rowsort label-9202
SELECT - col2 DIV col2 + - 31 - - + ( col2 ) + - col2 * col0 FROM tab2
----
-1067
-2552
-4324

skipif mysql # not compatible
query I rowsort label-9202
SELECT - col2 / col2 + - 31 - - + ( col2 ) + - col2 * col0 FROM tab2
----
-1067
-2552
-4324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9203
SELECT ALL + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
0

query I rowsort
SELECT ALL col1 + 73 FROM tab2 AS cor0
----
124
140
150

query I rowsort
SELECT ALL + + col2 - - 59 + + 28 + - - 60 * col0 FROM tab1 AS cor0
----
3243
5246
5615

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT + - ( ( + + COUNT( ALL - col1 ) ) ) + + MIN( DISTINCT + col1 ) * + 55 FROM tab1 AS cor0
----
272

skipif mysql # not compatible
query I rowsort label-9206
SELECT + - ( ( + + COUNT ( ALL - col1 ) ) ) + + MIN ( DISTINCT + col1 ) * + 55 FROM tab1 AS cor0
----
272

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col1 * - col0 * + + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9208
SELECT - CAST( NULL AS SIGNED ) + + + 17 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9208
SELECT - CAST ( NULL AS INTEGER ) + + + 17 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + 12 AS col0 FROM tab1 cor0
----
108
71
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT - COUNT( * ) + - + 31 AS col1 FROM tab1 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-9210
SELECT - COUNT ( * ) + - + 31 AS col1 FROM tab1 AS cor0
----
-34

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT + 64 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + + 75 AS col1 FROM tab1 AS cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 59 col1, col1 FROM tab1 AS cor0
----
59
14
59
47
59
5

query I rowsort
SELECT + - 40 AS col0 FROM tab2 AS cor0
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT ALL 36 * 66 * SUM( DISTINCT - col2 ) * + ( - MIN( - col2 ) ) AS col2 FROM tab2 AS cor0
----
-16674768

skipif mysql # not compatible
query I rowsort label-9215
SELECT ALL 36 * 66 * SUM ( DISTINCT - col2 ) * + ( - MIN ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
-16674768

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9216
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col2 * - col2 / + - col1 ) NOT BETWEEN ( + CAST( + col2 AS SIGNED ) ) AND col2 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9216
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col2 * - col2 / + - col1 ) NOT BETWEEN ( + CAST ( + col2 AS INTEGER ) ) AND col2 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 IN ( + - 41 - + 79 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9218
SELECT DISTINCT - 48 col1 FROM tab0 cor0 WHERE ( col2 + - - CAST( NULL AS SIGNED ) * + 57 ) NOT IN ( 41 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9218
SELECT DISTINCT - 48 col1 FROM tab0 cor0 WHERE ( col2 + - - CAST ( NULL AS INTEGER ) * + 57 ) NOT IN ( 41 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 13 IN ( + + 33 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + 50 AS col1, 24 AS col0 FROM tab0
----
50
24
50
24
50
24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-9221
SELECT ALL COUNT( * ) AS col0, 60, MIN( CAST( NULL AS DECIMAL ) ) * 10 AS col0 FROM tab0
----
3
60
NULL

skipif mysql # not compatible
query III rowsort label-9221
SELECT ALL COUNT ( * ) AS col0, 60, MIN ( CAST ( NULL AS REAL ) ) * 10 AS col0 FROM tab0
----
3
60
NULL

query II rowsort
SELECT col2, 99 FROM tab1
----
59
99
68
99
96
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT - COUNT( DISTINCT - col2 ) col0 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9223
SELECT - COUNT ( DISTINCT - col2 ) col0 FROM tab2
----
-3

query I rowsort
SELECT ALL - - 97 FROM tab2 WHERE NOT - col0 * - col2 IS NULL
----
97
97
97

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 11 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT - MIN( DISTINCT col2 ) FROM tab1 AS cor0 WHERE NOT 9 * 22 <> ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9226
SELECT - MIN ( DISTINCT col2 ) FROM tab1 AS cor0 WHERE NOT 9 * 22 <> ( + col1 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9227
SELECT - + 53 * + 55 + - col1 DIV + - col2 AS col1 FROM tab0 cor0
----
-2913
-2914
-2915

skipif mysql # not compatible
query I rowsort label-9227
SELECT - + 53 * + 55 + - col1 / + - col2 AS col1 FROM tab0 cor0
----
-2913
-2914
-2915

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9228
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE NOT - 58 + + CAST( NULL AS SIGNED ) IS NOT NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE NOT - 58 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9229
SELECT DISTINCT COUNT( * ) + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN - col2 * + col0 + - + 81 AND + - CAST( 21 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9229
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN - col2 * + col0 + - + 81 AND + - CAST ( 21 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT DISTINCT SUM( ALL + - col1 ) * + - 54 FROM tab0 AS cor0
----
5562

skipif mysql # not compatible
query I rowsort label-9230
SELECT DISTINCT SUM ( ALL + - col1 ) * + - 54 FROM tab0 AS cor0
----
5562

query I rowsort
SELECT ALL 42 + + 57 AS col0 FROM tab2 AS cor0 WHERE NOT 68 + col2 IS NULL
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT - MIN( ALL 80 ) AS col2 FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-9232
SELECT - MIN ( ALL 80 ) AS col2 FROM tab1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT + - SUM( ALL - - 7 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-63

skipif mysql # not compatible
query I rowsort label-9233
SELECT + - SUM ( ALL - - 7 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-63

query I rowsort
SELECT ALL - ( 38 ) + col1 FROM tab2
----
13
29
39

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 70 * col1 / - col2 < NULL
----

query I rowsort
SELECT + col1 + + col1 + - col0 * - - 40 * + ( col1 ) * ( 57 ) - + col0 + - col2 FROM tab2 AS cor0
----
-11235790
-11456999
-5348847

query I rowsort
SELECT ALL + 73 + col1 FROM tab2 AS cor0
----
124
140
150

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT DISTINCT - COUNT( DISTINCT + ( + 34 ) ) + 89 + - + ( - 9 ) FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9238
SELECT DISTINCT - COUNT ( DISTINCT + ( + 34 ) ) + 89 + - + ( - 9 ) FROM tab2 AS cor0
----
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col0 * - 78 + ( col1 ) + 0 < ( NULL ) )
----

query I rowsort
SELECT DISTINCT - 15 * - col0 * + col0 + + 35 FROM tab0 AS cor0
----
113570
141170
3410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9241
SELECT ALL - - col2 + ( + col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL - - col2 + ( + col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - + 45 + + col1 + col0 + col1 FROM tab0 AS cor0
----
132
54
84

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT - col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT ALL - MIN( ALL 72 ) AS col1 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL - MIN ( ALL 72 ) AS col1 FROM tab2 AS cor0
----
-72

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE + col1 * - - col1 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT + MIN( col2 ) + + + COUNT( * ) AS col0 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-9246
SELECT + MIN ( col2 ) + + + COUNT ( * ) AS col0 FROM tab2
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-9247
SELECT - COUNT( * ) AS col0, - 60 + - ( 21 ) AS col2 FROM tab1
----
-3
-81

skipif mysql # not compatible
query II rowsort label-9247
SELECT - COUNT ( * ) AS col0, - 60 + - ( 21 ) AS col2 FROM tab1
----
-3
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9248
SELECT DISTINCT COUNT( * ) AS col0, - CAST( - SUM( col1 ) AS SIGNED ) * + COUNT( * ) AS col0 FROM tab0
----
3
309

skipif mysql # not compatible
query II rowsort label-9248
SELECT DISTINCT COUNT ( * ) AS col0, - CAST ( - SUM ( col1 ) AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab0
----
3
309

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 90 IN ( + ( - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col2 AS col1, col0 AS col1 FROM tab1
----
-59
85
-68
91
-96
51

query I rowsort
SELECT DISTINCT + 90 - + col2 AS col1 FROM tab1 cor0
----
-6
22
31

onlyif mysql # DIV for integer division: 
query I rowsort label-9252
SELECT ALL + + col1 - 30 DIV col1 FROM tab0 AS cor0
----
-29
20
81

skipif mysql # not compatible
query I rowsort label-9252
SELECT ALL + + col1 - 30 / col1 FROM tab0 AS cor0
----
-29
20
81

query I rowsort
SELECT + col1 + ( col0 ) - - 50 + + - col1 AS col1 FROM tab0 AS cor0
----
137
147
65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9254
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST( + 25 AS SIGNED ) * + col0 - + col0 NOT BETWEEN - col2 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9254
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST ( + 25 AS INTEGER ) * + col0 - + col0 NOT BETWEEN - col2 AND ( NULL )
----

query I rowsort
SELECT col1 * col0 * col2 * - 48 + col2 FROM tab1
----
-1203541
-13960060
-3290016

query II rowsort
SELECT ALL 97 - - - col2, + col1 FROM tab2
----
39
67
57
77
74
51

query II rowsort
SELECT DISTINCT + col2 * - + 13, ( + col1 ) AS col1 FROM tab2
----
-299
51
-520
77
-754
67

query I rowsort
SELECT - 43 * - col0 AS col2 FROM tab2
----
1978
2752
3225

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT NULL < NULL )
----

query I rowsort
SELECT DISTINCT - 49 * col0 FROM tab2 AS cor0
----
-2254
-3136
-3675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * + col1 col2, col2 + - 50 AS col0 FROM tab1 AS cor0
----
-425
9
-4277
18
-714
46

query I rowsort
SELECT DISTINCT + 26 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IN ( - - col1 * + ( - - ( - - col0 ) ) + 10 + col0 )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9263
SELECT + CAST( + ( + COUNT( * ) ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9263
SELECT + CAST ( + ( + COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9264
SELECT COUNT( + 80 ), COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9264
SELECT COUNT ( + 80 ), COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT ALL + + col0 / + col1 AS col2 FROM tab1 AS cor0 WHERE col2 + - - col2 = NULL
----

query II rowsort
SELECT ALL - col0, col2 AS col2 FROM tab0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query II rowsort label-9267
SELECT + COUNT( * ) col2, + 61 FROM tab2
----
3
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9267
SELECT + COUNT ( * ) col2, + 61 FROM tab2
----
3
61

query I rowsort
SELECT DISTINCT ( - 90 ) * col0 FROM tab2
----
-4140
-5760
-6750

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + ( + - ( 73 ) ) + - ( - 33 ) * + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT + SUM( DISTINCT - col0 ) FROM tab2 WHERE NOT NULL BETWEEN - + col2 + - - col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9270
SELECT + SUM ( DISTINCT - col0 ) FROM tab2 WHERE NOT NULL BETWEEN - + col2 + - - col2 AND NULL
----
NULL

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT - ( + + col2 ) <> NULL
----

query I rowsort
SELECT col2 FROM tab1 WHERE NOT ( - - col0 ) NOT BETWEEN + col2 + - - 80 AND - 22
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9273
SELECT - COUNT( * ) DIV + MAX( ALL 99 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9273
SELECT - COUNT ( * ) / + MAX ( ALL 99 ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 16 + col1 AS col1 FROM tab1 cor0
----
-11
-2
31

query I rowsort
SELECT - - 92 * + - col1 * - col1 + - col1 FROM tab1 AS cor0
----
18018
203181
2295

query I rowsort
SELECT 98 + + - 13 FROM tab1
----
85
85
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9277
SELECT * FROM tab1 WHERE + col0 / + + col1 * ( + CAST( - + 91 AS SIGNED ) ) <> + - 98
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9277
SELECT * FROM tab1 WHERE + col0 / + + col1 * ( + CAST ( - + 91 AS INTEGER ) ) <> + - 98
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 75 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col2, col0 * - col1 - + + col0 * 18 col0 FROM tab2
----
51
-3174
67
-6375
77
-6080

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT MAX( DISTINCT + + col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9280
SELECT MAX ( DISTINCT + + col2 ) AS col2 FROM tab0 AS cor0
----
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 / + 61 * col2 + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 - 78 <= - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9283
SELECT - + ( - - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9283
SELECT - + ( - - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9284
SELECT CAST( - 51 AS SIGNED ) - - 83 col0 FROM tab0
----
32
32
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9284
SELECT CAST ( - 51 AS INTEGER ) - - 83 col0 FROM tab0
----
32
32
32

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT ( col2 ), col2 FROM tab2
----
23
23
40
40
58
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 + - col1 * - 83 * - - col1 IS NOT NULL
----

query I rowsort
SELECT col1 + ( ( 89 ) ) FROM tab2
----
140
156
166

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT DISTINCT + COUNT( * ) + + 97 * - COUNT( * ) + - - COUNT( * ) FROM tab2
----
-285

skipif mysql # not compatible
query I rowsort label-9289
SELECT DISTINCT + COUNT ( * ) + + 97 * - COUNT ( * ) + - - COUNT ( * ) FROM tab2
----
-285

query III rowsort
SELECT * FROM tab2 WHERE col2 BETWEEN ( + 33 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT ALL COUNT( * ) * - 63 FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL COUNT ( * ) * - 63 FROM tab0
----
-189

query I rowsort
SELECT + col1 + - + 93 AS col1 FROM tab2
----
-16
-26
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9293
SELECT DISTINCT + - col1 + - col0 AS col0 FROM tab2 AS cor0 WHERE + col0 * + col0 > + col2 + - CAST( col0 AS SIGNED )
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-9293
SELECT DISTINCT + - col1 + - col0 AS col0 FROM tab2 AS cor0 WHERE + col0 * + col0 > + col2 + - CAST ( col0 AS INTEGER )
----
-141
-142
-97

query I rowsort
SELECT DISTINCT + col0 - 77 * col2 * - 84 FROM tab2 cor0
----
148810
258784
375219

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col2 * - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9296
SELECT - CAST( + CAST( - 99 AS SIGNED ) AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

skipif mysql # not compatible
query I rowsort label-9296
SELECT - CAST ( + CAST ( - 99 AS INTEGER ) AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT ( ( - col1 <= ( + col1 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT ALL COUNT( DISTINCT - - col0 ) * COUNT( ALL - col0 ) + - 48 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-9298
SELECT ALL COUNT ( DISTINCT - - col0 ) * COUNT ( ALL - col0 ) + - 48 FROM tab0 AS cor0
----
-39

query I rowsort
SELECT DISTINCT - ( col1 ) * - col0 AS col0 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9300
SELECT + ( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9300
SELECT + ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col2 AS col0, col0 FROM tab2 cor0 WHERE NOT ( NOT NULL <= NULL )
----

query I rowsort
SELECT + col0 * 40 FROM tab1 cor0
----
2040
3400
3640

query II rowsort
SELECT - col0 AS col2, + col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + col1 + col0
----

query I rowsort
SELECT DISTINCT - 35 * - 47 FROM tab1
----
1645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9306
SELECT ALL CAST( + col1 AS SIGNED ) * 51 FROM tab0
----
1071
4131
51

skipif mysql # not compatible
query I rowsort label-9306
SELECT ALL CAST ( + col1 AS INTEGER ) * 51 FROM tab0
----
1071
4131
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT SUM( col0 ) + - + 81 AS col0 FROM tab1
----
146

skipif mysql # not compatible
query I rowsort label-9307
SELECT SUM ( col0 ) + - + 81 AS col0 FROM tab1
----
146

query I rowsort
SELECT ALL - col1 + + + 8 AS col1 FROM tab2
----
-43
-59
-69

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 5 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-9310
SELECT DISTINCT + SUM( ALL + + col1 ) AS col2, - 90 AS col2 FROM tab1 cor0
----
66
-90

skipif mysql # not compatible
query II rowsort label-9310
SELECT DISTINCT + SUM ( ALL + + col1 ) AS col2, - 90 AS col2 FROM tab1 cor0
----
66
-90

query I rowsort
SELECT + 33 * + col0 FROM tab2
----
1518
2112
2475

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 93 IS NULL
----

query I rowsort
SELECT + col0 FROM tab2 WHERE + 71 IS NOT NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9314
SELECT DISTINCT + col1 DIV - col2 + + + 14 + col0 * + + ( - - col1 ) FROM tab2 AS cor0
----
2358
4941
5038

skipif mysql # not compatible
query I rowsort label-9314
SELECT DISTINCT + col1 / - col2 + + + 14 + col0 * + + ( - - col1 ) FROM tab2 AS cor0
----
2358
4941
5038

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9315
SELECT ALL + CAST( 20 AS SIGNED ) - - + col0 + + col2 FROM tab2 cor0
----
124
153
89

skipif mysql # not compatible
query I rowsort label-9315
SELECT ALL + CAST ( 20 AS INTEGER ) - - + col0 + + col2 FROM tab2 cor0
----
124
153
89

query I rowsort
SELECT + col1 + - + col2 AS col0 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # DIV for integer division: 
query I rowsort label-9317
SELECT ALL ( col2 ) * col2 DIV col1 - - - ( - - ( - + 49 ) ) FROM tab1 AS cor0
----
147
707
745

skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL ( col2 ) * col2 / col1 - - - ( - - ( - + 49 ) ) FROM tab1 AS cor0
----
147
707
745

query I rowsort
SELECT - col0 * + col0 * + + col0 + col2 AS col1 FROM tab0 cor0
----
-3328
-658493
-912574

query I rowsort
SELECT col0 * + 25 * col1 FROM tab1
----
10625
106925
17850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9320
SELECT + CAST( NULL AS SIGNED ) col1 FROM tab2 WHERE col0 = NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9320
SELECT + CAST ( NULL AS INTEGER ) col1 FROM tab2 WHERE col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT COUNT( * ) * 33 * COUNT( * ) FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-9321
SELECT COUNT ( * ) * 33 * COUNT ( * ) FROM tab1
----
297

query II rowsort
SELECT ALL col1 AS col1, + col1 + - col2 FROM tab1
----
14
-82
47
-21
5
-54

query I rowsort
SELECT ALL col0 + 93 FROM tab0
----
108
180
190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 + - - 83 * + 4 + - 1 * - - col1 * - + 91, - col2 col1 FROM tab2 cor0
----
4996
-23
6487
-58
7379
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-9325
SELECT ALL - SUM( ALL + + 56 ), - 6 * 79 AS col0 FROM tab1 AS cor0
----
-168
-474

skipif mysql # not compatible
query II rowsort label-9325
SELECT ALL - SUM ( ALL + + 56 ), - 6 * 79 AS col0 FROM tab1 AS cor0
----
-168
-474

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT ALL - + SUM( + - col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9326
SELECT ALL - + SUM ( + - col1 ) AS col0 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT DISTINCT - - MAX( ALL 64 ) AS col2 FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-9327
SELECT DISTINCT - - MAX ( ALL 64 ) AS col2 FROM tab1 AS cor0
----
64

query I rowsort
SELECT - 51 * 81 AS col1 FROM tab1
----
-4131
-4131
-4131

query I rowsort
SELECT + 60 * ( - col1 ) + col0 + + col1 FROM tab1 cor0
----
-210
-2682
-775

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9330
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST( + + ( + - col0 ) AS SIGNED ) BETWEEN 3 AND - ( - + col2 ) * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9330
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST ( + + ( + - col0 ) AS INTEGER ) BETWEEN 3 AND - ( - + col2 ) * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 25 FROM tab0 cor0 WHERE NOT col2 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9332
SELECT COUNT( * ) * + + 14 + + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9332
SELECT COUNT ( * ) * + + 14 + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + 78 FROM tab2 cor0 WHERE NOT col0 * + + col0 >= NULL
----

query I rowsort
SELECT ALL 54 * - col0 FROM tab1 AS cor0
----
-2754
-4590
-4914

onlyif mysql # aggregate syntax: 
query II rowsort label-9335
SELECT DISTINCT - COUNT( DISTINCT - + col2 ) AS col1, + 1 AS col2 FROM tab1 AS cor0
----
-3
1

skipif mysql # not compatible
query II rowsort label-9335
SELECT DISTINCT - COUNT ( DISTINCT - + col2 ) AS col1, + 1 AS col2 FROM tab1 AS cor0
----
-3
1

query I rowsort
SELECT DISTINCT - + col2 * - col1 AS col0 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT ALL - 63 * - 81 AS col1 FROM tab0 AS cor0
----
5103
5103
5103

query I rowsort
SELECT ALL - - ( + 52 ) * - 55 * - - col1 AS col1 FROM tab2 AS cor0
----
-145860
-191620
-220220

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9339
SELECT 94, col0 * + CAST( - col1 AS SIGNED ) AS col2 FROM tab1
----
94
-425
94
-4277
94
-714

skipif mysql # not compatible
query II rowsort label-9339
SELECT 94, col0 * + CAST ( - col1 AS INTEGER ) AS col2 FROM tab1
----
94
-425
94
-4277
94
-714

query I rowsort
SELECT ALL col2 * col2 * - 71 * - col1 AS col0 FROM tab2
----
16002548
1915509
8747200

query I rowsort
SELECT ALL - 20 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9342
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( - CAST( col0 AS SIGNED ), + col0 + + + col1 * + col0, + col2, - col1 )
----

skipif mysql # not compatible
query III rowsort label-9342
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( - CAST ( col0 AS INTEGER ), + col0 + + + col1 * + col0, + col2, - col1 )
----

query I rowsort
SELECT DISTINCT 23 * 10 FROM tab1
----
230

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 NOT BETWEEN - - 10 AND + 91
----
97
1
99

query I rowsort
SELECT + - col1 + 0 FROM tab0 AS cor0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 ) * + col2 * - col2 col0 FROM tab2 AS cor0
----
-123200
-225388
-26979

query I rowsort
SELECT ALL + 69 * - col1 FROM tab0 AS cor0
----
-1449
-5589
-69

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN + col1 AND 40
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 30 < - + col0
----
87
21
10
97
1
99

query I rowsort
SELECT ALL + col0 / col2 * + col2 + + col0 FROM tab2 WHERE NOT col2 <= 89
----

query I rowsort
SELECT ALL col1 - col1 + + col2 AS col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT + + col0 + - + 91 AS col0 FROM tab2 AS cor0
----
-16
-27
-45

query I rowsort
SELECT + col1 - 45 AS col1 FROM tab2 AS cor0
----
22
32
6

query I rowsort
SELECT + ( + + col0 ) - + + ( + 71 ) AS col1 FROM tab2 AS cor0
----
-25
-7
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT DISTINCT COUNT( * ) * ( 3 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9356
SELECT DISTINCT COUNT ( * ) * ( 3 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + col2 - - + col2 + col0 FROM tab2 AS cor0
----
144
191
92

query I rowsort
SELECT ALL 2 FROM tab2 AS cor0 WHERE NOT NULL < 62 * - col0
----

query I rowsort
SELECT - 20 FROM tab1 AS cor0 WHERE col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 + - + col2 col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9361
SELECT DISTINCT 66 AS col0, 35 * CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
66
NULL

skipif mysql # not compatible
query II rowsort label-9361
SELECT DISTINCT 66 AS col0, 35 * CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
66
NULL

query I rowsort
SELECT DISTINCT - col2 - - col1 AS col2 FROM tab1
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT ALL + MIN( DISTINCT + + 38 ) AS col2 FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-9363
SELECT ALL + MIN ( DISTINCT + + 38 ) AS col2 FROM tab0
----
38

query I rowsort
SELECT 74 * - 67 FROM tab2
----
-4958
-4958
-4958

query I rowsort
SELECT col2 * + 89 FROM tab0
----
4183
8811
890

query I rowsort
SELECT ( - col2 ) * - - col0 AS col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9368
SELECT - - col1 DIV + + col0 AS col0 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-9368
SELECT - - col1 / + + col0 AS col0 FROM tab0 AS cor0
----
0
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT ALL COUNT( + col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL COUNT ( + col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + ( - - ( - col2 ) ) ) col0 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT + col1 * + - 20 FROM tab1
----
-100
-280
-940

query II rowsort
SELECT DISTINCT 80, + col0 * - col2 AS col2 FROM tab2
----
80
-1058
80
-2560
80
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT COUNT( * ) * + 42 * 95 AS col2 FROM tab0 AS cor0
----
11970

skipif mysql # not compatible
query I rowsort label-9373
SELECT COUNT ( * ) * + 42 * 95 AS col2 FROM tab0 AS cor0
----
11970

query I rowsort
SELECT DISTINCT - col1 + + - 28 AS col1 FROM tab1 AS cor0
----
-33
-42
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-9375
SELECT DISTINCT + 6 col2, + MIN( + col0 ) AS col1 FROM tab0 cor0
----
6
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9375
SELECT DISTINCT + 6 col2, + MIN ( + col0 ) AS col1 FROM tab0 cor0
----
6
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9376
SELECT col0, - CAST( + - ( col2 ) AS SIGNED ) * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-9376
SELECT col0, - CAST ( + - ( col2 ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
51
NULL
85
NULL
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT DISTINCT MIN( ALL col2 ) * - 76 FROM tab2 cor0
----
-1748

skipif mysql # not compatible
query I rowsort label-9377
SELECT DISTINCT MIN ( ALL col2 ) * - 76 FROM tab2 cor0
----
-1748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9378
SELECT - - col0 FROM tab1 AS cor0 WHERE NOT ( + + col1 ) * - CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-9378
SELECT - - col0 FROM tab1 AS cor0 WHERE NOT ( + + col1 ) * - CAST ( NULL AS INTEGER ) >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9379
SELECT - COUNT( * ) + - COUNT( * ) AS col1, + 98 AS col0 FROM tab1
----
-6
98

skipif mysql # not compatible
query II rowsort label-9379
SELECT - COUNT ( * ) + - COUNT ( * ) AS col1, + 98 AS col0 FROM tab1
----
-6
98

query I rowsort
SELECT 54 * 22 + + col0 FROM tab2
----
1234
1252
1263

query II rowsort
SELECT ALL + 63 + + col0 AS col1, col1 + - col1 AS col0 FROM tab1
----
114
0
148
0
154
0

query III rowsort
SELECT * FROM tab0 WHERE 0 < - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 36 * - + col2 AS col1 FROM tab0 cor0
----
1692
3564
360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9384
SELECT DISTINCT col2 + - col1 + + + 54 * + col1 - - CAST( NULL AS SIGNED ) * + 31 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9384
SELECT DISTINCT col2 + - col1 + + + 54 * + col1 - - CAST ( NULL AS INTEGER ) * + 31 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 59 + - col2 * + 64 FROM tab0
----
-2949
-581
-6277

query I rowsort
SELECT DISTINCT col1 * + 54 * + - col1 + + col2 AS col2 FROM tab0 cor0
----
-23804
-354247
45

query I rowsort
SELECT DISTINCT - - col1 - - + col2 AS col0 FROM tab2 cor0
----
117
125
74

query I rowsort
SELECT ALL - - col2 + - col1 * - + 93 * 59 AS col2 FROM tab0 AS cor0 WHERE + col1 * + 67 IS NOT NULL
----
115237
444494
5586

query I rowsort
SELECT + 13 * + col0 AS col2 FROM tab2 cor0
----
598
832
975

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT ALL - - COUNT( * ) - + 46 AS col1 FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-9390
SELECT ALL - - COUNT ( * ) - + 46 AS col1 FROM tab1 AS cor0
----
-43

query I rowsort
SELECT DISTINCT - col0 * + + col0 + - - ( - col1 ) * + - col0 * - ( + - 27 ) FROM tab2 AS cor0
----
128960
130050
61226

query I rowsort
SELECT DISTINCT - ( + 92 ) FROM tab1 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL col0 + col1 * - col0 * - + col0 * - 38 - + - col1 + - 83 FROM tab1 AS cor0
----
-1372743
-1383750
-14789811

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT + - SUM( 4 ) FROM tab2 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-9394
SELECT + - SUM ( 4 ) FROM tab2 cor0
----
-12

query I rowsort
SELECT + - col2 + + col0 AS col2 FROM tab0 WHERE NOT col1 + + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT + MIN( - - 74 ) * + MIN( + - col2 ) AS col0 FROM tab1
----
-7104

skipif mysql # not compatible
query I rowsort label-9396
SELECT + MIN ( - - 74 ) * + MIN ( + - col2 ) AS col0 FROM tab1
----
-7104

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT - ( - ( + COUNT( * ) ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9397
SELECT - ( - ( + COUNT ( * ) ) ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT + COUNT( * ) * + 24 AS col2 FROM tab2, tab2 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-9398
SELECT + COUNT ( * ) * + 24 AS col2 FROM tab2, tab2 AS cor0
----
216

query I rowsort
SELECT ALL + ( ( + - 55 ) ) FROM tab0
----
-55
-55
-55

query I rowsort
SELECT DISTINCT + 78 * - col0 - - + col1 AS col1 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-3537
-4915
-5783

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9401
SELECT DISTINCT - col0 - + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col2 + col1 * - col1 * + col1 * + + 70 NOT BETWEEN NULL AND + 17
----

skipif mysql # not compatible
query I rowsort label-9401
SELECT DISTINCT - col0 - + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col2 + col1 * - col1 * + col1 * + + 70 NOT BETWEEN NULL AND + 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT + - ( COUNT( * ) ) col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9402
SELECT + - ( COUNT ( * ) ) col2 FROM tab1 cor0
----
-3

query I rowsort
SELECT + - 53 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9404
SELECT DISTINCT COUNT( * ), - SUM( + col1 ) AS col1 FROM tab2
----
3
-195

skipif mysql # not compatible
query II rowsort label-9404
SELECT DISTINCT COUNT ( * ), - SUM ( + col1 ) AS col1 FROM tab2
----
3
-195

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 85 = col1
----

query I rowsort
SELECT DISTINCT + - 94 + - + 12 AS col0 FROM tab0 AS cor0
----
-106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 col0 FROM tab2 AS cor0
----
20
20
20

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 * - + 50 - + - 27 * - - 99 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT DISTINCT - MIN( ALL + - ( + 22 ) ) AS col0 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-9409
SELECT DISTINCT - MIN ( ALL + - ( + 22 ) ) AS col0 FROM tab2 AS cor0
----
22

query I rowsort
SELECT col1 * - 71 FROM tab1 AS cor0
----
-3337
-355
-994

query II rowsort
SELECT 98, + col1 * col1 * + col0 * - 82 AS col2 FROM tab1 AS cor0
----
98
-16483558
98
-174250
98
-819672

onlyif mysql # DIV for integer division: 
query I rowsort label-9412
SELECT + 10 DIV 38 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9412
SELECT + 10 / 38 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 NOT BETWEEN col1 AND - 31 + + 3
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 17 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT COUNT( * ) + + 42 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-9415
SELECT COUNT ( * ) + + 42 FROM tab2 AS cor0
----
45

query I rowsort
SELECT 99 + - col0 FROM tab2 AS cor0
----
24
35
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 col2 FROM tab1 cor0
----
74
74
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9418
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2, + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
9

skipif mysql # not compatible
query II rowsort label-9418
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2, + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
9

query I rowsort
SELECT - 9 AS col0 FROM tab0 AS cor0 WHERE 58 IS NULL
----

query II rowsort
SELECT ALL - col1 + + - col0, - 55 AS col1 FROM tab1 AS cor0
----
-138
-55
-65
-55
-90
-55

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT + col2 / - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT DISTINCT MIN( DISTINCT + - col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9422
SELECT DISTINCT MIN ( DISTINCT + - col2 ) AS col1 FROM tab1 AS cor0
----
-96

query II rowsort
SELECT ALL 78 AS col0, col1 FROM tab0
----
78
1
78
21
78
81

query I rowsort
SELECT - col0 * - 29 * + col1 FROM tab1
----
12325
124033
20706

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT COUNT( * ) FROM tab1 WHERE NOT + ( col0 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9425
SELECT COUNT ( * ) FROM tab1 WHERE NOT + ( col0 ) <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT MIN( DISTINCT - 15 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-9426
SELECT MIN ( DISTINCT - 15 ) FROM tab0
----
-15

query II rowsort
SELECT col2 AS col0, + col2 AS col1 FROM tab1
----
59
59
68
68
96
96

query II rowsort
SELECT col1, col1 * - 69 FROM tab1 AS cor0
----
14
-966
47
-3243
5
-345

onlyif mysql # DIV for integer division: 
query I rowsort label-9429
SELECT DISTINCT - 9 DIV - ( - col0 ) * + + ( + - col1 ) * + col1 - - + col0 + col1 * - + col2 FROM tab2 AS cor0
----
-1127
-3016
-3811

skipif mysql # not compatible
query I rowsort label-9429
SELECT DISTINCT - 9 / - ( - col0 ) * + + ( + - col1 ) * + col1 - - + col0 + col1 * - + col2 FROM tab2 AS cor0
----
-1127
-3016
-3811

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT ALL - COUNT( ALL + + 57 ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9430
SELECT ALL - COUNT ( ALL + + 57 ) col2 FROM tab2 AS cor0
----
-3

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT - ( 25 ) IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT DISTINCT + + SUM( + 56 ) col1 FROM tab0 AS cor0
----
168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9432
SELECT DISTINCT + + SUM ( + 56 ) col1 FROM tab0 AS cor0
----
168

query I rowsort
SELECT - - col2 * + + 25 FROM tab0 cor0
----
1175
2475
250

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT MIN( + col0 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9434
SELECT MIN ( + col0 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9435
SELECT DISTINCT + + ( + COUNT( * ) ), 18 * + COUNT( * ) col1 FROM tab1 AS cor0
----
3
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9435
SELECT DISTINCT + + ( + COUNT ( * ) ), 18 * + COUNT ( * ) col1 FROM tab1 AS cor0
----
3
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9436
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( - 26 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9436
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( - 26 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NULL >= - + col1 * + + 34 + - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT DISTINCT - 97 * COUNT( * ) col0 FROM tab0, tab0 AS cor0
----
-873

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9438
SELECT DISTINCT - 97 * COUNT ( * ) col0 FROM tab0, tab0 AS cor0
----
-873

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9439
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT - col2 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-9439
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT 88 + - - col0 * + col2 AS col1 FROM tab0
----
793
958
9691

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9441
SELECT DISTINCT * FROM tab2 WHERE NOT col2 BETWEEN CAST( - - 13 AS SIGNED ) * 18 AND - - col1 * 66
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9441
SELECT DISTINCT * FROM tab2 WHERE NOT col2 BETWEEN CAST ( - - 13 AS INTEGER ) * 18 AND - - col1 * 66
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT DISTINCT - SUM( + - 97 ) AS col0 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT - SUM ( + - 97 ) AS col0 FROM tab0
----
291

query I rowsort
SELECT + + 80 * col1 - + - 3 AS col1 FROM tab1 AS cor0
----
1123
3763
403

query I rowsort
SELECT ALL + col0 + - 9 * - 50 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND - col0
----

query II rowsort
SELECT DISTINCT - 23 AS col1, col0 FROM tab0
----
-23
15
-23
87
-23
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9446
SELECT ALL + 64 AS col2, + MAX( DISTINCT + - 26 ) AS col1 FROM tab2
----
64
-26

skipif mysql # not compatible
query II rowsort label-9446
SELECT ALL + 64 AS col2, + MAX ( DISTINCT + - 26 ) AS col1 FROM tab2
----
64
-26

query I rowsort
SELECT + 53 FROM tab2 AS cor0 WHERE NOT - 3 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 4 >= - 82
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - - 29 AS col1, col0 - col1 FROM tab1 AS cor0
----
29
37
29
44
29
80

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < - col0 / col1
----

query I rowsort
SELECT - col2 + - + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + 74, + 74 * + + 95 AS col2 FROM tab0 AS cor0
----
74
7030
74
7030
74
7030

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9453
SELECT CAST( 84 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
84
84
84

skipif mysql # not compatible
query I rowsort label-9453
SELECT CAST ( 84 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
84
84
84

query II rowsort
SELECT + col0 AS col0, col0 AS col1 FROM tab2 AS cor0
----
46
46
64
64
75
75

query II rowsort
SELECT - - col1 AS col2, - col1 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

query II rowsort
SELECT + ( - col2 ), col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9457
SELECT ALL + - CAST( NULL AS SIGNED ) * - 9 * - 89 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL + - CAST ( NULL AS INTEGER ) * - 9 * - 89 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col0 / + - col0 * + col2 FROM tab0 AS cor0 WHERE NOT col1 / col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT DISTINCT - COUNT( ALL - 6 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9459
SELECT DISTINCT - COUNT ( ALL - 6 ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 52 * col2 FROM tab2
----
1196
2080
3016

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT ALL COUNT( * ) * 81 FROM tab2
----
243

skipif mysql # not compatible
query I rowsort label-9462
SELECT ALL COUNT ( * ) * 81 FROM tab2
----
243

query III rowsort
SELECT * FROM tab2 WHERE - ( + 0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT DISTINCT COUNT( * ) col2 FROM tab2 WHERE + col1 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9464
SELECT DISTINCT COUNT ( * ) col2 FROM tab2 WHERE + col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT - ( 94 ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-9465
SELECT - ( 94 ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 3 + + col0 col2 FROM tab1 AS cor0
----
54
88
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT - 46 * ( - + COUNT( - + col1 ) ) FROM tab1 cor0
----
138

skipif mysql # not compatible
query I rowsort label-9467
SELECT - 46 * ( - + COUNT ( - + col1 ) ) FROM tab1 cor0
----
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, - col1 AS col0 FROM tab1 AS cor0
----
-59
-5
-68
-47
-96
-14

query II rowsort
SELECT DISTINCT - ( - - col0 ) AS col1, - col0 * col1 FROM tab0
----
-15
-1215
-87
-1827
-97
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9470
SELECT col1 + 96 + + - ( + CAST( 57 AS SIGNED ) ) - + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9470
SELECT col1 + 96 + + - ( + CAST ( 57 AS INTEGER ) ) - + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * col2 + + col2 FROM tab1
----
1440
3264
354

query I rowsort
SELECT ALL col2 + + 32 AS col0 FROM tab0
----
131
42
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT + ( + - MIN( - - col1 ) ) FROM tab1 WHERE + 55 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9473
SELECT + ( + - MIN ( - - col1 ) ) FROM tab1 WHERE + 55 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <> + + col0 + - col0
----

query I rowsort
SELECT DISTINCT + ( + 36 ) FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
36

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN - + col2 + col2 + + - 63 AND - col1 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT - SUM( DISTINCT + - col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9477
SELECT - SUM ( DISTINCT + - col0 ) AS col2 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT + + SUM( DISTINCT col1 ) FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-9478
SELECT + + SUM ( DISTINCT col1 ) FROM tab0 cor0
----
103

query II rowsort
SELECT + col0 AS col0, - 87 FROM tab2 cor0
----
46
-87
64
-87
75
-87

query I rowsort
SELECT 99 * - 1 AS col2 FROM tab0 AS cor0
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT SUM( ALL col0 ) FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9481
SELECT SUM ( ALL col0 ) FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9482
SELECT + col0 DIV - + 9 AS col0 FROM tab2 AS cor0
----
-5
-7
-8

skipif mysql # not compatible
query I rowsort label-9482
SELECT + col0 / - + 9 AS col0 FROM tab2 AS cor0
----
-5
-7
-8

query II rowsort
SELECT col2 AS col1, - 20 AS col0 FROM tab1 AS cor0
----
59
-20
68
-20
96
-20

query I rowsort
SELECT ALL - ( - + 75 ) AS col2 FROM tab2 AS cor0
----
75
75
75

query I rowsort
SELECT ALL - 56 * + + col0 FROM tab1 AS cor0
----
-2856
-4760
-5096

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 / - col0 + + col2 col0 FROM tab2 WHERE ( NOT + 44 * + - 37 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT 97 * + 47 FROM tab0
----
4559

query I rowsort
SELECT col2 * - - col1 * - col0 AS col2 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT ALL - SUM( DISTINCT + - 12 ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL - SUM ( DISTINCT + - 12 ) FROM tab0
----
12

query I rowsort
SELECT + + col2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9491
SELECT ALL + ( + CAST( col1 AS SIGNED ) ) col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9491
SELECT ALL + ( + CAST ( col1 AS INTEGER ) ) col2 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT ALL + ( - COUNT( + col1 ) ) * 54 FROM tab1
----
-162

skipif mysql # not compatible
query I rowsort label-9492
SELECT ALL + ( - COUNT ( + col1 ) ) * 54 FROM tab1
----
-162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col0 * + col1 + col0 col0 FROM tab0 WHERE col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9494
SELECT DISTINCT - ( + - col1 ) + - CAST( col1 AS SIGNED ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT - ( + - col1 ) + - CAST ( col1 AS INTEGER ) FROM tab1
----
0

query I rowsort
SELECT - col2 + - + 91 AS col2 FROM tab1
----
-150
-159
-187

query I rowsort
SELECT + col1 FROM tab2 cor0 WHERE 68 * - col1 * + col2 > + + 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT - COUNT( * ) * + COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9497
SELECT - COUNT ( * ) * + COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
-6

query I rowsort
SELECT ALL - col0 * + col1 + - col1 FROM tab1 cor0
----
-430
-4324
-728

onlyif mysql # DIV for integer division: 
query II rowsort label-9499
SELECT DISTINCT col1 * + col0 AS col0, 77 DIV - col0 FROM tab0 AS cor0
----
1215
-5
1827
0
97
0

skipif mysql # not compatible
query II rowsort label-9499
SELECT DISTINCT col1 * + col0 AS col0, 77 / - col0 FROM tab0 AS cor0
----
1215
-5
1827
0
97
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9500
SELECT ALL - 12 DIV - MAX( + col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9500
SELECT ALL - 12 / - MAX ( + col2 ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT ALL - SUM( 82 ) FROM tab2
----
-246

skipif mysql # not compatible
query I rowsort label-9502
SELECT ALL - SUM ( 82 ) FROM tab2
----
-246

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9503
SELECT col2, - CAST( NULL AS SIGNED ) * - + col0 AS col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-9503
SELECT col2, - CAST ( NULL AS INTEGER ) * - + col0 AS col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT - COUNT( * ) * - 10 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-9504
SELECT - COUNT ( * ) * - 10 FROM tab0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9505
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col0 col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9505
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0 col1 FROM tab1
----
NULL

query I rowsort
SELECT + 81 * col2 FROM tab1
----
4779
5508
7776

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9507
SELECT COUNT( * ) DIV - - 20 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9507
SELECT COUNT ( * ) / - - 20 AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT 40 * - - 71 + - ( col2 ) AS col1 FROM tab0
----
2741
2793
2830

query I rowsort
SELECT ALL - col2 * - - col0 * - + col2 * + - col2 + - col1 AS col0 FROM tab0
----
-1557426
-87021
-94119004

onlyif mysql # DIV for integer division: 
query I rowsort label-9510
SELECT 95 DIV + col2 FROM tab0
----
0
2
9

skipif mysql # not compatible
query I rowsort label-9510
SELECT 95 / + col2 FROM tab0
----
0
2
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9511
SELECT ( - col0 ) DIV col0 + - - 37 AS col0 FROM tab0
----
36
36
36

skipif mysql # not compatible
query I rowsort label-9511
SELECT ( - col0 ) / col0 + - - 37 AS col0 FROM tab0
----
36
36
36

query III rowsort
SELECT * FROM tab0 WHERE col1 * col0 + + + 9 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 + 22 FROM tab0 AS cor0
----
103
23
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT + - SUM( - col1 ) AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN - col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9514
SELECT + - SUM ( - col1 ) AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN - col0 AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9515
SELECT - + 64 * + col1 - - - ( - + CAST( NULL AS SIGNED ) ) * + + 14 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9515
SELECT - + 64 * + col1 - - - ( - + CAST ( NULL AS INTEGER ) ) * + + 14 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col0 * 85 > + col1
----
-3

skipif mysql # not compatible
query I rowsort label-9516
SELECT + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col0 * 85 > + col1
----
-3

query II rowsort
SELECT + 1 AS col2, + col2 * col2 AS col0 FROM tab2 AS cor0
----
1
1600
1
3364
1
529

query I rowsort
SELECT ( - 80 ) AS col2 FROM tab1 AS cor0
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT MAX( col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9519
SELECT MAX ( col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9520
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL < NULL
----
0

query I rowsort
SELECT - 82 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT ALL + + COUNT( DISTINCT col0 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9522
SELECT ALL + + COUNT ( DISTINCT col0 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT - 34 * + MIN( ALL + col0 ) FROM tab0 cor0
----
-510

skipif mysql # not compatible
query I rowsort label-9523
SELECT - 34 * + MIN ( ALL + col0 ) FROM tab0 cor0
----
-510

query II rowsort
SELECT DISTINCT ( - 59 ) AS col2, col0 * - - col0 AS col1 FROM tab0 AS cor0
----
-59
225
-59
7569
-59
9409

onlyif mysql # DIV for integer division: 
query I rowsort label-9525
SELECT + 24 DIV + + col2 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9525
SELECT + 24 / + + col2 FROM tab0 AS cor0
----
0
0
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + 68 * + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9527
SELECT col2 * 8 DIV + - col1 col2 FROM tab2
----
-3
-4
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9527
SELECT col2 * 8 / + - col1 col2 FROM tab2
----
-3
-4
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9528
SELECT ALL - 76 AS col2 FROM tab1 WHERE 45 * CAST( NULL AS SIGNED ) + + 88 <> + + col0 + - col1 + + col2
----

skipif mysql # not compatible
query I rowsort label-9528
SELECT ALL - 76 AS col2 FROM tab1 WHERE 45 * CAST ( NULL AS INTEGER ) + + 88 <> + + col0 + - col1 + + col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 + - col0 > + 66 * 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT SUM( ALL - + col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-9530
SELECT SUM ( ALL - + col1 ) FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT - + MIN( - + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9531
SELECT - + MIN ( - + col1 ) FROM tab1 AS cor0
----
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + + + ( + col2 ) + - 59 * col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT + COUNT( * ) + - 85 col2 FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9533
SELECT + COUNT ( * ) + - 85 col2 FROM tab1 AS cor0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-9534
SELECT DISTINCT col0 + - 1 DIV - - col0 col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9534
SELECT DISTINCT col0 + - 1 / - - col0 col0 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT ALL COUNT( * ) + - ( 23 ) AS col1 FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-9535
SELECT ALL COUNT ( * ) + - ( 23 ) AS col1 FROM tab2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT ALL ( - 63 ) + - SUM( - + col2 ) FROM tab1 AS cor0
----
160

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL ( - 63 ) + - SUM ( - + col2 ) FROM tab1 AS cor0
----
160

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 = - - col1
----

query I rowsort
SELECT - col2 - - - col1 + + - 8 FROM tab2 AS cor0
----
-125
-133
-82

query I rowsort
SELECT ALL - col2 - col0 * col1 AS col1 FROM tab2 AS cor0
----
-2369
-4968
-5083

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9540
SELECT + + COUNT( * ) - + CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9540
SELECT + + COUNT ( * ) - + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT ( NULL ) IN ( - + 52 / col1 ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN col2 * + + 27 * + + col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + + col1 * + 57 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 col1 FROM tab1 AS cor0
----
92
92
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - - col1 - - col0 col0 FROM tab1 AS cor0
----
110
2300
247

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9546
SELECT ALL + + CAST( NULL AS SIGNED ) * + 85 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL + + CAST ( NULL AS INTEGER ) * + 85 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT - MIN( ALL + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-23

skipif mysql # not compatible
query I rowsort label-9547
SELECT - MIN ( ALL + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-23

query I rowsort
SELECT + 36 * + 62 AS col2 FROM tab1 AS cor0
----
2232
2232
2232

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT DISTINCT - SUM( - + 32 ) FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-9549
SELECT DISTINCT - SUM ( - + 32 ) FROM tab0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT ALL + 79 * + 52 + - MIN( ALL + col0 ) * - 66 col0 FROM tab0 WHERE NULL IS NULL
----
5098

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9550
SELECT ALL + 79 * + 52 + - MIN ( ALL + col0 ) * - 66 col0 FROM tab0 WHERE NULL IS NULL
----
5098

query I rowsort
SELECT ALL + col1 * + 2 FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT + + MIN( DISTINCT - - col2 ) FROM tab0 WHERE NOT - col0 + + col1 * col2 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9552
SELECT + + MIN ( DISTINCT - - col2 ) FROM tab0 WHERE NOT - col0 + + col1 * col2 > NULL
----
NULL

query II rowsort
SELECT + col0, - 40 + + - col2 + - col1 - + ( + col0 ) AS col1 FROM tab1 AS cor0
----
51
-201
85
-189
91
-246

query I rowsort
SELECT + + col1 * + 71 AS col0 FROM tab0 AS cor0
----
1491
5751
71

query II rowsort
SELECT DISTINCT + col0 AS col0, - col2 AS col0 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT + SUM( - - ( col1 ) ) * - + 32 AS col1 FROM tab2 cor0 WHERE NOT - 12 IS NULL
----
-6240

skipif mysql # not compatible
query I rowsort label-9556
SELECT + SUM ( - - ( col1 ) ) * - + 32 AS col1 FROM tab2 cor0 WHERE NOT - 12 IS NULL
----
-6240

query I rowsort
SELECT + col0 + - 82 FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9558
SELECT ALL - col2 DIV - + 69 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9558
SELECT ALL - col2 / - + 69 FROM tab1 cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT DISTINCT COUNT( ALL - 11 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9559
SELECT DISTINCT COUNT ( ALL - 11 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + col2 + col1 + - - col0 FROM tab0 AS cor0
----
118
143
197

query I rowsort
SELECT 53 * + col0 + - 82 FROM tab1
----
2621
4423
4741

query I rowsort
SELECT ALL - ( + - col1 ) AS col0 FROM tab2
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9563
SELECT 20 DIV + col0 + + col1 FROM tab0
----
1
21
82

skipif mysql # not compatible
query I rowsort label-9563
SELECT 20 / + col0 + + col1 FROM tab0
----
1
21
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT COUNT( * ) + 27 * - 48 AS col0 FROM tab0
----
-1293

skipif mysql # not compatible
query I rowsort label-9564
SELECT COUNT ( * ) + 27 * - 48 AS col0 FROM tab0
----
-1293

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT - COUNT( 28 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9565
SELECT - COUNT ( 28 ) FROM tab0
----
-3

query I rowsort
SELECT - 88 * - - col0 FROM tab1
----
-4488
-7480
-8008

query II rowsort
SELECT DISTINCT ( col0 ), + col2 * + - col1 FROM tab1 AS cor0
----
51
-1344
85
-295
91
-3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9568
SELECT COUNT( * ), 45 - - + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 WHERE NULL >= NULL
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9568
SELECT COUNT ( * ), 45 - - + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 WHERE NULL >= NULL
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9569
SELECT ALL CAST( - 50 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-9569
SELECT ALL CAST ( - 50 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT DISTINCT MIN( ALL + - 52 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-52

skipif mysql # not compatible
query I rowsort label-9570
SELECT DISTINCT MIN ( ALL + - 52 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT ALL COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-9571
SELECT ALL COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT DISTINCT col2 + 94 FROM tab1 WHERE NOT + 74 IN ( - 2, + col1 )
----
153
162
190

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT 82 + + COUNT( - col0 ) + ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-9573
SELECT 82 + + COUNT ( - col0 ) + ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
82

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

query II rowsort
SELECT - - ( col0 ) + - - col0 AS col1, - col0 FROM tab2 cor0
----
128
-64
150
-75
92
-46

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + - col2 * + col1 + col1 FROM tab0 AS cor0
----
-189
-3726
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9578
SELECT ALL - + CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9578
SELECT ALL - + CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query II rowsort
SELECT + + col2 AS col0, col0 AS col1 FROM tab1 AS cor0
----
59
85
68
91
96
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9580
SELECT ALL 54 - - + 70, + CAST( - 60 AS SIGNED ) + col2 AS col2 FROM tab2
----
124
-2
124
-20
124
-37

skipif mysql # not compatible
query II rowsort label-9580
SELECT ALL 54 - - + 70, + CAST ( - 60 AS INTEGER ) + col2 AS col2 FROM tab2
----
124
-2
124
-20
124
-37

query II rowsort
SELECT - 69, - col0 AS col0 FROM tab0
----
-69
-15
-69
-87
-69
-97

query I rowsort
SELECT ALL - 31 - - - col1 FROM tab1
----
-36
-45
-78

query I rowsort
SELECT ALL 42 * - 81 AS col1 FROM tab0
----
-3402
-3402
-3402

query I rowsort
SELECT col0 * + 57 AS col0 FROM tab0
----
4959
5529
855

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9585
SELECT DISTINCT + 92 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9585
SELECT DISTINCT + 92 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9586
SELECT + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT - + col2 < NULL
----

skipif mysql # not compatible
query I rowsort label-9586
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT - + col2 < NULL
----

query I rowsort
SELECT - col0 * - - ( - 79 ) AS col1 FROM tab0
----
1185
6873
7663

query I rowsort
SELECT 84 FROM tab1 WHERE NOT - 42 < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT ( + - COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT 31 + - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9589
SELECT ( + - COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT 31 + - col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9590
SELECT - CAST( col0 AS SIGNED ) AS col2 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9590
SELECT - CAST ( col0 AS INTEGER ) AS col2 FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT - + col0 * - ( + col0 ) AS col0 FROM tab1 cor0
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9592
SELECT + 75 * + col2 * CAST( - 94 AS SIGNED ) + - col1 col2 FROM tab0 AS cor0
----
-331431
-697951
-70521

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9592
SELECT + 75 * + col2 * CAST ( - 94 AS INTEGER ) + - col1 col2 FROM tab0 AS cor0
----
-331431
-697951
-70521

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT ALL MAX( 33 ) FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-9593
SELECT ALL MAX ( 33 ) FROM tab0 AS cor0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-9594
SELECT + - ( + col0 ) DIV col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9594
SELECT + - ( + col0 ) / col0 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9595
SELECT + COUNT( * ) * + - CAST( NULL AS SIGNED ) * - ( - + COUNT( * ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9595
SELECT + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * - ( - + COUNT ( * ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + 60 AS col0 FROM tab1 WHERE NOT - - 30 < 17
----
60
60
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9597
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, - ( + 75 ) FROM tab2 WHERE NULL IS NULL
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-9597
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, - ( + 75 ) FROM tab2 WHERE NULL IS NULL
----
NULL
-75

query I rowsort
SELECT ALL - ( + + 75 ) * + + 38 FROM tab1
----
-2850
-2850
-2850

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT DISTINCT ( - MIN( ALL + - col0 ) ) * SUM( col2 ) + - + COUNT( col0 ) col0 FROM tab1
----
20290

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9599
SELECT DISTINCT ( - MIN ( ALL + - col0 ) ) * SUM ( col2 ) + - + COUNT ( col0 ) col0 FROM tab1
----
20290

query I rowsort
SELECT + col2 * - - col0 FROM tab0 WHERE 26 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT - MIN( DISTINCT - + col2 ) AS col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
99

skipif mysql # not compatible
query I rowsort label-9601
SELECT - MIN ( DISTINCT - + col2 ) AS col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT MIN( ALL - + col2 ) * 80 + - 10 FROM tab1 AS cor0
----
-7690

skipif mysql # not compatible
query I rowsort label-9602
SELECT MIN ( ALL - + col2 ) * 80 + - 10 FROM tab1 AS cor0
----
-7690

query I rowsort
SELECT col2 + + col1 * + + col2 + - - col1 AS col2 FROM tab0 AS cor0
----
199
241
3935

query I rowsort
SELECT col1 + 1 AS col1 FROM tab1 AS cor0
----
15
48
6

query I rowsort
SELECT col1 + - - col2 - + - col1 FROM tab0 AS cor0
----
101
209
52

query II rowsort
SELECT col1 + ( + col2 ), - col2 AS col1 FROM tab2 AS cor0
----
117
-40
125
-58
74
-23

query I rowsort
SELECT ALL col0 * + col2 + - col0 FROM tab0 AS cor0
----
690
783
9506

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT ( - col1 - - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9609
SELECT + CAST( col1 AS SIGNED ) AS col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9609
SELECT + CAST ( col1 AS INTEGER ) AS col1 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9610
SELECT ALL * FROM tab2 WHERE NOT + col2 BETWEEN ( - col0 - ( - CAST( NULL AS SIGNED ) ) ) AND ( - 12 + col1 / col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9610
SELECT ALL * FROM tab2 WHERE NOT + col2 BETWEEN ( - col0 - ( - CAST ( NULL AS INTEGER ) ) ) AND ( - 12 + col1 / col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT DISTINCT + MAX( ALL ( - 55 ) ) * - 0 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9611
SELECT DISTINCT + MAX ( ALL ( - 55 ) ) * - 0 AS col2 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * col1 col1 FROM tab0 WHERE NOT ( NULL ) = - 71 * + 82
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9613
SELECT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) + 12 <= 95 + + col1
----

skipif mysql # not compatible
query III rowsort label-9613
SELECT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) + 12 <= 95 + + col1
----

query I rowsort
SELECT DISTINCT + col1 * col2 - col1 AS col0 FROM tab1
----
1330
290
3149

query I rowsort
SELECT DISTINCT col2 + col1 AS col1 FROM tab2 WHERE NULL <> ( col0 * + col2 + ( - col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9616
SELECT - 36 DIV 55 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9616
SELECT - 36 / 55 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 85 + col0 AS col2 FROM tab2
----
131
149
160

onlyif mysql # DIV for integer division: 
query I rowsort label-9618
SELECT + 92 DIV col0 AS col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-9618
SELECT + 92 / col0 AS col2 FROM tab0
----
0
1
6

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + ( + col0 ) AND col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9620
SELECT + ( + ( COUNT( * ) ) ) + CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9620
SELECT + ( + ( COUNT ( * ) ) ) + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9621
SELECT ALL - CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL - CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 * - col0 NOT IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9623
SELECT ALL + 26 DIV 60 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL + 26 / 60 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 32 * + 59 + 55 FROM tab0
----
1943
1943
1943

query I rowsort
SELECT ALL 71 + - 63 FROM tab0
----
8
8
8

query I rowsort
SELECT 43 + - 46 AS col0 FROM tab0
----
-3
-3
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) <> ( + 88 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9628
SELECT + SUM( CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NOT ( NULL ) BETWEEN - col1 AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9628
SELECT + SUM ( CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NOT ( NULL ) BETWEEN - col1 AND col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT - COUNT( * ) * COUNT( * ) + + 67 AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-9629
SELECT - COUNT ( * ) * COUNT ( * ) + + 67 AS col0 FROM tab2
----
58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 17 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 WHERE NOT NULL <> ( col2 )
----

query I rowsort
SELECT col1 + + 60 FROM tab1
----
107
65
74

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col1 ) <> + col2 * - ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) BETWEEN col0 AND col1 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT DISTINCT - COUNT( * ) + 0 AS col0 FROM tab1 WHERE NOT col1 - + col1 BETWEEN ( + col2 ) AND col1
----
-3

skipif mysql # not compatible
query I rowsort label-9635
SELECT DISTINCT - COUNT ( * ) + 0 AS col0 FROM tab1 WHERE NOT col1 - + col1 BETWEEN ( + col2 ) AND col1
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9636
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 13 * + CAST( NULL AS DECIMAL ) - - col1 ) IN ( 14 / - col0 )
----

skipif mysql # not compatible
query III rowsort label-9636
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 13 * + CAST ( NULL AS REAL ) - - col1 ) IN ( 14 / - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT ALL COUNT( DISTINCT 51 ) * + 37 col0 FROM tab2 AS cor0
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9637
SELECT ALL COUNT ( DISTINCT 51 ) * + 37 col0 FROM tab2 AS cor0
----
37

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 83 - - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IN ( 4 * col0 )
----

query I rowsort
SELECT DISTINCT + 42 * col2 FROM tab0
----
1974
4158
420

onlyif mysql # DIV for integer division: 
query I rowsort label-9641
SELECT ALL - 59 DIV col0 AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9641
SELECT ALL - 59 / col0 AS col0 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT MIN( ALL 55 ) FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-9642
SELECT MIN ( ALL 55 ) FROM tab2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9643
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT DISTINCT COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-9644
SELECT DISTINCT COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1
----
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 > + 43
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 + col0 col0 FROM tab0 cor0
----
-31
41
51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 * col0 col0 FROM tab2 cor0
----
1104
1536
1800

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 <= + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 39 >= - col2 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 > + col1
----
75
67
58

query I rowsort
SELECT col1 + - 82 FROM tab0
----
-1
-61
-81

query III rowsort
SELECT * FROM tab1 WHERE col1 NOT BETWEEN ( - 43 ) AND NULL
----

query I rowsort
SELECT + col1 + - + 55 AS col1 FROM tab2
----
-4
12
22

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 9 ) NOT IN ( 17 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9657
SELECT ( 29 ) + 0 * + AVG ( 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-9657
SELECT ( 29 ) + 0 * + AVG ( ALL CAST ( NULL AS INTEGER ) ) col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT 78 + - COUNT( * ) - 6 AS col1 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-9658
SELECT 78 + - COUNT ( * ) - 6 AS col1 FROM tab2
----
69

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9659
SELECT * FROM tab1 WHERE col2 + - CAST( - col1 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9659
SELECT * FROM tab1 WHERE col2 + - CAST ( - col1 AS REAL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN 37 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 + + col1 + + 74 FROM tab0
----
-22
140
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT ALL 10 * MIN( ALL col2 ) AS col1 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-9662
SELECT ALL 10 * MIN ( ALL col2 ) AS col1 FROM tab0
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-9663
SELECT DISTINCT 28 DIV - col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT 28 / - col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT 97 + - + 50 FROM tab1
----
47

query I rowsort
SELECT ALL + col1 + 83 FROM tab1
----
130
88
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT ALL + 36 + - - 51 - 31 * - COUNT( * ) FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-9666
SELECT ALL + 36 + - - 51 - 31 * - COUNT ( * ) FROM tab2
----
180

query III rowsort
SELECT * FROM tab0 WHERE col1 * 49 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 77 + - 7 FROM tab1 WHERE col2 IS NOT NULL
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-9669
SELECT 27 DIV col0 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9669
SELECT 27 / col0 AS col2 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9670
SELECT DISTINCT 80 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9670
SELECT DISTINCT 80 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 81 * - 2 = col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9672
SELECT ( - col0 ) DIV - col0 - col1 col1 FROM tab1 AS cor0
----
-13
-4
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9672
SELECT ( - col0 ) / - col0 - col1 col1 FROM tab1 AS cor0
----
-13
-4
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-9673
SELECT ALL + 53 DIV + 18 AS col0 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL + 53 / + 18 AS col0 FROM tab2
----
2
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - + col0 col0 FROM tab1
----
-102
-170
-182

query III rowsort
SELECT * FROM tab1 WHERE ( ( col2 * + col0 ) IS NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT + col0 NOT IN ( 55 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT COUNT( * ) + + MAX( DISTINCT + 95 ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( 37 ) IN ( 99 + ( - ( + 2 ) ) )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9677
SELECT COUNT ( * ) + + MAX ( DISTINCT + 95 ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( 37 ) IN ( 99 + ( - ( + 2 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT ALL 35 - SUM( 9 ) * COUNT( * ) FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL 35 - SUM ( 9 ) * COUNT ( * ) FROM tab0 AS cor0
----
-46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 25 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 29 - - - col0 / 22 >= NULL
----

query II rowsort
SELECT ALL + col2, - 61 + + col2 FROM tab1 AS cor0
----
59
-2
68
7
96
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9682
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9682
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT DISTINCT - MAX( col0 ) AS col1 FROM tab0 WHERE - 59 NOT IN ( - 72 )
----
-97

skipif mysql # not compatible
query I rowsort label-9683
SELECT DISTINCT - MAX ( col0 ) AS col1 FROM tab0 WHERE - 59 NOT IN ( - 72 )
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9684
SELECT DISTINCT - col2 DIV + 47 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1
-2

skipif mysql # not compatible
query I rowsort label-9684
SELECT DISTINCT - col2 / + 47 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9685
SELECT ALL + CAST( NULL AS DECIMAL ) * - 99 FROM tab1 WHERE NOT - - col1 < NULL
----

skipif mysql # not compatible
query I rowsort label-9685
SELECT ALL + CAST ( NULL AS REAL ) * - 99 FROM tab1 WHERE NOT - - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT DISTINCT SUM( + 25 ) AS col0 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-9686
SELECT DISTINCT SUM ( + 25 ) AS col0 FROM tab1
----
75

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( + ( + + ( + 50 ) ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT DISTINCT - + ( + + MIN( + 69 ) ) AS col0 FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-9688
SELECT DISTINCT - + ( + + MIN ( + 69 ) ) AS col0 FROM tab0 AS cor0
----
-69

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT + 98 + + + COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
107

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9690
SELECT + 98 + + + COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
107

query I rowsort
SELECT + 93 * 65 * - 14 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 2775fb49e500d56949d9c6f0b0640a49

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL < + 50
----

query I rowsort
SELECT DISTINCT - 3 + col2 AS col0 FROM tab0 AS cor0
----
44
7
96

query I rowsort
SELECT DISTINCT + 64 * - col2 AS col2 FROM tab2 AS cor0
----
-1472
-2560
-3712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9695
SELECT ALL CAST( NULL AS SIGNED ) * + MIN( - col1 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL CAST ( NULL AS INTEGER ) * + MIN ( - col1 ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 94 * - col0 FROM tab2 AS cor0
----
4324
6016
7050

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT - ( 7 ) * - COUNT( * ) FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-9697
SELECT - ( 7 ) * - COUNT ( * ) FROM tab2 AS cor0
----
21

query I rowsort
SELECT - 20 * col1 FROM tab0 cor0
----
-1620
-20
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT ALL + + ( MAX( ALL - - ( - col2 ) ) ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL + + ( MAX ( ALL - - ( - col2 ) ) ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-177

onlyif mysql # DIV for integer division: 
query I rowsort label-9700
SELECT - + col0 DIV + - 25 FROM tab0 AS cor0
----
0
3
3

skipif mysql # not compatible
query I rowsort label-9700
SELECT - + col0 / + - 25 FROM tab0 AS cor0
----
0
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT DISTINCT 92 * - COUNT( * ) FROM tab0 WHERE NOT ( - - col2 ) IN ( 96 )
----
-276

skipif mysql # not compatible
query I rowsort label-9701
SELECT DISTINCT 92 * - COUNT ( * ) FROM tab0 WHERE NOT ( - - col2 ) IN ( 96 )
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT COUNT( * ) * - - 6 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-9702
SELECT COUNT ( * ) * - - 6 FROM tab2
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9703
SELECT CAST( NULL AS SIGNED ) FROM tab1 WHERE col2 IN ( - col0 - - col2 + + col2 * + col0 )
----

skipif mysql # not compatible
query I rowsort label-9703
SELECT CAST ( NULL AS INTEGER ) FROM tab1 WHERE col2 IN ( - col0 - - col2 + + col2 * + col0 )
----

query I rowsort
SELECT col2 * - col2 * 93 FROM tab2
----
-148800
-312852
-49197

query I rowsort
SELECT DISTINCT - 3 * + - col0 AS col1 FROM tab0
----
261
291
45

query III rowsort
SELECT * FROM tab2 WHERE ( ( + 1 ) = col0 / - 57 )
----

query I rowsort
SELECT DISTINCT 19 + - col0 AS col0 FROM tab0
----
-68
-78
4

query I rowsort
SELECT DISTINCT 63 / col0 AS col1 FROM tab1 WHERE NOT ( NULL IS NULL )
----

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query II rowsort
SELECT ALL - 99 AS col0, col0 * - col1 AS col1 FROM tab0
----
-99
-1215
-99
-1827
-99
-97

query I rowsort
SELECT ( + 38 ) + - ( - + 4 ) FROM tab2
----
42
42
42

query I rowsort
SELECT DISTINCT + 21 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
21

query I rowsort
SELECT ALL + + col1 * - 1 - - - col0 * - 98 * - - col2 * col0 AS col0 FROM tab2 AS cor0
----
16056243
31972433
4769413

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - ( + 25 ) - - ( 92 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 - - 42 col0 FROM tab1
----
2251
238
67

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT BETWEEN - + ( + col0 ) * - 67 AND ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9717
SELECT - COUNT( * ) AS col0, COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
9

skipif mysql # not compatible
query II rowsort label-9717
SELECT - COUNT ( * ) AS col0, COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 52 BETWEEN NULL AND + 67
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT ( col0 ) = ( + col1 * col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + AVG ( + + ( + - col0 ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - col0 * + col0 )
----
NULL

query I rowsort
SELECT DISTINCT + col2 * - 64 FROM tab0 AS cor0
----
-3008
-6336
-640

onlyif mysql # DIV for integer division: 
query I rowsort label-9722
SELECT ALL 97 DIV - col2 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL 97 / - col2 FROM tab2 AS cor0
----
-1
-2
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-9723
SELECT DISTINCT - 70 DIV - + 36 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9723
SELECT DISTINCT - 70 / - + 36 FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9724
SELECT - col0 * + 0 DIV - col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9724
SELECT - col0 * + 0 / - col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9725
SELECT - 52, COUNT( * ) DIV - + 59 AS col0 FROM tab0
----
-52
0

skipif mysql # not compatible
query II rowsort label-9725
SELECT - 52, COUNT ( * ) / - + 59 AS col0 FROM tab0
----
-52
0

query II rowsort
SELECT DISTINCT - col2, 40 + - + col0 AS col2 FROM tab1 AS cor0
----
-59
-45
-68
-51
-96
-11

query I rowsort
SELECT - + 31 * col1 AS col1 FROM tab2 AS cor0
----
-1581
-2077
-2387

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT ALL - MIN( DISTINCT - - col2 ) AS col0 FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9728
SELECT ALL - MIN ( DISTINCT - - col2 ) AS col0 FROM tab0 cor0
----
-10

query I rowsort
SELECT DISTINCT 65 * + 58 AS col0 FROM tab0, tab0 AS cor0
----
3770

query I rowsort
SELECT - col2 * + 35 AS col1 FROM tab1 WHERE - col1 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + 62 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 4 * - 34 FROM tab1
----
-136
-136
-136

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( + - 45 * + col1, + ( 37 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9734
SELECT CAST( col1 AS SIGNED ) * + 65 + 35 + - 52 col0 FROM tab2
----
3298
4338
4988

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9734
SELECT CAST ( col1 AS INTEGER ) * + 65 + 35 + - 52 col0 FROM tab2
----
3298
4338
4988

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT - ( - - MAX( ALL col0 ) ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-9735
SELECT - ( - - MAX ( ALL col0 ) ) FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT MIN( - 73 ) FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-9736
SELECT MIN ( - 73 ) FROM tab2
----
-73

query I rowsort
SELECT ALL - ( - 94 ) AS col1 FROM tab1 WHERE NOT + col0 / - 33 + - ( 32 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col2 + + - 90 * + + 1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT MIN( DISTINCT 13 ) AS col2 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-9739
SELECT MIN ( DISTINCT 13 ) AS col2 FROM tab2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT + + MIN( + col0 ) FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9740
SELECT + + MIN ( + col0 ) FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----
NULL

query I rowsort
SELECT ALL + ( + col1 ) - + 41 * - + 79 AS col0 FROM tab1 cor0
----
3244
3253
3286

query I rowsort
SELECT - col1 - - + ( ( + - ( + col2 ) ) ) + - + 98 AS col2 FROM tab2 AS cor0
----
-172
-215
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IN ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9743
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IN ( + col1 )
----
0

query II rowsort
SELECT DISTINCT - 58 * - col0 - col2 AS col0, + col2 FROM tab0 AS cor0
----
5036
10
5527
99
823
47

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN col2 + col1 AND - 72 * col2
----

query I rowsort
SELECT 67 + + col2 FROM tab2
----
107
125
90

query I rowsort
SELECT DISTINCT - 83 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-83

query I rowsort
SELECT 16 * col1 * 57 FROM tab0
----
19152
73872
912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9749
SELECT ALL - col2 * + ( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL - col2 * + ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 AS col0 FROM tab2 cor0 WHERE NOT col2 >= + + 19 + - col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 26 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, + 67 col1 FROM tab2 AS cor0
----
23
67
40
67
58
67

query I rowsort
SELECT - 29 AS col2 FROM tab2 cor0
----
-29
-29
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-9754
SELECT ALL + - col2 DIV - + 11 AS col0 FROM tab1 AS cor0
----
5
6
8

skipif mysql # not compatible
query I rowsort label-9754
SELECT ALL + - col2 / - + 11 AS col0 FROM tab1 AS cor0
----
5
6
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT + ( - MIN( - col0 ) ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9755
SELECT + ( - MIN ( - col0 ) ) FROM tab2 AS cor0
----
75

query II rowsort
SELECT ALL ( - col0 ) AS col1, col1 * - + col2 * + + col1 FROM tab0
----
-15
-308367
-87
-4410
-97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT ALL COUNT( ALL - 65 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9757
SELECT ALL COUNT ( ALL - 65 ) col0 FROM tab0 AS cor0
----
3

query II rowsort
SELECT - - 54 * + col0 AS col0, + 63 AS col2 FROM tab0 AS cor0
----
4698
63
5238
63
810
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT ALL + + SUM( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-9759
SELECT ALL + + SUM ( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
199

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 99 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9761
SELECT + 60 FROM tab2 WHERE - CAST( NULL AS DECIMAL ) = col0
----

skipif mysql # not compatible
query I rowsort label-9761
SELECT + 60 FROM tab2 WHERE - CAST ( NULL AS REAL ) = col0
----

query I rowsort
SELECT DISTINCT 14 + - col2 FROM tab2
----
-26
-44
-9

query I rowsort
SELECT DISTINCT 6 FROM tab0 WHERE col1 >= - col1
----
6

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT IN ( - col1 * - + col2 * + col0 * - - col0, col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9765
SELECT DISTINCT - COUNT( * ) AS col2, COUNT( - col0 ) * COUNT( * ) DIV - + COUNT( * ) col0 FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9765
SELECT DISTINCT - COUNT ( * ) AS col2, COUNT ( - col0 ) * COUNT ( * ) / - + COUNT ( * ) col0 FROM tab0 AS cor0
----
-3
-3

query I rowsort
SELECT + 98 * 27 * col1 + - - col1 * col1 - - col0 + + + 59 * + col1 - - col0 FROM tab1 cor0
----
129526
13720
38168

query I rowsort
SELECT 49 - - col1 FROM tab0 AS cor0
----
130
50
70

query III rowsort
SELECT * FROM tab0 WHERE NULL >= - + col1 + - ( + col1 ) * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT DISTINCT COUNT( ALL + + 24 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9769
SELECT DISTINCT COUNT ( ALL + + 24 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT 32 * + col0 AS col1 FROM tab0
----
2784
3104
480

query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab2 WHERE - col1 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT + col1 FROM tab1 WHERE + col2 BETWEEN ( + 34 ) AND NULL
----

query I rowsort
SELECT ALL col0 + + col2 * - - col1 * + + 47 * + 9 FROM tab2
----
1302904
1643853
496225

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT ALL 98 + - SUM( ( + + 68 ) ) * + 5 AS col2 FROM tab2 AS cor0
----
-922

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL 98 + - SUM ( ( + + 68 ) ) * + 5 AS col2 FROM tab2 AS cor0
----
-922

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT 85 * 18 FROM tab1
----
1530
1530
1530

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9777
SELECT ALL + 94 DIV - COUNT( * ) AS col2 FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-9777
SELECT ALL + 94 / - COUNT ( * ) AS col2 FROM tab2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9778
SELECT ALL - + CAST( + - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL - + CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT ALL + 24 + - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( col2 + + + col2 ) > NULL
----
24

skipif mysql # not compatible
query I rowsort label-9779
SELECT ALL + 24 + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( col2 + + + col2 ) > NULL
----
24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9780
SELECT - 62 DIV - CAST( + 91 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9780
SELECT - 62 / - CAST ( + 91 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9781
SELECT DISTINCT col0 DIV - - col2 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-9781
SELECT DISTINCT col0 / - - col2 FROM tab2 AS cor0
----
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - - col2 col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT DISTINCT SUM( + - col0 ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-9783
SELECT DISTINCT SUM ( + - col0 ) AS col0 FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT DISTINCT COUNT( ALL col1 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9784
SELECT DISTINCT COUNT ( ALL col1 ) col0 FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL - col0 AS col1, ( - 32 ) FROM tab2 AS cor0
----
-46
-32
-64
-32
-75
-32

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 49 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( - col0 ) * - col1 FROM tab2 WHERE NULL IS NULL
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9788
SELECT DISTINCT 51 * - COUNT( * ) / - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9788
SELECT DISTINCT 51 * - COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 * 22 col1 FROM tab2
----
1342
1342
1342

query I rowsort
SELECT DISTINCT ( + - col0 ) * + 1 + + - col2 * + col0 * + col0 * 12 FROM tab1
----
-2996403
-5115385
-6757387

onlyif mysql # DIV for integer division: 
query II rowsort label-9791
SELECT col1, + col0 DIV - col2 AS col2 FROM tab1 AS cor0
----
14
0
47
-1
5
-1

skipif mysql # not compatible
query II rowsort label-9791
SELECT col1, + col0 / - col2 AS col2 FROM tab1 AS cor0
----
14
0
47
-1
5
-1

query I rowsort
SELECT - - 34 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, 63 FROM tab0 AS cor0
----
1
63
21
63
81
63

query III rowsort
SELECT * FROM tab0 WHERE - 91 < col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 70 + col0 FROM tab0
----
157
167
85

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 BETWEEN NULL AND + col0 + col0 + + col0
----

query II rowsort
SELECT + col1 + col2 AS col1, 97 + + - 92 AS col2 FROM tab1 AS cor0
----
110
5
115
5
64
5

query I rowsort
SELECT DISTINCT - - 56 + - col0 * - col2 FROM tab1 cor0
----
4952
5071
6244

query I rowsort
SELECT DISTINCT - AVG ( ALL + + col2 ) AS col0 FROM tab0 AS cor0 WHERE + 7 >= NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 64 ) IS NULL
----

query I rowsort
SELECT + 42 * + col0 FROM tab0 AS cor0 WHERE col1 - - - 98 IS NOT NULL
----
3654
4074
630

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9802
SELECT * FROM tab0 AS cor0 WHERE - 61 * + col0 - - col1 < col1 * - - col2 * - CAST( col2 AS SIGNED ) + col2 + - col0
----
87
21
10

skipif mysql # not compatible
query III rowsort label-9802
SELECT * FROM tab0 AS cor0 WHERE - 61 * + col0 - - col1 < col1 * - - col2 * - CAST ( col2 AS INTEGER ) + col2 + - col0
----
87
21
10

query I rowsort
SELECT + + ( + 7 ) * - col0 AS col0 FROM tab1 AS cor0
----
-357
-595
-637

query II rowsort
SELECT DISTINCT + + 74 + - col2 AS col1, col2 FROM tab2 cor0
----
16
58
34
40
51
23

query I rowsort
SELECT DISTINCT + - ( col1 ) FROM tab0 AS cor0 WHERE NOT - 75 IS NULL
----
-1
-21
-81

query I rowsort
SELECT + 37 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT ALL + ( - - col2 ) AS col0 FROM tab0
----
10
47
99

query I rowsort
SELECT - col2 * 26 AS col1 FROM tab2
----
-1040
-1508
-598

query II rowsort
SELECT + 22 * + col2, col0 FROM tab0 WHERE ( - col2 ) > - col0
----
220
87

query II rowsort
SELECT 55 AS col1, 34 * + col1 + - col1 FROM tab1
----
55
1551
55
165
55
462

query I rowsort
SELECT + col1 * + + col2 * 93 * - + col1 AS col0 FROM tab0
----
-28678131
-410130
-9207

query I rowsort
SELECT + col2 FROM tab2 WHERE - col2 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT + COUNT( * ) FROM tab0 cor0 LEFT OUTER JOIN tab2 AS cor1 ON NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-9813
SELECT + COUNT ( * ) FROM tab0 cor0 LEFT OUTER JOIN tab2 AS cor1 ON NULL IS NULL
----
9

query I rowsort
SELECT DISTINCT + ( - 67 ) * col2 AS col2 FROM tab1 AS cor0
----
-3953
-4556
-6432

query I rowsort
SELECT ALL + 59 + - - col1 FROM tab2 AS cor0 WHERE NOT - col1 >= - col1 * + col2 + - + 84 * - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9816
SELECT DISTINCT CAST( + 66 AS SIGNED ) AS col0 FROM tab2 cor0
----
66

skipif mysql # not compatible
query I rowsort label-9816
SELECT DISTINCT CAST ( + 66 AS INTEGER ) AS col0 FROM tab2 cor0
----
66

query I rowsort
SELECT ALL ( - 27 ) AS col2 FROM tab1 AS cor0
----
-27
-27
-27

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 98 <= + col0 + + - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9819
SELECT COUNT( * ) DIV - ( 64 ) * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9819
SELECT COUNT ( * ) / - ( 64 ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + 5 * - col0 FROM tab0 AS cor0
----
-435
-485
-75

query I rowsort
SELECT DISTINCT col1 * - col1 + + col0 FROM tab0 AS cor0
----
-354
-6546
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT MIN( DISTINCT - - col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9822
SELECT MIN ( DISTINCT - - col2 ) FROM tab2 AS cor0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9823
SELECT + 96 DIV - col1 FROM tab0
----
-1
-4
-96

skipif mysql # not compatible
query I rowsort label-9823
SELECT + 96 / - col1 FROM tab0
----
-1
-4
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT MIN( DISTINCT - 18 ) FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-9824
SELECT MIN ( DISTINCT - 18 ) FROM tab2
----
-18

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( + col0, + col1, 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT ALL + COUNT( + + col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL + COUNT ( + + col1 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT DISTINCT 15 * - COUNT( 28 ) FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-9827
SELECT DISTINCT 15 * - COUNT ( 28 ) FROM tab1
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-9828
SELECT DISTINCT col0 DIV + 91 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9828
SELECT DISTINCT col0 / + 91 AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9829
SELECT + col2 * + col1 * - col2 + 48 + - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-128925
-17272
-217189

skipif mysql # not compatible
query I rowsort label-9829
SELECT + col2 * + col1 * - col2 + 48 + - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-128925
-17272
-217189

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT DISTINCT + 0 + + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9830
SELECT DISTINCT + 0 + + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col2 + + 80 FROM tab0 cor0
----
-19
33
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT SUM( ALL - 30 ) + - + 34 + - 55 FROM tab2 cor0
----
-179

skipif mysql # not compatible
query I rowsort label-9832
SELECT SUM ( ALL - 30 ) + - + 34 + - 55 FROM tab2 cor0
----
-179

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9833
SELECT DISTINCT ( + AVG ( ALL - + CAST( NULL AS DECIMAL ) ) ) * + + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9833
SELECT DISTINCT ( + AVG ( ALL - + CAST ( NULL AS REAL ) ) ) * + + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT ALL + 59 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT DISTINCT - - MAX( ALL - col0 ) + + 5 col0 FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9835
SELECT DISTINCT - - MAX ( ALL - col0 ) + + 5 col0 FROM tab2 AS cor0
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-9836
SELECT - col0 DIV + col0 - 20 FROM tab0 AS cor0
----
-21
-21
-21

skipif mysql # not compatible
query I rowsort label-9836
SELECT - col0 / + col0 - 20 FROM tab0 AS cor0
----
-21
-21
-21

query I rowsort
SELECT DISTINCT + 60 * col1 - + col0 FROM tab1 AS cor0
----
215
2729
789

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT ALL - 0 - + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9838
SELECT ALL - 0 - + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9839
SELECT + CAST( NULL AS SIGNED ) - - - col0 * + - 40 * 10 AS col1, + col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-9839
SELECT + CAST ( NULL AS INTEGER ) - - - col0 * + - 40 * 10 AS col1, + col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 + + col2 <= - + col1 * - + col2 + + col0
----
15
81
47
87
21
10

query I rowsort
SELECT - + col0 - - - col1 + ( col1 ) * + + col1 * 90 + col1 + col2 FROM tab2 AS cor0
----
234067
403993
533586

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT - + COUNT( - + col1 ) + + - 22 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-9842
SELECT - + COUNT ( - + col1 ) + + - 22 FROM tab0 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT DISTINCT 22 - - SUM( DISTINCT + 53 ) + + 97 FROM tab2 AS cor0
----
172

skipif mysql # not compatible
query I rowsort label-9843
SELECT DISTINCT 22 - - SUM ( DISTINCT + 53 ) + + 97 FROM tab2 AS cor0
----
172

query I rowsort
SELECT ALL + - col2 - - 96 + col2 - ( - col2 ) * 31 AS col1 FROM tab2 AS cor0
----
1336
1894
809

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9845
SELECT + 92 + - CAST( - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
113
173
93

skipif mysql # not compatible
query I rowsort label-9845
SELECT + 92 + - CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
113
173
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT DISTINCT SUM( ALL - + col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-9846
SELECT DISTINCT SUM ( ALL - + col0 ) FROM tab1
----
-227

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( - 96 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 / col2 * + col1 + + 93 BETWEEN - - ( - + col2 ) AND + 26
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9849
SELECT + MAX( ALL + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9849
SELECT + MAX ( ALL + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - - col1 AS col2, 90 FROM tab0 cor0
----
1
90
21
90
81
90

onlyif mysql # aggregate syntax: 
query II rowsort label-9851
SELECT + COUNT( * ) * - MAX( - 71 ) - COUNT( * ) AS col2, - MAX( DISTINCT col2 ) col2 FROM tab2 cor0
----
210
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9851
SELECT + COUNT ( * ) * - MAX ( - 71 ) - COUNT ( * ) AS col2, - MAX ( DISTINCT col2 ) col2 FROM tab2 cor0
----
210
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT ALL MIN( ALL + + col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL MIN ( ALL + + col1 ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 79
----

query I rowsort
SELECT ALL ( - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 * col0 IS NULL
----
-23
-40
-58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 36 - - col1 NOT BETWEEN + + col2 AND NULL
----

query I rowsort
SELECT DISTINCT + - col1 * + + ( + 33 ) + 90 FROM tab2 AS cor0
----
-1593
-2121
-2451

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9857
SELECT ( - COUNT( * ) ) + - + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9857
SELECT ( - COUNT ( * ) ) + - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ( - col1 ) + + 42 * - col0 FROM tab0
----
-3675
-4075
-711

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9859
SELECT * FROM tab1 WHERE - col1 - + col0 - - + CAST( col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9859
SELECT * FROM tab1 WHERE - col1 - + col0 - - + CAST ( col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 + - 75 + - col0 AS col2 FROM tab1
----
-112
-119
-155

query I rowsort
SELECT ( + - col0 ) * col2 AS col0 FROM tab2
----
-1058
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 * - col1 col0 FROM tab1
----
2679
285
798

query III rowsort
SELECT ALL * FROM tab0 WHERE 33 + - + 54 / + - 63 >= NULL
----

query I rowsort
SELECT ALL + 23 FROM tab2 WHERE col0 BETWEEN + + 6 AND 9
----

query I rowsort
SELECT ALL - ( - - col0 ) + + col1 AS col0 FROM tab0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT DISTINCT COUNT( * ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9866
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9867
SELECT + CAST( - + AVG ( + col2 ) AS SIGNED ) * ( + COUNT( col2 ) ) + - 93 col2 FROM tab1 AS cor0
----
-315

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9867
SELECT + CAST ( - + AVG ( + col2 ) AS INTEGER ) * ( + COUNT ( col2 ) ) + - 93 col2 FROM tab1 AS cor0
----
-315

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 84 BETWEEN 20 / + col0 + - + col1 AND - - col2
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query II rowsort label-9870
SELECT DISTINCT - 54 DIV - 58 col2, col1 FROM tab1 AS cor0
----
0
14
0
47
0
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9870
SELECT DISTINCT - 54 / - 58 col2, col1 FROM tab1 AS cor0
----
0
14
0
47
0
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9871
SELECT DISTINCT COUNT( * ) / + 5 * - - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9871
SELECT DISTINCT COUNT ( * ) / + 5 * - - CAST ( NULL AS REAL ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 68 col2 FROM tab0 cor0
----
-19
-29
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9873
SELECT DISTINCT - col2 + - 51 + + + CAST( NULL AS SIGNED ), + col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-9873
SELECT DISTINCT - col2 + - 51 + + + CAST ( NULL AS INTEGER ), + col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT DISTINCT + col1 * + col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * - - col2 = + - 93
----

query I rowsort
SELECT ALL - ( 5 ) + + col2 AS col1 FROM tab1 AS cor0
----
54
63
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2 - + 30
----

query I rowsort
SELECT + col0 FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 66 * + col2 NOT BETWEEN - - col2 AND - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT DISTINCT COUNT( * ) * + 42 * + SUM( col2 ) + 45 AS col0 FROM tab0 AS cor0
----
19701

skipif mysql # not compatible
query I rowsort label-9880
SELECT DISTINCT COUNT ( * ) * + 42 * + SUM ( col2 ) + 45 AS col0 FROM tab0 AS cor0
----
19701

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT NULL NOT IN ( + 56, col2 )
----

query II rowsort
SELECT + col1 AS col0, + ( col2 ) AS col2 FROM tab1
----
14
96
47
68
5
59

query II rowsort
SELECT DISTINCT - col0, + 9 + - 35 AS col1 FROM tab2
----
-46
-26
-64
-26
-75
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-9884
SELECT + 46 DIV 34 * + 54 AS col1 FROM tab1 cor0
----
54
54
54

skipif mysql # not compatible
query I rowsort label-9884
SELECT + 46 / 34 * + 54 AS col1 FROM tab1 cor0
----
54
54
54

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL <= 77
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9886
SELECT CAST( 65 AS SIGNED ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

skipif mysql # not compatible
query I rowsort label-9886
SELECT CAST ( 65 AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9887
SELECT DISTINCT - + col2 + - CAST( NULL AS SIGNED ) * + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9887
SELECT DISTINCT - + col2 + - CAST ( NULL AS INTEGER ) * + col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col2 * - 39 FROM tab0 cor0
----
-1833
-3861
-390

query II rowsort
SELECT ALL + col1, - ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT SUM( + 74 ) AS col0 FROM tab1 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-9890
SELECT SUM ( + 74 ) AS col0 FROM tab1 AS cor0
----
222

query I rowsort
SELECT - - col0 * + - col0 * + + col2 FROM tab0 AS cor0
----
-10575
-75690
-931491

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9892
SELECT - col2 * + + col0 * col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9892
SELECT - col2 * + + col0 * col2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 51 * + ( - 92 ) FROM tab0 AS cor0
----
4692
4692
4692

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9894
SELECT DISTINCT - CAST( NULL AS SIGNED ) col0, - 96 FROM tab0
----
NULL
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9894
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col0, - 96 FROM tab0
----
NULL
-96

query III rowsort
SELECT * FROM tab1 WHERE NULL = - - col0 + + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT - - MIN( ALL + 96 ) + - 82 FROM tab0 WHERE - 65 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9896
SELECT - - MIN ( ALL + 96 ) + - 82 FROM tab0 WHERE - 65 = NULL
----
NULL

query II rowsort
SELECT ALL col1 AS col1, - col1 AS col0 FROM tab1
----
14
-14
47
-47
5
-5

query I rowsort
SELECT ALL + 54 + + 79 FROM tab0
----
133
133
133

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT + 42 + - COUNT( * ) AS col1 FROM tab1 cor0
----
39

skipif mysql # not compatible
query I rowsort label-9899
SELECT + 42 + - COUNT ( * ) AS col1 FROM tab1 cor0
----
39

query I rowsort
SELECT + 46 + col2 * + col1 AS col0 FROM tab0 cor0
----
145
256
3853

onlyif mysql # DIV for integer division: 
query II rowsort label-9901
SELECT ALL col0 DIV + col1 + - 52, col0 AS col2 FROM tab0 AS cor0
----
-48
87
-52
15
45
97

skipif mysql # not compatible
query II rowsort label-9901
SELECT ALL col0 / + col1 + - 52, col0 AS col2 FROM tab0 AS cor0
----
-48
87
-52
15
45
97

query I rowsort
SELECT - col2 * + - col0 + - col0 + - col2 FROM tab2 AS cor0
----
2456
4217
989

query I rowsort
SELECT DISTINCT 98 AS col1 FROM tab0 cor0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9904
SELECT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) * + 57 - col2 + - col0 / + - col0 + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9904
SELECT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) * + 57 - col2 + - col0 / + - col0 + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT ALL SUM( DISTINCT + 93 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
93

skipif mysql # not compatible
query I rowsort label-9905
SELECT ALL SUM ( DISTINCT + 93 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 - col2 col0 FROM tab0
----
-28
-80
9

query III rowsort
SELECT * FROM tab2 WHERE NULL = - - col2
----

query I rowsort
SELECT 14 - col0 FROM tab0 AS cor0
----
-1
-73
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT ALL + MAX( ALL - 52 ) - - - 27 FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-9909
SELECT ALL + MAX ( ALL - 52 ) - - - 27 FROM tab0 AS cor0
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9910
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( - 91 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9910
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( - 91 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT DISTINCT - SUM( DISTINCT - - col1 ) col0 FROM tab0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9911
SELECT DISTINCT - SUM ( DISTINCT - - col1 ) col0 FROM tab0
----
-103

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9913
SELECT + 12 col2, + COUNT( * ) AS col0 FROM tab0
----
12
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9913
SELECT + 12 col2, + COUNT ( * ) AS col0 FROM tab0
----
12
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT MIN( - + 35 ) * + + COUNT( * ) * - - COUNT( * ) FROM tab0
----
-315

skipif mysql # not compatible
query I rowsort label-9914
SELECT MIN ( - + 35 ) * + + COUNT ( * ) * - - COUNT ( * ) FROM tab0
----
-315

query I rowsort
SELECT ALL - 41 * + col0 AS col2 FROM tab0 AS cor0
----
-3567
-3977
-615

query I rowsort
SELECT + col1 * + col1 + + + col1 FROM tab1 AS cor0
----
210
2256
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9917
SELECT + col0 DIV + - col1 col0 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9917
SELECT + col0 / + - col1 col0 FROM tab0 AS cor0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT ALL - + SUM( ALL + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9918
SELECT ALL - + SUM ( ALL + col2 ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT + + AVG ( ALL - 36 ) AS col2 FROM tab2 cor0 WHERE NOT ( col1 ) * + - 17 + - col2 IS NOT NULL
----
NULL

query I rowsort
SELECT + + 31 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT DISTINCT + 62 AS col0 FROM tab0 cor0 WHERE + col2 + + col0 >= - col0
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-9922
SELECT ALL + COUNT( * ) AS col1, ( - - MIN( DISTINCT 21 ) ) FROM tab2 AS cor0
----
3
21

skipif mysql # not compatible
query II rowsort label-9922
SELECT ALL + COUNT ( * ) AS col1, ( - - MIN ( DISTINCT 21 ) ) FROM tab2 AS cor0
----
3
21

query I rowsort
SELECT ALL + col1 + - 9 * 23 * + col1 + + col0 * - col2 AS col1 FROM tab0 cor0
----
-17391
-5196
-9809

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT ALL + MAX( DISTINCT col0 ) AS col1 FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-9924
SELECT ALL + MAX ( DISTINCT col0 ) AS col1 FROM tab1 cor0
----
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 * - - 42 IS NOT NULL
----

query I rowsort
SELECT + col2 + 73 * - + col1 FROM tab2 AS cor0
----
-3700
-4833
-5581

onlyif mysql # DIV for integer division: 
query I rowsort label-9927
SELECT col0 DIV - col1 + col0 AS col1 FROM tab1
----
48
68
90

skipif mysql # not compatible
query I rowsort label-9927
SELECT col0 / - col1 + col0 AS col1 FROM tab1
----
48
68
90

onlyif mysql # aggregate syntax: 
query II rowsort label-9928
SELECT + MIN( + - col2 ) col2, - COUNT( * ) AS col2 FROM tab0
----
-99
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9928
SELECT + MIN ( + - col2 ) col2, - COUNT ( * ) AS col2 FROM tab0
----
-99
-3

query I rowsort
SELECT + 51 * - ( + col2 ) AS col2 FROM tab2
----
-1173
-2040
-2958

query I rowsort
SELECT DISTINCT + - col1 FROM tab1 WHERE + col1 * + col2 + - col1 * col0 + - 31 + 8 / - col2 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + ( + + col0 ) AS col0 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT DISTINCT + + COUNT( * ) + - 30 col1 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9932
SELECT DISTINCT + + COUNT ( * ) + - 30 col1 FROM tab1 AS cor0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9933
SELECT ALL - - 48 + - + col2 / + 50 * - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL - - 48 + - + col2 / + 50 * - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col0, + col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
51
64
77
75
67

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 * - col0 IS NOT NULL AND NOT - 61 + col0 - - 71 + + col2 <= - col1
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
46
64
75

query I rowsort
SELECT + 51 * - 85 + - col1 FROM tab1
----
-4340
-4349
-4382

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND 54
----

query I rowsort
SELECT DISTINCT - 65 * - + 79 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
5135

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col1 < NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - + col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * - col0 * - col2 + col2 AS col0 FROM tab2 AS cor0
----
102440
24357
252358

onlyif mysql # aggregate syntax: 
query II rowsort label-9943
SELECT DISTINCT + - 21 AS col0, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-21
3

skipif mysql # not compatible
query II rowsort label-9943
SELECT DISTINCT + - 21 AS col0, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-21
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 96 * - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-9945
SELECT - - COUNT( * ) AS col0, COUNT( * ) AS col0 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9945
SELECT - - COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3
3

query II rowsort
SELECT DISTINCT col0 AS col0, 58 * 58 * + col2 + + 4 AS col1 FROM tab2 AS cor0
----
46
77376
64
134564
75
195116

onlyif mysql # DIV for integer division: 
query I rowsort label-9947
SELECT 88 DIV + + col0 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9947
SELECT 88 / + + col0 AS col2 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 99 < NULL
----

query I rowsort
SELECT - col0 * + + col2 * col0 AS col1 FROM tab1
----
-249696
-426275
-563108

query I rowsort
SELECT ALL - 78 FROM tab0 WHERE + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT COUNT( DISTINCT + 95 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9951
SELECT COUNT ( DISTINCT + 95 ) AS col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT ALL - COUNT( * ) AS col2 FROM tab0 WHERE - + 62 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9952
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 WHERE - + 62 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9953
SELECT DISTINCT CAST( NULL AS SIGNED ) / + - col0 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9953
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + - col0 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL + col2 * + + col2 AS col2 FROM tab1
----
3481
4624
9216

onlyif mysql # DIV for integer division: 
query I rowsort label-9955
SELECT DISTINCT - 84 DIV - 72 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-9955
SELECT DISTINCT - 84 / - 72 FROM tab1 cor0
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = 74 * + 74 + - 13
----

query I rowsort
SELECT + col0 * 86 * + 62 * - 81 + + + 68 * + 34 * - 94 AS col2 FROM tab2 cor0 WHERE NOT ( NOT NULL IS NULL )
----
-20084360
-27858416
-32609228

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT DISTINCT MIN( DISTINCT + 89 ) + COUNT( * ) - 16 AS col2 FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-9958
SELECT DISTINCT MIN ( DISTINCT + 89 ) + COUNT ( * ) - 16 AS col2 FROM tab2
----
76

query I rowsort
SELECT DISTINCT - + 63 + - 87 FROM tab2 AS cor0
----
-150

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 + + col1 NOT IN ( - col0, - col2 * + 8 + + + col1, + + 65, - col0 + + col2 * - col0 * + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9961
SELECT + COUNT( DISTINCT + CAST( - - CAST( NULL AS DECIMAL ) AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9961
SELECT + COUNT ( DISTINCT + CAST ( - - CAST ( NULL AS REAL ) AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9962
SELECT - col2 * - 28 * + - ( 58 ) + - 78 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9962
SELECT - col2 * - 28 * + - ( 58 ) + - 78 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 87 FROM tab1 AS cor0 WHERE + ( - + 31 ) + col0 IS NULL
----

query I rowsort
SELECT ALL 41 * - col2 + + col1 FROM tab0 AS cor0
----
-1846
-389
-4058

onlyif mysql # DIV for integer division: 
query II rowsort label-9965
SELECT ALL - - 51 col2, - 83 DIV + col0 AS col0 FROM tab1 AS cor0
----
51
-1
51
0
51
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9965
SELECT ALL - - 51 col2, - 83 / + col0 AS col0 FROM tab1 AS cor0
----
51
-1
51
0
51
0

query I rowsort
SELECT + col2 * 79 - - 38 AS col2 FROM tab2 AS cor0
----
1855
3198
4620

query I rowsort
SELECT DISTINCT 30 * - col2 AS col0 FROM tab0
----
-1410
-2970
-300

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col1 + - ( 1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 + + 46 FROM tab1
----
105
114
142

query I rowsort
SELECT + col2 FROM tab0 WHERE + + ( + + col1 ) * + col0 * + 22 * - 16 * + - col0 + 0 IS NOT NULL
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 + 56 + - col2 IS NOT NULL AND col0 * col0 * col0 * - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col1 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT - - SUM( - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-9973
SELECT - - SUM ( - col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query III rowsort label-9974
SELECT ALL + 68 * - COUNT( * ) AS col2, SUM( col0 ), - 32 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-204
185
-32

skipif mysql # not compatible
query III rowsort label-9974
SELECT ALL + 68 * - COUNT ( * ) AS col2, SUM ( col0 ), - 32 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-204
185
-32

query I rowsort
SELECT - - col0 * col1 + + col1 + + - col1 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT DISTINCT + - ( + col1 ) AS col1 FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9977
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( NOT 83 BETWEEN - col0 AND ( - ( + - CAST( NULL AS DECIMAL ) ) * - + col2 ) ) )
----

skipif mysql # not compatible
query III rowsort label-9977
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( NOT 83 BETWEEN - col0 AND ( - ( + - CAST ( NULL AS REAL ) ) * - + col2 ) ) )
----

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab2 AS cor0 WHERE NULL < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9979
SELECT + col1 * - CAST( + + col0 AS SIGNED ) * + + col0 col0 FROM tab2
----
-107916
-315392
-376875

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9979
SELECT + col1 * - CAST ( + + col0 AS INTEGER ) * + + col0 col0 FROM tab2
----
-107916
-315392
-376875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, col1 col2 FROM tab1
----
-59
5
-68
47
-96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT DISTINCT COUNT( * ) * - 6 AS col2 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-9981
SELECT DISTINCT COUNT ( * ) * - 6 AS col2 FROM tab0
----
-18

query II rowsort
SELECT + col1 AS col2, 34 + 35 AS col1 FROM tab0
----
1
69
21
69
81
69

query I rowsort
SELECT DISTINCT - + col0 + + - col2 + - col2 + 46 FROM tab2 AS cor0
----
-145
-46
-98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 57 + 9 * - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + ( + col1 ) * 5 AS col1 FROM tab2 AS cor0
----
-255
-335
-385

query I rowsort
SELECT DISTINCT - col1 * + + col2 AS col2 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT - - 83 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( - 76, - col1, + col2 + - col2 + - col0 - - 75 / - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9989
SELECT ALL 39 + col0 - - + CAST( NULL AS SIGNED ) + - - col1 * - col2 * col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9989
SELECT ALL 39 + col0 - - + CAST ( NULL AS INTEGER ) + - - col1 * - col2 * col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9990
SELECT 24 DIV - - 14 FROM tab0, tab0 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-9990
SELECT 24 / - - 14 FROM tab0, tab0 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT + + col2 + + + 69 FROM tab0 AS cor0 WHERE NULL <= col2 / - 64
----

query I rowsort
SELECT DISTINCT + 74 + col1 + col1 * - col1 AS col0 FROM tab1 AS cor0
----
-108
-2088
54

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 11 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 10 * col1 <= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 20 * + col2 + + + col0 col2 FROM tab2 AS cor0
----
-1085
-414
-736

query I rowsort
SELECT ALL col1 - + 47 FROM tab2
----
20
30
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9997
SELECT ALL 12 DIV - - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL 12 / - - col2 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 BETWEEN NULL AND 29
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9999
SELECT - CAST( NULL AS SIGNED ) / - CAST( + 38 AS SIGNED ) * - 38 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9999
SELECT - CAST ( NULL AS INTEGER ) / - CAST ( + 38 AS INTEGER ) * - 38 FROM tab0
----
NULL
NULL
NULL

