sqllogictest
Artifact Content
Not logged in

Artifact 3a68ccb795e7c189b630f80247a38a1235cbe427:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-0
SELECT DISTINCT + col1 AS col1, - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1
SELECT DISTINCT + 18 AS col1, CAST( - 66 AS SIGNED ) FROM tab2
----
18
-66

skipif mysql # not compatible
query II rowsort label-1
SELECT DISTINCT + 18 AS col1, CAST ( - 66 AS INTEGER ) FROM tab2
----
18
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT + SUM( DISTINCT + 95 ) col0 FROM tab1
----
95

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 col0, col2 col0 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + - 47 + col2 col1 FROM tab1 AS cor0
----
-26
35
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT + ( COUNT( * ) ) + 28 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
37

skipif mysql # not compatible
query I rowsort label-5
SELECT + ( COUNT ( * ) ) + 28 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
37

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

query I rowsort
SELECT DISTINCT - 11 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-11

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-9
SELECT col1 DIV ( + + col0 ) + + col1 AS col1 FROM tab2 AS cor0
----
52
67
78

skipif mysql # not compatible
query I rowsort label-9
SELECT col1 / ( + + col0 ) + + col1 AS col1 FROM tab2 AS cor0
----
52
67
78

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 50 * 58 < + 44 + - + col1
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-12
SELECT - CAST( NULL AS SIGNED ) * 24 + col0 + - col2 / col2 col2, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-12
SELECT - CAST ( NULL AS INTEGER ) * 24 + col0 + - col2 / col2 col2, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-15
SELECT DISTINCT + 88 DIV 92 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-15
SELECT DISTINCT + 88 / 92 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT + - col2 * - col2 * - col2 + - 98 + + 84 AS col1, 18 AS col2 FROM tab2 AS cor0
----
-12181
18
-195126
18
-64014
18

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

query I rowsort
SELECT DISTINCT + col0 + - ( 61 ) AS col2 FROM tab1
----
-10
24
30

query I rowsort
SELECT DISTINCT + 96 + + col2 FROM tab0
----
106
143
195

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-20
SELECT + CAST ( NULL AS INTEGER ) col2, + col1 AS col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT 67 FROM tab0 WHERE ( NULL ) IS NULL
----
67
67
67

query I rowsort
SELECT ALL - 36 - + + col1 AS col1 FROM tab1
----
-41
-50
-83

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-24
SELECT DISTINCT 75 * - col0 * + CAST( - col1 AS SIGNED ) * + col2 FROM tab0
----
1370250
4282875
720225

skipif mysql # not compatible
query I rowsort label-24
SELECT DISTINCT 75 * - col0 * + CAST ( - col1 AS INTEGER ) * + col2 FROM tab0
----
1370250
4282875
720225

query I rowsort
SELECT + col1 - - 81 FROM tab2
----
132
148
158

query II rowsort
SELECT - col1, - 76 + col1 * - - 2 - 8 * col2 AS col2 FROM tab1 AS cor0
----
-14
-816
-47
-526
-5
-538

onlyif mysql # aggregate syntax: 
query II rowsort label-27
SELECT COUNT( * ) * ( 99 ) AS col2, 29 AS col1 FROM tab1 cor0
----
297
29

skipif mysql # not compatible
query II rowsort label-27
SELECT COUNT ( * ) * ( 99 ) AS col2, 29 AS col1 FROM tab1 cor0
----
297
29

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT DISTINCT + SUM( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-28
SELECT DISTINCT + SUM ( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-29
SELECT - CAST( NULL AS SIGNED ) / + 78 * - 36 col1 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-30
SELECT ALL ( - COUNT( * ) ) col1, 97 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-30
SELECT ALL ( - COUNT ( * ) ) col1, 97 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9
97

query I rowsort
SELECT DISTINCT - 41 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-41

query I rowsort
SELECT 89 / col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT 90 FROM tab2 cor0
----
90

query I rowsort
SELECT DISTINCT - col2 * col0 + - + 48 / 76 FROM tab1 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-35
SELECT DISTINCT 16 AS col0, + COUNT( * ) AS col0 FROM tab2
----
16
3

skipif mysql # not compatible
query II rowsort label-35
SELECT DISTINCT 16 AS col0, + COUNT ( * ) AS col0 FROM tab2
----
16
3

query I rowsort
SELECT DISTINCT - 41 + - col2 AS col0 FROM tab2
----
-64
-81
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> - col2
----

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

skipif mysql # not compatible
query I rowsort label-38
SELECT ALL - 44 - - col1 FROM tab1 WHERE NOT NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) * - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT DISTINCT - MIN( DISTINCT - col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-39
SELECT DISTINCT - MIN ( DISTINCT - col1 ) FROM tab0
----
81

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + col0 <= - 6 / - col0
----

query I rowsort
SELECT DISTINCT - - 85 + - col2 + + col2 FROM tab2 AS cor0
----
85

query I rowsort
SELECT col1 + + - 31 - - - 43 AS col2 FROM tab1 AS cor0
----
-27
-60
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-44
SELECT CAST( + + 15 AS SIGNED ) AS col0, - col0 * - col1 - 81 AS col0 FROM tab0 AS cor0
----
15
1134
15
16
15
1746

skipif mysql # not compatible
query II rowsort label-44
SELECT CAST ( + + 15 AS INTEGER ) AS col0, - col0 * - col1 - 81 AS col0 FROM tab0 AS cor0
----
15
1134
15
16
15
1746

query I rowsort
SELECT DISTINCT 48 * 29 FROM tab1 AS cor0
----
1392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-46
SELECT + CAST( + col2 AS SIGNED ) - + 33 FROM tab0 cor0
----
-23
14
66

skipif mysql # not compatible
query I rowsort label-46
SELECT + CAST ( + col2 AS INTEGER ) - + 33 FROM tab0 cor0
----
-23
14
66

onlyif mysql # DIV for integer division: 
query I rowsort label-47
SELECT + - 35 DIV ( - col0 ) + - 98 AS col1 FROM tab1 AS cor0 WHERE + 14 IS NOT NULL
----
-98
-98
-98

skipif mysql # not compatible
query I rowsort label-47
SELECT + - 35 / ( - col0 ) + - 98 AS col1 FROM tab1 AS cor0 WHERE + 14 IS NOT NULL
----
-98
-98
-98

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

query I rowsort
SELECT + 51 * col0 - - + col0 + + 36 - - col2 AS col2 FROM tab0 AS cor0
----
4570
5179
863

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

skipif mysql # not compatible
query I rowsort label-50
SELECT COUNT ( * ) / + ( + 2 ) - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-51
SELECT ALL col0 DIV - - col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-51
SELECT ALL col0 / - - col0 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL - col1 - 61 AS col1 FROM tab1
----
-108
-66
-75

query I rowsort
SELECT + 0 * - - 30 + + + col2 FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT + 41 + - 87 AS col1 FROM tab2
----
-46

query I rowsort
SELECT DISTINCT col2 - + + col2 - - col0 AS col2 FROM tab0
----
15
87
97

query I rowsort
SELECT ALL - 8 + - col1 + 99 FROM tab1
----
44
77
86

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE ( - 51 ) IS NULL
----

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

query II rowsort
SELECT DISTINCT + col1 * 58 AS col1, 1 FROM tab1
----
2726
1
290
1
812
1

query I rowsort
SELECT 88 * - col2 FROM tab1 AS cor0
----
-5192
-5984
-8448

query I rowsort
SELECT ALL + ( - col0 ) * 47 AS col2 FROM tab0 AS cor0
----
-4089
-4559
-705

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 71 > NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 30 * + - col2 FROM tab1
----
1770
2040
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT DISTINCT MAX( ALL 16 ) AS col2 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-66
SELECT DISTINCT MAX ( ALL 16 ) AS col2 FROM tab0
----
16

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-69
SELECT DISTINCT + col2 DIV - - 6 - 76 AS col0 FROM tab1 AS cor0
----
-60
-65
-67

skipif mysql # not compatible
query I rowsort label-69
SELECT DISTINCT + col2 / - - 6 - 76 AS col0 FROM tab1 AS cor0
----
-60
-65
-67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 50 IS NOT NULL
----

query I rowsort
SELECT 87 + - 0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
87
87
87

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

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

query II rowsort
SELECT col2 + + col2 * col0 * + - 24 AS col2, col2 AS col1 FROM tab0
----
-16873
47
-20870
10
-230373
99

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

skipif mysql # not compatible
query I rowsort label-74
SELECT DISTINCT - ( - ( + COUNT ( * ) ) ) FROM tab2
----
3

query I rowsort
SELECT + + col2 * 23 AS col2 FROM tab1 AS cor0
----
1357
1564
2208

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-78
SELECT ALL - col1 * col0 AS col2, 77 AS col1 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + - 8 * - col2 <= + 19
----

skipif mysql # not compatible
query II rowsort label-78
SELECT ALL - col1 * col0 AS col2, 77 AS col1 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + - 8 * - col2 <= + 19
----

query I rowsort
SELECT DISTINCT - + col2 + - col0 * + 81 * - 11 FROM tab2 cor0
----
40963
56984
66767

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

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

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

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

query I rowsort
SELECT ALL - 87 + - col1 AS col1 FROM tab2 AS cor0
----
-138
-154
-164

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

query I rowsort
SELECT DISTINCT + 74 AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= 71 * col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-86
SELECT CAST( NULL AS SIGNED ) AS col1, + SUM( ALL 18 ) FROM tab2
----
NULL
54

skipif mysql # not compatible
query II rowsort label-86
SELECT CAST ( NULL AS INTEGER ) AS col1, + SUM ( ALL 18 ) FROM tab2
----
NULL
54

onlyif mysql # aggregate syntax: 
query I rowsort label-87
SELECT ALL - SUM( DISTINCT - 46 ) FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-87
SELECT ALL - SUM ( DISTINCT - 46 ) FROM tab0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-88
SELECT DISTINCT - col1 AS col0, - CAST( NULL AS SIGNED ) FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-88
SELECT DISTINCT - col1 AS col0, - CAST ( NULL AS INTEGER ) FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-89
SELECT col2 AS col2, 9 DIV - col1 AS col2 FROM tab1
----
59
-1
68
0
96
0

skipif mysql # not compatible
query II rowsort label-89
SELECT col2 AS col2, 9 / - col1 AS col2 FROM tab1
----
59
-1
68
0
96
0

query I rowsort
SELECT ALL - 91 * + col1 AS col2 FROM tab2
----
-4641
-6097
-7007

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

query I rowsort
SELECT ALL + col2 * - + 37 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT + ( + + 82 ) * + - col2 AS col1 FROM tab1 AS cor0
----
-4838
-5576
-7872

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

query I rowsort
SELECT DISTINCT 1 * - col1 AS col0 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - + col2 * + 99 + + col1 + 50 + - + col1 AS col1 FROM tab1 AS cor0
----
-5791
-6682
-9454

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-103
SELECT ALL + 73 + - + COUNT ( * ) FROM tab0
----
70

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

query I rowsort
SELECT DISTINCT 86 * - col1 + - col2 FROM tab2
----
-4409
-5820
-6662

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

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

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

query I rowsort
SELECT 98 * + - col0 FROM tab1
----
-4998
-8330
-8918

query I rowsort
SELECT DISTINCT col2 * 23 + + col2 - + - col2 AS col2 FROM tab0
----
1175
2475
250

query I rowsort
SELECT 5 + ( + - 57 ) - - col2 + - 78 * - - col1 * col1 AS col0 FROM tab2
----
-202907
-350136
-462474

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 32 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-32

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

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

query I rowsort
SELECT 63 + + 54 + 17 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 3ceb25f3d86505c05ae8b32388dc5c47

onlyif mysql # DIV for integer division: 
query I rowsort label-115
SELECT ALL col2 - + 63 DIV 10 FROM tab1
----
53
62
90

skipif mysql # not compatible
query I rowsort label-115
SELECT ALL col2 - + 63 / 10 FROM tab1
----
53
62
90

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

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

skipif mysql # not compatible
query I rowsort label-117
SELECT + MAX ( + 38 ) FROM tab0 AS cor0
----
38

query I rowsort
SELECT - col2 * col2 + 65 * - + col2 AS col1 FROM tab1 AS cor0
----
-15456
-7316
-9044

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 <= col1
----

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

query I rowsort
SELECT ALL - 63 * + col1 AS col1 FROM tab2
----
-3213
-4221
-4851

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

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

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

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

query I rowsort
SELECT + col0 * - 62 AS col1 FROM tab0 AS cor0
----
-5394
-6014
-930

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 90 IS NOT NULL
----

query I rowsort
SELECT + 7 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

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

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

skipif mysql # not compatible
query I rowsort label-131
SELECT + MAX ( ( + 55 ) ) FROM tab2 AS cor0
----
55

query I rowsort
SELECT 26 + - - col1 * - 23 AS col2 FROM tab2
----
-1147
-1515
-1745

query I rowsort
SELECT DISTINCT col2 * - 25 + + - col0 AS col0 FROM tab1
----
-1560
-1791
-2451

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

query I rowsort
SELECT ALL col1 * ( + + col2 ) - - - 33 * col1 AS col0 FROM tab0
----
-483
1134
66

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-137
SELECT col1 * + 81, + col1 DIV col1 + col2 AS col2 FROM tab2
----
4131
24
5427
59
6237
41

skipif mysql # not compatible
query II rowsort label-137
SELECT col1 * + 81, + col1 / col1 + col2 AS col2 FROM tab2
----
4131
24
5427
59
6237
41

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL <= + col1 + - 83 / - col1 + col1 - - + 0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-139
SELECT + + col2 - + ( col1 ) DIV + ( + + 74 ) AS col2 FROM tab0 AS cor0
----
10
46
99

skipif mysql # not compatible
query I rowsort label-139
SELECT + + col2 - + ( col1 ) / + ( + + 74 ) AS col2 FROM tab0 AS cor0
----
10
46
99

query I rowsort
SELECT col0 + + + 68 FROM tab2
----
114
132
143

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

skipif mysql # not compatible
query I rowsort label-141
SELECT + MAX ( - + col0 ) AS col0 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT + col2 * + 32 AS col2 FROM tab0 AS cor0
----
1504
3168
320

query I rowsort
SELECT ALL + - 65 * - - col2 AS col2 FROM tab1 AS cor0
----
-3835
-4420
-6240

query I rowsort
SELECT + 66 * + + 25 * + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-146
SELECT + col1 DIV 75 AS col0, - col2 - - col2 AS col2 FROM tab0
----
0
0
0
0
1
0

skipif mysql # not compatible
query II rowsort label-146
SELECT + col1 / 75 AS col0, - col2 - - col2 AS col2 FROM tab0
----
0
0
0
0
1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-147
SELECT - col0 DIV - 72 AS col1 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-147
SELECT - col0 / - 72 AS col1 FROM tab0
----
0
1
1

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 + + col0 >= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-149
SELECT DISTINCT COUNT ( * ) * + COUNT ( - col1 ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-150
SELECT - ( + + 12 ) * - - MAX( DISTINCT 5 ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-150
SELECT - ( + + 12 ) * - - MAX ( DISTINCT 5 ) FROM tab2
----
-60

query I rowsort
SELECT - 21 * col1 AS col2 FROM tab2
----
-1071
-1407
-1617

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

query I rowsort
SELECT ALL - col1 * + - col0 + + col1 AS col1 FROM tab1 AS cor0
----
430
4324
728

query I rowsort
SELECT ALL ( - 88 ) FROM tab2 AS cor0
----
-88
-88
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT DISTINCT COUNT( * ) * + 4 FROM tab0 cor0
----
12

skipif mysql # not compatible
query I rowsort label-155
SELECT DISTINCT COUNT ( * ) * + 4 FROM tab0 cor0
----
12

query I rowsort
SELECT DISTINCT col2 + + col0 * + 63 AS col1 FROM tab0
----
5491
6210
992

onlyif mysql # DIV for integer division: 
query I rowsort label-157
SELECT - 19 * col0 + - 61 DIV + - col0 FROM tab1
----
-1615
-1729
-968

skipif mysql # not compatible
query I rowsort label-157
SELECT - 19 * col0 + - 61 / + - col0 FROM tab1
----
-1615
-1729
-968

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

query I rowsort
SELECT + col0 / - 2 + - ( col0 ) * - 67 / - + col2 + - ( - 14 ) FROM tab1 AS cor0 WHERE - col2 * + - 7 > NULL
----

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

query I rowsort
SELECT ALL - 57 * + col2 + - 3 + + col0 + - col1 FROM tab1 AS cor0
----
-3286
-3835
-5438

query I rowsort
SELECT - 25 - - col1 + - + ( - col1 ) FROM tab1
----
-15
3
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 - + - 26 col2 FROM tab2
----
100
100
100

query I rowsort
SELECT col2 * col1 - - col1 AS col2 FROM tab2
----
1224
3157
3953

query I rowsort
SELECT ALL - ( ( - - col2 ) ) FROM tab1
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 89 + + - col0 NOT BETWEEN + col0 AND + col0 AND NOT ( NULL ) >= NULL
----

query I rowsort
SELECT DISTINCT - col1 * - col2 + 97 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 > + + 22
----

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

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

query I rowsort
SELECT DISTINCT + col0 * - 68 + 23 + + ( - - col0 ) AS col2 FROM tab2
----
-3059
-4265
-5002

query I rowsort
SELECT ALL - 21 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 5 col0 FROM tab0
----
-435
-485
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-172
SELECT CAST( NULL AS SIGNED ) * + + 8, 83 AS col0 FROM tab1 AS cor0
----
NULL
83
NULL
83
NULL
83

skipif mysql # not compatible
query II rowsort label-172
SELECT CAST ( NULL AS INTEGER ) * + + 8, 83 AS col0 FROM tab1 AS cor0
----
NULL
83
NULL
83
NULL
83

onlyif mysql # aggregate syntax: 
query III rowsort label-173
SELECT DISTINCT + 51 * - MIN( + col0 ), SUM( - 18 ) AS col2, - 34 AS col2 FROM tab0 AS cor0
----
-765
-54
-34

skipif mysql # not compatible
query III rowsort label-173
SELECT DISTINCT + 51 * - MIN ( + col0 ), SUM ( - 18 ) AS col2, - 34 AS col2 FROM tab0 AS cor0
----
-765
-54
-34

query I rowsort
SELECT 52 * - + col0 FROM tab1 AS cor0
----
-2652
-4420
-4732

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-176
SELECT DISTINCT + - col2 DIV + 44 AS col0 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-176
SELECT DISTINCT + - col2 / + 44 AS col0 FROM tab2 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - + 67 * + - col0 col0 FROM tab2 AS cor0
----
-141772
-274432
-376875

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + 26 NOT BETWEEN 10 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-181
SELECT DISTINCT CAST( + 2 AS SIGNED ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-181
SELECT DISTINCT CAST ( + 2 AS INTEGER ) FROM tab0
----
2

query II rowsort
SELECT ALL - col0 AS col2, + ( - - 50 ) * + col0 AS col2 FROM tab1
----
-51
2550
-85
4250
-91
4550

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT COUNT( * ) FROM tab2 WHERE NOT - col1 > + 90
----
3

skipif mysql # not compatible
query I rowsort label-183
SELECT COUNT ( * ) FROM tab2 WHERE NOT - col1 > + 90
----
3

query II rowsort
SELECT col2 AS col0, 24 + - - 67 AS col1 FROM tab2 AS cor0
----
23
91
40
91
58
91

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-185
SELECT ALL - + MIN ( ALL + 88 ) col2 FROM tab1 AS cor0
----
-88

query I rowsort
SELECT DISTINCT + col1 * 70 AS col0 FROM tab1
----
3290
350
980

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

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

query I rowsort
SELECT DISTINCT + ( col0 ) * + col0 AS col1 FROM tab0
----
225
7569
9409

query I rowsort
SELECT DISTINCT + 47 * 91 FROM tab2
----
4277

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-191
SELECT + col0 DIV - 67 + col2 FROM tab1
----
58
67
96

skipif mysql # not compatible
query I rowsort label-191
SELECT + col0 / - 67 + col2 FROM tab1
----
58
67
96

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT SUM( ALL - ( col2 ) ) * - 68 AS col1 FROM tab0
----
10608

skipif mysql # not compatible
query I rowsort label-192
SELECT SUM ( ALL - ( col2 ) ) * - 68 AS col1 FROM tab0
----
10608

query I rowsort
SELECT - 94 AS col1 FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col0 col1 FROM tab2 WHERE NOT + col1 NOT BETWEEN NULL AND + 40 * - 97
----

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

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL - 86 * + CAST ( NULL AS INTEGER ) + + col1 * 13 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 95 * + col1 AS col2 FROM tab2
----
4845
6365
7315

query I rowsort
SELECT - col0 * 8 AS col2 FROM tab2
----
-368
-512
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT - 36 + SUM( 8 ) * + 60 col0 FROM tab0
----
1404

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-198
SELECT - 36 + SUM ( 8 ) * + 60 col0 FROM tab0
----
1404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-199
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( DISTINCT - 92 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-199
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT - 92 ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT + col1 * - 73 AS col1 FROM tab1 WHERE NOT ( col1 - - 81 * col0 ) > ( + col2 * col0 )
----
-1022

query I rowsort
SELECT ALL col0 * - 73 AS col0 FROM tab2
----
-3358
-4672
-5475

query I rowsort
SELECT ALL col2 * 45 AS col2 FROM tab1
----
2655
3060
4320

query I rowsort
SELECT 40 + 36 AS col2 FROM tab2
----
76
76
76

onlyif mysql # DIV for integer division: 
query I rowsort label-204
SELECT ALL col2 DIV + 79 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL col2 / + 79 AS col2 FROM tab2
----
0
0
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-206
SELECT col0 DIV + 36 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-206
SELECT col0 / + 36 FROM tab2
----
1
1
2

query I rowsort
SELECT DISTINCT - col1 + + 88 FROM tab0 AS cor0
----
67
7
87

query I rowsort
SELECT 8 - 3 * col2 AS col2 FROM tab2 AS cor0
----
-112
-166
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT ALL SUM( col1 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL SUM ( col1 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE - 18 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-211
SELECT + 66 DIV 36 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-211
SELECT + 66 / 36 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT ALL 96 * - col0 AS col2 FROM tab1
----
-4896
-8160
-8736

query III rowsort
SELECT ALL * FROM tab2 WHERE 22 IS NULL
----

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

query I rowsort
SELECT col0 - - 98 * + col1 FROM tab1 WHERE NOT ( - col1 ) NOT BETWEEN 79 + ( + col0 ) AND + col2 * - ( col1 ) + - col1
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + 82 * - col1 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-218
SELECT ALL + CAST( - col1 AS SIGNED ) * col1 FROM tab1 AS cor0
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-218
SELECT ALL + CAST ( - col1 AS INTEGER ) * col1 FROM tab1 AS cor0
----
-196
-2209
-25

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

query I rowsort
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT - 45 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT ALL + COUNT( + 1 ) AS col0 FROM tab1 AS cor0 WHERE ( - col0 * - col1 ) = 35 * + col1
----
0

skipif mysql # not compatible
query I rowsort label-221
SELECT ALL + COUNT ( + 1 ) AS col0 FROM tab1 AS cor0 WHERE ( - col0 * - col1 ) = 35 * + col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 24 * col0 col2 FROM tab1 cor0
----
1224
2040
2184

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 96 * - 13 FROM tab0
----
-1248

onlyif mysql # DIV for integer division: 
query I rowsort label-228
SELECT ALL + 46 * - ( col2 ) DIV + col2 col1 FROM tab2
----
-46
-46
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-228
SELECT ALL + 46 * - ( col2 ) / + col2 col1 FROM tab2
----
-46
-46
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-229
SELECT ( - col1 ) DIV col0 AS col2 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-229
SELECT ( - col1 ) / col0 AS col2 FROM tab0
----
-5
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-231
SELECT + col1 DIV + 35 col1 FROM tab0
----
0
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-231
SELECT + col1 / + 35 col1 FROM tab0
----
0
0
2

query I rowsort
SELECT ALL + 2 * + 6 AS col1 FROM tab0
----
12
12
12

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

skipif mysql # not compatible
query I rowsort label-233
SELECT ALL MIN ( + ( col1 ) ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT col1 * - 55 FROM tab2
----
-2805
-3685
-4235

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

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

query I rowsort
SELECT ALL + 91 AS col1 FROM tab0
----
91
91
91

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

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

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

query I rowsort
SELECT - + col0 * + - col1 + 21 * + col2 FROM tab1 AS cor0
----
1664
2730
5705

onlyif mysql # DIV for integer division: 
query I rowsort label-240
SELECT col2 DIV col1 FROM tab0 cor0 WHERE col1 + 65 IS NOT NULL
----
0
0
99

skipif mysql # not compatible
query I rowsort label-240
SELECT col2 / col1 FROM tab0 cor0 WHERE col1 + 65 IS NOT NULL
----
0
0
99

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

query I rowsort
SELECT - 43 * - col1 FROM tab2 AS cor0
----
2193
2881
3311

query II rowsort
SELECT DISTINCT + col0, 6 AS col2 FROM tab0 AS cor0
----
15
6
87
6
97
6

query I rowsort
SELECT col2 - col1 * + col1 * - 9 AS col2 FROM tab0 AS cor0
----
108
3979
59096

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

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

query I rowsort
SELECT DISTINCT - - col2 + - col0 + + 18 - + ( - col1 + + col1 ) AS col2 FROM tab2 AS cor0
----
-5
-6
1

query I rowsort
SELECT col1 * + + 28 * - col1 - - 15 * - col2 FROM tab0 AS cor0
----
-12498
-1513
-184413

query I rowsort
SELECT ALL 23 + - col1 AS col1 FROM tab1 AS cor0
----
-24
18
9

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-250
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + - 40 col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + - - ( + col1 ) AS col0 FROM tab0
----
-66
-96
66

query I rowsort
SELECT ALL col2 + col0 - - col0 FROM tab0
----
184
293
77

query III rowsort
SELECT * FROM tab1 WHERE ( - + col1 ) <= NULL
----

query I rowsort
SELECT - col2 * - col0 + + col0 FROM tab1
----
4947
5100
6279

query I rowsort
SELECT col0 FROM tab2 WHERE ( NULL ) BETWEEN ( + ( + 90 ) ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-256
SELECT ALL col0 - + col0 - - col0 + + + col0 DIV + 92 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-256
SELECT ALL col0 - + col0 - - col0 + + + col0 / + 92 FROM tab2
----
46
64
75

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

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

query III rowsort
SELECT * FROM tab0 WHERE + + 31 <> ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-259
SELECT ALL + col0 * + col1 + CAST ( NULL AS INTEGER ) / - col2 FROM tab0 WHERE NOT - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-260
SELECT COUNT( * ) + + 94 AS col2, MAX( DISTINCT + col2 ) * - COUNT( * ) AS col1 FROM tab1
----
97
-288

skipif mysql # not compatible
query II rowsort label-260
SELECT COUNT ( * ) + + 94 AS col2, MAX ( DISTINCT + col2 ) * - COUNT ( * ) AS col1 FROM tab1
----
97
-288

query I rowsort
SELECT ALL col1 + - 54 - + col2 * col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT - COUNT( * ) * + COUNT( * ) * + - 12 FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-265
SELECT - COUNT ( * ) * + COUNT ( * ) * + - 12 FROM tab2
----
108

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

query I rowsort
SELECT ALL + 76 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( col0 ) col2 FROM tab2 AS cor0
----
46
64
75

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-271
SELECT DISTINCT - 88 + col0 - + 13 + + col1 * - + 87 * - CAST( - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-17102
-192193
-2191

skipif mysql # not compatible
query I rowsort label-271
SELECT DISTINCT - 88 + col0 - + 13 + + col1 * - + 87 * - CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-17102
-192193
-2191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-272
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NOT + CAST( - col1 AS SIGNED ) NOT BETWEEN + - CAST( NULL AS SIGNED ) AND ( + - ( + 46 ) )
----

skipif mysql # not compatible
query I rowsort label-272
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NOT + CAST ( - col1 AS INTEGER ) NOT BETWEEN + - CAST ( NULL AS INTEGER ) AND ( + - ( + 46 ) )
----

query I rowsort
SELECT DISTINCT + - 53 FROM tab1 AS cor0 WHERE col2 = NULL
----

query I rowsort
SELECT ALL - col2 * - + col2 + - - ( + col0 ) + + ( - col1 ) AS col2 FROM tab0 AS cor0
----
166
2143
9897

query I rowsort
SELECT ALL + 94 + - col1 FROM tab0 cor0
----
13
73
93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-276
SELECT * FROM tab1 WHERE NOT - + CAST( NULL AS SIGNED ) <> - col1 / + - 89
----

skipif mysql # not compatible
query III rowsort label-276
SELECT * FROM tab1 WHERE NOT - + CAST ( NULL AS INTEGER ) <> - col1 / + - 89
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 41 + + col2 col0 FROM tab2
----
-1
-18
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-278
SELECT + 8 + - ( - col1 ) col2 FROM tab1 WHERE ( ( - col0 ) NOT BETWEEN - CAST( NULL AS SIGNED ) AND - 14 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-279
SELECT 19 DIV - - col1 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-279
SELECT 19 / - - col1 FROM tab1
----
0
1
3

query I rowsort
SELECT DISTINCT + 94 AS col1 FROM tab0
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col1 col0 FROM tab1
----
51
14
85
5
91
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT ALL + SUM( DISTINCT + 2 ) FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-283
SELECT ALL + SUM ( DISTINCT + 2 ) FROM tab2
----
2

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > - - col1 * col2 OR NOT - 77 * 40 IS NOT NULL
----

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

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

query I rowsort
SELECT + 1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT 95 + COUNT( * ) * + COUNT( * ) FROM tab2
----
104

skipif mysql # not compatible
query I rowsort label-290
SELECT 95 + COUNT ( * ) * + COUNT ( * ) FROM tab2
----
104

query I rowsort
SELECT ALL 57 * + ( col2 ) * col1 - 97 + + col0 AS col0 FROM tab1
----
16803
182166
76562

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 <> - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + + - col2 + 35 AS col1 FROM tab2 WHERE NULL NOT IN ( - + col1 * - + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-296
SELECT col0 col2, col1 * + CAST( col1 AS SIGNED ) AS col2 FROM tab0
----
15
6561
87
441
97
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-296
SELECT col0 col2, col1 * + CAST ( col1 AS INTEGER ) AS col2 FROM tab0
----
15
6561
87
441
97
1

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-298
SELECT col0, - col0 DIV - + col0 FROM tab2
----
46
1
64
1
75
1

skipif mysql # not compatible
query II rowsort label-298
SELECT col0, - col0 / - + col0 FROM tab2
----
46
1
64
1
75
1

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-301
SELECT + 72, col2 DIV + col1 AS col2 FROM tab1
----
72
1
72
11
72
6

skipif mysql # not compatible
query II rowsort label-301
SELECT + 72, col2 / + col1 AS col2 FROM tab1
----
72
1
72
11
72
6

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-303
SELECT DISTINCT - CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-304
SELECT + MIN( ALL + 66 ) AS col1, 77 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 27 AND + col1 + + col0
----
NULL
77

skipif mysql # not compatible
query II rowsort label-304
SELECT + MIN ( ALL + 66 ) AS col1, 77 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 27 AND + col1 + + col0
----
NULL
77

query I rowsort
SELECT DISTINCT - ( - 9 ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT - 28 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT + 35 * - COUNT( * ) * - COUNT( * ) * + 62 AS col1 FROM tab0
----
19530

skipif mysql # not compatible
query I rowsort label-307
SELECT + 35 * - COUNT ( * ) * - COUNT ( * ) * + 62 AS col1 FROM tab0
----
19530

onlyif mysql # aggregate syntax: 
query I rowsort label-308
SELECT DISTINCT + COUNT( * ) * SUM( DISTINCT + 61 ) AS col2 FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-308
SELECT DISTINCT + COUNT ( * ) * SUM ( DISTINCT + 61 ) AS col2 FROM tab0
----
183

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

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

query II rowsort
SELECT col1 * 39 AS col0, 15 FROM tab2
----
1989
15
2613
15
3003
15

query I rowsort
SELECT DISTINCT - + col1 + - ( 95 ) * col0 + - col2 - - col2 * - col2 * 3 / col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-313
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 AND + 97 * - col0 * - col1
----
0

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

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

query I rowsort
SELECT DISTINCT 45 - 55 * + 89 FROM tab0 WHERE NOT + col2 IS NULL
----
-4850

query I rowsort
SELECT ALL + col1 * 87 AS col1 FROM tab0
----
1827
7047
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-318
SELECT DISTINCT - COUNT( * ) DIV - - SUM( ALL - ( - 82 ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT - COUNT ( * ) / - - SUM ( ALL - ( - 82 ) ) FROM tab2
----
0

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 73 + - col0 / + col1 BETWEEN - 0 AND + - ( + 73 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + + 57 AS col0 FROM tab1 cor0
----
104
62
71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 < - - col0
----
87
21
10

query I rowsort
SELECT + + col0 + - - col1 * 8 AS col0 FROM tab1 cor0
----
125
163
467

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

query I rowsort
SELECT + 13 + - 78 * - ( + col0 ) AS col2 FROM tab1 AS cor0
----
3991
6643
7111

onlyif mysql # aggregate syntax: 
query I rowsort label-327
SELECT ALL SUM( col2 ) + + COUNT( * ) + + 32 AS col1 FROM tab1
----
258

skipif mysql # not compatible
query I rowsort label-327
SELECT ALL SUM ( col2 ) + + COUNT ( * ) + + 32 AS col1 FROM tab1
----
258

query I rowsort
SELECT 12 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

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

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

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

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

query I rowsort
SELECT col2 - - 68 AS col0 FROM tab1 AS cor0
----
127
136
164

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT DISTINCT + + COUNT( + 74 ) - + MAX( DISTINCT + 42 ) col2 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-332
SELECT DISTINCT + + COUNT ( + 74 ) - + MAX ( DISTINCT + 42 ) col2 FROM tab0 AS cor0
----
-39

query I rowsort
SELECT ALL + + 76 * col2 FROM tab2 AS cor0
----
1748
3040
4408

query I rowsort
SELECT DISTINCT + col2 + + - 33 FROM tab0 AS cor0
----
-23
14
66

query I rowsort
SELECT col1 - + 19 AS col1 FROM tab0 cor0
----
-18
2
62

query II rowsort
SELECT DISTINCT + 31 AS col2, col2 FROM tab0 AS cor0
----
31
10
31
47
31
99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-338
SELECT ( + 67 ) * + - col0 / + col0 + + col0, - 34 + - CAST( NULL AS SIGNED ) * - 9 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-338
SELECT ( + 67 ) * + - col0 / + col0 + + col0, - 34 + - CAST ( NULL AS INTEGER ) * - 9 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT 34 * + + MIN( col1 ) FROM tab2 WHERE NOT NULL NOT IN ( + col2 * + + 18 * col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-339
SELECT 34 * + + MIN ( col1 ) FROM tab2 WHERE NOT NULL NOT IN ( + col2 * + + 18 * col0 )
----
NULL

query II rowsort
SELECT ( - col1 ) AS col2, 73 + col0 + col0 * + + col1 AS col2 FROM tab1
----
-14
838
-47
4441
-5
583

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

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

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

query I rowsort
SELECT DISTINCT - 74 AS col0 FROM tab0
----
-74

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

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

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

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

query II rowsort
SELECT DISTINCT - + col2 AS col0, + 63 AS col0 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-23
63
-40
63
-58
63

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

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

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

skipif mysql # not compatible
query I rowsort label-349
SELECT - MIN ( + + col2 ) AS col0 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT + col2 + + 86 * - col2 FROM tab1 AS cor0
----
-5015
-5780
-8160

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT ALL + COUNT( * ) + - 73 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-351
SELECT ALL + COUNT ( * ) + - 73 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-67

query I rowsort
SELECT DISTINCT - col2 + col2 + 72 FROM tab2
----
72

query III rowsort
SELECT * FROM tab2 WHERE - col2 - - 4 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT DISTINCT - SUM( + 3 ) + + + 30 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-354
SELECT DISTINCT - SUM ( + 3 ) + + + 30 FROM tab0
----
21

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

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

query I rowsort
SELECT col0 * + 58 AS col0 FROM tab0
----
5046
5626
870

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

query I rowsort
SELECT ALL + col2 * + - 75 FROM tab0
----
-3525
-7425
-750

query I rowsort
SELECT - - 62 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT ALL - + 63 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * + - 90 > NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-365
SELECT ALL + col1 DIV + 58 + ( col1 ) + - - col2 * + + 8 * + - 98 AS col1 FROM tab2 AS cor0
----
-17981
-31282
-45404

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL + col1 / + 58 + ( col1 ) + - - col2 * + + 8 * + - 98 AS col1 FROM tab2 AS cor0
----
-17981
-31282
-45404

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-369
SELECT + ( + MAX ( ALL col0 ) ) FROM tab2
----
75

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-371
SELECT + COUNT( * ) AS col2, 2 AS col1 FROM tab2
----
3
2

skipif mysql # not compatible
query II rowsort label-371
SELECT + COUNT ( * ) AS col2, 2 AS col1 FROM tab2
----
3
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-372
SELECT * FROM tab1 AS cor0 WHERE NOT - 66 + - CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-372
SELECT * FROM tab1 AS cor0 WHERE NOT - 66 + - CAST ( NULL AS INTEGER ) <= NULL
----

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

query I rowsort
SELECT col2 + col1 - - 36 AS col0 FROM tab2
----
110
153
161

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

skipif mysql # not compatible
query I rowsort label-375
SELECT 86 * + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - col0 IS NULL
----
0

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - 83 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 22 + 94 + + 49 * 99 FROM tab1 AS cor0
----
4967

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-379
SELECT ALL + 22 + CAST( - - col1 AS SIGNED ) + - ( + + col2 ) FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-379
SELECT ALL + 22 + CAST ( - - col1 AS INTEGER ) + - ( + + col2 ) FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT + col1 + - - 22 AS col0 FROM tab2
----
73
89
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-381
SELECT + col0 * col1 * CAST( NULL AS DECIMAL ) FROM tab0 WHERE NULL <= - col1
----

skipif mysql # not compatible
query I rowsort label-381
SELECT + col0 * col1 * CAST ( NULL AS REAL ) FROM tab0 WHERE NULL <= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT - COUNT( * ) + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-382
SELECT - COUNT ( * ) + COUNT ( * ) FROM tab0
----
0

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

query I rowsort
SELECT + + 59 + - col1 * - - ( + + 35 ) FROM tab2 WHERE ( + col2 ) <> + col2 * + ( 94 )
----
-1726
-2286
-2636

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

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

query I rowsort
SELECT ALL - 71 * - 63 FROM tab2 cor0
----
4473
4473
4473

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT DISTINCT + + MAX( + col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-387
SELECT DISTINCT + + MAX ( + col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 59 + col2, + 36 col0 FROM tab0
----
106
36
158
36
69
36

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 12 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-391
SELECT - col2 DIV col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN col1 + - col1 AND 56
----
-99
0

skipif mysql # not compatible
query I rowsort label-391
SELECT - col2 / col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN col1 + - col1 AND 56
----
-99
0

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

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

query I rowsort
SELECT - - col2 * + ( + col0 ) - - 77 FROM tab1 cor0
----
4973
5092
6265

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-396
SELECT col1 DIV - - col0 AS col1, + col0 + col0 FROM tab0 AS cor0
----
0
174
0
194
5
30

skipif mysql # not compatible
query II rowsort label-396
SELECT col1 / - - col0 AS col1, + col0 + col0 FROM tab0 AS cor0
----
0
174
0
194
5
30

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

onlyif mysql # DIV for integer division: 
query I rowsort label-398
SELECT ALL - + 29 DIV - ( col2 ) + + + col0 AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-398
SELECT ALL - + 29 / - ( col2 ) + + + col0 AS col0 FROM tab1 AS cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + ( 71 ) col2 FROM tab2 AS cor0
----
3621
4757
5467

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-400
SELECT - 25 DIV - - 94 AS col1, - col1 * + + 83 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-400
SELECT - 25 / - - 94 AS col1, - col1 * + + 83 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0
NULL
0
NULL
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-401
SELECT - 28 * + - CAST( + - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1120
-1624
-644

skipif mysql # not compatible
query I rowsort label-401
SELECT - 28 * + - CAST ( + - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1120
-1624
-644

query II rowsort
SELECT - col2 AS col0, 20 AS col2 FROM tab0
----
-10
20
-47
20
-99
20

query I rowsort
SELECT + 32 * + + col1 AS col1 FROM tab2
----
1632
2144
2464

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT + 81 * + COUNT( * ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-404
SELECT + 81 * + COUNT ( * ) FROM tab0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT + SUM( - 48 ) AS col1 FROM tab1 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-405
SELECT + SUM ( - 48 ) AS col1 FROM tab1 WHERE NOT NULL >= NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-406
SELECT ALL - COUNT( * ) FROM tab0 WHERE - ( + CAST( - + col0 AS DECIMAL ) ) IS NOT NULL
----
-3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-408
SELECT ALL - SUM( - CAST( col2 AS SIGNED ) ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-408
SELECT ALL - SUM ( - CAST ( col2 AS INTEGER ) ) FROM tab1
----
223

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-410
SELECT DISTINCT CAST( 42 AS SIGNED ) FROM tab1 cor0
----
42

skipif mysql # not compatible
query I rowsort label-410
SELECT DISTINCT CAST ( 42 AS INTEGER ) FROM tab1 cor0
----
42

query I rowsort
SELECT ALL + - 81 AS col0 FROM tab0 AS cor0
----
-81
-81
-81

query I rowsort
SELECT - 19 AS col0 FROM tab0 cor0
----
-19
-19
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-413
SELECT + + CAST( + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( - - 32, ( ( - - ( - 0 ) ) ) / + 97 + - col1 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-413
SELECT + + CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( - - 32, ( ( - - ( - 0 ) ) ) / + 97 + - col1 + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT DISTINCT + - ( - 18 ) + - SUM( DISTINCT col0 ) FROM tab1 AS cor0
----
-209

skipif mysql # not compatible
query I rowsort label-414
SELECT DISTINCT + - ( - 18 ) + - SUM ( DISTINCT col0 ) FROM tab1 AS cor0
----
-209

query I rowsort
SELECT - - 22 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 86 < + col0 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-417
SELECT DISTINCT + col0 * + 61 * + + CAST( NULL AS SIGNED ) * + - 96 FROM tab1 WHERE NOT + - 76 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-417
SELECT DISTINCT + col0 * + 61 * + + CAST ( NULL AS INTEGER ) * + - 96 FROM tab1 WHERE NOT + - 76 IS NULL
----
NULL

query II rowsort
SELECT DISTINCT + col2, + col1 * + col2 FROM tab0
----
10
210
47
3807
99
99

query I rowsort
SELECT + 27 + + col0 AS col0 FROM tab2 AS cor0
----
102
73
91

query I rowsort
SELECT col1 + + - ( - col1 ) FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT DISTINCT + 46 + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
60
93

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-422
SELECT ALL - - COUNT ( * ) col0 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL + - col2 + + + col0 * - col0 AS col2 FROM tab0 AS cor0
----
-272
-7579
-9508

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT DISTINCT MAX( - - 34 ) AS col1 FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-424
SELECT DISTINCT MAX ( - - 34 ) AS col1 FROM tab1 AS cor0
----
34

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

query I rowsort
SELECT ALL col1 + - + 67 FROM tab2 AS cor0
----
-16
0
10

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * + col1 * + col2 * ( + + col0 ) > 42 + + - col1 * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 + + + col2 * + col1 FROM tab1
----
1293
210
3105

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = - + 48
----

query I rowsort
SELECT ALL col2 * + 68 - + col0 AS col0 FROM tab2
----
1518
2656
3869

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT MIN( 82 ) * 79 FROM tab1
----
6478

skipif mysql # not compatible
query I rowsort label-431
SELECT MIN ( 82 ) * 79 FROM tab1
----
6478

query I rowsort
SELECT ALL - ( col0 ) + + col0 + + 42 * - - col0 AS col1 FROM tab2
----
1932
2688
3150

query I rowsort
SELECT ALL col0 - - - col1 * 77 FROM tab0
----
-1530
-6222
20

query I rowsort
SELECT DISTINCT - col2 + + 40 AS col0 FROM tab0 AS cor0 WHERE NOT 31 IS NULL
----
-59
-7
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + + ( + - col2 ) - col0 * + col1 AS col0, 93 col2 FROM tab0 AS cor0
----
-1247
93
-1750
93
-99
93

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-437
SELECT + 59 DIV col0 * + 36 FROM tab0
----
0
0
108

skipif mysql # not compatible
query I rowsort label-437
SELECT + 59 / col0 * + 36 FROM tab0
----
0
0
108

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT + MAX( - col0 ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-438
SELECT + MAX ( - col0 ) AS col2 FROM tab0
----
-15

query I rowsort
SELECT ( 92 ) FROM tab1 AS cor0
----
92
92
92

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

query I rowsort
SELECT ALL col2 * col1 + - ( - - col2 ) * + - 79 AS col0 FROM tab1 cor0
----
4956
8568
8928

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

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

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

skipif mysql # not compatible
query I rowsort label-444
SELECT - + COUNT ( * ) * + - COUNT ( * ) FROM tab2 cor0
----
9

query I rowsort
SELECT + 97 * col2 FROM tab0 cor0
----
4559
9603
970

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT NULL IN ( + col1, col0, - 92 + - col2, + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-447
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - 46, 33 AS col0 FROM tab2
----
NULL
33

skipif mysql # not compatible
query II rowsort label-447
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - 46, 33 AS col0 FROM tab2
----
NULL
33

query II rowsort
SELECT ALL - col0 * + + col1, - 22 AS col1 FROM tab2
----
-2346
-22
-4928
-22
-5025
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-449
SELECT MAX( CAST( NULL AS SIGNED ) ) * + 38 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-449
SELECT MAX ( CAST ( NULL AS INTEGER ) ) * + 38 FROM tab1
----
NULL

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

query I rowsort
SELECT - ( + + ( + - 88 ) ) * + 73 FROM tab0
----
6424
6424
6424

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT ALL ( COUNT( DISTINCT - + 91 ) ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-452
SELECT ALL ( COUNT ( DISTINCT - + 91 ) ) AS col2 FROM tab0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-453
SELECT DISTINCT SUM( - col1 ) DIV 41 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-453
SELECT DISTINCT SUM ( - col1 ) / 41 FROM tab0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT + - COUNT( + col0 ) col1 FROM tab0 WHERE NOT + + col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-454
SELECT + - COUNT ( + col0 ) col1 FROM tab0 WHERE NOT + + col0 IS NOT NULL
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab2 WHERE ( NULL ) <= - col2 / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT + COUNT( * ) + 41 FROM tab0 AS cor0 WHERE NOT - col0 - - 27 - + + col1 * - col0 / - col1 IS NULL
----
44

skipif mysql # not compatible
query I rowsort label-457
SELECT + COUNT ( * ) + 41 FROM tab0 AS cor0 WHERE NOT - col0 - - 27 - + + col1 * - col0 / - col1 IS NULL
----
44

query III rowsort
SELECT * FROM tab2 WHERE + col1 * + col0 = - + col0 * + ( col1 )
----

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

query I rowsort
SELECT ALL - ( 94 ) AS col0 FROM tab1 AS cor0
----
-94
-94
-94

query I rowsort
SELECT ALL + col2 + + 52 + - - 4 * - col1 FROM tab2 AS cor0
----
-129
-158
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT DISTINCT ( - - SUM( DISTINCT + 35 ) ) + - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
38

skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT ( - - SUM ( DISTINCT + 35 ) ) + - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT DISTINCT COUNT( DISTINCT + 43 ) + - SUM( ALL col1 ) AS col1 FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-463
SELECT DISTINCT COUNT ( DISTINCT + 43 ) + - SUM ( ALL col1 ) AS col1 FROM tab1 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT + SUM( - ( - 99 ) ) AS col0 FROM tab1 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-464
SELECT + SUM ( - ( - 99 ) ) AS col0 FROM tab1 AS cor0
----
297

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-466
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-466
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) = - CAST ( NULL AS INTEGER )
----

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

skipif mysql # not compatible
query I rowsort label-467
SELECT ALL + 3 + - ( 67 ) - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT 58 - + + COUNT( * ) FROM tab1 cor0
----
55

skipif mysql # not compatible
query I rowsort label-468
SELECT 58 - + + COUNT ( * ) FROM tab1 cor0
----
55

query I rowsort
SELECT - col1 * + col1 - - col2 FROM tab0
----
-431
-6514
98

query I rowsort
SELECT + 81 - - col2 FROM tab0
----
128
180
91

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT - MAX( + + 24 ) + - COUNT( * ) FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-471
SELECT - MAX ( + + 24 ) + - COUNT ( * ) FROM tab0
----
-27

query I rowsort
SELECT DISTINCT 92 * - 84 - + - 78 AS col2 FROM tab0
----
-7650

query II rowsort
SELECT ALL + col0, - ( 58 ) FROM tab0
----
15
-58
87
-58
97
-58

query I rowsort
SELECT col0 + + + 59 FROM tab0
----
146
156
74

onlyif mysql # aggregate syntax: 
query II rowsort label-475
SELECT DISTINCT 79, - MIN( + - col1 ) AS col2 FROM tab0 AS cor0
----
79
81

skipif mysql # not compatible
query II rowsort label-475
SELECT DISTINCT 79, - MIN ( + - col1 ) AS col2 FROM tab0 AS cor0
----
79
81

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-476
SELECT - + SUM ( + col2 ) col0 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT COUNT( * ) * - 43 AS col2 FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-477
SELECT COUNT ( * ) * - 43 AS col2 FROM tab1 AS cor0
----
-129

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-480
SELECT DISTINCT + AVG ( + 92 ) AS col1, COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE - 46 > + col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-480
SELECT DISTINCT + AVG ( + 92 ) AS col1, COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - 46 > + col1
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-481
SELECT col1 * + CAST( NULL AS SIGNED ) * col1 + + 17 * col2 col1, + col2 AS col1 FROM tab1 cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-481
SELECT col1 * + CAST ( NULL AS INTEGER ) * col1 + + 17 * col2 col1, + col2 AS col1 FROM tab1 cor0
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT col2 * + col2 * 80 * + + col0 AS col1 FROM tab1 AS cor0
----
23670800
33662720
37601280

query I rowsort
SELECT ALL - 60 * - + col0 AS col2 FROM tab0
----
5220
5820
900

onlyif mysql # DIV for integer division: 
query I rowsort label-484
SELECT + 59 DIV + col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-484
SELECT + 59 / + col0 FROM tab1
----
0
0
1

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 + - - 64 * + 1 AS col2 FROM tab1
----
123
132
160

onlyif mysql # aggregate syntax: 
query I rowsort label-490
SELECT 22 + MIN( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-490
SELECT 22 + MIN ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT ALL - - COUNT( * ) * COUNT( * ) + + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-491
SELECT ALL - - COUNT ( * ) * COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
12

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 13 + - - 0 + 70 * col1 < - 92
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-493
SELECT ALL + 32 FROM tab0 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) + + + 3 ) >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-493
SELECT ALL + 32 FROM tab0 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) + + + 3 ) >= CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT - + col0 + - col2 * + + col1 * col0 AS col0, - 60 FROM tab0 cor0
----
-18357
-60
-57120
-60
-9700
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT - - COUNT( * ) + MAX( + col2 ) FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-495
SELECT - - COUNT ( * ) + MAX ( + col2 ) FROM tab0 AS cor0
----
102

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

query I rowsort
SELECT - col0 + - col2 + + - col0 AS col0 FROM tab1 AS cor0
----
-198
-229
-250

query I rowsort
SELECT DISTINCT 52 + - + 97 - + col0 FROM tab1 cor0
----
-130
-136
-96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 54 IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 99 + + col0 col2 FROM tab0
----
114
186
196

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-502
SELECT col0 - - 69 * col2 * col2 DIV - ( CAST( + col1 AS SIGNED ) ) AS col0 FROM tab2
----
-1369
-3389
-669

skipif mysql # not compatible
query I rowsort label-502
SELECT col0 - - 69 * col2 * col2 / - ( CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab2
----
-1369
-3389
-669

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT ALL - 25 - + COUNT( * ) + + 32 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-503
SELECT ALL - 25 - + COUNT ( * ) + + 32 FROM tab0
----
4

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

query II rowsort
SELECT DISTINCT - 48, col2 FROM tab2 AS cor0
----
-48
23
-48
40
-48
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT COUNT( DISTINCT 70 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-507
SELECT COUNT ( DISTINCT 70 ) AS col2 FROM tab1
----
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-509
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + + col1 + + col0 + - 31 + col0 - - 89 + - ( - - col1 ) < - - col0 - + 89 * - CAST( NULL AS SIGNED ) / col0 + - col2 * + col0
----

skipif mysql # not compatible
query III rowsort label-509
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + + col1 + + col0 + - 31 + col0 - - 89 + - ( - - col1 ) < - - col0 - + 89 * - CAST ( NULL AS INTEGER ) / col0 + - col2 * + col0
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN col0 AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 99 + + 26 AS col0 FROM tab2
----
-73

query I rowsort
SELECT 82 * + + ( 25 ) AS col0 FROM tab0
----
2050
2050
2050

query I rowsort
SELECT ( + col1 ) * + 53 * + col2 AS col2 FROM tab1
----
15635
169388
71232

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

query I rowsort
SELECT ALL - col2 + + - col1 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-517
SELECT CAST( NULL AS SIGNED ) + - + 90, ( - col0 ) DIV col0 AS col0 FROM tab2 AS cor0
----
NULL
-1
NULL
-1
NULL
-1

skipif mysql # not compatible
query II rowsort label-517
SELECT CAST ( NULL AS INTEGER ) + - + 90, ( - col0 ) / col0 AS col0 FROM tab2 AS cor0
----
NULL
-1
NULL
-1
NULL
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-518
SELECT * FROM tab0 AS cor0 WHERE - col0 NOT IN ( + col1 * + 53, + col0 * - 96, - - CAST( NULL AS SIGNED ) / + ( - + col1 ) * - + col1, + col1, col1 )
----

skipif mysql # not compatible
query III rowsort label-518
SELECT * FROM tab0 AS cor0 WHERE - col0 NOT IN ( + col1 * + 53, + col0 * - 96, - - CAST ( NULL AS INTEGER ) / + ( - + col1 ) * - + col1, + col1, col1 )
----

query I rowsort
SELECT DISTINCT + + 14 + col2 AS col0 FROM tab0 AS cor0
----
113
24
61

query I rowsort
SELECT DISTINCT - - col1 * col1 + - col1 + 76 AS col2 FROM tab1 AS cor0
----
2238
258
96

onlyif mysql # DIV for integer division: 
query I rowsort label-521
SELECT + col1 + col1 DIV + + 61 * + + col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-521
SELECT + col1 + col1 / + + 61 * + + col2 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-522
SELECT DISTINCT - 50 DIV - 78 + 44 * MAX( - 96 ) AS col1 FROM tab2
----
-4224

skipif mysql # not compatible
query I rowsort label-522
SELECT DISTINCT - 50 / - 78 + 44 * MAX ( - 96 ) AS col1 FROM tab2
----
-4224

query I rowsort
SELECT col0 - - 9 AS col2 FROM tab1 AS cor0
----
100
60
94

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 92 * col1 col1 FROM tab1 AS cor0
----
-39100
-393484
-65688

query I rowsort
SELECT col0 - + col0 AS col0 FROM tab1 cor0
----
0
0
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + - 27 + col1 col1 FROM tab1 AS cor0
----
1316
140
392

query I rowsort
SELECT 96 + - 28 * - - col0 * + col0 AS col1 FROM tab0 AS cor0
----
-211836
-263356
-6204

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT ALL - + COUNT( * ) FROM tab1 AS cor0 WHERE col1 NOT BETWEEN + col0 / + ( 68 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-530
SELECT ALL - + COUNT ( * ) FROM tab1 AS cor0 WHERE col1 NOT BETWEEN + col0 / + ( 68 ) AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-531
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) - - 51 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-531
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) - - 51 FROM tab0
----
54

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

skipif mysql # not compatible
query I rowsort label-532
SELECT + ( - MIN ( - col2 ) ) AS col0 FROM tab2
----
58

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

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

query I rowsort
SELECT ALL col0 + col1 FROM tab1 WHERE 89 - col0 + + 39 IS NOT NULL
----
138
65
90

query I rowsort
SELECT ALL - + col1 FROM tab0 AS cor0 WHERE NOT NULL <> 57
----

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

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

query II rowsort
SELECT + col1, + 79 * - col0 * col0 - col1 FROM tab0
----
1
-743312
21
-597972
81
-17856

query I rowsort
SELECT DISTINCT + 13 * + + col2 * - 92 FROM tab2 AS cor0
----
-27508
-47840
-69368

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

skipif mysql # not compatible
query I rowsort label-539
SELECT ALL + SUM ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 36 * - 71 AS col0 FROM tab2 AS cor0
----
2556
2556
2556

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-541
SELECT ALL + col2 * - col1 * - col0 AS col2, CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query II rowsort label-541
SELECT ALL + col2 * - col1 * - col0 AS col2, CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT 41 + + 1 FROM tab0 AS cor0
----
42
42
42

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-544
SELECT ALL + COUNT( * ) DIV + + 9 + + - 61 col1 FROM tab2 cor0
----
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-544
SELECT ALL + COUNT ( * ) / + + 9 + + - 61 col1 FROM tab2 cor0
----
-61

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

query I rowsort
SELECT DISTINCT 29 + + - col0 FROM tab1 AS cor0
----
-22
-56
-62

query I rowsort
SELECT - col2 + + - ( - + 14 ) FROM tab2
----
-26
-44
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col0, - col0 * - col0 + + col1 col2 FROM tab2
----
46
2167
64
4173
75
5692

query I rowsort
SELECT DISTINCT ( + 92 ) AS col0 FROM tab2
----
92

query I rowsort
SELECT DISTINCT - + ( 86 ) - - col2 FROM tab1 WHERE NOT - col0 / - col1 + col2 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 + - - 65 AS col2, + col0 * - - col1 col2 FROM tab1
----
-3
4277
-31
714
6
425

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-553
SELECT 84 DIV + - 70 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-553
SELECT 84 / + - 70 AS col2 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT MAX( - + 43 ) AS col2 FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-554
SELECT MAX ( - + 43 ) AS col2 FROM tab1 AS cor0
----
-43

query I rowsort
SELECT + col1 + - 83 FROM tab0 AS cor0 WHERE 75 * + 6 IS NULL
----

query I rowsort
SELECT DISTINCT - + 39 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

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

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

query II rowsort
SELECT ALL - 21 - - col1, 74 AS col2 FROM tab0
----
-20
74
0
74
60
74

query I rowsort
SELECT col2 * - col0 + + col2 AS col2 FROM tab0
----
-658
-860
-9504

query I rowsort
SELECT DISTINCT col2 * - 37 AS col1 FROM tab0
----
-1739
-3663
-370

query I rowsort
SELECT - - 89 + - 6 FROM tab1 cor0
----
83
83
83

query I rowsort
SELECT DISTINCT - 49 * - col2 FROM tab0 AS cor0
----
2303
4851
490

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT - SUM( + + col0 ) + COUNT( * ) FROM tab0 cor0
----
-196

skipif mysql # not compatible
query I rowsort label-563
SELECT - SUM ( + + col0 ) + COUNT ( * ) FROM tab0 cor0
----
-196

query I rowsort
SELECT ALL - col1 * ( + + 22 ) AS col2 FROM tab2 AS cor0
----
-1122
-1474
-1694

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT DISTINCT - MAX( + + col2 ) + + 5 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-565
SELECT DISTINCT - MAX ( + + col2 ) + + 5 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-88

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 66 <= col1
----

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

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

query I rowsort
SELECT - 76 * - 25 FROM tab1 WHERE NOT + - col1 + + col2 > - 43
----

query II rowsort
SELECT + 26, 17 AS col0 FROM tab1
----
26
17
26
17
26
17

query I rowsort
SELECT ALL 19 * - col1 AS col0 FROM tab1
----
-266
-893
-95

query II rowsort
SELECT ALL + - col1 AS col1, col1 AS col2 FROM tab0 WHERE NULL IS NULL
----
-1
1
-21
21
-81
81

query I rowsort
SELECT ( - 71 ) AS col1 FROM tab2
----
-71
-71
-71

query I rowsort
SELECT ALL + 49 * - + col2 AS col1 FROM tab2
----
-1127
-1960
-2842

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 63, + ( 19 ) col1 FROM tab0
----
63
19
63
19
63
19

onlyif mysql # aggregate syntax: 
query II rowsort label-575
SELECT DISTINCT 52 * + + COUNT( * ) * - - COUNT( - + col2 ) + - + SUM( DISTINCT + col0 ) AS col1, + 71 FROM tab1 AS cor0
----
241
71

skipif mysql # not compatible
query II rowsort label-575
SELECT DISTINCT 52 * + + COUNT ( * ) * - - COUNT ( - + col2 ) + - + SUM ( DISTINCT + col0 ) AS col1, + 71 FROM tab1 AS cor0
----
241
71

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

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <= ( - ( - 99 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT MIN( + col0 ) + + + COUNT( * ) AS col0 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-578
SELECT MIN ( + col0 ) + + + COUNT ( * ) AS col0 FROM tab1
----
54

query I rowsort
SELECT DISTINCT + col0 * - 1 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-580
SELECT + MAX( col1 ) DIV 95 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-580
SELECT + MAX ( col1 ) / 95 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-581
SELECT ALL + 26 DIV - col2 AS col2 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL + 26 / - col2 AS col2 FROM tab0
----
-2
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 20 - - 68 + + 45 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-583
SELECT ALL 28 DIV + 98 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-583
SELECT ALL 28 / + 98 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT 4 * + 15 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT DISTINCT + ( - SUM( + 32 ) ) AS col2 FROM tab2 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-585
SELECT DISTINCT + ( - SUM ( + 32 ) ) AS col2 FROM tab2 cor0
----
-96

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-587
SELECT ALL - col2 + + CAST( + col1 AS SIGNED ) DIV - + ( + CAST( - + col1 AS SIGNED ) ) FROM tab0 AS cor0
----
-46
-9
-98

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

onlyif mysql # aggregate syntax: 
query II rowsort label-588
SELECT - - MAX( DISTINCT + col2 ), + MIN( ALL - 68 ) AS col0 FROM tab2 AS cor0
----
58
-68

skipif mysql # not compatible
query II rowsort label-588
SELECT - - MAX ( DISTINCT + col2 ), + MIN ( ALL - 68 ) AS col0 FROM tab2 AS cor0
----
58
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT ALL - ( COUNT( * ) ) + - 59 AS col2 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-589
SELECT ALL - ( COUNT ( * ) ) + - 59 AS col2 FROM tab2 AS cor0
----
-62

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-591
SELECT ALL * FROM tab0 WHERE NOT - + col1 - + ( col0 ) + - - CAST( NULL AS SIGNED ) + + col0 = - - col2
----

skipif mysql # not compatible
query III rowsort label-591
SELECT ALL * FROM tab0 WHERE NOT - + col1 - + ( col0 ) + - - CAST ( NULL AS INTEGER ) + + col0 = - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col2 + 18 col1 FROM tab1
----
-100
-118
-174

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

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

query I rowsort
SELECT + col1 + 47 AS col2 FROM tab1
----
52
61
94

query I rowsort
SELECT DISTINCT + 73 + + col1 AS col2 FROM tab2 AS cor0
----
124
140
150

query I rowsort
SELECT DISTINCT 38 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-597
SELECT - col1 * + col2 * 18 - + 79 * col0 DIV - col1, - col2 AS col0 FROM tab2 cor0
----
-21043
-23
-55375
-40
-69860
-58

skipif mysql # not compatible
query II rowsort label-597
SELECT - col1 * + col2 * 18 - + 79 * col0 / - col1, - col2 AS col0 FROM tab2 cor0
----
-21043
-23
-55375
-40
-69860
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-598
SELECT DISTINCT + col1 DIV - ( col2 ) - + ( 64 ) FROM tab0
----
-64
-65
-66

skipif mysql # not compatible
query I rowsort label-598
SELECT DISTINCT + col1 / - ( col2 ) - + ( 64 ) FROM tab0
----
-64
-65
-66

query I rowsort
SELECT DISTINCT - - col1 * - ( col2 ) + - - col2 + - - col0 FROM tab1 AS cor0
----
-1197
-151
-3037

query I rowsort
SELECT + 77 * + + 60 AS col1 FROM tab0 AS cor0
----
4620
4620
4620

onlyif mysql # DIV for integer division: 
query II rowsort label-601
SELECT - 84, - 26 DIV + ( - - ( col1 ) ) AS col2 FROM tab2 AS cor0
----
-84
0
-84
0
-84
0

skipif mysql # not compatible
query II rowsort label-601
SELECT - 84, - 26 / + ( - - ( col1 ) ) AS col2 FROM tab2 AS cor0
----
-84
0
-84
0
-84
0

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 * + 18 / - - 82 <> col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-604
SELECT - + col0 DIV - - 33 AS col2 FROM tab0 cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-604
SELECT - + col0 / - - 33 AS col2 FROM tab0 cor0
----
-2
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-605
SELECT + 48 DIV ( 92 ) col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-605
SELECT + 48 / ( 92 ) col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT + col0 = col2
----
51
67
77

query I rowsort
SELECT DISTINCT + 92 * + 99 AS col0 FROM tab1
----
9108

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT + + 15 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-611
SELECT + + 15 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-612
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + + CAST( - col2 AS SIGNED ) ) + - 61 IS NULL
----

skipif mysql # not compatible
query III rowsort label-612
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + + CAST ( - col2 AS INTEGER ) ) + - 61 IS NULL
----

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

query I rowsort
SELECT ALL 7 + + 40 AS col0 FROM tab1
----
47
47
47

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

query I rowsort
SELECT DISTINCT - 20 - col0 FROM tab0
----
-107
-117
-35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT + COUNT( * ) * + 60 FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-618
SELECT + COUNT ( * ) * + 60 FROM tab1
----
180

query I rowsort
SELECT DISTINCT - - ( col1 ) AS col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-620
SELECT + 92 * COUNT( * ) DIV - - 13 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-620
SELECT + 92 * COUNT ( * ) / - - 13 FROM tab2 AS cor0
----
21

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-623
SELECT - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 <> + + 12 * - col0 / ( + - col0 ) / - 44 + + 54
----

skipif mysql # not compatible
query I rowsort label-623
SELECT - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 <> + + 12 * - col0 / ( + - col0 ) / - 44 + + 54
----

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

skipif mysql # not compatible
query II rowsort label-624
SELECT DISTINCT + 79 AS col1, COUNT ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
79
3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-626
SELECT 8 DIV - MAX( - + 57 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-626
SELECT 8 / - MAX ( - + 57 ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-627
SELECT 26 DIV - - col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-627
SELECT 26 / - - col0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-628
SELECT DISTINCT 98 * - col1 * + col1 * col0 DIV + + col1 FROM tab0
----
-119070
-179046
-9506

skipif mysql # not compatible
query I rowsort label-628
SELECT DISTINCT 98 * - col1 * + col1 * col0 / + + col1 FROM tab0
----
-119070
-179046
-9506

query I rowsort
SELECT ALL + 69 AS col0 FROM tab2 cor0
----
69
69
69

query I rowsort
SELECT - col1 + - 83 AS col1 FROM tab2 AS cor0
----
-134
-150
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-631
SELECT - MAX( ALL - col0 ) + - 13 FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-631
SELECT - MAX ( ALL - col0 ) + - 13 FROM tab1
----
38

query I rowsort
SELECT - + 2 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT - MIN( ALL + + col2 ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-633
SELECT - MIN ( ALL + + col2 ) AS col2 FROM tab2
----
-23

query I rowsort
SELECT + - col2 AS col2 FROM tab2 AS cor0 WHERE NULL < + col2 + + col1
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-637
SELECT col2 * - col1 * + CAST( - - CAST( col0 AS SIGNED ) AS SIGNED ) + - col2 FROM tab0 cor0
----
-18280
-57152
-9702

skipif mysql # not compatible
query I rowsort label-637
SELECT col2 * - col1 * + CAST ( - - CAST ( col0 AS INTEGER ) AS INTEGER ) + - col2 FROM tab0 cor0
----
-18280
-57152
-9702

onlyif mysql # DIV for integer division: 
query I rowsort label-638
SELECT + + 88 DIV + 90 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-638
SELECT + + 88 / + 90 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-639
SELECT DISTINCT ( 56 ) + - CAST( NULL AS SIGNED ) AS col1, col2 * - col1 + + 21 FROM tab1 AS cor0
----
NULL
-1323
NULL
-274
NULL
-3175

skipif mysql # not compatible
query II rowsort label-639
SELECT DISTINCT ( 56 ) + - CAST ( NULL AS INTEGER ) AS col1, col2 * - col1 + + 21 FROM tab1 AS cor0
----
NULL
-1323
NULL
-274
NULL
-3175

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT ALL - - 7 + + COUNT( ( 87 ) ) AS col0 FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-640
SELECT ALL - - 7 + + COUNT ( ( 87 ) ) AS col0 FROM tab2 AS cor0
----
10

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

query I rowsort
SELECT col0 * 99 + + col1 * + col2 FROM tab2
----
11311
5727
9416

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT - COUNT( * ) + - + 59 AS col1 FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-643
SELECT - COUNT ( * ) + - + 59 AS col1 FROM tab1
----
-62

query I rowsort
SELECT col1 + + 55 * + col2 AS col2 FROM tab1
----
3250
3787
5294

query I rowsort
SELECT ALL + col0 * + 5 FROM tab0
----
435
485
75

query I rowsort
SELECT ALL - 45 * - - col1 + + ( 44 ) FROM tab1 AS cor0
----
-181
-2071
-586

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-647
SELECT + - 64 * + - ( COUNT( * ) ) * + MAX( ALL col1 ) * + CAST( + + AVG ( DISTINCT + + ( - - 49 ) ) AS SIGNED ) FROM tab1 AS cor0
----
442176

skipif mysql # not compatible
query I rowsort label-647
SELECT + - 64 * + - ( COUNT ( * ) ) * + MAX ( ALL col1 ) * + CAST ( + + AVG ( DISTINCT + + ( - - 49 ) ) AS INTEGER ) FROM tab1 AS cor0
----
442176

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) < ( 52 - 87 )
----

query I rowsort
SELECT ALL col1 / - ( col2 * + col2 ) - 78 * - col1 FROM tab0 WHERE - col2 / + 34 IS NULL
----

query I rowsort
SELECT ALL + 17 + col2 FROM tab0
----
116
27
64

query I rowsort
SELECT DISTINCT col0 - + 73 FROM tab0
----
-58
14
24

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NULL NOT BETWEEN ( - col2 ) AND col1 / + 76
----
0

skipif mysql # not compatible
query I rowsort label-652
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NULL NOT BETWEEN ( - col2 ) AND col1 / + 76
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 32 + col2 col2 FROM tab1
----
100
128
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-654
SELECT SUM( ALL + CAST( - col2 AS SIGNED ) ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-654
SELECT SUM ( ALL + CAST ( - col2 AS INTEGER ) ) FROM tab1
----
-223

query I rowsort
SELECT ALL col2 + col0 * + ( - col1 * ( col2 ) + - ( - col1 ) ) AS col2 FROM tab1
----
-24591
-286491
-67734

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT ALL MAX( DISTINCT 26 ) AS col2 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-656
SELECT ALL MAX ( DISTINCT 26 ) AS col2 FROM tab2
----
26

query I rowsort
SELECT - 86 + 49 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( col0 ) + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND ( - 83 * 36 + + col1 )
----

query I rowsort
SELECT + col1 FROM tab1 WHERE col2 / + 14 + - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 + - ( 56 ) * col2 col1 FROM tab1
----
-3009
-4032
-612

query I rowsort
SELECT + 2 * + col1 + - 99 * + 67 FROM tab2
----
-6479
-6499
-6531

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 > ( + col0 + 36 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT SUM( + 48 ) AS col2 FROM tab2
----
144

skipif mysql # not compatible
query I rowsort label-667
SELECT SUM ( + 48 ) AS col2 FROM tab2
----
144

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

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT - COUNT( * ) * + ( + 79 ) + - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( - col0 - - 11 ) NOT BETWEEN - col2 + 88 AND - col2
----
-240

skipif mysql # not compatible
query I rowsort label-669
SELECT - COUNT ( * ) * + ( + 79 ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( - col0 - - 11 ) NOT BETWEEN - col2 + 88 AND - col2
----
-240

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

query I rowsort
SELECT - col2 + - 92 FROM tab2
----
-115
-132
-150

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-673
SELECT col2 DIV col0 + + col0 DIV col1 FROM tab0
----
3
4
98

skipif mysql # not compatible
query I rowsort label-673
SELECT col2 / col0 + + col0 / col1 FROM tab0
----
3
4
98

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT 76 + + COUNT( * ) FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-674
SELECT 76 + + COUNT ( * ) FROM tab0 AS cor0
----
79

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 <= ( - col0 )
----

query I rowsort
SELECT 12 + 57 AS col1 FROM tab2 AS cor0
----
69
69
69

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-682
SELECT ALL - 56 * ( - CAST( SUM( + 47 ) AS SIGNED ) ) + + 66 * + 2 AS col2 FROM tab1 cor0
----
8028

skipif mysql # not compatible
query I rowsort label-682
SELECT ALL - 56 * ( - CAST ( SUM ( + 47 ) AS INTEGER ) ) + + 66 * + 2 AS col2 FROM tab1 cor0
----
8028

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 39 = + col2
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 NOT BETWEEN col1 * col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 97 col2 FROM tab0 AS cor0
----
-2
50
87

query I rowsort
SELECT DISTINCT - col0 - + col2 FROM tab2 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-688
SELECT ALL MAX( DISTINCT - col0 ) - CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-688
SELECT ALL MAX ( DISTINCT - col0 ) - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-689
SELECT + SUM( - 28 ) AS col1 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-689
SELECT + SUM ( - 28 ) AS col1 FROM tab1
----
-84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT DISTINCT SUM( DISTINCT + col1 ) * + COUNT( * ) AS col1 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-691
SELECT DISTINCT SUM ( DISTINCT + col1 ) * + COUNT ( * ) AS col1 FROM tab1
----
198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-692
SELECT - SUM( ALL ( CAST( + 93 AS SIGNED ) ) ) - - 98 AS col2 FROM tab1
----
-181

skipif mysql # not compatible
query I rowsort label-692
SELECT - SUM ( ALL ( CAST ( + 93 AS INTEGER ) ) ) - - 98 AS col2 FROM tab1
----
-181

query I rowsort
SELECT ALL - col1 - + col1 + + 78 FROM tab2
----
-24
-56
-76

query I rowsort
SELECT col0 - - col0 - col2 FROM tab1
----
111
114
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-695
SELECT col0 - + CAST( - col0 AS SIGNED ) AS col1 FROM tab1
----
102
170
182

skipif mysql # not compatible
query I rowsort label-695
SELECT col0 - + CAST ( - col0 AS INTEGER ) AS col1 FROM tab1
----
102
170
182

query I rowsort
SELECT ALL 78 * col1 AS col0 FROM tab1 AS cor0
----
1092
3666
390

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

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT + COUNT( * ) - MAX( - col0 ) - 19 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-698
SELECT + COUNT ( * ) - MAX ( - col0 ) - 19 FROM tab0 cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-699
SELECT COUNT( * ) + + 60 FROM tab2 AS cor0 WHERE + col0 + col1 NOT IN ( + CAST( ( + 84 ) AS SIGNED ) )
----
63

skipif mysql # not compatible
query I rowsort label-699
SELECT COUNT ( * ) + + 60 FROM tab2 AS cor0 WHERE + col0 + col1 NOT IN ( + CAST ( ( + 84 ) AS INTEGER ) )
----
63

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT SUM( ALL - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( - col2 ) IN ( 24 )
----
-121

skipif mysql # not compatible
query I rowsort label-701
SELECT SUM ( ALL - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( - col2 ) IN ( 24 )
----
-121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-702
SELECT DISTINCT - COUNT( * ) DIV - 53 * - MIN( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-702
SELECT DISTINCT - COUNT ( * ) / - 53 * - MIN ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 32 col1, + 74 + + col0 + + 20 FROM tab1
----
-32
145
-32
179
-32
185

query I rowsort
SELECT ALL 85 * + col1 FROM tab0
----
1785
6885
85

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT DISTINCT COUNT( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-705
SELECT DISTINCT COUNT ( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL IS NOT NULL
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 * + 89 col0 FROM tab2 AS cor0
----
5073

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 ) <= ( 54 ) + ( 50 - - 96 * + col1 )
----

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

skipif mysql # not compatible
query I rowsort label-708
SELECT + MAX ( - + 51 ) FROM tab2 AS cor0
----
-51

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) = - ( 84 )
----

query I rowsort
SELECT ALL 16 AS col0 FROM tab2 AS cor0 WHERE ( 4 ) <> ( + 29 )
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE ( + 85 * + 17 ) NOT IN ( col1 ) OR NULL NOT BETWEEN ( NULL ) AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-712
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE ( + 85 * + 17 ) NOT IN ( col1 ) OR NULL NOT BETWEEN ( NULL ) AND NULL
----
3

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-714
SELECT + COUNT ( * ) / - 71 col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - 60 * - - ( - + col2 ) AS col2 FROM tab0
----
2820
5940
600

query I rowsort
SELECT ALL + 98 * + col0 FROM tab2 WHERE NOT ( NULL ) BETWEEN ( - col0 ) AND ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col1 FROM tab1 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT - col0 * + + 84 * - col2 AS col1 FROM tab1
----
411264
421260
519792

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + 44 AND NULL
----

query I rowsort
SELECT - 19 * 42 AS col0 FROM tab0
----
-798
-798
-798

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

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

query I rowsort
SELECT DISTINCT + 42 + + + 35 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-724
SELECT + 65 + MAX( ALL + + 73 ) col2 FROM tab1 AS cor0
----
138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-724
SELECT + 65 + MAX ( ALL + + 73 ) col2 FROM tab1 AS cor0
----
138

query III rowsort
SELECT * FROM tab1 WHERE + - col2 + + col1 <= ( + - col1 * col2 )
----

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NULL <= + + 34
----

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

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

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

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL CAST ( col2 AS INTEGER ) AS col0 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT ALL + 56 FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( + - 16 )
----

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

query I rowsort
SELECT - 34 * + col2 FROM tab2 cor0
----
-1360
-1972
-782

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT COUNT( * ) - + 14 FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-733
SELECT COUNT ( * ) - + 14 FROM tab0 AS cor0
----
-11

query II rowsort
SELECT DISTINCT 45 * + - 79 + + col2, + col2 AS col2 FROM tab1 AS cor0
----
-3459
96
-3487
68
-3496
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 * + 19 - + 83 col0 FROM tab0 AS cor0
----
772
772
772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-736
SELECT col2 * CAST( 51 AS SIGNED ) * + col2 AS col1 FROM tab1 AS cor0 WHERE + 24 IS NOT NULL
----
177531
235824
470016

skipif mysql # not compatible
query I rowsort label-736
SELECT col2 * CAST ( 51 AS INTEGER ) * + col2 AS col1 FROM tab1 AS cor0 WHERE + 24 IS NOT NULL
----
177531
235824
470016

query I rowsort
SELECT 5 * + + col2 + - 29 + - col2 + col0 AS col1 FROM tab0 AS cor0
----
174
464
98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT + COUNT( * ) + + MAX( ALL + col1 ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-739
SELECT + COUNT ( * ) + + MAX ( ALL + col1 ) FROM tab2
----
80

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 + - col0 * col1 * - 76 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT DISTINCT - COUNT( * ) * - 94 AS col0 FROM tab1 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-741
SELECT DISTINCT - COUNT ( * ) * - 94 AS col0 FROM tab1 AS cor0
----
282

query I rowsort
SELECT DISTINCT + col0 FROM tab1 cor0 WHERE + col2 / + col0 IS NULL OR ( + 6 ) <> NULL
----

query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( - col2 * - 38 ) > NULL OR NULL >= + col2
----

query I rowsort
SELECT 40 * - + col2 FROM tab1 AS cor0
----
-2360
-2720
-3840

query II rowsort
SELECT - col2 * - - 35, + col0 * col2 * - + 60 AS col2 FROM tab2 AS cor0
----
-1400
-153600
-2030
-261000
-805
-63480

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

skipif mysql # not compatible
query I rowsort label-746
SELECT DISTINCT col0 / + CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col0 * + + col0 - + col1 + - - col1 AS col1 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT + ( COUNT( * ) ) + MAX( 70 ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 * + col0 IS NULL
----
73

skipif mysql # not compatible
query I rowsort label-748
SELECT + ( COUNT ( * ) ) + MAX ( 70 ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 * + col0 IS NULL
----
73

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 7 IS NULL
----

query I rowsort
SELECT col2 + + 47 + - 35 FROM tab0 cor0 WHERE NOT ( 62 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-751
SELECT - + 71 DIV - col0 + + col1 + - col0 AS col1 FROM tab1 AS cor0
----
-36
-44
-80

skipif mysql # not compatible
query I rowsort label-751
SELECT - + 71 / - col0 + + col1 + - col0 AS col1 FROM tab1 AS cor0
----
-36
-44
-80

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-754
SELECT DISTINCT col2 * - col2 * + 38 + 15 + 95 AS col2, + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-3690
10
-372328
99
-83832
47

skipif mysql # not compatible
query II rowsort label-754
SELECT DISTINCT col2 * - col2 * + 38 + 15 + 95 AS col2, + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-3690
10
-372328
99
-83832
47

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

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

query I rowsort
SELECT ALL - 48 * 23 * ( + col1 ) FROM tab2
----
-56304
-73968
-85008

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

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

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

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

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

query I rowsort
SELECT - 14 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT DISTINCT - 65 + + - COUNT( * ) FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT - 65 + + - COUNT ( * ) FROM tab2 AS cor0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-763
SELECT ALL * FROM tab0 cor0 WHERE NOT ( - col2 + 17 ) NOT BETWEEN col2 * + col0 / - + CAST( NULL AS SIGNED ) AND ( - - col1 )
----

skipif mysql # not compatible
query III rowsort label-763
SELECT ALL * FROM tab0 cor0 WHERE NOT ( - col2 + 17 ) NOT BETWEEN col2 * + col0 / - + CAST ( NULL AS INTEGER ) AND ( - - col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 ) - 35 >= - - col2 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT ALL ( 29 ) + - - MIN( DISTINCT - 67 ) * 52 AS col1 FROM tab1 AS cor0
----
-3455

skipif mysql # not compatible
query I rowsort label-765
SELECT ALL ( 29 ) + - - MIN ( DISTINCT - 67 ) * 52 AS col1 FROM tab1 AS cor0
----
-3455

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( + 12 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-767
SELECT DISTINCT - 29 * - + col2 + - 81 + - col1 DIV + 49 AS col0, col2 + + col0 FROM tab0 AS cor0
----
1281
62
209
97
2790
196

skipif mysql # not compatible
query II rowsort label-767
SELECT DISTINCT - 29 * - + col2 + - 81 + - col1 / + 49 AS col0, col2 + + col0 FROM tab0 AS cor0
----
1281
62
209
97
2790
196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 87 * + - 5 col2, col0 FROM tab2 AS cor0
----
435
46
435
64
435
75

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

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

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NULL < NULL
----

query II rowsort
SELECT + ( - - col1 ), col2 AS col0 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE - 73 IN ( + col1 )
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE NULL <= - col0 * - col2
----

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

query II rowsort
SELECT ALL col1 AS col0, - 66 * col2 FROM tab0
----
1
-6534
21
-660
81
-3102

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-778
SELECT CAST( MAX( ALL 24 ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
24

skipif mysql # not compatible
query I rowsort label-778
SELECT CAST ( MAX ( ALL 24 ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT + 5 - + - ( - + COUNT( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-4

skipif mysql # not compatible
query I rowsort label-779
SELECT + 5 - + - ( - + COUNT ( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-4

query I rowsort
SELECT ALL ( + 18 ) + + col1 FROM tab2 WHERE + 37 <> NULL
----

query I rowsort
SELECT 11 * col2 FROM tab2
----
253
440
638

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-10
-47
-99

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

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

query II rowsort
SELECT col0 AS col1, 15 AS col0 FROM tab2 AS cor0
----
46
15
64
15
75
15

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

query I rowsort
SELECT col2 * 27 FROM tab2
----
1080
1566
621

onlyif mysql # DIV for integer division: 
query I rowsort label-788
SELECT + col1 DIV + 61 * + ( + + 22 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-788
SELECT + col1 / + 61 * + ( + + 22 ) FROM tab1
----
0
0
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-789
SELECT ALL - COUNT ( * ) * - 96 * - 6 col0 FROM tab1
----
-1728

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT ALL COUNT( * ) * + + 85 AS col0 FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-790
SELECT ALL COUNT ( * ) * + + 85 AS col0 FROM tab1
----
255

onlyif mysql # DIV for integer division: 
query I rowsort label-791
SELECT DISTINCT - col0 DIV - col1 col1 FROM tab0
----
0
4
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-791
SELECT DISTINCT - col0 / - col1 col1 FROM tab0
----
0
4
97

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT + COUNT( + - col2 ) + - MIN( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-794
SELECT + COUNT ( + - col2 ) + - MIN ( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
78

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

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

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

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

query I rowsort
SELECT + + 39 * - 63 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6a7a6542185738b7011f970597d83bc0

query I rowsort
SELECT DISTINCT + col0 - - + col1 + col1 AS col1 FROM tab2
----
148
209
218

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

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

query I rowsort
SELECT DISTINCT ( + col1 ) - + 31 FROM tab0 AS cor0
----
-10
-30
50

query I rowsort
SELECT DISTINCT 70 * 89 AS col1 FROM tab2 cor0
----
6230

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT - COUNT( * ) - - + 72 AS col0 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-803
SELECT - COUNT ( * ) - - + 72 AS col0 FROM tab2 AS cor0
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-804
SELECT ALL - col1 * col2 DIV + ( - + 2 ) col0 FROM tab2 cor0
----
1540
1943
586

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-804
SELECT ALL - col1 * col2 / + ( - + 2 ) col0 FROM tab2 cor0
----
1540
1943
586

query I rowsort
SELECT - - col0 - - 39 AS col0 FROM tab1 AS cor0
----
124
130
90

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL >= 22 )
----
0

skipif mysql # not compatible
query I rowsort label-806
SELECT COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL >= 22 )
----
0

query I rowsort
SELECT col1 * + + 39 + + col2 FROM tab1 AS cor0
----
1901
254
642

query I rowsort
SELECT + 51 * + 18 AS col2 FROM tab2 cor0
----
918
918
918

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-812
SELECT DISTINCT col0 * - 44 * + CAST( + col0 AS SIGNED ) FROM tab1
----
-114444
-317900
-364364

skipif mysql # not compatible
query I rowsort label-812
SELECT DISTINCT col0 * - 44 * + CAST ( + col0 AS INTEGER ) FROM tab1
----
-114444
-317900
-364364

query II rowsort
SELECT - + ( + 5 ) + + - ( + col1 ) AS col0, col0 AS col0 FROM tab2 WHERE NOT - col2 / + + col2 + - 34 NOT IN ( 85, 10 * col1 )
----

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

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

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

skipif mysql # not compatible
query II rowsort label-816
SELECT ALL - 69 AS col2, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-69
-3

query I rowsort
SELECT col2 + + + 54 AS col1 FROM tab1 AS cor0
----
113
122
150

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

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

query II rowsort
SELECT ALL + + col0 * ( - col1 ) * - 10 - - col0 + + col1 AS col2, 41 FROM tab0 AS cor0
----
1068
41
12246
41
18378
41

query I rowsort
SELECT + 47 + 18 FROM tab0 AS cor0
----
65
65
65

query I rowsort
SELECT - 50 + + - 29 - + - 11 FROM tab2 AS cor0
----
-68
-68
-68

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

skipif mysql # not compatible
query I rowsort label-822
SELECT DISTINCT MIN ( - 24 ) FROM tab0 AS cor0
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - 99 + - col2 + + col0 col1 FROM tab1 AS cor0
----
-14
-48
-8

query I rowsort
SELECT DISTINCT + ( - + col1 ) + col0 AS col1 FROM tab1
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT ALL + 62 + - MAX( + col1 ) FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-825
SELECT ALL + 62 + - MAX ( + col1 ) FROM tab2
----
-15

query II rowsort
SELECT ALL - col1, 90 AS col1 FROM tab1
----
-14
90
-47
90
-5
90

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

skipif mysql # not compatible
query I rowsort label-827
SELECT DISTINCT + COUNT ( * ) + - 37 + COUNT ( * ) FROM tab2
----
-31

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 ) = 18
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query II rowsort label-830
SELECT COUNT( * ) col2, 63 FROM tab2 AS cor0
----
3
63

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

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

skipif mysql # not compatible
query I rowsort label-831
SELECT 5 / + + col2 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT ALL - + 93, - 5 AS col2 FROM tab2 AS cor0
----
-93
-5
-93
-5
-93
-5

query I rowsort
SELECT ALL + - ( col2 ) * + - col1 * + col0 + col1 AS col1 FROM tab1 AS cor0
----
25080
290883
68558

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT DISTINCT + 83 + + + COUNT( 75 ) * - + 33 AS col2 FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-834
SELECT DISTINCT + 83 + + + COUNT ( 75 ) * - + 33 AS col2 FROM tab2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT + 29 + + + MIN( + col2 ) FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-835
SELECT + 29 + + + MIN ( + col2 ) FROM tab1
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-836
SELECT col1 DIV 76 + + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-836
SELECT col1 / 76 + + col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT DISTINCT - + ( - MIN( ALL + 70 ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
70

skipif mysql # not compatible
query I rowsort label-837
SELECT DISTINCT - + ( - MIN ( ALL + 70 ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
70

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

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

query I rowsort
SELECT ALL ( - col0 ) * + + 7 AS col0 FROM tab1 AS cor0
----
-357
-595
-637

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT - COUNT( * ) * + COUNT( * ) * 85 FROM tab1 AS cor0
----
-765

skipif mysql # not compatible
query I rowsort label-840
SELECT - COUNT ( * ) * + COUNT ( * ) * 85 FROM tab1 AS cor0
----
-765

onlyif mysql # DIV for integer division: 
query II rowsort label-841
SELECT DISTINCT + col0 DIV - 90 AS col1, 24 * - + 44 FROM tab2 cor0
----
0
-1056

skipif mysql # not compatible
query II rowsort label-841
SELECT DISTINCT + col0 / - 90 AS col1, 24 * - + 44 FROM tab2 cor0
----
0
-1056

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-843
SELECT + 9 * + + CAST( NULL AS SIGNED ) + + - ( ( + 54 ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL AND NOT + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-843
SELECT + 9 * + + CAST ( NULL AS INTEGER ) + + - ( ( + 54 ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL AND NOT + col1 IS NOT NULL
----

query I rowsort
SELECT col1 FROM tab2 cor0 WHERE NOT NULL NOT IN ( 91, + col1 * - 3 * - 20 + 62 ) AND NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 * + col2 col0 FROM tab1 AS cor0
----
1652
1904
2688

query II rowsort
SELECT + col1 AS col0, 4 + col1 FROM tab2
----
51
55
67
71
77
81

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT ALL MAX( DISTINCT - 83 ) * - - COUNT( * ) - COUNT( * ) col1 FROM tab0, tab1 cor0
----
-756

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-847
SELECT ALL MAX ( DISTINCT - 83 ) * - - COUNT ( * ) - COUNT ( * ) col1 FROM tab0, tab1 cor0
----
-756

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 III rowsort
SELECT * FROM tab1 WHERE NOT + col1 / - col2 IS NOT NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - + 12 ) > NULL
----

query I rowsort
SELECT 86 + - col0 AS col2 FROM tab0
----
-1
-11
71

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= 93
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-854
SELECT + + ( - + 64 ) - CAST( + col2 AS DECIMAL ) + + 20 / + col1 * + - 49 - + - col1 AS col2 FROM tab1 AS cor0 WHERE col0 = NULL
----

skipif mysql # not compatible
query I rowsort label-854
SELECT + + ( - + 64 ) - CAST ( + col2 AS REAL ) + + 20 / + col1 * + - 49 - + - col1 AS col2 FROM tab1 AS cor0 WHERE col0 = NULL
----

query I rowsort
SELECT ALL - + 29 + col1 FROM tab1 AS cor0
----
-15
-24
18

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

query I rowsort
SELECT DISTINCT 96 + 35 + col0 AS col0 FROM tab0 AS cor0
----
146
218
228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-858
SELECT 98 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-858
SELECT 98 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + 26 + + 2 * + - 56 * + + col2 * + + col1 * + col2 FROM tab0
----
-1097685
-20039941
-235153

query I rowsort
SELECT ALL 5 + col1 FROM tab1
----
10
19
52

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

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

query I rowsort
SELECT DISTINCT 84 * + - col2 + - - 75 + + col2 FROM tab1
----
-4822
-5569
-7893

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

query II rowsort
SELECT + 63 * 27 + - 80 AS col1, - col2 FROM tab0
----
1621
-10
1621
-47
1621
-99

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

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

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

query I rowsort
SELECT + + 89 * - - col1 AS col1 FROM tab2 AS cor0
----
4539
5963
6853

query I rowsort
SELECT + - col1 * + 86 AS col1 FROM tab0 AS cor0
----
-1806
-6966
-86

query I rowsort
SELECT DISTINCT + 9 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-871
SELECT DISTINCT col1 DIV + + 67 + + + col1 FROM tab2 AS cor0
----
51
68
78

skipif mysql # not compatible
query I rowsort label-871
SELECT DISTINCT col1 / + + 67 + + + col1 FROM tab2 AS cor0
----
51
68
78

query I rowsort
SELECT DISTINCT - - 88 * - 49 AS col0 FROM tab2 AS cor0
----
-4312

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

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

query I rowsort
SELECT + 96 * + ( - 62 ) AS col0 FROM tab2 AS cor0
----
-5952
-5952
-5952

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

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

query I rowsort
SELECT 30 * + + 77 FROM tab0
----
2310
2310
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT DISTINCT - 39 * - MAX( - col0 ) FROM tab0
----
-585

skipif mysql # not compatible
query I rowsort label-877
SELECT DISTINCT - 39 * - MAX ( - col0 ) FROM tab0
----
-585

query I rowsort
SELECT ALL + col0 * - 49 FROM tab0
----
-4263
-4753
-735

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( + + 42 ) * - 6 + col1 AS col2 FROM tab2 AS cor0
----
-175
-185
-201

query I rowsort
SELECT DISTINCT 42 + - col0 FROM tab0 AS cor0
----
-45
-55
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-884
SELECT DISTINCT AVG ( DISTINCT - 67 ) * + 45 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-884
SELECT DISTINCT AVG ( DISTINCT - 67 ) * + 45 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE col0 NOT BETWEEN ( - ( + col2 ) ) AND + col0 + - col0
----
10
47
99

query I rowsort
SELECT ALL ( - ( 17 ) ) FROM tab2
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT DISTINCT SUM( DISTINCT - - 3 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-887
SELECT DISTINCT SUM ( DISTINCT - - 3 ) FROM tab1 cor0
----
3

query II rowsort
SELECT ALL + - 98, + col2 AS col0 FROM tab1 AS cor0
----
-98
59
-98
68
-98
96

query I rowsort
SELECT 9 FROM tab0 AS cor0 WHERE - col0 * - col1 IS NULL
----

query I rowsort
SELECT ALL - col0 * - - 8 AS col1 FROM tab0 AS cor0
----
-120
-696
-776

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT ALL MAX( DISTINCT 43 ) + - - 79 AS col2 FROM tab2 AS cor0
----
122

skipif mysql # not compatible
query I rowsort label-891
SELECT ALL MAX ( DISTINCT 43 ) + - - 79 AS col2 FROM tab2 AS cor0
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-892
SELECT ( + - col0 ) * col2 * - - col1 + - col1 DIV + 64 AS col0 FROM tab1 AS cor0
----
-25075
-290836
-68544

skipif mysql # not compatible
query I rowsort label-892
SELECT ( + - col0 ) * col2 * - - col1 + - col1 / + 64 AS col0 FROM tab1 AS cor0
----
-25075
-290836
-68544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 19 col2 FROM tab1 AS cor0
----
104
110
70

query I rowsort
SELECT DISTINCT + 62 + - 51 FROM tab2 AS cor0
----
11

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + 96 + + col0 + - 12 * + + 9 < col0 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT DISTINCT 33 * COUNT( * ) - 21 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-898
SELECT DISTINCT 33 * COUNT ( * ) - 21 FROM tab1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-899
SELECT ALL - CAST( NULL AS SIGNED ) + - col0, + col0 AS col2 FROM tab1 cor0 WHERE NOT NULL <= col2
----

skipif mysql # not compatible
query II rowsort label-899
SELECT ALL - CAST ( NULL AS INTEGER ) + - col0, + col0 AS col2 FROM tab1 cor0 WHERE NOT NULL <= col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-900
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND CAST( ( + 97 ) AS SIGNED ) OR - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-900
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND CAST ( ( + 97 ) AS INTEGER ) OR - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 88 * - + col2 FROM tab2
----
-2024
-3520
-5104

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT - ( - 52 ) * - + SUM( ( - col2 ) ) - - + 20 FROM tab0 AS cor0 WHERE NOT 66 IS NULL
----
8132

skipif mysql # not compatible
query I rowsort label-902
SELECT - ( - 52 ) * - + SUM ( ( - col2 ) ) - - + 20 FROM tab0 AS cor0 WHERE NOT 66 IS NULL
----
8132

query I rowsort
SELECT ALL col0 * + + col2 AS col2 FROM tab2 cor0
----
1058
2560
4350

query I rowsort
SELECT ALL - + 83 FROM tab1 cor0
----
-83
-83
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-905
SELECT DISTINCT + - col1 - - 50 * + - col1 * col0 * - + col0 + + + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + CAST( - - col1 AS SIGNED ) + - CAST( NULL AS SIGNED ) + col2 NOT IN ( - col1 / + col2, ( + - col2 ) )
----

skipif mysql # not compatible
query I rowsort label-905
SELECT DISTINCT + - col1 - - 50 * + - col1 * col0 * - + col0 + + + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + CAST ( - - col1 AS INTEGER ) + - CAST ( NULL AS INTEGER ) + col2 NOT IN ( - col1 / + col2, ( + - col2 ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT 99 * - COUNT( + + 62 ) FROM tab1
----
-297

skipif mysql # not compatible
query I rowsort label-907
SELECT 99 * - COUNT ( + + 62 ) FROM tab1
----
-297

query I rowsort
SELECT ALL + 84 * + + 16 FROM tab2
----
1344
1344
1344

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-909
SELECT DISTINCT col0 DIV + - CAST( 76 AS SIGNED ) FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-909
SELECT DISTINCT col0 / + - CAST ( 76 AS INTEGER ) FROM tab1
----
-1
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > + 68
----

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

skipif mysql # not compatible
query I rowsort label-911
SELECT - col0 / + 61 AS col0 FROM tab1
----
-1
-1
0

query I rowsort
SELECT - ( ( col2 ) ) + - + col2 AS col1 FROM tab1 WHERE NOT 45 * col0 * 78 >= NULL
----

query I rowsort
SELECT DISTINCT + - AVG ( + col2 ) * + 83 AS col2 FROM tab2 WHERE - col1 = + + col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-914
SELECT DISTINCT - - MIN ( DISTINCT 80 ) FROM tab0 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT SUM( ALL - 27 ) FROM tab0, tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-915
SELECT SUM ( ALL - 27 ) FROM tab0, tab0 AS cor0
----
-243

query I rowsort
SELECT 37 * + col2 FROM tab1
----
2183
2516
3552

query II rowsort
SELECT 20, col1 AS col0 FROM tab0 AS cor0 WHERE NULL IN ( - col2 + - + 67 + + - 61, col1, 27 )
----

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

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

query I rowsort
SELECT DISTINCT - 98 * - col0 + + - ( + + col2 ) FROM tab0 cor0
----
1423
8516
9407

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

query II rowsort
SELECT + + ( + col1 ) AS col2, col2 FROM tab1 WHERE NULL <= - col1 + + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 18 + - 90 + - 69 col2 FROM tab0
----
-141
-141
-141

query I rowsort
SELECT + ( + col1 ) + - 3 FROM tab1
----
11
2
44

onlyif mysql # DIV for integer division: 
query I rowsort label-924
SELECT ALL 25 + + + 65 * col0 DIV - - col1 FROM tab0
----
294
37
6330

skipif mysql # not compatible
query I rowsort label-924
SELECT ALL 25 + + + 65 * col0 / - - col1 FROM tab0
----
294
37
6330

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-925
SELECT DISTINCT col1 col0, + ( + CAST ( + ( + - 0 ) AS INTEGER ) ) AS col1 FROM tab1
----
14
0
47
0
5
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-926
SELECT CAST( NULL AS DECIMAL ) * CAST( COUNT( * ) AS SIGNED ) / + 43 * 28 / - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-926
SELECT CAST ( NULL AS REAL ) * CAST ( COUNT ( * ) AS INTEGER ) / + 43 * 28 / - COUNT ( * ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - - 62 + - + col1 + - col1 + - - 90 col0 FROM tab0 cor0
----
1350
150
4950

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

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

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

query I rowsort
SELECT ALL + + col1 + 92 * 7 AS col1 FROM tab0 WHERE NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > + + col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT - + 75 * + ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-933
SELECT - + 75 * + ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-225

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 37 * + 63 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT - 76 * - 69 + - MAX( 60 ) AS col2 FROM tab2 AS cor0
----
5184

skipif mysql # not compatible
query I rowsort label-935
SELECT - 76 * - 69 + - MAX ( 60 ) AS col2 FROM tab2 AS cor0
----
5184

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT - COUNT( * ) * - MIN( DISTINCT ( - col2 ) ) FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-936
SELECT - COUNT ( * ) * - MIN ( DISTINCT ( - col2 ) ) FROM tab1 AS cor0
----
-288

onlyif mysql # DIV for integer division: 
query I rowsort label-937
SELECT DISTINCT + + col2 * 56 * - + ( + - col2 ) + + col0 DIV - 87 AS col2 FROM tab2 AS cor0
----
188384
29624
89600

skipif mysql # not compatible
query I rowsort label-937
SELECT DISTINCT + + col2 * 56 * - + ( + - col2 ) + + col0 / - 87 AS col2 FROM tab2 AS cor0
----
188384
29624
89600

query I rowsort
SELECT DISTINCT - 52 FROM tab0 WHERE ( ( + 15 IS NULL ) )
----

query I rowsort
SELECT + + 55 - - col2 AS col2 FROM tab0 WHERE NOT ( NOT col1 IS NOT NULL )
----
102
154
65

query I rowsort
SELECT ALL 16 * + + 13 AS col2 FROM tab2
----
208
208
208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( - - ( col0 ) ) col2 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT ( + 63 ) * + col1 * - col1 + + 49 - col2 AS col2 FROM tab1
----
-12395
-139186
-1585

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-943
SELECT ALL col0 + + col2 * + col2 + - - col1 + + 19 + + 10 AS col2 FROM tab0 AS cor0 WHERE NOT col1 >= 40 * CAST( NULL AS SIGNED ) + col2
----

skipif mysql # not compatible
query I rowsort label-943
SELECT ALL col0 + + col2 * + col2 + - - col1 + + 19 + + 10 AS col2 FROM tab0 AS cor0 WHERE NOT col1 >= 40 * CAST ( NULL AS INTEGER ) + col2
----

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-946
SELECT + - col1 AS col2, 96 * - - col0 + col0 + - - CAST( + 30 AS SIGNED ) + 36 DIV - ( - 4 ) AS col2 FROM tab2 AS cor0
----
-51
4501
-67
7314
-77
6247

skipif mysql # not compatible
query II rowsort label-946
SELECT + - col1 AS col2, 96 * - - col0 + col0 + - - CAST ( + 30 AS INTEGER ) + 36 / - ( - 4 ) AS col2 FROM tab2 AS cor0
----
-51
4501
-67
7314
-77
6247

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col0 * + 86 BETWEEN - col1 + + ( - col2 ) + col2 * - col0 / + col0 AND + ( 94 ) + + 8
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-948
SELECT ALL + COUNT( * ) DIV + COUNT( * ) + - COUNT( * ) AS col0, + COUNT( * ) AS col2 FROM tab1 cor0
----
-2
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT - MIN( DISTINCT - - 2 ) + + COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-950
SELECT - MIN ( DISTINCT - - 2 ) + + COUNT ( * ) FROM tab0
----
1

query I rowsort
SELECT 66 * col2 + + 81 AS col2 FROM tab0 AS cor0
----
3183
6615
741

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

query II rowsort
SELECT ALL + col1 AS col2, - 83 * 7 AS col0 FROM tab1 AS cor0
----
14
-581
47
-581
5
-581

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT - COUNT( * ) + + MAX( + col1 ) AS col0 FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-954
SELECT - COUNT ( * ) + + MAX ( + col1 ) AS col0 FROM tab1 AS cor0
----
44

query I rowsort
SELECT - 54 FROM tab2 AS cor0 WHERE ( - col2 <= NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-956
SELECT + col2 DIV - 64 AS col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-956
SELECT + col2 / - 64 AS col2 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT ALL COUNT( * ) + - COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-957
SELECT ALL COUNT ( * ) + - COUNT ( * ) FROM tab1 cor0
----
0

query I rowsort
SELECT + ( - - 21 ) FROM tab0 cor0
----
21
21
21

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

query I rowsort
SELECT DISTINCT + col0 + + 31 * - - col0 + 15 AS col2 FROM tab0 cor0
----
2799
3119
495

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

query I rowsort
SELECT DISTINCT - col2 - - 77 * + 72 FROM tab1
----
5448
5476
5485

query I rowsort
SELECT ( - + col1 ) - + + col0 FROM tab1
----
-138
-65
-90

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

skipif mysql # not compatible
query I rowsort label-964
SELECT ALL - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) - + 72 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT - col2 FROM tab0 WHERE col2 IS NOT NULL
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 82 col0 FROM tab1
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-967
SELECT + MAX( ALL - + col0 ) col1, 80 FROM tab2
----
-46
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-967
SELECT + MAX ( ALL - + col0 ) col1, 80 FROM tab2
----
-46
80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( - ( + - col0 ) ) NOT IN ( + col1 * + col2 * + col1 / 52 + - col1 ) AND NOT + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----

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

skipif mysql # not compatible
query I rowsort label-970
SELECT DISTINCT - 12 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND - col1 + + + ( - CAST ( - + col1 AS INTEGER ) )
----

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

query I rowsort
SELECT DISTINCT + ( + 64 ) AS col0 FROM tab0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT + MIN( + 20 ) FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-973
SELECT + MIN ( + 20 ) FROM tab0
----
20

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

skipif mysql # not compatible
query III rowsort label-974
SELECT ALL * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT - SUM( - - 27 ) AS col1 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-976
SELECT - SUM ( - - 27 ) AS col1 FROM tab2
----
-81

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-981
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 / - + col1 >= CAST( 31 AS DECIMAL )
----
21
81

skipif mysql # not compatible
query I rowsort label-981
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 / - + col1 >= CAST ( 31 AS REAL )
----
21
81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT MIN( DISTINCT - col0 ) * - - 90 FROM tab2
----
-6750

skipif mysql # not compatible
query I rowsort label-983
SELECT MIN ( DISTINCT - col0 ) * - - 90 FROM tab2
----
-6750

query I rowsort
SELECT + 15 * + col1 FROM tab0
----
1215
15
315

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT + MAX( DISTINCT - - col2 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-985
SELECT + MAX ( DISTINCT - - col2 ) AS col0 FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-986
SELECT DISTINCT - 89 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-986
SELECT DISTINCT - 89 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

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

query II rowsort
SELECT ALL + 56 * + 58, + col1 - - + 10 AS col1 FROM tab0
----
3248
11
3248
31
3248
91

query I rowsort
SELECT col1 * - 3 * - col1 AS col1 FROM tab2
----
13467
17787
7803

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col2 <= col1 * col2
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 78 col0 FROM tab1 AS cor0 WHERE col2 BETWEEN + + 78 - + - col1 AND + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-993
SELECT + - col0 + - col1 DIV col2 FROM tab2 AS cor0
----
-48
-65
-76

skipif mysql # not compatible
query I rowsort label-993
SELECT + - col0 + - col1 / col2 FROM tab2 AS cor0
----
-48
-65
-76

query I rowsort
SELECT - + col0 * + + col0 + + col1 FROM tab0 AS cor0
----
-144
-7548
-9408

query II rowsort
SELECT DISTINCT 40 + + - col0 + - + col0 AS col1, + col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - - 65 * col2 AS col0 FROM tab1 cor0
----
3835
4420
6240

query I rowsort
SELECT DISTINCT col1 * 64 AS col0 FROM tab2 cor0
----
3264
4288
4928

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT DISTINCT - 90 * - COUNT( * ) col1 FROM tab0 AS cor0
----
270

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

query I rowsort
SELECT ALL - col1 * + - 89 FROM tab1 AS cor0
----
1246
4183
445

onlyif mysql # DIV for integer division: 
query I rowsort label-1000
SELECT - col1 + + 68 + - col1 DIV 89 FROM tab2 AS cor0
----
-9
1
17

skipif mysql # not compatible
query I rowsort label-1000
SELECT - col1 + + 68 + - col1 / 89 FROM tab2 AS cor0
----
-9
1
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 22, - col2 + + col0 * - - col2 col1 FROM tab2 AS cor0
----
22
1035
22
2520
22
4292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1002
SELECT ALL 25 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1002
SELECT ALL 25 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1003
SELECT - + COUNT( * ) + + MAX( col2 ), - 35 AS col0 FROM tab0 AS cor0
----
96
-35

skipif mysql # not compatible
query II rowsort label-1003
SELECT - + COUNT ( * ) + + MAX ( col2 ), - 35 AS col0 FROM tab0 AS cor0
----
96
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT 21 + MIN( DISTINCT + col1 ) AS col2 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-1004
SELECT 21 + MIN ( DISTINCT + col1 ) AS col2 FROM tab0
----
22

query I rowsort
SELECT 20 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col0 BETWEEN - + col2 AND 61
----
46
51
23

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

skipif mysql # not compatible
query I rowsort label-1007
SELECT ALL - MIN ( ALL 60 ) AS col1 FROM tab1
----
-60

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1009
SELECT DISTINCT SUM( col1 ) DIV + SUM( col0 ) FROM tab1 AS cor0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1010
SELECT ALL + ( col2 ) DIV 14 AS col0 FROM tab1 AS cor0
----
4
4
6

skipif mysql # not compatible
query I rowsort label-1010
SELECT ALL + ( col2 ) / 14 AS col0 FROM tab1 AS cor0
----
4
4
6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 38 <= - + col2 * col1
----

query II rowsort
SELECT + col0 AS col1, col0 + col1 * - col0 * + - col0 + + 38 + + 71 AS col1 FROM tab2 cor0
----
46
108071
64
315565
75
377059

query II rowsort
SELECT 66, col2 FROM tab1 cor0
----
66
59
66
68
66
96

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( - col0 ) * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT DISTINCT + SUM( - 39 ) FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-1015
SELECT DISTINCT + SUM ( - 39 ) FROM tab0 AS cor0
----
-117

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

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

query I rowsort
SELECT - + col1 + - 88 + - - 33 AS col2 FROM tab1 AS cor0
----
-102
-60
-69

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

query I rowsort
SELECT - ( + col2 ) + 70 FROM tab0 AS cor0
----
-29
23
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT ALL - - COUNT( * ) * 58 + + + COUNT( * ) col2 FROM tab1 cor0
----
177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1020
SELECT ALL - - COUNT ( * ) * 58 + + + COUNT ( * ) col2 FROM tab1 cor0
----
177

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 55 / - 89 >= NULL
----

query II rowsort
SELECT 25, - col1 * + col0 AS col0 FROM tab0
----
25
-1215
25
-1827
25
-97

query I rowsort
SELECT ALL 4 + + + col2 FROM tab1
----
100
63
72

query II rowsort
SELECT - 47 AS col1, ( - - 52 ) FROM tab0
----
-47
52
-47
52
-47
52

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

skipif mysql # not compatible
query I rowsort label-1026
SELECT ALL + MIN ( col2 ) FROM tab0
----
10

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

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

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

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

query II rowsort
SELECT col1 AS col2, col2 AS col0 FROM tab2 AS cor0
----
51
23
67
58
77
40

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

skipif mysql # not compatible
query I rowsort label-1030
SELECT DISTINCT - COUNT ( + col2 ) * COUNT ( 24 ) FROM tab0 AS cor0
----
-9

query I rowsort
SELECT col0 * + col1 + - col0 AS col1 FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
2300
4864
4950

query I rowsort
SELECT - 75 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT col1 * + + col2 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1034
SELECT ALL + 72 - - - 67 + - 70 * col1 + 65 * - 16 * - CAST( NULL AS SIGNED ) - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL + 72 - - - 67 + - 70 * col1 + 65 * - 16 * - CAST ( NULL AS INTEGER ) - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1035
SELECT DISTINCT + + 99 DIV + col1 AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1035
SELECT DISTINCT + + 99 / + col1 AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE col1 * + - 93 IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1037
SELECT ALL - CAST( - 69 AS SIGNED ) * + col1 AS col0 FROM tab1 cor0
----
3243
345
966

skipif mysql # not compatible
query I rowsort label-1037
SELECT ALL - CAST ( - 69 AS INTEGER ) * + col1 AS col0 FROM tab1 cor0
----
3243
345
966

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT DISTINCT + - MAX( + + col2 ) * - 8 - + - 39 FROM tab1 AS cor0
----
807

skipif mysql # not compatible
query I rowsort label-1038
SELECT DISTINCT + - MAX ( + + col2 ) * - 8 - + - 39 FROM tab1 AS cor0
----
807

onlyif mysql # DIV for integer division: 
query I rowsort label-1039
SELECT 31 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1039
SELECT 31 / + col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1040
SELECT 92 DIV - ( + col2 ) AS col1 FROM tab0
----
-1
-9
0

skipif mysql # not compatible
query I rowsort label-1040
SELECT 92 / - ( + col2 ) AS col1 FROM tab0
----
-1
-9
0

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

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

skipif mysql # not compatible
query I rowsort label-1042
SELECT ALL - 38 * - - COUNT ( * ) FROM tab1
----
-114

query II rowsort
SELECT ALL + col1 + + - col2 AS col0, col0 + + col2 FROM tab1 AS cor0
----
-21
159
-54
144
-82
147

query II rowsort
SELECT DISTINCT 20 + + col1 AS col0, col1 + + col0 + - col0 FROM tab0 AS cor0
----
101
81
21
1
41
21

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1046
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 / CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) * 96 IS NULL AND NULL = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-1046
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 / CAST ( CAST ( NULL AS REAL ) AS INTEGER ) * 96 IS NULL AND NULL = ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL MIN ( DISTINCT 69 ) AS col0 FROM tab2
----
69

query I rowsort
SELECT - col0 FROM tab1 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT + 72 + - col1 FROM tab1
----
25
58
67

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 / + col0 > NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT DISTINCT - MAX( - col2 ) - - - 78 col0 FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1053
SELECT DISTINCT - MAX ( - col2 ) - - - 78 col0 FROM tab0 AS cor0
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-1054
SELECT DISTINCT col1 DIV + - col2 + - + 67 AS col1 FROM tab2 AS cor0
----
-68
-69

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT col1 / + - col2 + - + 67 AS col1 FROM tab2 AS cor0
----
-68
-69

query I rowsort
SELECT ALL - ( - 87 ) FROM tab1 AS cor0
----
87
87
87

query I rowsort
SELECT DISTINCT 6 - 12 AS col1 FROM tab1
----
-6

query I rowsort
SELECT ALL col0 - col2 * - 25 + - col2 AS col0 FROM tab1
----
1501
1723
2355

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

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

query I rowsort
SELECT + 72 * col1 FROM tab1
----
1008
3384
360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1060
SELECT COUNT( DISTINCT - - 2 ) DIV 59 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1060
SELECT COUNT ( DISTINCT - - 2 ) / 59 FROM tab0
----
0

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

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

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT NULL < NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1064
SELECT ALL 68 DIV col1 * - - CAST( - - col2 AS SIGNED ) FROM tab0 AS cor0
----
0
30
6732

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL 68 / col1 * - - CAST ( - - col2 AS INTEGER ) FROM tab0 AS cor0
----
0
30
6732

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1066
SELECT col0 * col1 + + - col2 DIV col1 FROM tab1 AS cor0
----
414
4276
708

skipif mysql # not compatible
query I rowsort label-1066
SELECT col0 * col1 + + - col2 / col1 FROM tab1 AS cor0
----
414
4276
708

query I rowsort
SELECT 60 * + - col0 FROM tab2 cor0
----
-2760
-3840
-4500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1068
SELECT - CAST( col0 AS SIGNED ) * - col2 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-1068
SELECT - CAST ( col0 AS INTEGER ) * - col2 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT ALL - COUNT( ALL col0 ) + - 24 AS col0 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-1069
SELECT ALL - COUNT ( ALL col0 ) + - 24 AS col0 FROM tab0 AS cor0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1070
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 - + - ( CAST( - col2 AS SIGNED ) ) BETWEEN NULL AND - - col1 + - - 13 + col1
----

skipif mysql # not compatible
query III rowsort label-1070
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 - + - ( CAST ( - col2 AS INTEGER ) ) BETWEEN NULL AND - - col1 + - - 13 + col1
----

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

query I rowsort
SELECT 50 + col0 FROM tab1
----
101
135
141

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

query I rowsort
SELECT DISTINCT - 28 FROM tab1, tab1 AS cor0
----
-28

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1075
SELECT ALL MIN ( DISTINCT - - col2 ) col2 FROM tab0
----
10

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1078
SELECT - COUNT( * ) + + 32 DIV + 18 AS col0 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1078
SELECT - COUNT ( * ) + + 32 / + 18 AS col0 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT 39 + - ( - col2 ) FROM tab1 AS cor0
----
107
135
98

query I rowsort
SELECT - col0 + - col1 * + + 88 FROM tab2 AS cor0
----
-4534
-5971
-6840

query I rowsort
SELECT DISTINCT - + col1 + col1 * col0 FROM tab2 AS cor0
----
2295
4851
4958

query I rowsort
SELECT ALL 70 + 0 AS col2 FROM tab1 AS cor0 WHERE col2 * + col2 / + 85 < NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT ALL + 52 * - 29 * + - COUNT( * ) AS col0 FROM tab1
----
4524

skipif mysql # not compatible
query I rowsort label-1084
SELECT ALL + 52 * - 29 * + - COUNT ( * ) AS col0 FROM tab1
----
4524

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1085
SELECT ALL - 93 col2, MIN( ALL + CAST( + col0 AS SIGNED ) ) FROM tab2
----
-93
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1085
SELECT ALL - 93 col2, MIN ( ALL + CAST ( + col0 AS INTEGER ) ) FROM tab2
----
-93
46

query I rowsort
SELECT DISTINCT + 26 - 67 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT ALL + 50 * - COUNT( * ) AS col2 FROM tab2
----
-150

skipif mysql # not compatible
query I rowsort label-1087
SELECT ALL + 50 * - COUNT ( * ) AS col2 FROM tab2
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT DISTINCT MAX( 13 ) * + ( - 52 ) col2 FROM tab0
----
-676

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1088
SELECT DISTINCT MAX ( 13 ) * + ( - 52 ) col2 FROM tab0
----
-676

query I rowsort
SELECT - col1 * + 34 AS col0 FROM tab0
----
-2754
-34
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * + ( + col1 ), col1 col2 FROM tab2
----
2346
51
4928
77
5025
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 64 col0 FROM tab1 AS cor0
----
3008
320
896

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1093
SELECT COUNT( DISTINCT col1 ) DIV + 88 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1093
SELECT COUNT ( DISTINCT col1 ) / + 88 FROM tab2 AS cor0
----
0

query II rowsort
SELECT DISTINCT + - col0 AS col0, 44 * + - col0 FROM tab1 cor0
----
-51
-2244
-85
-3740
-91
-4004

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

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

query II rowsort
SELECT DISTINCT 30 + + col1 AS col2, col0 FROM tab2 AS cor0
----
107
64
81
46
97
75

query I rowsort
SELECT - - 41 + + col2 AS col0 FROM tab0 AS cor0
----
140
51
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT DISTINCT + + 28 * - - SUM( ALL - col1 ) FROM tab1 AS cor0 WHERE NOT - col0 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1100
SELECT DISTINCT + + 28 * - - SUM ( ALL - col1 ) FROM tab1 AS cor0 WHERE NOT - col0 < NULL
----
NULL

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

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

query I rowsort
SELECT DISTINCT + - 35 AS col1 FROM tab2 AS cor0
----
-35

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

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

query III rowsort
SELECT * FROM tab1 WHERE - col2 * col0 + - col2 + - ( 96 ) * + - 22 / col1 * - col1 + 22 * col0 + 0 + - - ( - col2 ) + + + ( - col2 ) <> NULL
----

query II rowsort
SELECT ALL - col1 * - 25 * col1 AS col1, - col1 FROM tab1
----
4900
-14
55225
-47
625
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT MIN( DISTINCT - 81 ) AS col2 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-1108
SELECT MIN ( DISTINCT - 81 ) AS col2 FROM tab2
----
-81

query II rowsort
SELECT DISTINCT + col1 AS col2, col0 + + col2 FROM tab2 WHERE NULL IS NULL
----
51
69
67
133
77
104

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

skipif mysql # not compatible
query I rowsort label-1110
SELECT + col2 / - - col0 FROM tab0
----
0
1
3

query I rowsort
SELECT DISTINCT 13 + + - ( col2 ) FROM tab2
----
-10
-27
-45

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1113
SELECT DISTINCT + 17 + + col2 + + CAST( + col1 AS SIGNED ) AS col0 FROM tab1
----
127
132
81

skipif mysql # not compatible
query I rowsort label-1113
SELECT DISTINCT + 17 + + col2 + + CAST ( + col1 AS INTEGER ) AS col0 FROM tab1
----
127
132
81

query I rowsort
SELECT + 36 - + col2 FROM tab1 WHERE + col2 * - col2 NOT BETWEEN 96 * - 55 + 0 AND ( col1 )
----
-60

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1117
SELECT DISTINCT - col2 * - - col2 + + - col0 DIV - col1 FROM tab2 AS cor0
----
-1600
-3363
-529

skipif mysql # not compatible
query I rowsort label-1117
SELECT DISTINCT - col2 * - - col2 + + - col0 / - col1 FROM tab2 AS cor0
----
-1600
-3363
-529

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

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

query I rowsort
SELECT - 1 + - + col1 + col2 FROM tab1
----
20
53
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT ALL + COUNT( DISTINCT + 57 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL + COUNT ( DISTINCT + 57 ) AS col1 FROM tab0
----
1

query I rowsort
SELECT ALL - 19 * + - ( + col1 ) FROM tab0
----
1539
19
399

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 AS cor0 WHERE 57 * 95 IS NULL
----

query II rowsort
SELECT ALL - col0, + col1 AS col0 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

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

query I rowsort
SELECT ALL 1 AS col2 FROM tab1 AS cor0 WHERE NOT ( + 74 ) IS NOT NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1129
SELECT + COUNT( - col2 ) AS col2, + 89 FROM tab2 AS cor0
----
3
89

skipif mysql # not compatible
query II rowsort label-1129
SELECT + COUNT ( - col2 ) AS col2, + 89 FROM tab2 AS cor0
----
3
89

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1130
SELECT + - COUNT ( * ) col1 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, - col1 col0 FROM tab0 AS cor0
----
-15
-81
-87
-21
-97
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1132
SELECT ALL - SUM( ALL + 72 ) AS col1, 91 + + - COUNT( * ) AS col1 FROM tab2
----
-216
88

skipif mysql # not compatible
query II rowsort label-1132
SELECT ALL - SUM ( ALL + 72 ) AS col1, 91 + + - COUNT ( * ) AS col1 FROM tab2
----
-216
88

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 WHERE NOT + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1134
SELECT COUNT( + - col1 ) AS col1, - COUNT( * ) * - - 5 + 31 AS col2 FROM tab2
----
3
16

skipif mysql # not compatible
query II rowsort label-1134
SELECT COUNT ( + - col1 ) AS col1, - COUNT ( * ) * - - 5 + 31 AS col2 FROM tab2
----
3
16

onlyif mysql # aggregate syntax: 
query II rowsort label-1135
SELECT ( - 21 ), + MIN( + 60 ) AS col2 FROM tab0
----
-21
60

skipif mysql # not compatible
query II rowsort label-1135
SELECT ( - 21 ), + MIN ( + 60 ) AS col2 FROM tab0
----
-21
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 * + col0 + - col0 col0 FROM tab1 WHERE + col1 * - col0 + - - col1 = col0 + - - 24
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT ALL + 96 * - + MIN( col2 ) FROM tab1
----
-5664

skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL + 96 * - + MIN ( col2 ) FROM tab1
----
-5664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 63 * - 46 col0 FROM tab0
----
2898

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT 89 * 50 NOT IN ( + 49 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT DISTINCT MIN( - col2 ) FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-1141
SELECT DISTINCT MIN ( - col2 ) FROM tab0 cor0
----
-99

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

skipif mysql # not compatible
query I rowsort label-1142
SELECT - + col1 / - + col1 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - + 34 + col1 FROM tab2 AS cor0 WHERE NULL <> col2
----

query I rowsort
SELECT DISTINCT col2 * col1 + + col0 * 10 FROM tab2 AS cor0
----
1633
3720
4636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1145
SELECT ALL 19 * - - MAX( ALL - + col2 ) AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-1121
NULL

skipif mysql # not compatible
query II rowsort label-1145
SELECT ALL 19 * - - MAX ( ALL - + col2 ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-1121
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1146
SELECT + 6 AS col2, - ( + ( + - COUNT( * ) ) ) * + + 6 + - ( - + COUNT( * ) ) - COUNT( * ) AS col0 FROM tab2 cor0
----
6
18

skipif mysql # not compatible
query II rowsort label-1146
SELECT + 6 AS col2, - ( + ( + - COUNT ( * ) ) ) * + + 6 + - ( - + COUNT ( * ) ) - COUNT ( * ) AS col0 FROM tab2 cor0
----
6
18

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

query I rowsort
SELECT DISTINCT - col1 + + col1 + col2 + - col0 AS col2 FROM tab0 AS cor0
----
-77
2
32

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 65 + - col2 * + 45 col1 FROM tab2 AS cor0
----
-1735
-2545
-970

query I rowsort
SELECT DISTINCT - col0 * - 39 FROM tab1 AS cor0
----
1989
3315
3549

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

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

query II rowsort
SELECT DISTINCT col0 * col0, + col1 AS col2 FROM tab2
----
2116
51
4096
77
5625
67

query II rowsort
SELECT + ( + col1 ) AS col0, - col0 FROM tab0 WHERE NULL >= NULL
----

query II rowsort
SELECT ALL - 90 * + + col0 AS col1, + 6 FROM tab1
----
-4590
6
-7650
6
-8190
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1156
SELECT DISTINCT + 57 DIV col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-1156
SELECT DISTINCT + 57 / col0 FROM tab1
----
0
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1158
SELECT DISTINCT 10 DIV - - 54 * + 95 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1158
SELECT DISTINCT 10 / - - 54 * + 95 FROM tab0
----
0

query I rowsort
SELECT 69 * - - 73 + - - 44 AS col1 FROM tab0
----
5081
5081
5081

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

skipif mysql # not compatible
query I rowsort label-1160
SELECT ALL + COUNT ( * ) + + 8 FROM tab2
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 32 + - 32, - col0 + - col1 col1 FROM tab2 AS cor0
----
0
-141
0
-142
0
-97

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

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - col1 * + ( - + 78 ) AS col1 FROM tab2 AS cor0
----
3978
5226
6006

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT DISTINCT MAX( - col0 ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-1165
SELECT DISTINCT MAX ( - col0 ) AS col1 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT DISTINCT - col2 + col0 FROM tab1 AS cor0 WHERE + ( + ( + col2 ) ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1167
SELECT - + CAST( - 88 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-1167
SELECT - + CAST ( - 88 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
88
88
88

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

query I rowsort
SELECT DISTINCT - 23 + - - col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1173
SELECT DISTINCT CAST ( - 74 AS INTEGER ) FROM tab1
----
-74

query II rowsort
SELECT ( + col0 ) AS col0, + 8 + + col0 FROM tab1
----
51
59
85
93
91
99

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

skipif mysql # not compatible
query II rowsort label-1175
SELECT col1 AS col1, - col1 / 11 AS col2 FROM tab0
----
1
0
21
-1
81
-7

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1178
SELECT DISTINCT - + 34, - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-1178
SELECT DISTINCT - + 34, - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-34
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 + - 85 col0 FROM tab0
----
-185
-2294
-9886

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT ALL - 57 * - - COUNT( * ) AS col0 FROM tab0
----
-171

skipif mysql # not compatible
query I rowsort label-1180
SELECT ALL - 57 * - - COUNT ( * ) AS col0 FROM tab0
----
-171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 54 * + 10 col1, col0 FROM tab2 cor0 WHERE NULL <> + ( 6 ) * ( - 19 )
----

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

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

query I rowsort
SELECT ALL col0 + - col0 + + - 8 AS col0 FROM tab0 cor0
----
-8
-8
-8

query I rowsort
SELECT ALL 86 * col0 * + + col1 FROM tab2 AS cor0
----
201756
423808
432150

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND 63
----

query II rowsort
SELECT ALL + col1 * + 64, + col1 FROM tab2 AS cor0
----
3264
51
4288
67
4928
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT - - COUNT( * ) * 31 * + MAX( DISTINCT col1 ) FROM tab0 cor0
----
7533

skipif mysql # not compatible
query I rowsort label-1187
SELECT - - COUNT ( * ) * 31 * + MAX ( DISTINCT col1 ) FROM tab0 cor0
----
7533

query I rowsort
SELECT DISTINCT + 29 * - - col1 FROM tab1
----
1363
145
406

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT + MIN( 78 ) * + - SUM( col0 ) AS col0 FROM tab0
----
-15522

skipif mysql # not compatible
query I rowsort label-1190
SELECT + MIN ( 78 ) * + - SUM ( col0 ) AS col0 FROM tab0
----
-15522

query I rowsort
SELECT - 5 FROM tab1, tab1 cor0 WHERE NOT NULL IS NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1192
SELECT DISTINCT + col2 * col2 * - - col0 + + - col0 + - CAST ( NULL AS INTEGER ) * - + 70 col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL - + col0 - - col2 FROM tab0 AS cor0
----
-77
2
32

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 16 - - col2 AS col2 FROM tab2
----
24
42
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1199
SELECT + 8 + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1199
SELECT + 8 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 FROM tab1 WHERE 98 IS NOT NULL
----
51
85
91

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

skipif mysql # not compatible
query I rowsort label-1201
SELECT DISTINCT 82 + - COUNT ( * ) FROM tab0
----
79

query I rowsort
SELECT col0 + 8 AS col0 FROM tab0
----
105
23
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT + ( - SUM( ALL 3 ) ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-1203
SELECT + ( - SUM ( ALL 3 ) ) AS col0 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT 95 + - MAX( - col0 ) * - MAX( ALL + col1 ) AS col0 FROM tab1
----
-2302

skipif mysql # not compatible
query I rowsort label-1204
SELECT 95 + - MAX ( - col0 ) * - MAX ( ALL + col1 ) AS col0 FROM tab1
----
-2302

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT COUNT( * ) + + 66 AS col0 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-1205
SELECT COUNT ( * ) + + 66 AS col0 FROM tab2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-1206
SELECT DISTINCT + col1 * + col0 + + ( + col1 + 61 DIV - 15 ) FROM tab1
----
426
4320
724

skipif mysql # not compatible
query I rowsort label-1206
SELECT DISTINCT + col1 * + col0 + + ( + col1 + 61 / - 15 ) FROM tab1
----
426
4320
724

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE + 39 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 >= ( - col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * ( col1 * - col1 ) < col1
----

query I rowsort
SELECT - col1 + 40 AS col1 FROM tab2
----
-11
-27
-37

query III rowsort
SELECT * FROM tab1 WHERE 9 * - col0 BETWEEN + col0 + + col2 AND ( 86 * - 25 )
----

query III rowsort
SELECT * FROM tab1 WHERE 64 <> - col0 - - 8
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT MAX( col2 ) + 95 AS col1 FROM tab0
----
194

skipif mysql # not compatible
query I rowsort label-1214
SELECT MAX ( col2 ) + 95 AS col1 FROM tab0
----
194

query I rowsort
SELECT DISTINCT + 51 FROM tab2 WHERE NOT col1 + col1 * + col1 IS NULL
----
51

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT - COUNT( * ) + MAX( DISTINCT 83 ) * - COUNT( col1 ) FROM tab2
----
-252

skipif mysql # not compatible
query I rowsort label-1217
SELECT - COUNT ( * ) + MAX ( DISTINCT 83 ) * - COUNT ( col1 ) FROM tab2
----
-252

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1219
SELECT col0 + col1 DIV col0 col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1219
SELECT col0 + col1 / col0 col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT 0 * 60 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1221
SELECT DISTINCT + 67 DIV - 10 FROM tab1 AS cor0 CROSS JOIN tab1
----
-6

skipif mysql # not compatible
query I rowsort label-1221
SELECT DISTINCT + 67 / - 10 FROM tab1 AS cor0 CROSS JOIN tab1
----
-6

query I rowsort
SELECT DISTINCT ( 84 ) + + col1 FROM tab2
----
135
151
161

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

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

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

skipif mysql # not compatible
query I rowsort label-1224
SELECT ALL + CAST ( ( 63 ) AS INTEGER ) FROM tab1
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT ALL ( COUNT( * ) ) FROM ( tab0 AS cor0 CROSS JOIN tab1 ) WHERE NOT + 75 IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-1225
SELECT ALL ( COUNT ( * ) ) FROM ( tab0 AS cor0 CROSS JOIN tab1 ) WHERE NOT + 75 IS NULL
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1226
SELECT DISTINCT 97 + col1 DIV + col0 AS col2 FROM tab2 AS cor0
----
97
98

skipif mysql # not compatible
query I rowsort label-1226
SELECT DISTINCT 97 + col1 / + col0 AS col2 FROM tab2 AS cor0
----
97
98

query I rowsort
SELECT - 68 - - col2 FROM tab0 AS cor0
----
-21
-58
31

query I rowsort
SELECT DISTINCT 34 * 38 + - col0 * + 88 AS col2 FROM tab2 AS cor0
----
-2756
-4340
-5308

query I rowsort
SELECT ALL + 25 + col1 * + 46 AS col2 FROM tab2 AS cor0
----
2371
3107
3567

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

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

query I rowsort
SELECT 15 FROM tab2 AS cor0 WHERE ( - 25 ) > col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT DISTINCT COUNT( * ) - COUNT( * ) * 79 FROM tab1 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-1233
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) * 79 FROM tab1 AS cor0
----
-234

query I rowsort
SELECT - + 6 + - 68 * + col2 AS col2 FROM tab0 AS cor0
----
-3202
-6738
-686

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT DISTINCT ( - 83 ) + + 73 * SUM( ALL 86 * 96 ) col0 FROM tab1 AS cor0
----
1807981

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1235
SELECT DISTINCT ( - 83 ) + + 73 * SUM ( ALL 86 * 96 ) col0 FROM tab1 AS cor0
----
1807981

query I rowsort
SELECT 91 * - col1 + - col0 AS col2 FROM tab1 AS cor0
----
-1325
-4368
-540

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
10
47
99

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

query I rowsort
SELECT 63 + col1 AS col1 FROM tab2 AS cor0
----
114
130
140

onlyif mysql # DIV for integer division: 
query I rowsort label-1240
SELECT ALL 26 DIV 59 - + col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL 26 / 59 - + col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT ALL + ( - + col0 ) FROM tab1
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-1242
SELECT ALL 22 DIV col2 - 15 * - col1 FROM tab0 WHERE NOT + 4 IS NULL
----
1215
15
317

skipif mysql # not compatible
query I rowsort label-1242
SELECT ALL 22 / col2 - 15 * - col1 FROM tab0 WHERE NOT + 4 IS NULL
----
1215
15
317

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT ALL - COUNT( col2 ) AS col2 FROM tab1 WHERE NOT 22 * col0 >= - 86
----
0

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL - COUNT ( col2 ) AS col2 FROM tab1 WHERE NOT 22 * col0 >= - 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT COUNT( * ) * + 55 AS col1 FROM tab2
----
165

skipif mysql # not compatible
query I rowsort label-1246
SELECT COUNT ( * ) * + 55 AS col1 FROM tab2
----
165

query I rowsort
SELECT DISTINCT - col2 * + + col0 + - col2 AS col0 FROM tab1 AS cor0
----
-4992
-5074
-6256

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 15 + - col2 col2 FROM tab0 AS cor0
----
-114
-25
-62

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1251
SELECT ALL + 7 DIV + 39 * COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL + 7 / + 39 * COUNT ( * ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 IS NULL AND NOT NULL IS NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1255
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT - 17 * 66 FROM tab2
----
-1122
-1122
-1122

query I rowsort
SELECT DISTINCT + 38 - 81 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT ALL - COUNT( * ) AS col0 FROM tab0 WHERE NOT - col2 BETWEEN ( - 26 ) AND ( - 72 )
----
-3

skipif mysql # not compatible
query I rowsort label-1258
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 WHERE NOT - col2 BETWEEN ( - 26 ) AND ( - 72 )
----
-3

query I rowsort
SELECT + col2 * - + col2 AS col0 FROM tab0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query II rowsort label-1260
SELECT + COUNT( * ) AS col2, 32 FROM tab1 AS cor0
----
3
32

skipif mysql # not compatible
query II rowsort label-1260
SELECT + COUNT ( * ) AS col2, 32 FROM tab1 AS cor0
----
3
32

query I rowsort
SELECT - + 71 * + - 87 * col2 * - col1 FROM tab2 AS cor0
----
-19025160
-24003822
-7245621

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1262
SELECT DISTINCT 10 / ( col2 ) FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * + col1 NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1262
SELECT DISTINCT 10 / ( col2 ) FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * + col1 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col2 * + 73 AS col1 FROM tab1 AS cor0
----
-4307
-4964
-7008

query II rowsort
SELECT + 48, - 45 AS col2 FROM tab1 cor0
----
48
-45
48
-45
48
-45

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col1 NOT BETWEEN + col1 AND - col0 * ( 30 )
----

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

query I rowsort
SELECT ALL col1 + col2 FROM tab2 AS cor0 WHERE NOT NULL <= - col1 + - 9
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) < - - col2 * + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1269
SELECT ALL - ( + - 69 ) AS col2, - 4 * COUNT( * ) FROM tab0
----
69
-12

skipif mysql # not compatible
query II rowsort label-1269
SELECT ALL - ( + - 69 ) AS col2, - 4 * COUNT ( * ) FROM tab0
----
69
-12

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( - col2 ) IS NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN col2 AND - col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT ALL + 79 + ( - MAX( 54 ) ) AS col1 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-1274
SELECT ALL + 79 + ( - MAX ( 54 ) ) AS col1 FROM tab1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT DISTINCT 93 * COUNT( * ) + 31 AS col0 FROM tab1 WHERE col1 <= + col2
----
310

skipif mysql # not compatible
query I rowsort label-1275
SELECT DISTINCT 93 * COUNT ( * ) + 31 AS col0 FROM tab1 WHERE col1 <= + col2
----
310

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT MIN( + 77 ) FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-1277
SELECT MIN ( + 77 ) FROM tab1
----
77

query I rowsort
SELECT + 44 FROM tab1 WHERE NOT ( + col0 ) > col0
----
44
44
44

query I rowsort
SELECT DISTINCT 20 + - - 71 - + 63 + + + col1 + col0 * ( col0 + + col1 * col0 ) FROM tab0 AS cor0
----
166567
18559
18847

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

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

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

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

query I rowsort
SELECT DISTINCT 63 AS col1 FROM tab1 WHERE NOT - col2 + - 49 BETWEEN + ( col2 ) * col1 AND ( NULL )
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1285
SELECT DISTINCT 3 col0 FROM tab2 WHERE + + 48 - - 92 + + col1 * - col2 <> ( + col2 + 83 * CAST( col0 AS SIGNED ) )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1285
SELECT DISTINCT 3 col0 FROM tab2 WHERE + + 48 - - 92 + + col1 * - col2 <> ( + col2 + 83 * CAST ( col0 AS INTEGER ) )
----
3

query II rowsort
SELECT DISTINCT col2, col0 FROM tab0
----
10
87
47
15
99
97

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

query I rowsort
SELECT 32 AS col1 FROM tab1 WHERE - col0 * col0 <> ( - - ( col2 ) )
----
32
32
32

query I rowsort
SELECT ALL ( - + ( ( - 31 ) ) ) FROM tab1 WHERE NULL <> ( + + col1 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1291
SELECT DISTINCT + 52 FROM tab1 AS cor0 WHERE 71 IN ( + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1291
SELECT DISTINCT + 52 FROM tab1 AS cor0 WHERE 71 IN ( + + CAST ( NULL AS INTEGER ) )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1292
SELECT + COUNT ( ALL - + col1 ) col0 FROM tab1 AS cor0
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT ALL + COUNT( + 39 ) * + 34 - 20 FROM tab0 AS cor0 WHERE NOT col2 + + col2 IS NOT NULL
----
-20

skipif mysql # not compatible
query I rowsort label-1294
SELECT ALL + COUNT ( + 39 ) * + 34 - 20 FROM tab0 AS cor0 WHERE NOT col2 + + col2 IS NOT NULL
----
-20

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

query I rowsort
SELECT col2 - + 4 AS col0 FROM tab0
----
43
6
95

query I rowsort
SELECT - 13 - - ( - - col0 ) AS col1 FROM tab1
----
38
72
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 - - 53 col1 FROM tab2
----
31
31
31

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

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

query I rowsort
SELECT ALL 40 - 59 AS col1 FROM tab2
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT - COUNT( * ) - + + 58 * - - MIN( ALL - col2 ) FROM tab2
----
3361

skipif mysql # not compatible
query I rowsort label-1301
SELECT - COUNT ( * ) - + + 58 * - - MIN ( ALL - col2 ) FROM tab2
----
3361

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

query I rowsort
SELECT 11 * + + 40 AS col1 FROM tab2
----
440
440
440

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 WHERE NOT col2 + + 22 NOT IN ( - col2 / + - 69 + - col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE 36 / - + col2 * - col0 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1306
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE 36 / - + col2 * - col0 <> NULL
----
0

query II rowsort
SELECT ALL + - col1 AS col2, 85 * + col1 FROM tab0 AS cor0
----
-1
85
-21
1785
-81
6885

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

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

query II rowsort
SELECT - 83 AS col2, + 77 - - col1 FROM tab2 AS cor0
----
-83
128
-83
144
-83
154

onlyif mysql # aggregate syntax: 
query II rowsort label-1311
SELECT COUNT( * ) * 37, + 59 AS col1 FROM tab1
----
111
59

skipif mysql # not compatible
query II rowsort label-1311
SELECT COUNT ( * ) * 37, + 59 AS col1 FROM tab1
----
111
59

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

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

query I rowsort
SELECT ALL col2 * + - col1 * + 33 FROM tab1
----
-105468
-44352
-9735

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1314
SELECT ALL COUNT( * ) + + COUNT( * ) DIV + + COUNT( * ) + + 61 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
65

skipif mysql # not compatible
query I rowsort label-1314
SELECT ALL COUNT ( * ) + + COUNT ( * ) / + + COUNT ( * ) + + 61 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
65

query I rowsort
SELECT ( - 42 ) * col1 FROM tab0 AS cor0
----
-3402
-42
-882

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col2, 20 col2 FROM tab0 AS cor0 WHERE NOT - 65 * + 74 / + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 * + col2 AS col1 FROM tab2 cor0
----
1600
3364
529

query I rowsort
SELECT + 43 * + col0 AS col1 FROM tab1 AS cor0
----
2193
3655
3913

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1321
SELECT - col1 / - - col0 AS col0 FROM tab0 AS cor0
----
-5
0
0

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

skipif mysql # not compatible
query I rowsort label-1322
SELECT ALL COUNT ( 64 ) AS col2 FROM tab0 AS cor0
----
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1324
SELECT DISTINCT col1 DIV + - col2 FROM tab1 WHERE col2 * - 30 * + 29 + + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1324
SELECT DISTINCT col1 / + - col2 FROM tab1 WHERE col2 * - 30 * + 29 + + col2 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + 18 * - - 92 FROM tab0
----
1656

query III rowsort
SELECT * FROM tab1 WHERE - col1 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT ALL - COUNT( * ) * 58 AS col0 FROM tab2
----
-174

skipif mysql # not compatible
query I rowsort label-1327
SELECT ALL - COUNT ( * ) * 58 AS col0 FROM tab2
----
-174

onlyif mysql # DIV for integer division: 
query I rowsort label-1328
SELECT DISTINCT col2 + - 55 DIV - - col1 FROM tab2
----
22
40
58

skipif mysql # not compatible
query I rowsort label-1328
SELECT DISTINCT col2 + - 55 / - - col1 FROM tab2
----
22
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1329
SELECT * FROM tab2 WHERE - 48 * + ( - col0 ) * + CAST( - 43 AS SIGNED ) + + + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1329
SELECT * FROM tab2 WHERE - 48 * + ( - col0 ) * + CAST ( - 43 AS INTEGER ) + + + col1 IS NULL
----

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1335
SELECT ALL COUNT( * ) DIV - - 22 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1335
SELECT ALL COUNT ( * ) / - - 22 AS col0 FROM tab0
----
0

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

query I rowsort
SELECT + - col2 * 65 - + col2 + col2 + + - col2 * + - col0 AS col0 FROM tab2 AS cor0
----
-40
-437
580

query I rowsort
SELECT - col0 + - + col2 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT + 98 + col0 * - - col2 AS col0 FROM tab2 AS cor0
----
1156
2658
4448

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 WHERE 58 * + - 76 + + col1 * + - col1 IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT DISTINCT COUNT( 81 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1341
SELECT DISTINCT COUNT ( 81 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT ALL MAX( + 85 ) AS col1 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL MAX ( + 85 ) AS col1 FROM tab2
----
85

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

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

query I rowsort
SELECT DISTINCT col1 * - + col2 FROM tab1
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-1345
SELECT - 4 DIV - 31 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1345
SELECT - 4 / - 31 FROM tab1
----
0
0
0

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT - + 56 * + + col1 * + col0 + - - 88 AS col1 FROM tab2 AS cor0
----
-131288
-275880
-281312

onlyif mysql # aggregate syntax: 
query II rowsort label-1353
SELECT DISTINCT 77, + MAX( ALL + 85 ) col1 FROM tab2 cor0
----
77
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1353
SELECT DISTINCT 77, + MAX ( ALL + 85 ) col1 FROM tab2 cor0
----
77
85

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

query III rowsort
SELECT DISTINCT - 35 AS col2, - col0 AS col0, - - 2 FROM tab2 cor0
----
9 values hashing to 72a044f7e8e13cd374964cc134eacd24

query I rowsort
SELECT ALL col0 * 9 FROM tab0
----
135
783
873

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT DISTINCT MIN( DISTINCT col1 ) col2 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1357
SELECT DISTINCT MIN ( DISTINCT col1 ) col2 FROM tab0
----
1

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

query I rowsort
SELECT - 10 * - col0 FROM tab0
----
150
870
970

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1360
SELECT + + 35 AS col0 FROM tab2 WHERE ( NOT col1 BETWEEN NULL AND CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-1360
SELECT + + 35 AS col0 FROM tab2 WHERE ( NOT col1 BETWEEN NULL AND CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT + 76 * 22 FROM tab0
----
1672
1672
1672

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1363
SELECT - col2 DIV + 19 col0, ( + ( - 75 ) ) + - - col2 FROM tab0
----
-2
-28
-5
24
0
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1363
SELECT - col2 / + 19 col0, ( + ( - 75 ) ) + - - col2 FROM tab0
----
-2
-28
-5
24
0
-65

query I rowsort
SELECT 61 * 56 * col1 * + 61 FROM tab2 WHERE + - ( + col0 ) IS NOT NULL
----
10627176
13961192
16044952

query II rowsort
SELECT DISTINCT col0 + 50 AS col0, ( + col1 ) + + col2 AS col0 FROM tab0
----
137
31
147
100
65
128

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT DISTINCT + 94 * + COUNT( * ) FROM tab2 cor0
----
282

skipif mysql # not compatible
query I rowsort label-1367
SELECT DISTINCT + 94 * + COUNT ( * ) FROM tab2 cor0
----
282

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT 72 + - - COUNT( * ) + - 22 * + 55 AS col2 FROM tab0 AS cor0
----
-1135

skipif mysql # not compatible
query I rowsort label-1369
SELECT 72 + - - COUNT ( * ) + - 22 * + 55 AS col2 FROM tab0 AS cor0
----
-1135

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

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

query I rowsort
SELECT col1 + - - 94 FROM tab1
----
108
141
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT ALL - COUNT( ALL + + col1 ) * + COUNT( * ) + - 82 col2 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1374
SELECT ALL - COUNT ( ALL + + col1 ) * + COUNT ( * ) + - 82 col2 FROM tab1
----
-91

query I rowsort
SELECT ALL + - col0 + col1 AS col2 FROM tab2 cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-1376
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND + col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1377
SELECT - col0 DIV + - col2 FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-1377
SELECT - col0 / + - col2 FROM tab0 AS cor0
----
0
0
8

onlyif mysql # DIV for integer division: 
query I rowsort label-1378
SELECT DISTINCT 63 DIV + - col0 col1 FROM tab0 AS cor0
----
-4
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 71 AS col0, - 29 + - col0 * + + col1 col0 FROM tab2 AS cor0
----
-71
-2375
-71
-4957
-71
-5054

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 66 / col2 * + 99 NOT BETWEEN + 41 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT MAX( ALL 97 ) FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-1381
SELECT MAX ( ALL 97 ) FROM tab1
----
97

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1382
SELECT DISTINCT - SUM ( - + ( + col2 ) ) col0 FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT SUM( - + 72 ) AS col1 FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-1383
SELECT SUM ( - + 72 ) AS col1 FROM tab0
----
-216

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ( col2 ), - col0 AS col2 FROM tab1
----
59
-85
68
-91
96
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1386
SELECT DISTINCT - col0 + - col2 + CAST( - - 9 AS SIGNED ) * + - 31 FROM tab0 WHERE NOT + CAST( + col0 AS SIGNED ) + 22 IN ( - col2 ) OR col0 IS NULL
----
-341
-376
-475

skipif mysql # not compatible
query I rowsort label-1386
SELECT DISTINCT - col0 + - col2 + CAST ( - - 9 AS INTEGER ) * + - 31 FROM tab0 WHERE NOT + CAST ( + col0 AS INTEGER ) + 22 IN ( - col2 ) OR col0 IS NULL
----
-341
-376
-475

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1390
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 WHERE NULL NOT IN ( + 99 * - 41 + ( - 41 ), col1, - col1 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT 86 + - COUNT( * ) col1 FROM tab0, tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1392
SELECT 86 + - COUNT ( * ) col1 FROM tab0, tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT DISTINCT + COUNT( * ) * - 31 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-279

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT + COUNT ( * ) * - 31 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-279

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

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

query I rowsort
SELECT + col1 * + + 92 FROM tab0 AS cor0
----
1932
7452
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT MIN( ALL + - col1 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-1396
SELECT MIN ( ALL + - col1 ) AS col0 FROM tab2 AS cor0
----
-77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT ALL ( - COUNT( * ) ) + - - 38 col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
35

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

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

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

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

query I rowsort
SELECT DISTINCT - - 64 AS col2 FROM tab2 cor0
----
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT DISTINCT COUNT( * ) * + 81 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-1403
SELECT DISTINCT COUNT ( * ) * + 81 FROM tab0
----
243

query I rowsort
SELECT + 13 * ( + - col2 ) - - + ( col2 ) FROM tab0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1405
SELECT - 88 / col0 + + ( + + ( CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1405
SELECT - 88 / col0 + + ( + + ( CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 25 + col0 + - col1 AS col2 FROM tab2
----
12
20
33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1407
SELECT CAST( NULL AS DECIMAL ) * - 78 + SUM( col1 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1407
SELECT CAST ( NULL AS REAL ) * - 78 + SUM ( col1 ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - - col1 + ( + 97 ) FROM tab2 AS cor0
----
148
164
174

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

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

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

query I rowsort
SELECT - col2 * - col1 FROM tab0 WHERE NULL IS NULL
----
210
3807
99

query I rowsort
SELECT 30 - - + 37 + col1 + - 30 * col1 * + col1 FROM tab2
----
-134536
-177726
-77912

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

query I rowsort
SELECT DISTINCT 75 * + - 54 + 29 FROM tab0 AS cor0
----
-4021

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

query I rowsort
SELECT ALL + col2 * - - 95 - + + col0 * + - col0 * + 93 AS col2 FROM tab2 AS cor0
----
198973
384728
528635

query I rowsort
SELECT DISTINCT + col1 * - 78 FROM tab2 AS cor0
----
-3978
-5226
-6006

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 + col1 NOT BETWEEN NULL AND + 5
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-1420
SELECT ALL + 43 DIV + col1, - col2 AS col2 FROM tab1 AS cor0
----
0
-68
3
-96
8
-59

skipif mysql # not compatible
query II rowsort label-1420
SELECT ALL + 43 / + col1, - col2 AS col2 FROM tab1 AS cor0
----
0
-68
3
-96
8
-59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 BETWEEN NULL AND NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1423
SELECT - COUNT ( ALL + - col0 ) * + 75 FROM tab1
----
-225

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

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

query I rowsort
SELECT - col2 * - - col2 FROM tab0
----
-100
-2209
-9801

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1426
SELECT ALL col2, CAST ( NULL AS INTEGER ) col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1428
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + - col0 + + col0 < + + col2
----

skipif mysql # not compatible
query III rowsort label-1428
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + - col0 + + col0 < + + col2
----

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

skipif mysql # not compatible
query I rowsort label-1429
SELECT DISTINCT + col0 / - + 63 AS col1 FROM tab2 cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1430
SELECT 40 DIV - 52 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1430
SELECT 40 / - 52 AS col1 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT DISTINCT 23 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
23

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

query I rowsort
SELECT ALL + 8 + + col1 AS col2 FROM tab1 cor0
----
13
22
55

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

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

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

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

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

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

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

query I rowsort
SELECT ( - + col1 ) FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL - 30 * - + col2 AS col1 FROM tab0 AS cor0
----
1410
2970
300

query I rowsort
SELECT ( + col2 ) * - col1 - - - col1 * - 23 AS col2 FROM tab0
----
-1944
-76
273

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT + MIN( DISTINCT - col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-1442
SELECT + MIN ( DISTINCT - col0 ) FROM tab0
----
-97

query I rowsort
SELECT DISTINCT + 13 AS col1 FROM tab2
----
13

onlyif mysql # DIV for integer division: 
query II rowsort label-1444
SELECT col2 DIV ( + - 93 ), col2 AS col1 FROM tab0
----
-1
99
0
10
0
47

skipif mysql # not compatible
query II rowsort label-1444
SELECT col2 / ( + - 93 ), col2 AS col1 FROM tab0
----
-1
99
0
10
0
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT MAX( + 40 ) FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-1445
SELECT MAX ( + 40 ) FROM tab2
----
40

query I rowsort
SELECT DISTINCT - 73 + - 23 - 79 AS col2 FROM tab0 WHERE NOT + col2 IS NULL
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT 46 - + COUNT( * ) FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-1447
SELECT 46 - + COUNT ( * ) FROM tab0
----
43

query I rowsort
SELECT DISTINCT 5 + col0 - - col1 FROM tab0 cor0
----
101
103
113

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

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE col2 * + - 5 IS NOT NULL
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col2 = - ( - - 78 )
----

query I rowsort
SELECT 99 * 21 FROM tab0
----
2079
2079
2079

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT DISTINCT - 81 + + - COUNT( DISTINCT - + 60 ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT NULL IS NOT NULL )
----
-82

skipif mysql # not compatible
query I rowsort label-1453
SELECT DISTINCT - 81 + + - COUNT ( DISTINCT - + 60 ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT NULL IS NOT NULL )
----
-82

query I rowsort
SELECT ALL - 44 * 9 + - col0 FROM tab2 AS cor0
----
-442
-460
-471

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

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

query I rowsort
SELECT + col0 * + 13 FROM tab0 AS cor0
----
1131
1261
195

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT ALL + COUNT( * ) * ( - - 97 ) FROM tab1 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL + COUNT ( * ) * ( - - 97 ) FROM tab1 AS cor0
----
291

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1460
SELECT DISTINCT MAX( 27 ) DIV COUNT( * ) DIV - COUNT( + col1 ) AS col0 FROM tab0 cor0
----
-3

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1461
SELECT ALL + COUNT( * ) DIV MIN( ALL - col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1461
SELECT ALL + COUNT ( * ) / MIN ( ALL - col0 ) FROM tab0 AS cor0
----
0

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

skipif mysql # not compatible
query I rowsort label-1462
SELECT + MAX ( - col1 ) AS col1 FROM tab2
----
-51

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

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

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

query I rowsort
SELECT ALL ( - 39 ) * - + col2 * - col0 FROM tab1
----
-190944
-195585
-241332

query II rowsort
SELECT DISTINCT - col1 + - col0, + col1 AS col2 FROM tab0 AS cor0
----
-108
21
-96
81
-98
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1467
SELECT DISTINCT - - COUNT( + 0 ) * + COUNT( * ) DIV + 43 + + - 50 FROM tab2 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-1467
SELECT DISTINCT - - COUNT ( + 0 ) * + COUNT ( * ) / + 43 + + - 50 FROM tab2 AS cor0
----
-50

query I rowsort
SELECT col2 * col0 FROM tab0 cor0 WHERE NOT - 61 + col0 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1469
SELECT - col0 / col0 / col2 / + col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1470
SELECT - 54 DIV + + 34 + col2 AS col2 FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-1470
SELECT - 54 / + + 34 + col2 AS col2 FROM tab0 AS cor0
----
46
9
98

query I rowsort
SELECT + 73 * - col2 AS col2 FROM tab2
----
-1679
-2920
-4234

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT ALL - 88 * - + 14 - + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
1223

skipif mysql # not compatible
query I rowsort label-1472
SELECT ALL - 88 * - + 14 - + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
1223

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT - 33 * COUNT( * ) + - COUNT( * ) - + ( - 67 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-239

skipif mysql # not compatible
query I rowsort label-1473
SELECT - 33 * COUNT ( * ) + - COUNT ( * ) - + ( - 67 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-239

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

query I rowsort
SELECT ALL - col2 + + 53 AS col0 FROM tab0 AS cor0
----
-46
43
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1476
SELECT DISTINCT + 21 + - CAST( 76 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-1476
SELECT DISTINCT + 21 + - CAST ( 76 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-55

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1478
SELECT - col0 + + col2 DIV + + 37 FROM tab0 AS cor0
----
-14
-87
-95

skipif mysql # not compatible
query I rowsort label-1478
SELECT - col0 + + col2 / + + 37 FROM tab0 AS cor0
----
-14
-87
-95

query I rowsort
SELECT DISTINCT + col2 + ( + 25 ) FROM tab1
----
121
84
93

query I rowsort
SELECT ALL 32 AS col0 FROM tab1
----
32
32
32

onlyif mysql # DIV for integer division: 
query II rowsort label-1481
SELECT col2 DIV - 33 AS col2, col0 - + col1 + + 29 AS col1 FROM tab0
----
-1
-37
-3
125
0
95

skipif mysql # not compatible
query II rowsort label-1481
SELECT col2 / - 33 AS col2, col0 - + col1 + + 29 AS col1 FROM tab0
----
-1
-37
-3
125
0
95

onlyif mysql # DIV for integer division: 
query I rowsort label-1482
SELECT col0 * + col0 * col2 + col0 DIV + 64 AS col0 FROM tab2 AS cor0
----
163841
326251
48668

skipif mysql # not compatible
query I rowsort label-1482
SELECT col0 * + col0 * col2 + col0 / + 64 AS col0 FROM tab2 AS cor0
----
163841
326251
48668

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT MAX( - col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-1486
SELECT MAX ( - col2 ) FROM tab1
----
-59

query II rowsort
SELECT - col0 AS col2, 35 * 19 FROM tab1 AS cor0
----
-51
665
-85
665
-91
665

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

query I rowsort
SELECT DISTINCT 53 FROM tab1 AS cor0 WHERE NULL < - 16 / 46 * + col0
----

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT MAX( ALL 76 ) FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-1495
SELECT MAX ( ALL 76 ) FROM tab1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT MIN( DISTINCT - col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-1496
SELECT MIN ( DISTINCT - col1 ) FROM tab2
----
-77

query II rowsort
SELECT col1, + 22 + - + col0 FROM tab1
----
14
-29
47
-69
5
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT COUNT( * ) FROM tab1 WHERE NOT + - col2 >= 62
----
3

skipif mysql # not compatible
query I rowsort label-1498
SELECT COUNT ( * ) FROM tab1 WHERE NOT + - col2 >= 62
----
3

query I rowsort
SELECT 6 * - 26 AS col1 FROM tab1
----
-156
-156
-156

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT DISTINCT + 59 * COUNT( ALL + 96 ) FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-1501
SELECT DISTINCT + 59 * COUNT ( ALL + 96 ) FROM tab0
----
177

onlyif mysql # aggregate syntax: 
query II rowsort label-1502
SELECT ALL MIN( col2 ) AS col0, COUNT( * ) * 91 FROM tab2
----
23
273

skipif mysql # not compatible
query II rowsort label-1502
SELECT ALL MIN ( col2 ) AS col0, COUNT ( * ) * 91 FROM tab2
----
23
273

query I rowsort
SELECT col2 * - - ( - col1 ) AS col0 FROM tab1
----
-1344
-295
-3196

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

query I rowsort
SELECT ALL col1 * + 84 * 99 FROM tab1 AS cor0
----
116424
390852
41580

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

query I rowsort
SELECT ALL + 35 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1509
SELECT + col1 + - CAST( 12 AS SIGNED ) AS col2 FROM tab0
----
-11
69
9

skipif mysql # not compatible
query I rowsort label-1509
SELECT + col1 + - CAST ( 12 AS INTEGER ) AS col2 FROM tab0
----
-11
69
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT COUNT( * ) + - SUM( - col0 ) AS col2 FROM tab2
----
188

skipif mysql # not compatible
query I rowsort label-1511
SELECT COUNT ( * ) + - SUM ( - col0 ) AS col2 FROM tab2
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) >= - + 66
----
0

skipif mysql # not compatible
query I rowsort label-1512
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) >= - + 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT - COUNT( * ) + + MIN( col1 ) AS col1 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-1513
SELECT - COUNT ( * ) + + MIN ( col1 ) AS col1 FROM tab1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1514
SELECT DISTINCT - + CAST( + col2 AS SIGNED ) + - 58 AS col2 FROM tab2 AS cor0 WHERE - 57 IS NOT NULL
----
-116
-81
-98

skipif mysql # not compatible
query I rowsort label-1514
SELECT DISTINCT - + CAST ( + col2 AS INTEGER ) + - 58 AS col2 FROM tab2 AS cor0 WHERE - 57 IS NOT NULL
----
-116
-81
-98

query I rowsort
SELECT ALL + - col0 * - col0 + + col1 AS col2 FROM tab2 AS cor0
----
2167
4173
5692

query I rowsort
SELECT DISTINCT - col0 + - 68 * col2 AS col2 FROM tab1 AS cor0
----
-4097
-4715
-6579

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

query I rowsort
SELECT DISTINCT - 45 + - col1 FROM tab1 AS cor0
----
-50
-59
-92

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

query I rowsort
SELECT ALL col1 * + + col1 * + - col1 - + + 22 FROM tab0 cor0
----
-23
-531463
-9283

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

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

query I rowsort
SELECT DISTINCT col0 - - col1 * + ( + 39 ) + col1 FROM tab2 AS cor0
----
2086
2755
3144

onlyif mysql # DIV for integer division: 
query I rowsort label-1523
SELECT + - col1 DIV - - col0 * - 48 * - col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1523
SELECT + - col1 / - - col0 * - 48 * - col2 / - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-1524
SELECT CAST ( NULL AS INTEGER ) - 36 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 56 - col2 * col0 + col0 * + 20 FROM tab0
----
-461
-7719
814

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1528
SELECT + 45, COUNT( ALL + - col1 ) + + 98 AS col1 FROM tab2 AS cor0
----
45
101

skipif mysql # not compatible
query II rowsort label-1528
SELECT + 45, COUNT ( ALL + - col1 ) + + 98 AS col1 FROM tab2 AS cor0
----
45
101

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT - + col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1530
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT - + col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT ALL - ( - COUNT( * ) ) * 98 col1 FROM tab2 cor0
----
294

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1531
SELECT ALL - ( - COUNT ( * ) ) * 98 col1 FROM tab2 cor0
----
294

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 21 * + col1 col2, 28 FROM tab1 AS cor0
----
-105
28
-294
28
-987
28

onlyif mysql # DIV for integer division: 
query I rowsort label-1534
SELECT + col0 DIV + + ( + - col0 ) AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1534
SELECT + col0 / + + ( + - col0 ) AS col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - + 88 AS col0 FROM tab2 AS cor0
----
-88
-88
-88

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL BETWEEN 88 * - col0 AND - 56
----

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

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

query I rowsort
SELECT ALL col0 * col0 * + col2 AS col2 FROM tab0
----
10575
75690
931491

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT COUNT( 21 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1539
SELECT COUNT ( 21 ) FROM tab0
----
3

query I rowsort
SELECT ALL + 37 + + col2 + col2 * - - col0 FROM tab1
----
5029
5111
6293

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1541
SELECT ALL - col2 * - + col2 + + CAST( - + 98 AS DECIMAL ) FROM tab0 WHERE - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1541
SELECT ALL - col2 * - + col2 + + CAST ( - + 98 AS REAL ) FROM tab0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT 5 * - MIN( - - col2 ) + + 49 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-1542
SELECT 5 * - MIN ( - - col2 ) + + 49 FROM tab2
----
-66

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 81 + col0 col2 FROM tab1 AS cor0
----
-4080
-6800
-7280

query I rowsort
SELECT DISTINCT - 97 * - col2 + + 46 FROM tab0 AS cor0
----
1016
4605
9649

query I rowsort
SELECT - - 45 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT ALL col0 * + + 3 FROM tab1
----
153
255
273

query I rowsort
SELECT 61 * + col0 - 54 FROM tab1
----
3057
5131
5497

query I rowsort
SELECT ALL col0 + - - col2 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT ALL 21 * + col2 * - col2 + + 13 - - - col2 + + col2 FROM tab0 AS cor0
----
-205808
-2087
-46376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 + col0 - col0 + col0 col1 FROM tab1 AS cor0
----
-28
12
6

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + + 61 col2 FROM tab0 AS cor0 WHERE ( NULL ) >= - - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 79 IS NULL )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 74 <> NULL
----

query I rowsort
SELECT + col0 + + 51 FROM tab1 AS cor0
----
102
136
142

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

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

query I rowsort
SELECT ALL + 92 - 52 AS col1 FROM tab0
----
40
40
40

query II rowsort
SELECT DISTINCT + col0 * - col1 AS col2, col0 FROM tab1
----
-425
85
-4277
91
-714
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + + col0 ) col1 FROM tab2 AS cor0
----
-46
-64
-75

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT ALL + + MAX( 97 ) * - + 70 col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-6790

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1564
SELECT ALL + + MAX ( 97 ) * - + 70 col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-6790

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

skipif mysql # not compatible
query I rowsort label-1565
SELECT COUNT ( * ) AS col1 FROM tab2, tab1 AS cor0
----
9

query II rowsort
SELECT DISTINCT + col2, + 26 FROM tab1
----
59
26
68
26
96
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1567
SELECT ALL - 77 * COUNT( * ) FROM tab2 WHERE - 89 + - CAST( + - 44 AS SIGNED ) / - ( - + col0 ) + + col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1567
SELECT ALL - 77 * COUNT ( * ) FROM tab2 WHERE - 89 + - CAST ( + - 44 AS INTEGER ) / - ( - + col0 ) + + col2 <> NULL
----
0

query I rowsort
SELECT ALL - 81 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 55 col0, - col1 + - col2 FROM tab0
----
-55
-100
-55
-128
-55
-31

query I rowsort
SELECT + col0 * - 50 AS col1 FROM tab2
----
-2300
-3200
-3750

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 > NULL
----

query I rowsort
SELECT ALL - ( 94 ) FROM tab0 AS cor0
----
-94
-94
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1574
SELECT DISTINCT + - col0, - col1 * + ( + - CAST( NULL AS SIGNED ) ) * + 16 AS col1 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-1574
SELECT DISTINCT + - col0, - col1 * + ( + - CAST ( NULL AS INTEGER ) ) * + 16 AS col1 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT DISTINCT - COUNT( ALL - - col0 ) * + AVG ( col2 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1575
SELECT DISTINCT - COUNT ( ALL - - col0 ) * + AVG ( col2 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1
----
NULL

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT ALL MAX( - - 56 ) AS col2 FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-1580
SELECT ALL MAX ( - - 56 ) AS col2 FROM tab0
----
56

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

query II rowsort
SELECT + + col1 AS col0, - 10 FROM tab2 WHERE - - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 6 ) + + + col0 col0 FROM tab1
----
45
79
85

query III rowsort
SELECT * FROM tab2 WHERE NULL <= ( - - col1 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1586
SELECT ALL - CAST( col2 AS SIGNED ) * 18 AS col1 FROM tab2 cor0
----
-1044
-414
-720

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL - CAST ( col2 AS INTEGER ) * 18 AS col1 FROM tab2 cor0
----
-1044
-414
-720

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

query II rowsort
SELECT ALL - col1 + col0, col1 AS col2 FROM tab2 AS cor0
----
-13
77
-5
51
8
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1589
SELECT DISTINCT col0 * CAST( - - col2 AS SIGNED ) + 56, + col2 FROM tab1 AS cor0
----
4952
96
5071
59
6244
68

skipif mysql # not compatible
query II rowsort label-1589
SELECT DISTINCT col0 * CAST ( - - col2 AS INTEGER ) + 56, + col2 FROM tab1 AS cor0
----
4952
96
5071
59
6244
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT - COUNT( * ) + - + MIN( col2 ) * COUNT( * ) FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-1590
SELECT - COUNT ( * ) + - + MIN ( col2 ) * COUNT ( * ) FROM tab0
----
-33

query I rowsort
SELECT ALL + 95 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1593
SELECT - + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE 49 = - + CAST ( NULL AS INTEGER )
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col0 * + 70 - + col0 < + + ( + col1 )
----

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

query I rowsort
SELECT - - col2 - 55 - - 62 FROM tab2 AS cor0
----
30
47
65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT DISTINCT + COUNT( * ) + - MIN( DISTINCT col0 ) + - 14 FROM tab2 cor0
----
-57

skipif mysql # not compatible
query I rowsort label-1598
SELECT DISTINCT + COUNT ( * ) + - MIN ( DISTINCT col0 ) + - 14 FROM tab2 cor0
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-1599
SELECT ALL - col1 DIV 3 - + col2 AS col0 FROM tab1 AS cor0
----
-100
-60
-83

skipif mysql # not compatible
query I rowsort label-1599
SELECT ALL - col1 / 3 - + col2 AS col0 FROM tab1 AS cor0
----
-100
-60
-83

query I rowsort
SELECT - 38 - - col0 FROM tab2 AS cor0
----
26
37
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1601
SELECT - MIN( ALL - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1601
SELECT - MIN ( ALL - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1602
SELECT ALL - col1 DIV ( - col0 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1602
SELECT ALL - col1 / ( - col0 ) FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * + + col1 AS col1 FROM tab1
----
1344
295
3196

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, - col2 * + col0 FROM tab0
----
-10
-870
-47
-705
-99
-9603

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT - SUM( - 70 ) FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-1608
SELECT - SUM ( - 70 ) FROM tab2
----
210

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE NOT col0 NOT BETWEEN NULL AND + 41
----

query I rowsort
SELECT DISTINCT - ( 49 ) * 53 AS col1 FROM tab0 AS cor0
----
-2597

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT ALL COUNT( 86 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1611
SELECT ALL COUNT ( 86 ) AS col2 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - ( - + col1 ) col0 FROM tab0 AS cor0
----
-1
-441
-6561

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

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

query I rowsort
SELECT + - col0 * + col0 * + - col1 FROM tab0 AS cor0
----
158949
18225
9409

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

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

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

skipif mysql # not compatible
query I rowsort label-1616
SELECT + - col2 / - col2 AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + 79 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1618
SELECT DISTINCT - - COUNT( * ) + ( 99 ) DIV + COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
36

skipif mysql # not compatible
query I rowsort label-1618
SELECT DISTINCT - - COUNT ( * ) + ( 99 ) / + COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1619
SELECT ALL SUM( - CAST( NULL AS SIGNED ) ) * - MIN( ALL - col0 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1619
SELECT ALL SUM ( - CAST ( NULL AS INTEGER ) ) * - MIN ( ALL - col0 ) AS col1 FROM tab1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT ALL MIN( ALL + col2 ) FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL MIN ( ALL + col2 ) FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1622
SELECT DISTINCT + ( COUNT( * ) ) AS col1, COUNT( * ) * 14 FROM tab2 AS cor0
----
3
42

skipif mysql # not compatible
query II rowsort label-1622
SELECT DISTINCT + ( COUNT ( * ) ) AS col1, COUNT ( * ) * 14 FROM tab2 AS cor0
----
3
42

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

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

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

query I rowsort
SELECT - - 27 * + col1 AS col2 FROM tab0 cor0
----
2187
27
567

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT + SUM( + 9 ) * + 71 FROM tab1 AS cor0
----
1917

skipif mysql # not compatible
query I rowsort label-1627
SELECT + SUM ( + 9 ) * + 71 FROM tab1 AS cor0
----
1917

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT - 21 + - COUNT( - col2 ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-1631
SELECT - 21 + - COUNT ( - col2 ) FROM tab1
----
-24

onlyif mysql # DIV for integer division: 
query II rowsort label-1632
SELECT + col0 DIV - col1 + - + 67, col0 * + - 39 AS col1 FROM tab2
----
-67
-1794
-67
-2496
-68
-2925

skipif mysql # not compatible
query II rowsort label-1632
SELECT + col0 / - col1 + - + 67, col0 * + - 39 AS col1 FROM tab2
----
-67
-1794
-67
-2496
-68
-2925

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE - 97 NOT BETWEEN + col2 * 30 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 + + col2 col2 FROM tab2 AS cor0
----
113
130
148

query I rowsort
SELECT DISTINCT - col1 + + 18 AS col0 FROM tab0 AS cor0
----
-3
-63
17

query I rowsort
SELECT + 80 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0 WHERE 85 = + ( + + 16 )
----

query I rowsort
SELECT ALL - 67 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 * - 13 * - 12 * + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT MAX( DISTINCT + col0 ) - COUNT( * ) col0 FROM tab0
----
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1644
SELECT MAX ( DISTINCT + col0 ) - COUNT ( * ) col0 FROM tab0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT + COUNT( * ) + 12 + - - SUM( DISTINCT - - col1 ) + - 38 * + + SUM( + col2 ) FROM tab2 AS cor0
----
-4388

skipif mysql # not compatible
query I rowsort label-1645
SELECT + COUNT ( * ) + 12 + - - SUM ( DISTINCT - - col1 ) + - 38 * + + SUM ( + col2 ) FROM tab2 AS cor0
----
-4388

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1648
SELECT ALL COUNT( * ) DIV - MIN( + + 83 ) * + 59 + + - 82 AS col2 FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL COUNT ( * ) / - MIN ( + + 83 ) * + 59 + + - 82 AS col2 FROM tab2 AS cor0
----
-82

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1651
SELECT ALL - 49 DIV + 32 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL - 49 / + 32 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 68 AS col2 FROM tab2 cor0
----
-68

query I rowsort
SELECT col0 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT ALL + SUM( - - col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL + SUM ( - - col1 ) AS col0 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query II rowsort label-1656
SELECT DISTINCT - COUNT( * ) AS col1, 98 AS col2 FROM tab1
----
-3
98

skipif mysql # not compatible
query II rowsort label-1656
SELECT DISTINCT - COUNT ( * ) AS col1, 98 AS col2 FROM tab1
----
-3
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 8 * 97 col1 FROM tab0
----
776
776
776

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT ALL MIN( - - col0 ) * 70 * 64 FROM tab2
----
206080

skipif mysql # not compatible
query I rowsort label-1659
SELECT ALL MIN ( - - col0 ) * 70 * 64 FROM tab2
----
206080

query II rowsort
SELECT ALL - col2 * col1 * 41, - col0 AS col2 FROM tab2
----
-126280
-64
-159326
-75
-48093
-46

query I rowsort
SELECT 38 * - col0 AS col0 FROM tab1
----
-1938
-3230
-3458

query I rowsort
SELECT DISTINCT + 54 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
54

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL IN ( 39, + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 57 col1, col1 FROM tab1 AS cor0
----
-57
14
-57
47
-57
5

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

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

query I rowsort
SELECT ALL - + 73 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + - col0 col2 FROM tab0
----
-66
-96
66

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

skipif mysql # not compatible
query I rowsort label-1670
SELECT ALL 32 / COUNT ( * ) FROM tab2
----
10

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

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

query I rowsort
SELECT - AVG ( - + col0 ) FROM tab2 AS cor0 WHERE NOT - 79 * + col2 NOT BETWEEN + col0 AND 81
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 + - + col2 col0 FROM tab0 AS cor0
----
-4
-41
-93

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > - 66
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1678
SELECT - - 51 DIV - col0 + + - 98 AS col0 FROM tab0 AS cor0
----
-101
-98
-98

skipif mysql # not compatible
query I rowsort label-1678
SELECT - - 51 / - col0 + + - 98 AS col0 FROM tab0 AS cor0
----
-101
-98
-98

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < col0 + col1 - - col2 / - 47 / - 37
----

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

query I rowsort
SELECT + 38 * + 50 * + col2 FROM tab1
----
112100
129200
182400

query II rowsort
SELECT ALL - 5 + + col0 AS col1, + ( col2 ) - + - 66 AS col2 FROM tab0
----
10
113
82
76
92
165

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT ALL - COUNT( * ) + - COUNT( + col2 ) AS col0 FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL - COUNT ( * ) + - COUNT ( + col2 ) AS col0 FROM tab2 cor0
----
-6

query I rowsort
SELECT DISTINCT col2 - - - 22 + - ( col2 ) * - ( - + 7 ) AS col0 FROM tab0 AS cor0
----
-304
-616
-82

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

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

query I rowsort
SELECT - 4 * - col2 * col2 AS col0 FROM tab2
----
13456
2116
6400

query I rowsort
SELECT + 70 * - + col0 FROM tab0
----
-1050
-6090
-6790

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT MIN( 36 ) FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-1690
SELECT MIN ( 36 ) FROM tab2 AS cor0
----
36

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 51 AS col1, + col1 + - col0 col2 FROM tab2 cor0
----
51
-8
51
13
51
5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1694
SELECT DISTINCT CAST( - + col1 AS SIGNED ) AS col0, 16 AS col2 FROM tab0
----
-1
16
-21
16
-81
16

skipif mysql # not compatible
query II rowsort label-1694
SELECT DISTINCT CAST ( - + col1 AS INTEGER ) AS col0, 16 AS col2 FROM tab0
----
-1
16
-21
16
-81
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT ALL - 54 * MAX( DISTINCT + 53 ) AS col2 FROM tab1
----
-2862

skipif mysql # not compatible
query I rowsort label-1695
SELECT ALL - 54 * MAX ( DISTINCT + 53 ) AS col2 FROM tab1
----
-2862

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT - col2 - col1 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT 79 AS col2 FROM tab1
----
79

query I rowsort
SELECT DISTINCT + - 12 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-12

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1702
SELECT + 58 AS col1, + col2 DIV col2 FROM tab0 AS cor0
----
58
1
58
1
58
1

skipif mysql # not compatible
query II rowsort label-1702
SELECT + 58 AS col1, + col2 / col2 FROM tab0 AS cor0
----
58
1
58
1
58
1

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

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

query I rowsort
SELECT 98 + - ( + - 50 ) * - + col0 FROM tab0 AS cor0
----
-4252
-4752
-652

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

query I rowsort
SELECT DISTINCT + 83 * - + col1 FROM tab0 AS cor0
----
-1743
-6723
-83

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1708
SELECT + col0 + CAST( col2 AS SIGNED ) * col1 FROM tab0 AS cor0
----
196
297
3822

skipif mysql # not compatible
query I rowsort label-1708
SELECT + col0 + CAST ( col2 AS INTEGER ) * col1 FROM tab0 AS cor0
----
196
297
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT COUNT( * ) + - 15 * + COUNT( * ) AS col1 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-1709
SELECT COUNT ( * ) + - 15 * + COUNT ( * ) AS col1 FROM tab1
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1710
SELECT - 47 AS col0 FROM tab2 WHERE col0 + - + col1 * col0 + + - CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-1710
SELECT - 47 AS col0 FROM tab2 WHERE col0 + - + col1 * col0 + + - CAST ( NULL AS INTEGER ) = NULL
----

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

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

query II rowsort
SELECT ALL 0 * - + 76 AS col2, col1 FROM tab2
----
0
51
0
67
0
77

query III rowsort
SELECT * FROM tab0 WHERE - 22 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1715
SELECT DISTINCT ( + - col0 ) / col1 / CAST( NULL AS SIGNED ) * 21 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1715
SELECT DISTINCT ( + - col0 ) / col1 / CAST ( NULL AS INTEGER ) * 21 FROM tab2
----
NULL

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 + col0 BETWEEN - + 45 * + 34 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1718
SELECT + - 94 - + CAST( + col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
-115
-175
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1718
SELECT + - 94 - + CAST ( + col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
-115
-175
-95

query I rowsort
SELECT + 21 - + col1 FROM tab2
----
-30
-46
-56

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 80 IS NOT NULL
----

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

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL > 98
----

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

query I rowsort
SELECT + col1 * 94 + - 62 AS col2 FROM tab2 AS cor0
----
4732
6236
7176

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND 38
----
0

skipif mysql # not compatible
query I rowsort label-1728
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND 38
----
0

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

query II rowsort
SELECT col0 + + - col0 * + col0, col0 + - col2 AS col1 FROM tab2 WHERE NOT - 71 / col1 + 74 + + 6 <= NULL
----

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 31 col1, col2 + + 87 + - col0 col0 FROM tab1
----
31
132
31
61
31
64

query I rowsort
SELECT ALL - 40 AS col2 FROM tab1
----
-40
-40
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 20 col1 FROM tab0 WHERE NOT - col1 + col1 IS NULL
----
-20
-20
-20

query I rowsort
SELECT - 35 * + + col2 AS col1 FROM tab1
----
-2065
-2380
-3360

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT ALL + + MAX( 62 ) AS col0 FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-1739
SELECT ALL + + MAX ( 62 ) AS col0 FROM tab2 AS cor0
----
62

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1740
SELECT DISTINCT + MIN ( - col2 ) col1 FROM tab1 AS cor0
----
-96

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 16 NOT IN ( col2 / col1 )
----

query I rowsort
SELECT col1 * 89 AS col2 FROM tab1
----
1246
4183
445

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1745
SELECT * FROM tab1 WHERE - ( 84 ) >= + CAST( 5 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1745
SELECT * FROM tab1 WHERE - ( 84 ) >= + CAST ( 5 AS INTEGER )
----

query I rowsort
SELECT col2 * + 94 AS col2 FROM tab1
----
5546
6392
9024

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + 22 col2 FROM tab0
----
-65
-75
7

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

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

query I rowsort
SELECT ALL + col2 * - col1 + col1 AS col0 FROM tab0
----
-189
-3726
-98

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

query I rowsort
SELECT + 89 + 52 AS col1 FROM tab1
----
141
141
141

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT - 90 * COUNT( * ) AS col2 FROM tab1
----
-270

skipif mysql # not compatible
query I rowsort label-1753
SELECT - 90 * COUNT ( * ) AS col2 FROM tab1
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT DISTINCT + COUNT( * ) * 69 AS col2 FROM tab1
----
207

skipif mysql # not compatible
query I rowsort label-1754
SELECT DISTINCT + COUNT ( * ) * 69 AS col2 FROM tab1
----
207

query I rowsort
SELECT + 79 * - 12 AS col2 FROM tab1
----
-948
-948
-948

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT + COUNT( ALL 36 ) * + 54 col0 FROM tab1 WHERE ( - 33 + - col0 ) NOT BETWEEN 55 AND - 27 + col1
----
162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1756
SELECT + COUNT ( ALL 36 ) * + 54 col0 FROM tab1 WHERE ( - 33 + - col0 ) NOT BETWEEN 55 AND - 27 + col1
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT ( COUNT( * ) ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1757
SELECT ( COUNT ( * ) ) col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - 44 FROM tab1 WHERE NOT 46 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1759
SELECT ALL CAST( - ( - ( + col0 ) ) AS SIGNED ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1759
SELECT ALL CAST ( - ( - ( + col0 ) ) AS INTEGER ) FROM tab1
----
51
85
91

query I rowsort
SELECT col0 + 60 * - 90 AS col0 FROM tab1
----
-5309
-5315
-5349

query I rowsort
SELECT ALL - col1 - col1 AS col1 FROM tab2 WHERE NOT - col1 BETWEEN - ( + 55 ) / - 93 AND ( NULL )
----
-102
-134
-154

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1763
SELECT DISTINCT col1 DIV - 10 FROM tab1
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-1763
SELECT DISTINCT col1 / - 10 FROM tab1
----
-1
-4
0

query III rowsort
SELECT * FROM tab1 WHERE - col2 IN ( col0 * + col2 + - col0 / + col0 )
----

query I rowsort
SELECT + ( - col2 ) * + col2 + + col2 AS col1 FROM tab1
----
-3422
-4556
-9120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1766
SELECT SUM( 8 ) + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1766
SELECT SUM ( 8 ) + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT + 61 + col0 FROM tab0
----
148
158
76

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

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE ( col1 ) <= ( - 6 + col0 / + col2 )
----

query I rowsort
SELECT + 62 * - col2 FROM tab1
----
-3658
-4216
-5952

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 BETWEEN col2 AND 59
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1772
SELECT - 52 * CAST( - 39 AS SIGNED ) AS col1 FROM tab1
----
2028
2028
2028

skipif mysql # not compatible
query I rowsort label-1772
SELECT - 52 * CAST ( - 39 AS INTEGER ) AS col1 FROM tab1
----
2028
2028
2028

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1773
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + CAST( 75 AS SIGNED ) + - col2
----

skipif mysql # not compatible
query III rowsort label-1773
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + CAST ( 75 AS INTEGER ) + - col2
----

query I rowsort
SELECT - col0 + - 46 FROM tab2 AS cor0
----
-110
-121
-92

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

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

query I rowsort
SELECT 2 * col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( col2 + + col2 ) NOT IN ( - col1 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1778
SELECT ALL - 8 DIV col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1778
SELECT ALL - 8 / col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT - ( + MIN( + 77 ) ) col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1779
SELECT - ( + MIN ( + 77 ) ) col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT COUNT( ALL - 38 ) * COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 ) WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1780
SELECT COUNT ( ALL - 38 ) * COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 ) WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 + - col1 / - 51 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT DISTINCT - 50 + + COUNT( * ) FROM tab2 WHERE NOT NULL <= + col0 - - col1
----
-50

skipif mysql # not compatible
query I rowsort label-1782
SELECT DISTINCT - 50 + + COUNT ( * ) FROM tab2 WHERE NOT NULL <= + col0 - - col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT ALL + 61 * COUNT( * ) col1 FROM tab2 AS cor0
----
183

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1783
SELECT ALL + 61 * COUNT ( * ) col1 FROM tab2 AS cor0
----
183

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 + 20 ) <> col0
----

query I rowsort
SELECT 65 * col2 AS col2 FROM tab2 AS cor0
----
1495
2600
3770

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 col1 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
19

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1789
SELECT ALL + 86 DIV 39 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1789
SELECT ALL + 86 / 39 FROM tab2
----
2
2
2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1791
SELECT 26 FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1791
SELECT 26 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT ALL - MIN( col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-1793
SELECT ALL - MIN ( col2 ) FROM tab2
----
-23

query I rowsort
SELECT DISTINCT - 76 + - col2 + 93 * col0 FROM tab2
----
4179
5836
6841

query I rowsort
SELECT + - col1 * + - 44 AS col2 FROM tab1 AS cor0
----
2068
220
616

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

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

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE ( + col2 ) IN ( col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT + COUNT( * ) AS col1 FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1799
SELECT + COUNT ( * ) AS col1 FROM tab2, tab1 AS cor0
----
9

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NULL > - col0
----

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

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

query I rowsort
SELECT + col2 + 10 FROM tab1 AS cor0
----
106
69
78

query I rowsort
SELECT - col2 + + 16 FROM tab2 AS cor0
----
-24
-42
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT + ( 54 ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1804
SELECT + ( 54 ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1805
SELECT * FROM tab0 cor0 WHERE - 43 + CAST( col1 AS SIGNED ) <> ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1805
SELECT * FROM tab0 cor0 WHERE - 43 + CAST ( col1 AS INTEGER ) <> ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 54 + 56 + + col0 FROM tab0 AS cor0
----
125
197
207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1807
SELECT + CAST( - 96 AS SIGNED ) * col0 + + 42 FROM tab2 AS cor0
----
-4374
-6102
-7158

skipif mysql # not compatible
query I rowsort label-1807
SELECT + CAST ( - 96 AS INTEGER ) * col0 + + 42 FROM tab2 AS cor0
----
-4374
-6102
-7158

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 >= + + col2 + - 19
----

query I rowsort
SELECT DISTINCT - + col1 * + + col1 - + + 44 + col1 FROM tab0 AS cor0
----
-44
-464
-6524

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1812
SELECT DISTINCT COUNT ( * ), - 78 col0 FROM tab1 AS cor0
----
3
-78

query I rowsort
SELECT ALL + 62 / - 91 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1815
SELECT + - 21 * - CAST( - col1 AS SIGNED ) + + col2 DIV + col0 + - 54 AS col2 FROM tab1 AS cor0
----
-1041
-159
-347

skipif mysql # not compatible
query I rowsort label-1815
SELECT + - 21 * - CAST ( - col1 AS INTEGER ) + + col2 / + col0 + - 54 AS col2 FROM tab1 AS cor0
----
-1041
-159
-347

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

query I rowsort
SELECT ALL - 28 * - + 50 - + - col2 * - + 27 FROM tab1
----
-1192
-193
-436

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

query I rowsort
SELECT + col2 + - - col1 * - col1 FROM tab1
----
-100
-2141
34

query I rowsort
SELECT + col0 * - 59 AS col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - 18 AS col2 FROM tab0 WHERE NOT col1 * - - 79 + 34 + 42 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1822
SELECT ALL 36 DIV - 78 + + + 63 AS col2 FROM tab2
----
63
63
63

skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL 36 / - 78 + + + 63 AS col2 FROM tab2
----
63
63
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1823
SELECT + 43 * CAST( NULL AS SIGNED ) AS col2, COUNT( * ) AS col1 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1823
SELECT + 43 * CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) AS col1 FROM tab0
----
NULL
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 28 * + + 94 + 89 / + col2 IN ( - 74 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT ALL + MIN( ALL + col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-1825
SELECT ALL + MIN ( ALL + col2 ) FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT - 9 * - COUNT( * ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-1826
SELECT - 9 * - COUNT ( * ) FROM tab0
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1827
SELECT DISTINCT + MIN( ALL + 46 ) DIV - 80 + - - COUNT( * ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1827
SELECT DISTINCT + MIN ( ALL + 46 ) / - 80 + - - COUNT ( * ) AS col1 FROM tab1
----
3

query I rowsort
SELECT + ( - col1 ) FROM tab2 WHERE - - col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT ALL SUM( - 14 ) FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-1829
SELECT ALL SUM ( - 14 ) FROM tab1
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-1830
SELECT ALL + col2 DIV ( + - 88 ) AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1830
SELECT ALL + col2 / ( + - 88 ) AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT + SUM( ALL - 0 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1831
SELECT + SUM ( ALL - 0 ) AS col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT NULL IN ( + col1 + ( - col1 + + col2 * - col2 ) * + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT ALL + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( ( - col0 ) * + - col1 * col2 - + 3 * col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( ( - col0 ) * + - col1 * col2 - + 3 * col2 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT MAX( col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1834
SELECT MAX ( col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT MIN( col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-1835
SELECT MIN ( col2 ) AS col0 FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT - - col2 * + col0 + - 2 AS col1 FROM tab1 AS cor0
----
4894
5013
6186

query I rowsort
SELECT ALL - col2 * - 10 FROM tab1 cor0 WHERE - 40 IS NOT NULL
----
590
680
960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1838
SELECT CAST( NULL AS SIGNED ) * + + 91 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1838
SELECT CAST ( NULL AS INTEGER ) * + + 91 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 32 * col1 AS col1 FROM tab1 AS cor0
----
-1504
-160
-448

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT ALL COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT ( + col0 ) IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1841
SELECT ALL COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT ( + col0 ) IS NULL
----
3

query I rowsort
SELECT + 40 * - - col1 * + - col2 FROM tab2 AS cor0
----
-123200
-155440
-46920

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT 5 * - - 92 IS NULL
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 78 < - col1
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + - col2 ) col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT + MIN( DISTINCT + 9 ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1846
SELECT + MIN ( DISTINCT + 9 ) AS col0 FROM tab1 AS cor0
----
9

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 34 / - col0 + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1849
SELECT ALL - CAST( + - 8 AS SIGNED ) FROM tab1 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL - CAST ( + - 8 AS INTEGER ) FROM tab1 AS cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT - MIN( - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-1850
SELECT - MIN ( - col2 ) FROM tab0 AS cor0
----
99

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) IN ( + 1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT + SUM( - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-1852
SELECT + SUM ( - col2 ) FROM tab2
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-1853
SELECT - 80 DIV + 10 FROM tab1
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-1853
SELECT - 80 / + 10 FROM tab1
----
-8
-8
-8

query II rowsort
SELECT - col2, 94 AS col2 FROM tab0
----
-10
94
-47
94
-99
94

query II rowsort
SELECT ALL col0, + col2 AS col1 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1856
SELECT CAST( NULL AS SIGNED ) * + col1 / - - col1 * - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1856
SELECT CAST ( NULL AS INTEGER ) * + col1 / - - col1 * - col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT SUM( + 7 ) AS col1 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-1857
SELECT SUM ( + 7 ) AS col1 FROM tab1
----
21

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * + col1 + - col2 + + + 95 NOT BETWEEN - col1 * + col1 AND - 29
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 60 * - - col0 >= 49
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col0 + 63 BETWEEN + col1 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 11 + - col2 AS col0 FROM tab1 AS cor0
----
-48
-57
-85

query I rowsort
SELECT DISTINCT + 41 FROM tab0 cor0
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-1863
SELECT + 46 * - - col1 + - - 40 DIV - col1 AS col0 FROM tab0
----
3726
6
965

skipif mysql # not compatible
query I rowsort label-1863
SELECT + 46 * - - col1 + - - 40 / - col1 AS col0 FROM tab0
----
3726
6
965

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT ALL + COUNT( - 96 ) + + + 22 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
31

skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL + COUNT ( - 96 ) + + + 22 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
31

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1866
SELECT CAST( NULL AS SIGNED ) + - + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1866
SELECT CAST ( NULL AS INTEGER ) + - + col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NULL IN ( col1 * + 38 )
----
0

skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IN ( col1 * + 38 )
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 + + + 32 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1870
SELECT DISTINCT 12 + + col2 + + col0 + + col1 DIV 42 * 49 FROM tab0 AS cor0
----
109
123
208

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT 12 + + col2 + + col0 + + col1 / 42 * 49 FROM tab0 AS cor0
----
109
123
208

query I rowsort
SELECT ALL + col2 + col0 + + col1 FROM tab2 cor0
----
120
181
200

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN ( + - col2 ) AND NULL
----
85
5
59
91
47
68

query II rowsort
SELECT col1, col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + - 59 AS col2 FROM tab1 AS cor0 WHERE - col0 - - - col2 / - 56 IS NULL
----

query I rowsort
SELECT ALL ( - col0 ) FROM tab1 AS cor0 WHERE NULL < col0
----

query I rowsort
SELECT ALL - 42 - - 13 * + col0 FROM tab1 AS cor0
----
1063
1141
621

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT + - ( COUNT( + + 64 ) ) - 95 FROM tab0 cor0
----
-98

skipif mysql # not compatible
query I rowsort label-1877
SELECT + - ( COUNT ( + + 64 ) ) - 95 FROM tab0 cor0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT - COUNT( * ) * + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col1 * col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1878
SELECT - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col1 * col1 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1879
SELECT + col0 - - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1879
SELECT + col0 - - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + + col1 - + ( - + 45 ) FROM tab2
----
2646
4534
5974

query III rowsort
SELECT * FROM tab2 WHERE NULL < col2 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT DISTINCT + COUNT( DISTINCT + 9 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1882
SELECT DISTINCT + COUNT ( DISTINCT + 9 ) AS col0 FROM tab1
----
1

query I rowsort
SELECT - col1 + - + 47 FROM tab2
----
-114
-124
-98

query I rowsort
SELECT + col2 * 25 * - ( col1 ) FROM tab0
----
-2475
-5250
-95175

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT ALL COUNT( * ) * - 77 AS col2 FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL COUNT ( * ) * - 77 AS col2 FROM tab2
----
-231

query I rowsort
SELECT ALL - - 59 FROM tab0 AS cor0
----
59
59
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1887
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( col0 * ( + col2 ) - + col2 + - + CAST( - col0 AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-1887
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( col0 * ( + col2 ) - + col2 + - + CAST ( - col0 AS INTEGER ) ) AND NULL
----

query I rowsort
SELECT ALL - - col2 * - + 40 FROM tab0 AS cor0
----
-1880
-3960
-400

query II rowsort
SELECT + col1, 29 AS col0 FROM tab0 AS cor0
----
1
29
21
29
81
29

query I rowsort
SELECT DISTINCT 3 * - 32 FROM tab0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT DISTINCT - - COUNT( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1891
SELECT DISTINCT - - COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1893
SELECT DISTINCT - 37 / - col2 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT - 37 / - col2 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1894
SELECT ALL col1 AS col2 FROM tab0 cor0 WHERE NOT NULL < ( col0 ) / - 78 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1894
SELECT ALL col1 AS col2 FROM tab0 cor0 WHERE NOT NULL < ( col0 ) / - 78 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1895
SELECT DISTINCT + COUNT( + col2 ), COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-1895
SELECT DISTINCT + COUNT ( + col2 ), COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 56 * + - col0 * col0 col1 FROM tab0 AS cor0
----
12600
423864
526904

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT ALL COUNT( * ) FROM tab1 cor0 WHERE ( + col0 / 16 / col1 ) IN ( col1 * + + col2 + + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1897
SELECT ALL COUNT ( * ) FROM tab1 cor0 WHERE ( + col0 / 16 / col1 ) IN ( col1 * + + col2 + + col2 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1898
SELECT col2 DIV + ( col1 ) + - col2 AS col1 FROM tab0 AS cor0
----
-10
-47
0

skipif mysql # not compatible
query I rowsort label-1898
SELECT col2 / + ( col1 ) + - col2 AS col1 FROM tab0 AS cor0
----
-10
-47
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT ALL + MIN( + col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-1899
SELECT ALL + MIN ( + col2 ) FROM tab1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1900
SELECT ALL * FROM tab1 WHERE NOT - 1 * + - col0 + 54 + + 17 * - col2 >= + 30 / + + col2 + + col0 * CAST( - col2 + - 91 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1900
SELECT ALL * FROM tab1 WHERE NOT - 1 * + - col0 + 54 + + 17 * - col2 >= + 30 / + + col2 + + col0 * CAST ( - col2 + - 91 AS INTEGER )
----

query I rowsort
SELECT col1 + - 53 FROM tab0
----
-32
-52
28

query I rowsort
SELECT DISTINCT col0 * 45 AS col2 FROM tab0
----
3915
4365
675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 + col1 * - + 17 col1 FROM tab2
----
-1014
-1192
-793

query III rowsort
SELECT * FROM tab2 WHERE + + col2 + + + 34 + 18 BETWEEN NULL AND ( - 38 )
----

query III rowsort
SELECT * FROM tab1 WHERE 64 + + - 38 BETWEEN + + col1 AND + col0 * - col1
----

query I rowsort
SELECT DISTINCT - col1 / - col1 * col1 AS col1 FROM tab1 WHERE - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( 25 ) + - col0 col1, + 12 AS col0 FROM tab1
----
-26
12
-60
12
-66
12

query I rowsort
SELECT DISTINCT 11 + + - col2 AS col0 FROM tab0
----
-36
-88
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1909
SELECT DISTINCT 55 + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1909
SELECT DISTINCT 55 + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col2 * + - ( - + ( - + 33 ) ) AS col2 FROM tab2 AS cor0
----
-1320
-1914
-759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1911
SELECT DISTINCT + - CAST( + - col1 AS SIGNED ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1911
SELECT DISTINCT + - CAST ( + - col1 AS INTEGER ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT - MAX( + col2 ) - + - COUNT( * ) FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-1912
SELECT - MAX ( + col2 ) - + - COUNT ( * ) FROM tab1
----
-93

query I rowsort
SELECT + 0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT - COUNT( - col1 ) AS col2 FROM tab2 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1914
SELECT - COUNT ( - col1 ) AS col2 FROM tab2 WHERE - col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1915
SELECT + COUNT( * ) - 53 AS col1, 56 FROM tab2
----
-50
56

skipif mysql # not compatible
query II rowsort label-1915
SELECT + COUNT ( * ) - 53 AS col1, 56 FROM tab2
----
-50
56

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 / - col0 + + ( col1 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT - MAX( + + col0 ) + - + COUNT( * ) + - COUNT( * ) AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1917
SELECT - MAX ( + + col0 ) + - + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 + - col2 col0 FROM tab1 AS cor0 WHERE - 19 NOT IN ( - - ( + + ( + col2 ) ) )
----
-23
14
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT - SUM( DISTINCT - - col0 ) + + - COUNT( * ) FROM tab1 AS cor0
----
-230

skipif mysql # not compatible
query I rowsort label-1919
SELECT - SUM ( DISTINCT - - col0 ) + + - COUNT ( * ) FROM tab1 AS cor0
----
-230

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT ALL - COUNT( col0 ) AS col2 FROM tab0 AS cor0 WHERE - col2 * + - col2 - col2 + + 24 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1920
SELECT ALL - COUNT ( col0 ) AS col2 FROM tab0 AS cor0 WHERE - col2 * + - col2 - col2 + + 24 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN + - col0 AND + + col1 * 38 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 * 3 - + col0 FROM tab2 AS cor0
----
107
126
167

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= 16
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1924
SELECT DISTINCT CAST( NULL AS SIGNED ) - - - COUNT( * ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1924
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - - COUNT ( * ) col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + ( + 53 ) FROM tab0 AS cor0
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT MAX( + col0 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1926
SELECT MAX ( + col0 ) AS col0 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT DISTINCT - MAX( DISTINCT - col1 ) col2 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1927
SELECT DISTINCT - MAX ( DISTINCT - col1 ) col2 FROM tab0
----
1

query II rowsort
SELECT col2 AS col0, col1 * + col1 AS col2 FROM tab0 WHERE NOT - + 39 + + ( + col1 ) + - col2 IS NULL
----
10
441
47
6561
99
1

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT DISTINCT COUNT( * ) + 45 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT COUNT ( * ) + 45 FROM tab0 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT ALL + MIN( DISTINCT col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-1931
SELECT ALL + MIN ( DISTINCT col0 ) FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-1932
SELECT DISTINCT - COUNT( * ) col1, COUNT( * ) FROM tab2 cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1932
SELECT DISTINCT - COUNT ( * ) col1, COUNT ( * ) FROM tab2 cor0
----
-3
3

query I rowsort
SELECT DISTINCT col1 * - col0 - + + col2 FROM tab0 AS cor0
----
-1262
-1837
-196

query II rowsort
SELECT ALL - 48, + col2 AS col2 FROM tab1 cor0
----
-48
59
-48
68
-48
96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1935
SELECT * FROM tab2 WHERE - col0 BETWEEN + CAST( NULL AS DECIMAL ) AND + - 3
----

skipif mysql # not compatible
query III rowsort label-1935
SELECT * FROM tab2 WHERE - col0 BETWEEN + CAST ( NULL AS REAL ) AND + - 3
----

query I rowsort
SELECT DISTINCT ( + 53 ) * + col1 AS col2 FROM tab2
----
2703
3551
4081

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1937
SELECT - - CAST( NULL AS SIGNED ) FROM tab0 WHERE + col1 * col0 + col0 >= NULL
----

skipif mysql # not compatible
query I rowsort label-1937
SELECT - - CAST ( NULL AS INTEGER ) FROM tab0 WHERE + col1 * col0 + col0 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1938
SELECT COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1938
SELECT COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT 34 + + + 98 AS col0 FROM tab1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT ALL COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
3

query II rowsort
SELECT DISTINCT col2 * 71 AS col0, 0 AS col0 FROM tab1
----
4189
0
4828
0
6816
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT ALL + MAX( - + 48 ) + + 56 AS col0 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-1942
SELECT ALL + MAX ( - + 48 ) + + 56 AS col0 FROM tab0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT DISTINCT COUNT( * ) * - - 4 AS col1 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-1943
SELECT DISTINCT COUNT ( * ) * - - 4 AS col1 FROM tab0
----
12

query III rowsort
SELECT * FROM tab0 WHERE + + col0 / + col0 IS NULL
----

query I rowsort
SELECT 19 * + 15 AS col2 FROM tab0
----
285
285
285

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1946
SELECT ALL 27 + - col0 * + - ( + col0 ) AS col2, - 67 * + - CAST( NULL AS DECIMAL ) / 44 FROM tab1 cor0
----
2628
NULL
7252
NULL
8308
NULL

skipif mysql # not compatible
query II rowsort label-1946
SELECT ALL 27 + - col0 * + - ( + col0 ) AS col2, - 67 * + - CAST ( NULL AS REAL ) / 44 FROM tab1 cor0
----
2628
NULL
7252
NULL
8308
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1947
SELECT DISTINCT col2 + - 58 DIV - - col0 FROM tab0 AS cor0
----
10
44
99

skipif mysql # not compatible
query I rowsort label-1947
SELECT DISTINCT col2 + - 58 / - - col0 FROM tab0 AS cor0
----
10
44
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT + COUNT( * ) * - 93 * + + 41 * - COUNT( - col1 ) + - 43 FROM tab0 AS cor0 WHERE - col2 >= - col1
----
15209

skipif mysql # not compatible
query I rowsort label-1948
SELECT + COUNT ( * ) * - 93 * + + 41 * - COUNT ( - col1 ) + - 43 FROM tab0 AS cor0 WHERE - col2 >= - col1
----
15209

query I rowsort
SELECT ALL + col1 * + - 66 AS col0 FROM tab0
----
-1386
-5346
-66

onlyif mysql # DIV for integer division: 
query II rowsort label-1950
SELECT 16 + + 83 DIV - col2 col2, col1 + + 81 FROM tab1
----
15
128
15
86
16
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1950
SELECT 16 + + 83 / - col2 col2, col1 + + 81 FROM tab1
----
15
128
15
86
16
95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 7 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + - 3 ) col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= - 6
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1954
SELECT + - 98 * + CAST( - 27 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 - col2 AND + ( col1 )
----

skipif mysql # not compatible
query I rowsort label-1954
SELECT + - 98 * + CAST ( - 27 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 - col2 AND + ( col1 )
----

query I rowsort
SELECT + ( 25 ) AS col0 FROM tab1 cor0
----
25
25
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1956
SELECT CAST( + - 4 AS SIGNED ) FROM tab0 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-1956
SELECT CAST ( + - 4 AS INTEGER ) FROM tab0 AS cor0
----
-4
-4
-4

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 WHERE ( NULL ) NOT IN ( + 17 + 34 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1958
SELECT ALL col2, 20 DIV + col2 * + col0 + col1 FROM tab2
----
23
51
40
77
58
67

skipif mysql # not compatible
query II rowsort label-1958
SELECT ALL col2, 20 / + col2 * + col0 + col1 FROM tab2
----
23
51
40
77
58
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 * + col2 col0 FROM tab1
----
3186
3672
5184

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + - col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 49 * 39 * + ( - ( - col1 ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-128037
-147147
-97461

query II rowsort
SELECT ALL - col2, 49 AS col0 FROM tab2
----
-23
49
-40
49
-58
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT + COUNT( DISTINCT - col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1963
SELECT + COUNT ( DISTINCT - col2 ) AS col2 FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 63 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + ( - 45 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1966
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query II rowsort
SELECT DISTINCT - col0, + col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query I rowsort
SELECT ALL 5 * - col1 AS col1 FROM tab1 AS cor0
----
-235
-25
-70

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( 37 + - + 85 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT DISTINCT COUNT( col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1970
SELECT DISTINCT COUNT ( col1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + - 2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-2

query I rowsort
SELECT ALL + - col0 + - 33 FROM tab2 WHERE NOT + col0 BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1973
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN CAST( - col1 AS SIGNED ) AND + - col1
----

skipif mysql # not compatible
query III rowsort label-1973
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN CAST ( - col1 AS INTEGER ) AND + - col1
----

query I rowsort
SELECT ALL - ( + 83 ) + - ( - col2 ) - + 0 FROM tab1 AS cor0
----
-15
-24
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT + COUNT( * ) * - 76 FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-1975
SELECT + COUNT ( * ) * - 76 FROM tab2 AS cor0
----
-228

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1976
SELECT DISTINCT ( 16 ) DIV - COUNT( * ) + - 13 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-1976
SELECT DISTINCT ( 16 ) / - COUNT ( * ) + - 13 FROM tab0
----
-18

query I rowsort
SELECT - + col0 FROM tab1 WHERE ( col1 IS NULL )
----

query I rowsort
SELECT ALL 62 + + + 35 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > + 18 + + col0 / + col1 / - col2 + - - col1
----

query I rowsort
SELECT + col1 * + + 13 AS col2 FROM tab0
----
1053
13
273

query II rowsort
SELECT - + col0, col2 * - - 69 - - 14 AS col1 FROM tab0 cor0
----
-15
3257
-87
704
-97
6845

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 88 + + col1 col2 FROM tab2 AS cor0
----
-11
-21
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT ALL 1 + - + COUNT( * ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1983
SELECT ALL 1 + - + COUNT ( * ) FROM tab1 AS cor0
----
-2

query I rowsort
SELECT ALL col1 * - 50 + + + 34 * col2 FROM tab0 AS cor0
----
-2452
-710
3316

query I rowsort
SELECT + 55 + col1 * + col1 FROM tab0
----
496
56
6616

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1986
SELECT ALL 2 FROM tab2 WHERE NOT NULL NOT BETWEEN ( + col0 + - col2 ) AND ( + + 31 ) * - + col2 AND col2 * + col1 * + - CAST( NULL AS SIGNED ) * + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1986
SELECT ALL 2 FROM tab2 WHERE NOT NULL NOT BETWEEN ( + col0 + - col2 ) AND ( + + 31 ) * - + col2 AND col2 * + col1 * + - CAST ( NULL AS INTEGER ) * + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 IN ( + col0, ( - col0 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1988
SELECT - COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1988
SELECT - COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT DISTINCT + ( + COUNT( * ) ) * - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1989
SELECT DISTINCT + ( + COUNT ( * ) ) * - COUNT ( * ) FROM tab0 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col1 IS NULL )
----

query II rowsort
SELECT ALL - + ( + + ( 20 ) ) * - col0 + col0 + 24 + - - 44, 41 AS col1 FROM tab2 AS cor0
----
1034
41
1412
41
1643
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1992
SELECT ALL CAST( - + 33 AS SIGNED ), + 90 col2 FROM tab0 AS cor0
----
-33
90
-33
90
-33
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1992
SELECT ALL CAST ( - + 33 AS INTEGER ), + 90 col2 FROM tab0 AS cor0
----
-33
90
-33
90
-33
90

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 17 - + col0 NOT BETWEEN NULL AND - 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE NOT - col0 NOT IN ( - col2 - col2, - 93, + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1994
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT - col0 NOT IN ( - col2 - col2, - 93, + col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1995
SELECT DISTINCT CAST( - ( + - ( - 25 ) ) AS SIGNED ) DIV CAST( + - col2 AS SIGNED ) col1, + CAST( NULL AS SIGNED ) FROM tab2
----
0
NULL
1
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1995
SELECT DISTINCT CAST ( - ( + - ( - 25 ) ) AS INTEGER ) / CAST ( + - col2 AS INTEGER ) col1, + CAST ( NULL AS INTEGER ) FROM tab2
----
0
NULL
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1996
SELECT DISTINCT - col0 DIV + col1 col0 FROM tab2
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1996
SELECT DISTINCT - col0 / + col1 col0 FROM tab2
----
-1
0

query I rowsort
SELECT DISTINCT ( + 55 ) FROM tab1
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1998
SELECT ALL * FROM tab2 WHERE CAST( col0 AS SIGNED ) * col1 * + col0 + col1 IN ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-1998
SELECT ALL * FROM tab2 WHERE CAST ( col0 AS INTEGER ) * col1 * + col0 + col1 IN ( - col1 )
----

query I rowsort
SELECT DISTINCT 87 * - 65 * - col1 FROM tab0
----
118755
458055
5655

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT - 89 * + - COUNT( * ) FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-2000
SELECT - 89 * + - COUNT ( * ) FROM tab0
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT ALL + SUM( DISTINCT + - 11 ) FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-2001
SELECT ALL + SUM ( DISTINCT + - 11 ) FROM tab2
----
-11

query I rowsort
SELECT ALL - ( - 54 ) FROM tab1 cor0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT + COUNT( * ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2003
SELECT + COUNT ( * ) col2 FROM tab0 AS cor0
----
3

query IIIIII rowsort
SELECT * FROM tab0 cor0 JOIN tab1 AS cor1 ON NULL <> NULL
----

query II rowsort
SELECT ALL 59 AS col0, col1 AS col1 FROM tab2 AS cor0
----
59
51
59
67
59
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 + + 31 - - col1 col2 FROM tab0 AS cor0
----
148
68
88

query I rowsort
SELECT DISTINCT - col2 FROM tab2 cor0 WHERE col1 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE - col0 + + - col1 * - col0 + + col0 < + - 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT + COUNT( * ) AS col0 FROM tab1 cor0 WHERE NULL BETWEEN NULL AND col2 * + - col1 * 79
----
0

skipif mysql # not compatible
query I rowsort label-2009
SELECT + COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NULL BETWEEN NULL AND col2 * + - col1 * 79
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2010
SELECT ALL - 42 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL - 42 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2011
SELECT + COUNT( * ), - COUNT( * ) AS col1 FROM tab1 cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-2011
SELECT + COUNT ( * ), - COUNT ( * ) AS col1 FROM tab1 cor0
----
3
-3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 40 / - + col0 IN ( + col1, - col2, - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2014
SELECT - 26 DIV - 18 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2014
SELECT - 26 / - 18 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE - + 36 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT DISTINCT 81 + - COUNT( * ) FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-2016
SELECT DISTINCT 81 + - COUNT ( * ) FROM tab1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT ALL + + MIN( DISTINCT + + col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL < - col2 * col0 + ( 31 ) * - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2017
SELECT ALL + + MIN ( DISTINCT + + col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL < - col2 * col0 + ( 31 ) * - col0
----
NULL

query I rowsort
SELECT - col0 + + col1 - - 94 AS col0 FROM tab0 AS cor0
----
-2
160
28

query II rowsort
SELECT col0 AS col0, + col1 AS col0 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2020
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2020
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2021
SELECT DISTINCT - col2 DIV + - 40 AS col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2021
SELECT DISTINCT - col2 / + - 40 AS col2 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2022
SELECT COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2022
SELECT COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2023
SELECT - col0 / - CAST( NULL AS SIGNED ) - - col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2023
SELECT - col0 / - CAST ( NULL AS INTEGER ) - - col2 FROM tab1 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col1 AS col0, 83 FROM tab1 AS cor0
----
14
83
47
83
5
83

query II rowsort
SELECT DISTINCT - 67 AS col1, 23 - + col0 - col2 FROM tab1 AS cor0
----
-67
-121
-67
-124
-67
-136

query II rowsort
SELECT - - col1, + 77 AS col1 FROM tab2 AS cor0
----
51
77
67
77
77
77

query II rowsort
SELECT + + col1, col1 + + col1 FROM tab1 AS cor0
----
14
28
47
94
5
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT - + MAX( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2028
SELECT - + MAX ( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT DISTINCT + SUM( ALL ( - 13 ) ) AS col0 FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT + SUM ( ALL ( - 13 ) ) AS col0 FROM tab1
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2030
SELECT * FROM tab2 WHERE NOT + col0 * - - col1 * + - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2030
SELECT * FROM tab2 WHERE NOT + col0 * - - col1 * + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT - MAX( ALL + + col2 ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-2031
SELECT - MAX ( ALL + + col2 ) AS col1 FROM tab2
----
-58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * - 15 + 18 - + 7 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + 62 AS col0 FROM tab0
----
-19
41
61

query I rowsort
SELECT + 55 + - col0 FROM tab0 AS cor0
----
-32
-42
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2035
SELECT col1 DIV + - col1 AS col1 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2035
SELECT col1 / + - col1 AS col1 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2036
SELECT ( - - col2 ) DIV + col1 AS col1 FROM tab1 cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-2036
SELECT ( - - col2 ) / + col1 AS col1 FROM tab1 cor0
----
1
11
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT ALL + - COUNT( * ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL + - COUNT ( * ) AS col1 FROM tab0 cor0
----
-3

query I rowsort
SELECT - col0 * + 48 AS col1 FROM tab2 AS cor0
----
-2208
-3072
-3600

onlyif mysql # DIV for integer division: 
query I rowsort label-2039
SELECT DISTINCT 74 DIV col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2039
SELECT DISTINCT 74 / col2 FROM tab1 AS cor0
----
0
1

query II rowsort
SELECT DISTINCT + 79, col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
79
46
79
64
79
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT DISTINCT + MIN( - col0 ) col0 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2041
SELECT DISTINCT + MIN ( - col0 ) col0 FROM tab1
----
-91

query I rowsort
SELECT DISTINCT + col0 * col1 + + col2 * + col1 AS col1 FROM tab1 AS cor0
----
2058
720
7473

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT MAX( ALL 85 ) + + 99 AS col2 FROM tab0 AS cor0
----
184

skipif mysql # not compatible
query I rowsort label-2043
SELECT MAX ( ALL 85 ) + + 99 AS col2 FROM tab0 AS cor0
----
184

onlyif mysql # DIV for integer division: 
query I rowsort label-2044
SELECT ALL - + col2 DIV + col1 + + - 5 + - 37 * + 20 + col2 * - - col2 AS col0 FROM tab1 AS cor0
----
2725
3878
8465

skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL - + col2 / + col1 + + - 5 + - 37 * + 20 + col2 * - - col2 AS col0 FROM tab1 AS cor0
----
2725
3878
8465

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT ALL + MAX( 64 ) FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL + MAX ( 64 ) FROM tab0 AS cor0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT - COUNT( * ) FROM tab1 cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2046
SELECT - COUNT ( * ) FROM tab1 cor0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT - 52 + - col0 * 55 - col2 + + - col2 + - - col1 - - col2 AS col1 FROM tab2
----
-2554
-3535
-4168

query II rowsort
SELECT ALL col2, col1 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT ALL col2 * - + 62 + - col2 AS col2 FROM tab1
----
-3717
-4284
-6048

onlyif mysql # DIV for integer division: 
query I rowsort label-2050
SELECT - col2 DIV + - 46 AS col0 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2050
SELECT - col2 / + - 46 AS col0 FROM tab1
----
1
1
2

onlyif mysql # DIV for integer division: 
query II rowsort label-2051
SELECT + col1 DIV - - 66, col1 AS col0 FROM tab2
----
0
51
1
67
1
77

skipif mysql # not compatible
query II rowsort label-2051
SELECT + col1 / - - 66, col1 AS col0 FROM tab2
----
0
51
1
67
1
77

query I rowsort
SELECT DISTINCT + ( 85 ) FROM tab1
----
85

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 46 = - + 51 + - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2054
SELECT DISTINCT - MIN( - - col2 ) AS col2, - 62 - + - 39 * + 31 col1 FROM tab0
----
-10
1147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2054
SELECT DISTINCT - MIN ( - - col2 ) AS col2, - 62 - + - 39 * + 31 col1 FROM tab0
----
-10
1147

query I rowsort
SELECT + 65 - col2 FROM tab1 cor0
----
-3
-31
6

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN 24 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT ALL SUM( DISTINCT col0 ) * - ( MAX( - 16 ) ) FROM tab0 AS cor0
----
3184

skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL SUM ( DISTINCT col0 ) * - ( MAX ( - 16 ) ) FROM tab0 AS cor0
----
3184

query II rowsort
SELECT + + col2 * + col1 * + ( + col1 ) * 92, ( + col1 ) AS col1 FROM tab1 AS cor0
----
135700
5
13819504
47
1731072
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2060
SELECT + col1 * - - col1 DIV ( + ( - col1 ) ) DIV + col0 + - 52 FROM tab1 AS cor0
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-2060
SELECT + col1 * - - col1 / ( + ( - col1 ) ) / + col0 + - 52 FROM tab1 AS cor0
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT ALL + COUNT( * ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2061
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 cor0
----
3

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-2064
SELECT ALL - MAX( - col2 ) AS col0, 63 + - 65 AS col1 FROM tab2 AS cor0
----
23
-2

skipif mysql # not compatible
query II rowsort label-2064
SELECT ALL - MAX ( - col2 ) AS col0, 63 + - 65 AS col1 FROM tab2 AS cor0
----
23
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 72 col1 FROM tab0 cor0
----
72

query I rowsort
SELECT DISTINCT - col2 * + - col2 FROM tab2 AS cor0
----
1600
3364
529

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 * col0 + - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2068
SELECT * FROM tab0 WHERE NOT 53 <> - - CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2068
SELECT * FROM tab0 WHERE NOT 53 <> - - CAST ( + col1 AS INTEGER )
----

query I rowsort
SELECT DISTINCT - 11 * - col1 FROM tab1
----
154
517
55

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col1 NOT BETWEEN - col1 AND - - col2
----

query I rowsort
SELECT - col2 * - + col2 AS col2 FROM tab2
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT ALL 15 * COUNT( * ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL 15 * COUNT ( * ) FROM tab0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) + 73 col1 FROM tab2
----
15
33
50

query II rowsort
SELECT col1 AS col2, col2 AS col0 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT - COUNT( * ) * COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2075
SELECT - COUNT ( * ) * COUNT ( * ) FROM tab0
----
-9

query I rowsort
SELECT DISTINCT col2 + - 96 AS col1 FROM tab1
----
-28
-37
0

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2078
SELECT DISTINCT + COUNT( * ), + 5 * + CAST( NULL AS SIGNED ) * - ( - + 70 ) AS col2 FROM tab0 cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2078
SELECT DISTINCT + COUNT ( * ), + 5 * + CAST ( NULL AS INTEGER ) * - ( - + 70 ) AS col2 FROM tab0 cor0
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2079
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2079
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2080
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT 51 + + + col2 * - + col2 FROM tab2
----
-1549
-3313
-478

query I rowsort
SELECT ALL col0 * - ( 47 ) AS col2 FROM tab1
----
-2397
-3995
-4277

onlyif mysql # DIV for integer division: 
query I rowsort label-2083
SELECT DISTINCT + 96 DIV - - 88 + - - col1 col2 FROM tab2
----
52
68
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2083
SELECT DISTINCT + 96 / - - 88 + - - col1 col2 FROM tab2
----
52
68
78

query I rowsort
SELECT ALL + 96 - - - 39 AS col1 FROM tab1 AS cor0
----
57
57
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 / - 10 * - col1 col0 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2086
SELECT DISTINCT + 2 - + + MIN( DISTINCT + - 3 ) + + + CAST( - - 73 AS SIGNED ) FROM tab0 cor0
----
78

skipif mysql # not compatible
query I rowsort label-2086
SELECT DISTINCT + 2 - + + MIN ( DISTINCT + - 3 ) + + + CAST ( - - 73 AS INTEGER ) FROM tab0 cor0
----
78

query I rowsort
SELECT DISTINCT + + col0 + - 73 * - + col2 AS col1 FROM tab0 cor0
----
3446
7324
817

query I rowsort
SELECT ALL 93 * - 79 * + - col0 FROM tab2 AS cor0
----
337962
470208
551025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2089
SELECT DISTINCT + + CAST( 20 AS SIGNED ) col1 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2089
SELECT DISTINCT + + CAST ( 20 AS INTEGER ) col1 FROM tab1 AS cor0
----
20

query I rowsort
SELECT col2 - col0 * + 4 + + col1 * + col1 AS col2 FROM tab2 AS cor0
----
2440
4247
5713

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2091
SELECT ALL - col2, - 55 * + + CAST( 90 AS SIGNED ) col0 FROM tab0
----
-10
-4950
-47
-4950
-99
-4950

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2091
SELECT ALL - col2, - 55 * + + CAST ( 90 AS INTEGER ) col0 FROM tab0
----
-10
-4950
-47
-4950
-99
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT - COUNT( * ) - 98 col2 FROM tab2
----
-101

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2092
SELECT - COUNT ( * ) - 98 col2 FROM tab2
----
-101

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 88 - + col2 col1 FROM tab0
----
-11
41
78

onlyif mysql # DIV for integer division: 
query I rowsort label-2094
SELECT + col1 - col1 DIV col0 AS col2 FROM tab2
----
50
67
76

skipif mysql # not compatible
query I rowsort label-2094
SELECT + col1 - col1 / col0 AS col2 FROM tab2
----
50
67
76

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 2 + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT ALL - COUNT( * ) + 4 AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2096
SELECT ALL - COUNT ( * ) + 4 AS col1 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT COUNT( * ) + + - MIN( + ( - col2 ) ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-2097
SELECT COUNT ( * ) + + - MIN ( + ( - col2 ) ) FROM tab1
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2098
SELECT col0 + + + col1 DIV - + col0 AS col2 FROM tab2
----
45
63
75

skipif mysql # not compatible
query I rowsort label-2098
SELECT col0 + + + col1 / - + col0 AS col2 FROM tab2
----
45
63
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2099
SELECT ALL - col2 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2099
SELECT ALL - col2 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 86 + 84 AS col0 FROM tab1
----
170
170
170

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL + + 18 AS col0 FROM tab0 cor0
----
18
18
18

query I rowsort
SELECT + + ( 48 ) AS col1 FROM tab1 cor0
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2104
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT ALL + + 39 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT SUM( col0 ) AS col0 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-2106
SELECT SUM ( col0 ) AS col0 FROM tab2
----
185

query I rowsort
SELECT DISTINCT + 72 * col1 FROM tab2
----
3672
4824
5544

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT DISTINCT + MIN( DISTINCT - col1 ) AS col2 FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT + MIN ( DISTINCT - col1 ) AS col2 FROM tab0 cor0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-2109
SELECT - COUNT( * ) AS col2, 52 * COUNT( * ) + + 96 * - COUNT( ALL + col1 ) + - COUNT( * ) - + SUM( 55 ) FROM tab0 AS cor0
----
-3
-300

skipif mysql # not compatible
query II rowsort label-2109
SELECT - COUNT ( * ) AS col2, 52 * COUNT ( * ) + + 96 * - COUNT ( ALL + col1 ) + - COUNT ( * ) - + SUM ( 55 ) FROM tab0 AS cor0
----
-3
-300

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT ( 34 ) BETWEEN NULL AND - col2
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-2112
SELECT DISTINCT - COUNT( * ) AS col1, 90 AS col2 FROM tab0 AS cor0
----
-3
90

skipif mysql # not compatible
query II rowsort label-2112
SELECT DISTINCT - COUNT ( * ) AS col1, 90 AS col2 FROM tab0 AS cor0
----
-3
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( col2 ) col1, + ( + + ( 95 ) ) FROM tab2 AS cor0
----
23
95
40
95
58
95

onlyif mysql # DIV for integer division: 
query I rowsort label-2114
SELECT - - col2 DIV + 87 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2114
SELECT - - col2 / + 87 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + col1 col2 FROM tab2 AS cor0 WHERE NOT ( 53 < + 15 )
----
0
0
0

query II rowsort
SELECT col1 AS col1, 4 + - col2 FROM tab2 cor0
----
51
-19
67
-54
77
-36

query I rowsort
SELECT + col2 * + - col2 FROM tab0 cor0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2118
SELECT DISTINCT + col2, 18 FROM tab0 AS cor0 WHERE - CAST( 76 AS SIGNED ) + - + ( - CAST( + col2 AS SIGNED ) ) + + + col1 + col2 * + col2 / + - 74 <> NULL
----

skipif mysql # not compatible
query II rowsort label-2118
SELECT DISTINCT + col2, 18 FROM tab0 AS cor0 WHERE - CAST ( 76 AS INTEGER ) + - + ( - CAST ( + col2 AS INTEGER ) ) + + + col1 + col2 * + col2 / + - 74 <> NULL
----

query II rowsort
SELECT col0 + - col0, + 82 AS col2 FROM tab2
----
0
82
0
82
0
82

query I rowsort
SELECT ALL - 3 AS col2 FROM tab2
----
-3
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - + col0 col2 FROM tab2 WHERE col0 IS NULL
----

query I rowsort
SELECT + + col0 AS col2 FROM tab2 WHERE - + 24 IS NOT NULL
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > - col1
----

query I rowsort
SELECT DISTINCT - 49 * + + col2 FROM tab0 AS cor0
----
-2303
-4851
-490

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2125
SELECT ALL - col2 + - col1 + + 3 AS col1 FROM tab2 cor0 WHERE NOT + col2 IN ( - col0 + + CAST( NULL AS SIGNED ) + + ( + 35 ), col2 )
----

skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL - col2 + - col1 + + 3 AS col1 FROM tab2 cor0 WHERE NOT + col2 IN ( - col0 + + CAST ( NULL AS INTEGER ) + + ( + 35 ), col2 )
----

query I rowsort
SELECT ALL 10 * + - col0 AS col2 FROM tab1
----
-510
-850
-910

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2127
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + CAST( 78 AS DECIMAL ), - col2 )
----

skipif mysql # not compatible
query III rowsort label-2127
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + CAST ( 78 AS REAL ), - col2 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = + col0
----

query I rowsort
SELECT 35 + - 56 * - + 9 AS col0 FROM tab0 AS cor0
----
539
539
539

query I rowsort
SELECT - + 86 * + 24 + + 96 + + - 45 FROM tab2 AS cor0
----
-2013
-2013
-2013

query I rowsort
SELECT + col2 + + 32 + - - col1 * - col1 * 54 AS col0 FROM tab2 cor0
----
-140399
-242316
-320094

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col1 < NULL
----

query I rowsort
SELECT col1 + + + 7 + - + 65 FROM tab0 AS cor0
----
-37
-57
23

onlyif mysql # aggregate syntax: 
query II rowsort label-2135
SELECT - - COUNT( * ) + 62 + + COUNT( - 15 ) AS col1, + 4 FROM tab1 AS cor0
----
68
4

skipif mysql # not compatible
query II rowsort label-2135
SELECT - - COUNT ( * ) + 62 + + COUNT ( - 15 ) AS col1, + 4 FROM tab1 AS cor0
----
68
4

query I rowsort
SELECT ALL - + 53 - + 19 + - - ( + - col0 ) * col1 FROM tab0 AS cor0
----
-1287
-169
-1899

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2137
SELECT 86 + 23 - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - 45 + + - CAST( NULL AS SIGNED ) * - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2137
SELECT 86 + 23 - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - 45 + + - CAST ( NULL AS INTEGER ) * - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 35 + - - col2 FROM tab0 AS cor0
----
-25
12
64

query I rowsort
SELECT DISTINCT - + col0 AS col0 FROM tab1 WHERE NOT 45 <> NULL
----

query I rowsort
SELECT ALL - col1 - + + col1 FROM tab1
----
-10
-28
-94

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - 97, + 21, - col0, + ( - col2 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2142
SELECT DISTINCT - COUNT( * ) DIV + + 15 col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2142
SELECT DISTINCT - COUNT ( * ) / + + 15 col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab2 WHERE NOT - col0 BETWEEN + col2 * - 62 + col2 - 31 * + col2 + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2144
SELECT col2 DIV 92 * 75 AS col2 FROM tab1
----
0
0
75

skipif mysql # not compatible
query I rowsort label-2144
SELECT col2 / 92 * 75 AS col2 FROM tab1
----
0
0
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT DISTINCT MIN( ALL - 69 ) AS col1 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-2145
SELECT DISTINCT MIN ( ALL - 69 ) AS col1 FROM tab2
----
-69

query I rowsort
SELECT ALL - + col1 FROM tab2 AS cor0 WHERE 26 IS NOT NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - + col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - + 93 ) AS col2 FROM tab2
----
-93
-93
-93

query I rowsort
SELECT ALL - 41 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT - 60 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2151
SELECT DISTINCT - CAST( - + col2 AS SIGNED ) AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2151
SELECT DISTINCT - CAST ( - + col2 AS INTEGER ) AS col0 FROM tab2
----
23
40
58

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) > - - col0
----

query I rowsort
SELECT ALL - ( + - col2 ) FROM tab1 cor0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2154
SELECT - 46 DIV + col0 AS col2 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-2154
SELECT - 46 / + col0 AS col2 FROM tab0 AS cor0
----
-3
0
0

query I rowsort
SELECT 30 * - - ( + + col1 ) AS col1 FROM tab1 cor0
----
1410
150
420

query I rowsort
SELECT 65 * - + col1 FROM tab0 AS cor0
----
-1365
-5265
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2157
SELECT - CAST( - 66 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + col0 <= NULL
----

skipif mysql # not compatible
query I rowsort label-2157
SELECT - CAST ( - 66 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT + COUNT( * ) * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2158
SELECT + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 / col2 + + 41 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 94 * - 88 + col1 + + + col2 + col2 - - col2 + + - col1 + + - col1 * + 64 AS col2 FROM tab2
----
-11467
-12386
-13080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2161
SELECT 46 * + CAST( + col1 AS SIGNED ) AS col0 FROM tab1
----
2162
230
644

skipif mysql # not compatible
query I rowsort label-2161
SELECT 46 * + CAST ( + col1 AS INTEGER ) AS col0 FROM tab1
----
2162
230
644

query I rowsort
SELECT + col2 FROM tab0 WHERE - 65 IS NOT NULL
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * col0 > NULL
----

query I rowsort
SELECT DISTINCT + col0 + - ( + ( + - 54 ) ) + - + col0 FROM tab1 AS cor0
----
54

query I rowsort
SELECT + + 53 + - 35 AS col0 FROM tab2 AS cor0
----
18
18
18

query I rowsort
SELECT DISTINCT 34 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2167
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT - MIN( ALL + col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2168
SELECT - MIN ( ALL + col1 ) FROM tab2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2169
SELECT CAST( NULL AS SIGNED ) * col0 * - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2169
SELECT CAST ( NULL AS INTEGER ) * col0 * - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + + 61 FROM tab2
----
-14
-3
15

query I rowsort
SELECT ALL - - col1 + + + 22 AS col1 FROM tab1 AS cor0
----
27
36
69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 5 * + + 25 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 39 / col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 + 48 AS col2 FROM tab0 AS cor0 WHERE + col0 <= 86 / - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2175
SELECT ALL - CAST( NULL AS DECIMAL ), CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE ( NULL NOT IN ( - - col2, - col2 / + 78 ) )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2175
SELECT ALL - CAST ( NULL AS REAL ), CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE ( NULL NOT IN ( - - col2, - col2 / + 78 ) )
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT + MIN( ALL + col1 ) AS col2 FROM tab0 cor0 WHERE ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2176
SELECT + MIN ( ALL + col1 ) AS col2 FROM tab0 cor0 WHERE ( NULL ) <> NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2177
SELECT 20, 2 FROM tab2 AS cor0 WHERE - ( col1 ) * 4 + + 10 NOT IN ( col0 * 48 + - CAST( NULL AS DECIMAL ), col0, + col1 - col0 )
----

skipif mysql # not compatible
query II rowsort label-2177
SELECT 20, 2 FROM tab2 AS cor0 WHERE - ( col1 ) * 4 + + 10 NOT IN ( col0 * 48 + - CAST ( NULL AS REAL ), col0, + col1 - col0 )
----

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE 81 IS NULL
----

query I rowsort
SELECT ALL 33 - col0 * - col1 FROM tab1 AS cor0
----
4310
458
747

onlyif mysql # aggregate syntax: 
query II rowsort label-2180
SELECT 59, COUNT( * ) AS col1 FROM tab2
----
59
3

skipif mysql # not compatible
query II rowsort label-2180
SELECT 59, COUNT ( * ) AS col1 FROM tab2
----
59
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 60 * 32 * + col2 ) <= col1 / + - col2 * - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IN ( - + col2 * col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2182
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IN ( - + col2 * col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT SUM( + - col1 ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2183
SELECT SUM ( + - col1 ) AS col0 FROM tab1
----
-66

query II rowsort
SELECT + 72 AS col1, 57 FROM tab2
----
72
57
72
57
72
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT - COUNT( * ) * + + 5 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-2185
SELECT - COUNT ( * ) * + + 5 FROM tab2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2186
SELECT ALL + CAST( + 41 AS SIGNED ) FROM tab0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL + CAST ( + 41 AS INTEGER ) FROM tab0
----
41
41
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 9 col2, col0 col1 FROM tab2 AS cor0
----
9
46
9
64
9
75

query I rowsort
SELECT DISTINCT 93 * 7 * + col2 AS col2 FROM tab2 cor0
----
14973
26040
37758

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col1 <= + - 64 * - 37
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT - SUM( col2 ) col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2190
SELECT - SUM ( col2 ) col2 FROM tab0 AS cor0
----
-156

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 72 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * 42 AS col0 FROM tab0 AS cor0
----
3654
4074
630

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT ALL + ( - MIN( ALL + - col0 ) ) * - 75 FROM tab1
----
-6825

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL + ( - MIN ( ALL + - col0 ) ) * - 75 FROM tab1
----
-6825

query I rowsort
SELECT ALL + - 40 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT SUM( ALL 56 ) AS col0 FROM tab0 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-2195
SELECT SUM ( ALL 56 ) AS col0 FROM tab0 AS cor0
----
168

query II rowsort
SELECT DISTINCT col1 * + ( + col2 ) + - 99, 65 AS col2 FROM tab2 AS cor0
----
1074
65
2981
65
3787
65

onlyif mysql # aggregate syntax: 
query II rowsort label-2197
SELECT ALL - 35 * 70 AS col2, + SUM( 37 ) FROM tab1 AS cor0
----
-2450
111

skipif mysql # not compatible
query II rowsort label-2197
SELECT ALL - 35 * 70 AS col2, + SUM ( 37 ) FROM tab1 AS cor0
----
-2450
111

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2198
SELECT + col1 / + CAST( NULL AS SIGNED ), + col0 AS col1 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-2198
SELECT + col1 / + CAST ( NULL AS INTEGER ), + col0 AS col1 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT - col2 + + + col1 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT - col2 FROM tab0 cor0 WHERE 95 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT ALL - - col2 * - col0 + - + 29 FROM tab2 cor0 WHERE NOT - 30 - - + col0 IS NULL
----
-1087
-2589
-4379

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2202
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + + col0 AND - - col1 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2202
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + + col0 AND - - col1 + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col1 * - ( - col1 ) + - col2 FROM tab1
----
-2277
-292
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT DISTINCT MIN( ALL col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2204
SELECT DISTINCT MIN ( ALL col0 ) AS col0 FROM tab1
----
51

query I rowsort
SELECT DISTINCT + 51 FROM tab1 WHERE + ( + 27 ) IS NOT NULL
----
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * 18 / + col0 <> - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - 74 AS col1, + col2 - 90 FROM tab2 AS cor0
----
-74
-32
-74
-50
-74
-67

query I rowsort
SELECT ALL + + col1 + + - col1 * + + ( - col1 ) FROM tab1 AS cor0 WHERE NOT ( - + ( col1 ) ) * + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

query I rowsort
SELECT col2 + + - col1 FROM tab0
----
-11
-34
98

query I rowsort
SELECT - 6 + 29 + 51 * + col0 AS col2 FROM tab2 AS cor0
----
2369
3287
3848

query I rowsort
SELECT ALL - 30 * - + col0 FROM tab1 AS cor0
----
1530
2550
2730

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2213
SELECT DISTINCT - col2 * - 50 * + CAST( - 59 AS SIGNED ) AS col2, col2 AS col2 FROM tab1 AS cor0
----
-174050
59
-200600
68
-283200
96

skipif mysql # not compatible
query II rowsort label-2213
SELECT DISTINCT - col2 * - 50 * + CAST ( - 59 AS INTEGER ) AS col2, col2 AS col2 FROM tab1 AS cor0
----
-174050
59
-200600
68
-283200
96

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 57 * - col0 * 48 AS col0 FROM tab2 AS cor0
----
-125856
-175104
-205200

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> - - col0
----

query II rowsort
SELECT - col0 AS col0, col2 AS col2 FROM tab1 WHERE NOT - col2 / - - 95 * 81 + 63 <> NULL
----

query II rowsort
SELECT + col1 * - + col2 AS col2, col1 * - + col1 FROM tab2
----
-1173
-2601
-3080
-5929
-3886
-4489

query I rowsort
SELECT ALL col0 * - + col0 * - col1 AS col1 FROM tab2
----
107916
315392
376875

query I rowsort
SELECT - 5 * + ( - 37 ) FROM tab2
----
185
185
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * - 47 col1, + col2 AS col2 FROM tab1
----
-2397
96
-3995
59
-4277
68

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE 17 >= col0
----
0

skipif mysql # not compatible
query I rowsort label-2224
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE 17 >= col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 0 col2 FROM tab1 AS cor0 WHERE ( NULL ) = - col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2226
SELECT col2 AS col0, - 70 * + 0 DIV col2 FROM tab2 AS cor0
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-2226
SELECT col2 AS col0, - 70 * + 0 / col2 FROM tab2 AS cor0
----
23
0
40
0
58
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2227
SELECT + 5 AS col1, + COUNT( * ) AS col1 FROM tab0 cor0
----
5
3

skipif mysql # not compatible
query II rowsort label-2227
SELECT + 5 AS col1, + COUNT ( * ) AS col1 FROM tab0 cor0
----
5
3

query I rowsort
SELECT DISTINCT - col1 + 40 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2229
SELECT + + 59 * - - COUNT( - - col0 ), 70 AS col0 FROM tab0 cor0
----
177
70

skipif mysql # not compatible
query II rowsort label-2229
SELECT + + 59 * - - COUNT ( - - col0 ), 70 AS col0 FROM tab0 cor0
----
177
70

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 * + - col2 * - col2 AS col0 FROM tab0
----
33135
8700
950697

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT 5 * + MAX( + - col0 ) FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-2232
SELECT 5 * + MAX ( + - col0 ) FROM tab0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2233
SELECT DISTINCT COUNT( - + CAST( NULL AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2233
SELECT DISTINCT COUNT ( - + CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT - col0 * - col0 + + - col2 AS col2 FROM tab1
----
2505
7166
8213

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT ALL - MIN( - col0 ) col0 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2235
SELECT ALL - MIN ( - col0 ) col0 FROM tab2
----
75

query I rowsort
SELECT - 9 - col0 AS col2 FROM tab0
----
-106
-24
-96

query I rowsort
SELECT ALL col2 + 23 + col1 FROM tab0
----
123
151
54

query I rowsort
SELECT + col2 + col1 * + col1 + + col1 * - - 54 FROM tab0
----
10982
154
1585

onlyif mysql # aggregate syntax: 
query II rowsort label-2239
SELECT DISTINCT - 22 + + - 25, + MIN( DISTINCT + col2 ) AS col0 FROM tab2 cor0
----
-47
23

skipif mysql # not compatible
query II rowsort label-2239
SELECT DISTINCT - 22 + + - 25, + MIN ( DISTINCT + col2 ) AS col0 FROM tab2 cor0
----
-47
23

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2241
SELECT ALL - + col2 * col0 - - 90 + - ( + + col1 ) DIV - + 85 + - + CAST( - + col2 AS SIGNED ) * - col2 * - - col1 * col0 AS col1 FROM tab2 AS cor0
----
-1242002
-16908360
-7887270

skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL - + col2 * col0 - - 90 + - ( + + col1 ) / - + 85 + - + CAST ( - + col2 AS INTEGER ) * - col2 * - - col1 * col0 AS col1 FROM tab2 AS cor0
----
-1242002
-16908360
-7887270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2242
SELECT CAST( + ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1, ( MIN( ALL + col2 ) ) * - - 43 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2242
SELECT CAST ( + ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1, ( MIN ( ALL + col2 ) ) * - - 43 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT ALL - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2243
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 74 col0 FROM tab2
----
-16
-34
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT COUNT( * ) col0 FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2245
SELECT COUNT ( * ) col0 FROM tab0, tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT + - col0 * + - col1 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT DISTINCT - SUM( DISTINCT col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2247
SELECT DISTINCT - SUM ( DISTINCT col0 ) FROM tab1 AS cor0
----
-227

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col1 ) col1 FROM tab1 cor0
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 <= NULL
----

query II rowsort
SELECT col0 AS col0, + col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2252
SELECT DISTINCT - - col2 FROM tab1 WHERE NOT + CAST( + + col1 AS SIGNED ) IS NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2252
SELECT DISTINCT - - col2 FROM tab1 WHERE NOT + CAST ( + + col1 AS INTEGER ) IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > col2
----

query I rowsort
SELECT ALL col0 * - - col2 FROM tab1
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 col0 FROM tab2
----
-40
-40
-40

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * col0 - + + 50 + - 93 IN ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2257
SELECT DISTINCT * FROM tab0 WHERE NOT + - CAST( - col2 AS SIGNED ) - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2257
SELECT DISTINCT * FROM tab0 WHERE NOT + - CAST ( - col2 AS INTEGER ) - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2258
SELECT * FROM tab1 WHERE NOT + CAST( - col2 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2258
SELECT * FROM tab1 WHERE NOT + CAST ( - col2 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 11 * - 27 FROM tab2
----
297

query I rowsort
SELECT - - col0 * + col2 FROM tab1 WHERE NOT - col1 + + col1 IN ( - 97 * - + 23, - col2 + - col2 )
----
4896
5015
6188

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 40 AND + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 col0 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
92
92
92

onlyif mysql # aggregate syntax: 
query II rowsort label-2263
SELECT COUNT( * ), + COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2263
SELECT COUNT ( * ), + COUNT ( * ) FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT ALL - COUNT( DISTINCT col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL - COUNT ( DISTINCT col0 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 89 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2266
SELECT ALL + col2 DIV - 83 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL + col2 / - 83 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT - col2 * + - 8 FROM tab1 AS cor0
----
472
544
768

query II rowsort
SELECT DISTINCT - col2, - 76 AS col1 FROM tab0 AS cor0
----
-10
-76
-47
-76
-99
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 col2 FROM tab0 cor0
----
41
41
41

query I rowsort
SELECT DISTINCT + 27 * - 51 * + col0 AS col0 FROM tab0
----
-119799
-133569
-20655

query I rowsort
SELECT DISTINCT col0 * - - 51 AS col0 FROM tab2
----
2346
3264
3825

query I rowsort
SELECT ALL ( - 94 ) * + - col0 * + + 99 AS col2 FROM tab1
----
474606
791010
846846

query I rowsort
SELECT DISTINCT 21 + - col1 AS col1 FROM tab1
----
-26
16
7

query I rowsort
SELECT DISTINCT - - col1 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + - col1 >= col0 AND NULL <> col2 + - ( - + 20 ) + - col0
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2276
SELECT ALL - - CAST( NULL AS SIGNED ) * CAST( 14 AS DECIMAL ) + - col1 + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2276
SELECT ALL - - CAST ( NULL AS INTEGER ) * CAST ( 14 AS REAL ) + - col1 + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2277
SELECT + CAST( - + 4 AS SIGNED ) + + COUNT( * ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2277
SELECT + CAST ( - + 4 AS INTEGER ) + + COUNT ( * ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT - - COUNT( * ) + + 98 FROM tab1 cor0
----
101

skipif mysql # not compatible
query I rowsort label-2278
SELECT - - COUNT ( * ) + + 98 FROM tab1 cor0
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2279
SELECT - col2 + - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2279
SELECT - col2 + - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col0 * - 50, 52 AS col0 FROM tab0 AS cor0
----
-4350
52
-4850
52
-750
52

query I rowsort
SELECT + ( + ( + + col1 ) ) + + - col2 FROM tab1 AS cor0
----
-21
-54
-82

query II rowsort
SELECT DISTINCT col1, col2 AS col0 FROM tab2
----
51
23
67
58
77
40

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 * + col0 col2 FROM tab0
----
-348
-388
-60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2285
SELECT DISTINCT 19 DIV - CAST( + - col0 AS SIGNED ) * + 12 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2285
SELECT DISTINCT 19 / - CAST ( + - col0 AS INTEGER ) * + 12 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT + COUNT( DISTINCT + col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2286
SELECT + COUNT ( DISTINCT + col2 ) AS col2 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 41 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 + - col2 col0 FROM tab0
----
0
200
3760

query I rowsort
SELECT DISTINCT col2 + 74 FROM tab0 AS cor0
----
121
173
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT ALL + MAX( + + 27 ) + + 24 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2290
SELECT ALL + MAX ( + + 27 ) + + 24 FROM tab0 AS cor0
----
51

query I rowsort
SELECT col0 - - 15 + + col1 + + + 15 + col0 * - + col1 FROM tab1 AS cor0
----
-305
-4109
-619

query I rowsort
SELECT DISTINCT col2 * - 79 AS col1 FROM tab0 WHERE ( + col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2293
SELECT CAST( + ( + CAST( NULL AS SIGNED ) ) AS DECIMAL ) + 65 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2293
SELECT CAST ( + ( + CAST ( NULL AS INTEGER ) ) AS REAL ) + 65 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT DISTINCT COUNT( ALL + col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2294
SELECT DISTINCT COUNT ( ALL + col0 ) AS col1 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( - col0 ) / + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 col0 FROM tab1
----
66
66
66

query I rowsort
SELECT ALL - 61 + 78 FROM tab0
----
17
17
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 79 + col0 * col2 col2 FROM tab1
----
4975
5094
6267

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT ALL - COUNT( * ) AS col0 FROM tab0 WHERE NOT col1 IN ( col0 + col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-2299
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 WHERE NOT col1 IN ( col0 + col2 )
----
-3

query I rowsort
SELECT - 6 FROM tab2 WHERE ( 92 ) IS NOT NULL
----
-6
-6
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-2301
SELECT ( col2 ) DIV + col2 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2301
SELECT ( col2 ) / + col2 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1
1
1

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT col1 * - col1 NOT IN ( - col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( + 66 ) AS col2 FROM tab2
----
66

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * ( 50 ) < ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( - 57 ) FROM tab0
----
57

query I rowsort
SELECT col0 * 92 + col2 AS col0 FROM tab1
----
4788
7879
8440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 40 col0 FROM tab1
----
19
28
56

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE NOT - col0 > + col0 * 76
----
-51
-85
-91

query III rowsort
SELECT * FROM tab0 WHERE + col1 NOT IN ( + 43 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2311
SELECT - col1 - + col1 * + col0 col1 FROM tab0 WHERE NOT col0 * CAST( NULL AS SIGNED ) > col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2311
SELECT - col1 - + col1 * + col0 col1 FROM tab0 WHERE NOT col0 * CAST ( NULL AS INTEGER ) > col1
----

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 WHERE ( NULL ) = col2
----

query I rowsort
SELECT + 17 * - 29 + col1 AS col2 FROM tab1
----
-446
-479
-488

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT COUNT( * ) + + 6 AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2315
SELECT COUNT ( * ) + + 6 AS col2 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT - COUNT( * ) FROM tab1 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2316
SELECT - COUNT ( * ) FROM tab1 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT - col1 AS col0 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 * + 13 col0 FROM tab0 cor0
----
481
481
481

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT ALL COUNT( + 22 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL COUNT ( + 22 ) AS col0 FROM tab1 cor0
----
3

query I rowsort
SELECT 93 * - 62 FROM tab0 AS cor0
----
-5766
-5766
-5766

query I rowsort
SELECT - col0 + - col1 FROM tab2 AS cor0 WHERE NULL BETWEEN ( - 22 ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2322
SELECT DISTINCT + col2 + 89 DIV - col0 AS col0 FROM tab0
----
42
9
99

skipif mysql # not compatible
query I rowsort label-2322
SELECT DISTINCT + col2 + 89 / - col0 AS col0 FROM tab0
----
42
9
99

query III rowsort
SELECT * FROM tab2 WHERE 47 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 83 + + col1 FROM tab1
----
130
88
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT DISTINCT COUNT( * ) + + MIN( DISTINCT + col2 ) FROM tab1 cor0
----
62

skipif mysql # not compatible
query I rowsort label-2325
SELECT DISTINCT COUNT ( * ) + + MIN ( DISTINCT + col2 ) FROM tab1 cor0
----
62

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 45 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT ALL + - MIN( col2 ) + + COUNT( * ) FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL + - MIN ( col2 ) + + COUNT ( * ) FROM tab0 AS cor0
----
-7

query I rowsort
SELECT ALL + col2 * col2 FROM tab2 AS cor0 WHERE - 74 * + col2 + 67 * col2 NOT BETWEEN NULL AND - col2 * col1
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT ALL 91 - 77 * COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
-140

skipif mysql # not compatible
query I rowsort label-2329
SELECT ALL 91 - 77 * COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
-140

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 <= col0 / + col1 + col1 * - 59
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 7 / col2 + + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT - 30 * COUNT( * ) col2 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2333
SELECT - 30 * COUNT ( * ) col2 FROM tab2 AS cor0
----
-90

query I rowsort
SELECT 41 AS col2 FROM tab2 cor0
----
41
41
41

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 AS cor0 WHERE ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT ALL + ( + SUM( 53 ) ) FROM tab0 WHERE 47 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL + ( + SUM ( 53 ) ) FROM tab0 WHERE 47 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT ALL - COUNT( ALL 27 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2337
SELECT ALL - COUNT ( ALL 27 ) FROM tab2
----
-3

query I rowsort
SELECT col0 - + col2 * col0 AS col0 FROM tab1
----
-4845
-4930
-6097

query I rowsort
SELECT ALL - 44 * + col2 FROM tab2
----
-1012
-1760
-2552

query I rowsort
SELECT 28 - - - ( ( col1 ) ) FROM tab2
----
-23
-39
-49

query I rowsort
SELECT col2 - 78 AS col2 FROM tab1
----
-10
-19
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2342
SELECT - 4 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2342
SELECT - 4 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * col2 FROM tab1 WHERE NOT NULL NOT IN ( col0 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT SUM( DISTINCT + col2 ) + 4 * 3 FROM tab2
----
133

skipif mysql # not compatible
query I rowsort label-2344
SELECT SUM ( DISTINCT + col2 ) + 4 * 3 FROM tab2
----
133

query I rowsort
SELECT 71 AS col0 FROM tab0 WHERE NULL IS NULL
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT ALL - COUNT( * ) * 27 FROM tab1 WHERE NOT NULL < 34
----
0

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL - COUNT ( * ) * 27 FROM tab1 WHERE NOT NULL < 34
----
0

query I rowsort
SELECT ALL 33 AS col2 FROM tab2 WHERE ( NULL ) IS NULL
----
33
33
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2348
SELECT - CAST( NULL AS DECIMAL ) * + SUM( 83 ) + + 99 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2348
SELECT - CAST ( NULL AS REAL ) * + SUM ( 83 ) + + 99 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - ( - - col2 ) AS col2 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL + 4 + + col1 + col0 AS col2 FROM tab1 cor0
----
142
69
94

query I rowsort
SELECT - col2 + + - col0 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT 56 * - 40 FROM tab2 AS cor0 WHERE ( + 78 ) IS NOT NULL
----
-2240

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - col0 * ( - col2 ) AND + 1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2354
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( + CAST( NULL AS DECIMAL ) ) = + col2
----

skipif mysql # not compatible
query III rowsort label-2354
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( + CAST ( NULL AS REAL ) ) = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2355
SELECT - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( - 52 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2357
SELECT ALL + 71 DIV + + col2 AS col2 FROM tab2
----
1
1
3

skipif mysql # not compatible
query I rowsort label-2357
SELECT ALL + 71 / + + col2 AS col2 FROM tab2
----
1
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT ALL MIN( - - col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2358
SELECT ALL MIN ( - - col2 ) AS col0 FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL col2 - 79 AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 * - col0 * 54 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT - SUM( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2360
SELECT - SUM ( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT - 47 AS col0 FROM tab1 cor0
----
-47
-47
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2362
SELECT 5 FROM tab2 AS cor0 WHERE NOT ( 85 * ( - CAST( ( 50 ) AS SIGNED ) ) ) NOT IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-2362
SELECT 5 FROM tab2 AS cor0 WHERE NOT ( 85 * ( - CAST ( ( 50 ) AS INTEGER ) ) ) NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT + MIN( col2 ) AS col1 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-2363
SELECT + MIN ( col2 ) AS col1 FROM tab2 cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT DISTINCT - ( - COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2364
SELECT DISTINCT - ( - COUNT ( * ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 * + + 4 * + col1 IN ( - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2367
SELECT DISTINCT col1 * + 54 - ( col1 ) AS col2 FROM tab0 WHERE + col1 >= - + CAST( NULL AS SIGNED ) * 28
----

skipif mysql # not compatible
query I rowsort label-2367
SELECT DISTINCT col1 * + 54 - ( col1 ) AS col2 FROM tab0 WHERE + col1 >= - + CAST ( NULL AS INTEGER ) * 28
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) = ( + 7 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 IS NOT NULL AND NOT 28 + + col2 * - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * + + 40 + + + 48 AS col2 FROM tab2
----
2088
2728
3128

query I rowsort
SELECT ALL col2 * - + col1 + + - col0 AS col1 FROM tab1
----
-1395
-3287
-380

query I rowsort
SELECT ALL + - 15 + + col2 + - col2 FROM tab1 AS cor0
----
-15
-15
-15

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + col1 * col0 / - col2 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT DISTINCT - - 68 + - - COUNT( + col1 ) + + - 66 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2374
SELECT DISTINCT - - 68 + - - COUNT ( + col1 ) + + - 66 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT MIN( DISTINCT - col2 ) AS col1 FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2375
SELECT MIN ( DISTINCT - col2 ) AS col1 FROM tab2 cor0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-2376
SELECT col1 DIV + 69 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2376
SELECT col1 / + 69 FROM tab0 cor0
----
0
0
1

query I rowsort
SELECT + col2 * 13 AS col0 FROM tab0
----
1287
130
611

query I rowsort
SELECT ALL + 77 * - 36 + + - col1 FROM tab0
----
-2773
-2793
-2853

query I rowsort
SELECT + + 58 AS col1 FROM tab1 WHERE - 49 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2380
SELECT - - 10 + + 60 + col1 * - + CAST( NULL AS SIGNED ) * - 96 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2380
SELECT - - 10 + + 60 + col1 * - + CAST ( NULL AS INTEGER ) * - 96 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND 47
----

query I rowsort
SELECT + + ( 44 ) + + + col0 + - - 50 FROM tab2 AS cor0
----
140
158
169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2383
SELECT ( - 67 ) AS col2 FROM tab0 AS cor0 WHERE ( - col1 / + CAST( + - col0 AS SIGNED ) + + 88 / - col0 ) <> 78
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-2383
SELECT ( - 67 ) AS col2 FROM tab0 AS cor0 WHERE ( - col1 / + CAST ( + - col0 AS INTEGER ) + + 88 / - col0 ) <> 78
----
-67
-67
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2384
SELECT ALL - CAST( NULL AS SIGNED ) * + COUNT( col2 ) - - 37 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL - CAST ( NULL AS INTEGER ) * + COUNT ( col2 ) - - 37 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col0 + + - col2 AS col0 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE + col0 IN ( - - 28 * col2 * - col1 + - col2 )
----

query I rowsort
SELECT 41 + + + 8 AS col1 FROM tab2 AS cor0
----
49
49
49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( col0 )
----

query I rowsort
SELECT - ( col2 ) FROM tab0 WHERE 22 IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT ALL COUNT( ALL + col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL COUNT ( ALL + col1 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT DISTINCT 72 + - MAX( ALL - col2 ) AS col2 FROM tab2 WHERE NOT NULL <= - + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2391
SELECT DISTINCT 72 + - MAX ( ALL - col2 ) AS col2 FROM tab2 WHERE NOT NULL <= - + col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2392
SELECT + col1 - - - col2 - - - CAST( + 9 AS SIGNED ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-107
2
25

skipif mysql # not compatible
query I rowsort label-2392
SELECT + col1 - - - col2 - - - CAST ( + 9 AS INTEGER ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-107
2
25

query III rowsort
SELECT * FROM tab2 WHERE ( NULL IN ( 97, + col2 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( + 91 ) = 85 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT DISTINCT - MIN( + col2 ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-2395
SELECT DISTINCT - MIN ( + col2 ) AS col2 FROM tab1
----
-59

query II rowsort
SELECT ALL + col2 AS col1, 90 * - col2 FROM tab1
----
59
-5310
68
-6120
96
-8640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2397
SELECT ALL CAST( col0 AS SIGNED ) * - 4 FROM tab1 AS cor0
----
-204
-340
-364

skipif mysql # not compatible
query I rowsort label-2397
SELECT ALL CAST ( col0 AS INTEGER ) * - 4 FROM tab1 AS cor0
----
-204
-340
-364

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 cor0 WHERE NOT NULL <> ( NULL )
----

query II rowsort
SELECT col0, col0 FROM tab2 cor0
----
46
46
64
64
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2400
SELECT ALL + + col1 * - col0 + - ( + CAST( NULL AS SIGNED ) ) + + - CAST( CAST( - col0 AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2400
SELECT ALL + + col1 * - col0 + - ( + CAST ( NULL AS INTEGER ) ) + + - CAST ( CAST ( - col0 AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN + ( + + 42 ) AND ( - + ( col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2402
SELECT ALL - 18 DIV + col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL - 18 / + col0 FROM tab0 AS cor0
----
-1
0
0

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT + ( - 67 ) FROM tab0
----
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + col1 ) col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT + + col0 * + + ( - col0 ) AS col1 FROM tab0 AS cor0
----
-225
-7569
-9409

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 1 IS NOT NULL
----

query I rowsort
SELECT - - col0 FROM tab2 AS cor0 WHERE NOT ( + col2 IS NULL )
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2409
SELECT ALL - - ( + 37 ) DIV SUM( ALL col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2409
SELECT ALL - - ( + 37 ) / SUM ( ALL col1 ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT DISTINCT MIN( ALL col2 ) col2 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2410
SELECT DISTINCT MIN ( ALL col2 ) col2 FROM tab0
----
10

query II rowsort
SELECT + col2 AS col1, ( col1 ) FROM tab0
----
10
21
47
81
99
1

query I rowsort
SELECT ALL col1 + + col0 AS col2 FROM tab2 WHERE NOT + 74 IS NULL
----
141
142
97

query I rowsort
SELECT ALL 26 * + 1 + col0 * col1 + - col2 AS col2 FROM tab0
----
1194
1843
24

query I rowsort
SELECT - 51 * + col1 FROM tab2
----
-2601
-3417
-3927

query II rowsort
SELECT DISTINCT - 72 AS col1, col0 FROM tab0 AS cor0
----
-72
15
-72
87
-72
97

query I rowsort
SELECT DISTINCT 91 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT COUNT( * ) AS col1 FROM tab0 WHERE ( ( - - col0 * col2 / - col0 NOT BETWEEN ( NULL ) AND col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2417
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE ( ( - - col0 * col2 / - col0 NOT BETWEEN ( NULL ) AND col1 ) )
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 NOT IN ( + 79 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT ALL COUNT( + 3 ) + - 86 AS col2 FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-2419
SELECT ALL COUNT ( + 3 ) + - 86 AS col2 FROM tab2 AS cor0
----
-83

query I rowsort
SELECT ALL col1 - col0 AS col0 FROM tab1 cor0
----
-37
-44
-80

query I rowsort
SELECT DISTINCT - col2 + ( - 60 ) AS col0 FROM tab2 cor0
----
-100
-118
-83

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 98 * col2 NOT BETWEEN + 99 AND + - col1 * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 - ( - col0 ) AS col2 FROM tab0 cor0
----
-2
-32
77

query I rowsort
SELECT - 4 - - col1 + + 34 * - + 66 FROM tab1 AS cor0
----
-2201
-2234
-2243

onlyif mysql # DIV for integer division: 
query I rowsort label-2425
SELECT - col2 DIV + col0 - col0 FROM tab1 AS cor0
----
-52
-85
-91

skipif mysql # not compatible
query I rowsort label-2425
SELECT - col2 / + col0 - col0 FROM tab1 AS cor0
----
-52
-85
-91

query I rowsort
SELECT DISTINCT 22 * + col2 * - - 9 FROM tab0
----
19602
1980
9306

query I rowsort
SELECT 17 * - + col1 AS col0 FROM tab0
----
-1377
-17
-357

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - col1 ) col0 FROM tab0
----
1
21
81

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 / - - col0 NOT IN ( col0, col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + + col2 + - col2 <= + col0
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2431
SELECT DISTINCT + 49 * + - col0 * - col2 col0, - CAST( col2 AS SIGNED ) + col2 + - - 98 col1 FROM tab0 AS cor0
----
34545
98
42630
98
470547
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2431
SELECT DISTINCT + 49 * + - col0 * - col2 col0, - CAST ( col2 AS INTEGER ) + col2 + - - 98 col1 FROM tab0 AS cor0
----
34545
98
42630
98
470547
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2432
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * + col2 * CAST( NULL AS SIGNED ) * + + col2 IN ( + ( 62 ), 17 * - - col1 + 17 )
----

skipif mysql # not compatible
query III rowsort label-2432
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * + col2 * CAST ( NULL AS INTEGER ) * + + col2 IN ( + ( 62 ), 17 * - - col1 + 17 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2435
SELECT ALL + + col2 AS col0 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL + + col2 AS col0 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
23
40
58

query II rowsort
SELECT ALL col1, col0 AS col2 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT + 65 * - COUNT( * ) * 4 AS col1 FROM tab2 AS cor0
----
-780

skipif mysql # not compatible
query I rowsort label-2437
SELECT + 65 * - COUNT ( * ) * 4 AS col1 FROM tab2 AS cor0
----
-780

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2438
SELECT - - ( + SUM( ALL - CAST( NULL AS DECIMAL ) ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2438
SELECT - - ( + SUM ( ALL - CAST ( NULL AS REAL ) ) ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT - - 18, col1 FROM tab1 AS cor0
----
18
14
18
47
18
5

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2441
SELECT - + 27 DIV + 56 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2441
SELECT - + 27 / + 56 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT 19 + COUNT( * ) AS col1 FROM tab0 cor0
----
22

skipif mysql # not compatible
query I rowsort label-2442
SELECT 19 + COUNT ( * ) AS col1 FROM tab0 cor0
----
22

query II rowsort
SELECT ALL + - col0 * col2 AS col0, 95 FROM tab1 AS cor0
----
-4896
95
-5015
95
-6188
95

query I rowsort
SELECT - 75 + - 28 AS col2 FROM tab1 AS cor0
----
-103
-103
-103

query III rowsort
SELECT * FROM tab2 WHERE + col1 <= - 95
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - - col2 col1 FROM tab2
----
-1600
-3364
-529

query II rowsort
SELECT ALL - 52, + 48 * - col0 - col1 AS col0 FROM tab0 WHERE - - 73 NOT BETWEEN + - col2 AND NULL
----

query I rowsort
SELECT - + col2 AS col1 FROM tab2 WHERE NULL IS NULL
----
-23
-40
-58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > NULL OR NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT + col1 + + 23 AS col1 FROM tab0 AS cor0
----
104
24
44

query I rowsort
SELECT 95 - + col0 AS col1 FROM tab0
----
-2
8
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT DISTINCT COUNT( * ) + + 51 * - - 22 - - 3 AS col2 FROM tab1
----
1128

skipif mysql # not compatible
query I rowsort label-2453
SELECT DISTINCT COUNT ( * ) + + 51 * - - 22 - - 3 AS col2 FROM tab1
----
1128

onlyif mysql # DIV for integer division: 
query I rowsort label-2454
SELECT ALL + col2 + + col0 + - + 20 DIV - ( - col1 ) * + col1 AS col1 FROM tab0 AS cor0
----
176
62
97

skipif mysql # not compatible
query I rowsort label-2454
SELECT ALL + col2 + + col0 + - + 20 / - ( - col1 ) * + col1 AS col1 FROM tab0 AS cor0
----
176
62
97

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2455
SELECT DISTINCT - - 75 + - CAST( CAST( col1 AS DECIMAL ) AS SIGNED ) * + col2 AS col2 FROM tab1 AS cor0
----
-1269
-220
-3121

skipif mysql # not compatible
query I rowsort label-2455
SELECT DISTINCT - - 75 + - CAST ( CAST ( col1 AS REAL ) AS INTEGER ) * + col2 AS col2 FROM tab1 AS cor0
----
-1269
-220
-3121

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 13 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2457
SELECT ALL 41 + - ( - col2 ) + - col0 / CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 WHERE 81 BETWEEN + + col2 AND ( - 12 * col2 + - 11 - - + col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2457
SELECT ALL 41 + - ( - col2 ) + - col0 / CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 WHERE 81 BETWEEN + + col2 AND ( - 12 * col2 + - 11 - - + col2 )
----

query I rowsort
SELECT + ( col0 ) * 79 + + + col0 FROM tab0 AS cor0
----
1200
6960
7760

query I rowsort
SELECT - + ( + 69 ) AS col0 FROM tab1 AS cor0
----
-69
-69
-69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2460
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2460
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( + col1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + 33 FROM tab1 cor0
----
33

onlyif mysql # DIV for integer division: 
query II rowsort label-2462
SELECT DISTINCT + col2 AS col0, 43 DIV - 15 AS col2 FROM tab0 AS cor0
----
10
-2
47
-2
99
-2

skipif mysql # not compatible
query II rowsort label-2462
SELECT DISTINCT + col2 AS col0, 43 / - 15 AS col2 FROM tab0 AS cor0
----
10
-2
47
-2
99
-2

query I rowsort
SELECT - col2 * + 40 AS col1 FROM tab1
----
-2360
-2720
-3840

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT ALL - COUNT( - col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL - COUNT ( - col2 ) FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 57 AS col0, - col0 col0 FROM tab2 WHERE + col2 IS NOT NULL
----
57
-46
57
-64
57
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE NOT - col2 - - ( col0 ) = + col2
----
-3

skipif mysql # not compatible
query I rowsort label-2467
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT - col2 - - ( col0 ) = + col2
----
-3

query I rowsort
SELECT ALL - ( + + col2 ) AS col0 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT - col0 + - 50 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 col0 FROM tab2
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT ALL ( SUM( DISTINCT - + ( + - col2 ) ) ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL ( SUM ( DISTINCT - + ( + - col2 ) ) ) FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2472
SELECT + col1 * + + col2 / - + col0 * CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2472
SELECT + col1 * + + col2 / - + col0 * CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < 61
----

query I rowsort
SELECT - 7 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT - COUNT( * ) + - 99 FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-2475
SELECT - COUNT ( * ) + - 99 FROM tab0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT DISTINCT + 80 * + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT + 80 * + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT ALL 11 AS col1, col2 AS col2 FROM tab1
----
11
59
11
68
11
96

query I rowsort
SELECT 72 + - col2 FROM tab1 AS cor0
----
-24
13
4

query I rowsort
SELECT 8 * - col0 FROM tab0 AS cor0
----
-120
-696
-776

query I rowsort
SELECT DISTINCT 9 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query II rowsort
SELECT ALL col2, ( + - col1 ) FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

query I rowsort
SELECT DISTINCT + + 64 AS col0 FROM tab0 AS cor0
----
64

query I rowsort
SELECT ALL - 0 * - col1 AS col1 FROM tab1
----
0
0
0

query II rowsort
SELECT 99 AS col0, 40 AS col1 FROM tab1
----
99
40
99
40
99
40

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2486
SELECT COUNT( ALL - CAST( NULL AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2486
SELECT COUNT ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 WHERE col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2487
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 WHERE col1 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT col2 * col1 * col2 FROM tab0
----
178929
2100
9801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2489
SELECT ALL + COUNT( * ) / - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2489
SELECT ALL + COUNT ( * ) / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col1 * - 20 - 56 + + + col0 col0 FROM tab2
----
1056
1434
1612

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT COUNT( * ) FROM tab2 cor0 JOIN tab2 AS cor1 ON NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-2491
SELECT COUNT ( * ) FROM tab2 cor0 JOIN tab2 AS cor1 ON NULL IS NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT DISTINCT SUM( DISTINCT - col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT SUM ( DISTINCT - col0 ) FROM tab1
----
-227

query I rowsort
SELECT ALL 44 + 58 FROM tab0
----
102
102
102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 61 + - - col1 col2 FROM tab2
----
-10
16
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT ALL - COUNT( DISTINCT - + 84 ) + + MIN( DISTINCT + col2 ) AS col0 FROM tab2 cor0
----
22

skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL - COUNT ( DISTINCT - + 84 ) + + MIN ( DISTINCT + col2 ) AS col0 FROM tab2 cor0
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-2496
SELECT + col2 DIV + col1 AS col0 FROM tab0 cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-2496
SELECT + col2 / + col1 AS col0 FROM tab0 cor0
----
0
0
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col1
----

query II rowsort
SELECT DISTINCT + col1 AS col1, + col1 FROM tab2 AS cor0 WHERE col0 = - col1 + - 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2499
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT - 90 - + 87 + - SUM( - 14 ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 - - col0 BETWEEN NULL AND 71
----
-149

skipif mysql # not compatible
query I rowsort label-2500
SELECT - 90 - + 87 + - SUM ( - 14 ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 - - col0 BETWEEN NULL AND 71
----
-149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2501
SELECT ALL - SUM( DISTINCT - col0 ) * - 37 * + AVG ( DISTINCT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL - SUM ( DISTINCT - col0 ) * - 37 * + AVG ( DISTINCT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2502
SELECT col2, + CAST( NULL AS SIGNED ) col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2502
SELECT col2, + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

query II rowsort
SELECT 97 AS col1, - col2 AS col0 FROM tab2
----
97
-23
97
-40
97
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2504
SELECT - col2 * + CAST( NULL AS SIGNED ) * + - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2504
SELECT - col2 * + CAST ( NULL AS INTEGER ) * + - col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE col0 > ( + + 19 * - 89 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT ALL MIN( DISTINCT - + col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL MIN ( DISTINCT - + col0 ) FROM tab2
----
-75

query II rowsort
SELECT ALL col2 AS col0, 74 FROM tab0
----
10
74
47
74
99
74

query I rowsort
SELECT ALL - col0 * + - col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2509
SELECT - col2 DIV - - 51 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2509
SELECT - col2 / - - 51 AS col2 FROM tab0 AS cor0
----
-1
0
0

query II rowsort
SELECT + col2, col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT ALL COUNT( * ) + - 39 FROM tab2 AS cor0 WHERE NOT ( NULL ) < - col0
----
-39

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL COUNT ( * ) + - 39 FROM tab2 AS cor0 WHERE NOT ( NULL ) < - col0
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 70 + - 49 * - + col2 + 74 col0, - 17 AS col1 FROM tab1 AS cor0
----
3035
-17
3476
-17
4848
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2513
SELECT DISTINCT + COUNT( * ) + - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2513
SELECT DISTINCT + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + 27 FROM tab2 cor0
----
27
27
27

query I rowsort
SELECT DISTINCT ( + 51 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * + 83 AS col0, 89 col0 FROM tab2 AS cor0
----
1909
89
3320
89
4814
89

query II rowsort
SELECT 97 + - col1 AS col1, col2 FROM tab0 AS cor0
----
16
47
76
10
96
99

query I rowsort
SELECT + col1 + - + 36 + + col1 + - col2 AS col0 FROM tab1 AS cor0
----
-10
-104
-85

query I rowsort
SELECT 93 + + + col0 FROM tab1
----
144
178
184

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT DISTINCT COUNT( * ) + + 82 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-2520
SELECT DISTINCT COUNT ( * ) + + 82 FROM tab1
----
85

query I rowsort
SELECT 16 * 46 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2522
SELECT + 60 DIV col1 * 65 * - col2 AS col2 FROM tab1
----
-24960
-4420
-46020

skipif mysql # not compatible
query I rowsort label-2522
SELECT + 60 / col1 * 65 * - col2 AS col2 FROM tab1
----
-24960
-4420
-46020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2523
SELECT DISTINCT CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2523
SELECT DISTINCT CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2
----
NULL

query II rowsort
SELECT ALL - col2 + + - ( + ( - col1 ) ) * col2 AS col2, col2 FROM tab0
----
0
99
200
10
3760
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 48 col0 FROM tab2
----
115
125
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT MIN( ALL + col2 ) - - - COUNT( * ) FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-2526
SELECT MIN ( ALL + col2 ) - - - COUNT ( * ) FROM tab1 AS cor0
----
56

query I rowsort
SELECT DISTINCT 94 - col2 + col2 FROM tab2
----
94

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query II rowsort
SELECT ALL + 51 AS col2, - 6 FROM tab2
----
51
-6
51
-6
51
-6

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT ( NOT ( + 21 IS NULL ) )
----

query II rowsort
SELECT DISTINCT - 92, col0 AS col0 FROM tab1
----
-92
51
-92
85
-92
91

query I rowsort
SELECT 21 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT 7 * COUNT( * ) FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-2533
SELECT 7 * COUNT ( * ) FROM tab1 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT - COUNT( ALL col0 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2534
SELECT - COUNT ( ALL col0 ) AS col1 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT DISTINCT 98 AS col0, - col0 AS col1 FROM tab2 AS cor0
----
98
-46
98
-64
98
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT DISTINCT + + COUNT( - col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2536
SELECT DISTINCT + + COUNT ( - col2 ) AS col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT - + col1, col2 AS col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2538
SELECT - ( - col1 ) AS col2, - col1 + + - col0 + - CAST( NULL AS SIGNED ) FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-2538
SELECT - ( - col1 ) AS col2, - col1 + + - col0 + - CAST ( NULL AS INTEGER ) FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2539
SELECT DISTINCT - CAST( - col2 AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2539
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT + 92 * + - COUNT( * ) AS col2 FROM tab2
----
-276

skipif mysql # not compatible
query I rowsort label-2540
SELECT + 92 * + - COUNT ( * ) AS col2 FROM tab2
----
-276

query I rowsort
SELECT + col0 * + - col2 FROM tab2
----
-1058
-2560
-4350

query II rowsort
SELECT ALL - ( + + col1 ), + col1 AS col0 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2544
SELECT ALL - CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2544
SELECT ALL - CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + - 9 FROM tab2 WHERE + + col0 IS NULL
----

query II rowsort
SELECT DISTINCT col2 AS col2, col1 * - + ( - - ( + 11 ) ) * col0 + + ( - col2 ) AS col1 FROM tab2
----
23
-25829
40
-54248
58
-55333

query I rowsort
SELECT - - 75 * + - 62 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fd454a468d44602962b694deb4b5db38

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE 85 > + col2
----
-23
-40
-58

query II rowsort
SELECT - col0, - col2 AS col0 FROM tab2 AS cor0
----
-46
-23
-64
-40
-75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT + MIN( ALL - - col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2550
SELECT + MIN ( ALL - - col1 ) AS col0 FROM tab1 AS cor0
----
5

query I rowsort
SELECT DISTINCT 14 * 54 FROM tab0 AS cor0
----
756

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + + col1 ) NOT IN ( - col0, + 27 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2553
SELECT * FROM tab2 AS cor0 WHERE + CAST( + col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2553
SELECT * FROM tab2 AS cor0 WHERE + CAST ( + col0 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2554
SELECT DISTINCT - + COUNT( * ) DIV - ( + COUNT( * ) ) + COUNT( * ) - + COUNT( * ) - - 45 AS col0 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2554
SELECT DISTINCT - + COUNT ( * ) / - ( + COUNT ( * ) ) + COUNT ( * ) - + COUNT ( * ) - - 45 AS col0 FROM tab0 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT + SUM( + col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2555
SELECT + SUM ( + col1 ) AS col0 FROM tab0 AS cor0
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-2556
SELECT + ( - 77 ) DIV - ( + col2 ) AS col0 FROM tab2 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-2556
SELECT + ( - 77 ) / - ( + col2 ) AS col0 FROM tab2 AS cor0
----
1
1
3

query I rowsort
SELECT col0 * + - 71 - + - col0 FROM tab2
----
-3220
-4480
-5250

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2558
SELECT 10 / + - MAX( + + CAST( NULL AS DECIMAL ) ) - - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2558
SELECT 10 / + - MAX ( + + CAST ( NULL AS REAL ) ) - - COUNT ( * ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT DISTINCT + ( COUNT( * ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2560
SELECT DISTINCT + ( COUNT ( * ) ) AS col1 FROM tab0
----
3

query I rowsort
SELECT - 54 + + + 67 FROM tab1 AS cor0
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT + COUNT( * ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2562
SELECT + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - AVG ( DISTINCT - 52 ) AS col0 FROM tab1 AS cor0 WHERE NULL IN ( + col1 * col2, col2 * + + ( + - 18 ) )
----
NULL

query I rowsort
SELECT + ( + 58 ) FROM tab1 AS cor0
----
58
58
58

query I rowsort
SELECT ALL 5 * - col2 FROM tab1 cor0
----
-295
-340
-480

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT col1 IS NULL )
----

query I rowsort
SELECT DISTINCT 38 AS col1 FROM tab0 AS cor0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2568
SELECT ALL - + 5 * + col0 * - CAST( col2 AS SIGNED ) FROM tab2 cor0
----
12800
21750
5290

skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL - + 5 * + col0 * - CAST ( col2 AS INTEGER ) FROM tab2 cor0
----
12800
21750
5290

query I rowsort
SELECT col2 * - + col2 * + + 22 FROM tab1 AS cor0
----
-101728
-202752
-76582

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - col0 col2, - col1 FROM tab2 AS cor0 WHERE NOT ( ( NULL ) <> NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 * - col0 * 58 - col0 col1 FROM tab0 AS cor0
----
232029
258699
40005

onlyif mysql # DIV for integer division: 
query I rowsort label-2572
SELECT + + 6 DIV col2 col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2572
SELECT + + 6 / col2 col2 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT - + col1 AS col1, - 42 FROM tab2 AS cor0
----
-51
-42
-67
-42
-77
-42

query II rowsort
SELECT 39 AS col1, 26 FROM tab0 AS cor0
----
39
26
39
26
39
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT ALL - - COUNT( 75 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL - - COUNT ( 75 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT + col0 AS col2, 77 FROM tab2
----
46
77
64
77
75
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT - COUNT( ALL + col0 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2577
SELECT - COUNT ( ALL + col0 ) AS col2 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2578
SELECT ALL - 35 DIV col1 FROM tab0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-2578
SELECT ALL - 35 / col1 FROM tab0
----
-1
-35
0

query II rowsort
SELECT + 56 AS col0, + col0 AS col1 FROM tab0
----
56
15
56
87
56
97

query II rowsort
SELECT ALL - col2, col2 FROM tab1
----
-59
59
-68
68
-96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT - MIN( ALL - 36 ) AS col2 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-2581
SELECT - MIN ( ALL - 36 ) AS col2 FROM tab0
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2582
SELECT ALL + 15 DIV - MAX( + 58 ) * 66 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL + 15 / - MAX ( + 58 ) * 66 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT DISTINCT - - MAX( DISTINCT + col1 ) FROM tab1 cor0 WHERE col1 IS NOT NULL
----
47

skipif mysql # not compatible
query I rowsort label-2583
SELECT DISTINCT - - MAX ( DISTINCT + col1 ) FROM tab1 cor0 WHERE col1 IS NOT NULL
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT - + ( + MAX( ALL - 26 ) ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-2584
SELECT - + ( + MAX ( ALL - 26 ) ) FROM tab2 AS cor0
----
26

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col1 * col0, - col0 / - col0, + ( - col2 ) * - 31 * + + col0 * - col1 + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2586
SELECT ALL - col2 + + col2 FROM tab1 cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2586
SELECT ALL - col2 + + col2 FROM tab1 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
0
0
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE 81 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2589
SELECT CAST( COUNT( * ) AS SIGNED ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2589
SELECT CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT * FROM tab0 WHERE NULL < - - col1 * - + col2
----

query I rowsort
SELECT col2 + - 35 + 54 AS col0 FROM tab1 AS cor0
----
115
78
87

query I rowsort
SELECT DISTINCT + + ( + + 15 ) + + - col0 AS col2 FROM tab0 AS cor0
----
-72
-82
0

query I rowsort
SELECT + 90 + - col2 AS col2 FROM tab2 AS cor0
----
32
50
67

query I rowsort
SELECT + + 47 + - - ( - - 21 ) AS col2 FROM tab1 cor0
----
68
68
68

query I rowsort
SELECT col1 + - - 57 FROM tab2 cor0
----
108
124
134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2596
SELECT + CAST( - - AVG ( DISTINCT col1 ) AS SIGNED ) + + + 48 AS col2 FROM tab0 cor0
----
82

skipif mysql # not compatible
query I rowsort label-2596
SELECT + CAST ( - - AVG ( DISTINCT col1 ) AS INTEGER ) + + + 48 AS col2 FROM tab0 cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT ALL - COUNT( * ) + - + COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL - COUNT ( * ) + - + COUNT ( * ) FROM tab1 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2598
SELECT AVG ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2598
SELECT AVG ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 + 98 col0 FROM tab0 AS cor0
----
198
2307
9899

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2600
SELECT DISTINCT - + COUNT( * ) DIV 39 - - 2 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-2600
SELECT DISTINCT - + COUNT ( * ) / 39 - - 2 FROM tab0 AS cor0
----
2

query I rowsort
SELECT ALL 11 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col1 * col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2602
SELECT ( - 21 ) + + 2 DIV + 84 + - - col2 FROM tab2
----
19
2
37

skipif mysql # not compatible
query I rowsort label-2602
SELECT ( - 21 ) + + 2 / + 84 + - - col2 FROM tab2
----
19
2
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT ALL ( COUNT( * ) ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2603
SELECT ALL ( COUNT ( * ) ) col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT DISTINCT + SUM( ALL - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2604
SELECT DISTINCT + SUM ( ALL - col1 ) FROM tab0
----
-103

query I rowsort
SELECT + + col0 - 93 AS col1 FROM tab0 AS cor0
----
-6
-78
4

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL = + - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2607
SELECT CAST( NULL AS SIGNED ) - + - ( + CAST( - 28 AS SIGNED ) ) * COUNT( * ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2607
SELECT CAST ( NULL AS INTEGER ) - + - ( + CAST ( - 28 AS INTEGER ) ) * COUNT ( * ) FROM tab2 cor0
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + - 83 col0 FROM tab2 AS cor0
----
-3818
-5312
-6225

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT DISTINCT + COUNT( ALL 21 ) AS col1 FROM tab1 AS cor0 WHERE NOT + 19 NOT IN ( - + col1, col0 * + + 10 )
----
0

skipif mysql # not compatible
query I rowsort label-2610
SELECT DISTINCT + COUNT ( ALL 21 ) AS col1 FROM tab1 AS cor0 WHERE NOT + 19 NOT IN ( - + col1, col0 * + + 10 )
----
0

query I rowsort
SELECT col2 * col0 * + col2 FROM tab2 AS cor0
----
102400
24334
252300

query I rowsort
SELECT ALL + + 34 * - col1 AS col2 FROM tab1 cor0
----
-1598
-170
-476

query I rowsort
SELECT DISTINCT 35 AS col1 FROM tab1, tab2 AS cor0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2614
SELECT 41, + col0 + + - CAST( NULL AS SIGNED ) * - col1 / - col0 col0 FROM tab0
----
41
NULL
41
NULL
41
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2614
SELECT 41, + col0 + + - CAST ( NULL AS INTEGER ) * - col1 / - col0 col0 FROM tab0
----
41
NULL
41
NULL
41
NULL

query I rowsort
SELECT ALL + ( - + 99 ) + + col1 FROM tab1
----
-52
-85
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT - 73 - - COUNT( * ) AS col2 FROM tab1, tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-2616
SELECT - 73 - - COUNT ( * ) AS col2 FROM tab1, tab1 AS cor0
----
-64

query I rowsort
SELECT DISTINCT + col1 + - - 20 AS col0 FROM tab1
----
25
34
67

query I rowsort
SELECT + col2 FROM tab1 cor0 WHERE NOT - col0 NOT BETWEEN + col1 AND NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col2, col2 * - col0 + - col2 FROM tab2 AS cor0
----
-46
-1081
-64
-2600
-75
-4408

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2620
SELECT - ( + 78 ) * + col2 + col1 + col1, CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-4592
NULL
-5210
NULL
-7460
NULL

skipif mysql # not compatible
query II rowsort label-2620
SELECT - ( + 78 ) * + col2 + col1 + col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-4592
NULL
-5210
NULL
-7460
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2621
SELECT DISTINCT col1 AS col1, + col1 DIV + col2 col1 FROM tab1
----
14
0
47
0
5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2621
SELECT DISTINCT col1 AS col1, + col1 / + col2 col1 FROM tab1
----
14
0
47
0
5
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT DISTINCT + col2 + - 33 * - + col0 AS col2 FROM tab2
----
1541
2152
2533

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT 59 * - 80 * + - MAX( + col0 ) FROM tab2 cor0
----
354000

skipif mysql # not compatible
query I rowsort label-2624
SELECT 59 * - 80 * + - MAX ( + col0 ) FROM tab2 cor0
----
354000

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT ALL COUNT( * ) - MIN( DISTINCT + + 17 ) FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL COUNT ( * ) - MIN ( DISTINCT + + 17 ) FROM tab0 AS cor0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-2626
SELECT DISTINCT + col2 - - - col1 DIV + + col0 FROM tab2 cor0
----
22
39
58

skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT + col2 - - - col1 / + + col0 FROM tab2 cor0
----
22
39
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2627
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST( + - col0 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-2627
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST ( + - col0 AS INTEGER ) < NULL
----

query I rowsort
SELECT ALL ( - 81 ) AS col2 FROM tab2 AS cor0 WHERE NULL <= - 83
----

query I rowsort
SELECT DISTINCT + - col0 - + - col2 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT ALL - - 7 - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-2630
SELECT ALL - - 7 - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
4

query I rowsort
SELECT DISTINCT + 92 - - + col2 FROM tab1
----
151
160
188

query I rowsort
SELECT 21 - - col1 + - + col2 FROM tab0
----
-77
32
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 + + + col2 - col0 col1 FROM tab2
----
117
130
79

query I rowsort
SELECT - col0 + 25 FROM tab2
----
-21
-39
-50

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT col2 + + col2, col2 FROM tab2
----
116
58
46
23
80
40

onlyif mysql # DIV for integer division: 
query II rowsort label-2637
SELECT - col1 + - - 63 AS col2, - col0 DIV + - 78 FROM tab0
----
-18
0
42
1
62
1

skipif mysql # not compatible
query II rowsort label-2637
SELECT - col1 + - - 63 AS col2, - col0 / + - 78 FROM tab0
----
-18
0
42
1
62
1

query I rowsort
SELECT DISTINCT + - col2 AS col0 FROM tab0 WHERE - col1 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2639
SELECT + 58 DIV + col0 AS col0 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2639
SELECT + 58 / + col0 AS col0 FROM tab0
----
0
0
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 76 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2641
SELECT + CAST( NULL AS SIGNED ) * + 67 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2641
SELECT + CAST ( NULL AS INTEGER ) * + 67 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col1 * + - 16 AS col0 FROM tab2 AS cor0
----
-1072
-1232
-816

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + 40 <> NULL
----

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT col0 * - + col0 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT DISTINCT - MAX( ALL + 29 ) FROM tab1 cor0
----
-29

skipif mysql # not compatible
query I rowsort label-2647
SELECT DISTINCT - MAX ( ALL + 29 ) FROM tab1 cor0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT ALL + ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2648
SELECT ALL + ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT + MIN( ALL + col0 ) FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2649
SELECT + MIN ( ALL + col0 ) FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2650
SELECT - 36 DIV + col2 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-2650
SELECT - 36 / + col2 FROM tab0 AS cor0
----
-3
0
0

query I rowsort
SELECT + ( col1 ) * - - col1 + - col0 * 95 * + - col2 FROM tab1 AS cor0
----
465316
476450
590069

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2652
SELECT + 10 + - CAST( col1 AS SIGNED ) FROM tab0
----
-11
-71
9

skipif mysql # not compatible
query I rowsort label-2652
SELECT + 10 + - CAST ( col1 AS INTEGER ) FROM tab0
----
-11
-71
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 col1 FROM tab2
----
-25
-25
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col0 col1 FROM tab2
----
-8
13
5

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > col2 + - ( + col1 ) * ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT DISTINCT SUM( DISTINCT col2 ) * + - 70 FROM tab1
----
-15610

skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT SUM ( DISTINCT col2 ) * + - 70 FROM tab1
----
-15610

query I rowsort
SELECT DISTINCT + ( + - col1 ) AS col0 FROM tab0 WHERE - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 <> + 77 + - col2 - 56
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 47 AS col0 FROM tab2 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2660
SELECT col1 * + + 8 + ( + CAST( NULL AS DECIMAL ) ) FROM tab2 WHERE + + 99 * - + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2660
SELECT col1 * + + 8 + ( + CAST ( NULL AS REAL ) ) FROM tab2 WHERE + + 99 * - + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> + col0 * - 88
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2662
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col2 + + col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2662
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col2 + + col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT DISTINCT 76 + - MIN( ALL + col1 ) FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2663
SELECT DISTINCT 76 + - MIN ( ALL + col1 ) FROM tab0 AS cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - 21 col1 FROM tab2 AS cor0
----
19
2
37

query I rowsort
SELECT 29 * - col2 * + col1 AS col0 FROM tab1
----
-38976
-8555
-92684

query III rowsort
SELECT * FROM tab2 WHERE + 43 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT DISTINCT - COUNT( * ) - + + 52 AS col1 FROM tab2 cor0
----
-55

skipif mysql # not compatible
query I rowsort label-2667
SELECT DISTINCT - COUNT ( * ) - + + 52 AS col1 FROM tab2 cor0
----
-55

query I rowsort
SELECT - 37 + + - col1 + - 11 AS col0 FROM tab0 AS cor0
----
-129
-49
-69

query I rowsort
SELECT DISTINCT col0 + - ( - + 36 ) AS col2 FROM tab2 AS cor0
----
100
111
82

query I rowsort
SELECT - col1 + + 7 FROM tab2 cor0
----
-44
-60
-70

query I rowsort
SELECT DISTINCT + + 10 FROM tab1 AS cor0 WHERE ( col0 * ( - - col0 ) ) > + 2 / col0
----
10

query I rowsort
SELECT + + col2 * - + col2 + + + col2 AS col2 FROM tab0 AS cor0
----
-2162
-90
-9702

query I rowsort
SELECT ALL - - 27 FROM tab2 AS cor0
----
27
27
27

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> - col0
----

query I rowsort
SELECT ALL - col0 - col0 + - - 18 - - col1 AS col2 FROM tab2 AS cor0
----
-23
-33
-65

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= + - 8
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN 98 AND + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * - 90 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + 3 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT - COUNT( * ) * + ( + 41 ) col0 FROM tab1
----
-123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2680
SELECT - COUNT ( * ) * + ( + 41 ) col0 FROM tab1
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT DISTINCT SUM( DISTINCT + col2 ) col2 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2681
SELECT DISTINCT SUM ( DISTINCT + col2 ) col2 FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT MAX( + 35 ) * - 89 FROM tab2 AS cor0
----
-3115

skipif mysql # not compatible
query I rowsort label-2682
SELECT MAX ( + 35 ) * - 89 FROM tab2 AS cor0
----
-3115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2683
SELECT - COUNT( ALL - col1 ) DIV - 95 + 13 FROM tab1 cor0
----
13

skipif mysql # not compatible
query I rowsort label-2683
SELECT - COUNT ( ALL - col1 ) / - 95 + 13 FROM tab1 cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT ALL + MAX( DISTINCT + + 13 ) FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL + MAX ( DISTINCT + + 13 ) FROM tab0 AS cor0
----
13

query II rowsort
SELECT 71 AS col0, + col2 * - 94 FROM tab0 cor0
----
71
-4418
71
-9306
71
-940

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT - SUM( + + 84 ) * 43 AS col0 FROM tab2 AS cor0 WHERE NOT ( - + 57 ) * - + 11 * - col1 BETWEEN + 48 + + - col1 AND - ( + col0 ) / col0
----
-10836

skipif mysql # not compatible
query I rowsort label-2686
SELECT - SUM ( + + 84 ) * 43 AS col0 FROM tab2 AS cor0 WHERE NOT ( - + 57 ) * - + 11 * - col1 BETWEEN + 48 + + - col1 AND - ( + col0 ) / col0
----
-10836

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2687
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT ALL - - 71 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2690
SELECT - + CAST( - + 43 AS SIGNED ) / col2 * col1 FROM tab1 AS cor0 WHERE NOT - col2 + - ( + + 55 ) / - 79 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2690
SELECT - + CAST ( - + 43 AS INTEGER ) / col2 * col1 FROM tab1 AS cor0 WHERE NOT - col2 + - ( + + 55 ) / - 79 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 * + 34, - col0 col1 FROM tab1 cor0
----
-1598
-91
-170
-85
-476
-51

query I rowsort
SELECT DISTINCT + ( - - col0 ) AS col1 FROM tab2 cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2693
SELECT * FROM tab1 WHERE NULL NOT IN ( - col1 / - - ( + 16 ) + + + col1, + ( - + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-2693
SELECT * FROM tab1 WHERE NULL NOT IN ( - col1 / - - ( + 16 ) + + + col1, + ( - + CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT DISTINCT col1 * + 93 * - col1 * col2 FROM tab0
----
-28678131
-410130
-9207

onlyif mysql # aggregate syntax: 
query II rowsort label-2695
SELECT ALL - COUNT( * ) AS col1, COUNT( * ) AS col2 FROM tab2
----
-3
3

skipif mysql # not compatible
query II rowsort label-2695
SELECT ALL - COUNT ( * ) AS col1, COUNT ( * ) AS col2 FROM tab2
----
-3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2696
SELECT DISTINCT + MIN( ALL - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2696
SELECT DISTINCT + MIN ( ALL - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL + col2 + 81 FROM tab0 AS cor0
----
128
180
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 <> - ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT DISTINCT - col0 * 43 AS col1 FROM tab0 AS cor0
----
-3741
-4171
-645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2701
SELECT ALL - + col1 * ( + CAST( - 69 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
1449
5589
69

skipif mysql # not compatible
query I rowsort label-2701
SELECT ALL - + col1 * ( + CAST ( - 69 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
1449
5589
69

query II rowsort
SELECT DISTINCT + 52 - + col2, + 89 * - 0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 55 - - - col2 AS col0 FROM tab2 AS cor0
----
-3
15
32

query I rowsort
SELECT col0 + + 24 + 16 AS col1 FROM tab1
----
125
131
91

query I rowsort
SELECT ALL 14 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * + col0 / + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL = ( NULL )
----

query I rowsort
SELECT ALL ( + + col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT DISTINCT COUNT( col1 ) - + + 19 FROM tab2 cor0
----
-16

skipif mysql # not compatible
query I rowsort label-2709
SELECT DISTINCT COUNT ( col1 ) - + + 19 FROM tab2 cor0
----
-16

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) < - col1
----

query I rowsort
SELECT - + 50 FROM tab0 AS cor0 WHERE NULL > ( NULL )
----

query II rowsort
SELECT ALL + 7 * + col1 AS col1, + col0 + - 9 FROM tab1 AS cor0
----
329
82
35
76
98
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2713
SELECT + + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2713
SELECT + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT ( MAX( ALL - ( + + 48 ) ) ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-2714
SELECT ( MAX ( ALL - ( + + 48 ) ) ) FROM tab2
----
-48

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2715
SELECT CAST( NULL AS DECIMAL ) * CAST( + col0 AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2715
SELECT CAST ( NULL AS REAL ) * CAST ( + col0 AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col2 AS col0, - ( - + col0 ) AS col0 FROM tab2
----
23
46
40
64
58
75

query II rowsort
SELECT - col2 AS col2, ( + + ( col0 ) ) FROM tab2
----
-23
46
-40
64
-58
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 col0 FROM tab0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT - 41 AS col1 FROM tab0
----
-41

query I rowsort
SELECT - col0 * - col2 - - + 38 - col1 + - - col2 * - 42 + - col1 + - col2 - + + col2 + col2 FROM tab2 AS cor0
----
1760
5
724

onlyif mysql # DIV for integer division: 
query I rowsort label-2721
SELECT ALL 66 DIV + col2 + + 11 AS col0 FROM tab0 AS cor0
----
11
12
17

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL 66 / + col2 + + 11 AS col0 FROM tab0 AS cor0
----
11
12
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT + COUNT( ALL 33 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2722
SELECT + COUNT ( ALL 33 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL ( - 74 ) AS col1 FROM tab0
----
-74
-74
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2724
SELECT + - 50 * - AVG ( ALL - CAST( - col2 AS SIGNED ) ) FROM tab1 WHERE NOT NULL <= - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2724
SELECT + - 50 * - AVG ( ALL - CAST ( - col2 AS INTEGER ) ) FROM tab1 WHERE NOT NULL <= - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col2 >= + col1
----
3

skipif mysql # not compatible
query I rowsort label-2725
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col2 >= + col1
----
3

query I rowsort
SELECT + + col2 * + + col1 FROM tab0 AS cor0
----
210
3807
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * col0 * + + col0 BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2728
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + 13 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2728
SELECT DISTINCT - CAST ( NULL AS REAL ) + + 13 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL - - 91 AS col2 FROM tab1 AS cor0
----
91
91
91

query I rowsort
SELECT - col0 + + 55 + + col2 FROM tab0 AS cor0
----
-22
57
87

query I rowsort
SELECT col0 + - - 97 FROM tab2 AS cor0
----
143
161
172

query I rowsort
SELECT - ( - col0 ) * col1 + - col2 * + col2 + + 60 FROM tab0
----
-934
-9644
1787

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2733
SELECT ALL CAST( - + 26 AS SIGNED ) AS col2 FROM tab2
----
-26
-26
-26

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL CAST ( - + 26 AS INTEGER ) AS col2 FROM tab2
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT ALL COUNT( col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL COUNT ( col1 ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 + + + 49 col2 FROM tab2
----
115
115
115

query I rowsort
SELECT DISTINCT + 25 + + ( + col2 ) * - - 55 FROM tab1
----
3270
3765
5305

query I rowsort
SELECT col0 * - col0 + - 65 FROM tab1
----
-2666
-7290
-8346

query I rowsort
SELECT ALL + 31 + + col1 + col2 + + 38 AS col1 FROM tab0
----
100
169
197

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 * - col1 + col0 * col2 * + + col0 NOT BETWEEN NULL AND 83
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2740
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - COUNT( - - col0 ) + SUM( col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT CAST ( NULL AS REAL ) + - COUNT ( - - col0 ) + SUM ( col1 ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + ( col1 ) col2 FROM tab1 AS cor0
----
10
28
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - - col2 col0 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2743
SELECT DISTINCT CAST( - - 32 AS SIGNED ) - + - COUNT( * ) FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-2743
SELECT DISTINCT CAST ( - - 32 AS INTEGER ) - + - COUNT ( * ) FROM tab2 AS cor0
----
35

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + - col0 - 80 + + col2 FROM tab1 AS cor0
----
-103
-106
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT ALL - COUNT( col1 ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2746
SELECT ALL - COUNT ( col1 ) col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT DISTINCT - ( - COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2747
SELECT DISTINCT - ( - COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT - COUNT( + + ( 83 ) ) + - 90 AS col2 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-2748
SELECT - COUNT ( + + ( 83 ) ) + - 90 AS col2 FROM tab1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT + 62 + COUNT( DISTINCT col1 ) FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-2749
SELECT + 62 + COUNT ( DISTINCT col1 ) FROM tab1
----
65

query I rowsort
SELECT ALL - col1 * + col0 AS col2 FROM tab2 WHERE NOT + 87 < NULL
----

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE NULL IN ( col1, - col2, - 58, - ( + col0 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2752
SELECT - SUM( - CAST( - 95 AS SIGNED ) ) + - + 47 col0 FROM tab2 AS cor0
----
-332

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2752
SELECT - SUM ( - CAST ( - 95 AS INTEGER ) ) + - + 47 col0 FROM tab2 AS cor0
----
-332

onlyif mysql # DIV for integer division: 
query I rowsort label-2753
SELECT ALL ( + col0 ) * - + col2 + - 43 + + 75 DIV 46 * + + col0 - - + 76 col2 FROM tab2 AS cor0
----
-2463
-4242
-979

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2753
SELECT ALL ( + col0 ) * - + col2 + - 43 + + 75 / 46 * + + col0 - - + 76 col2 FROM tab2 AS cor0
----
-2463
-4242
-979

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT - + 88 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-2754
SELECT - + 88 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
264

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col0 <= + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2756
SELECT ALL - - 17 * CAST( + - col0 AS SIGNED ) * - col0 + + col0 FROM tab0 AS cor0
----
128760
160050
3840

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL - - 17 * CAST ( + - col0 AS INTEGER ) * - col0 + + col0 FROM tab0 AS cor0
----
128760
160050
3840

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT ALL - + COUNT( - col1 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2757
SELECT ALL - + COUNT ( - col1 ) AS col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT - - 82 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 92 FROM tab1 cor0
----
92

query I rowsort
SELECT DISTINCT - + col0 AS col0 FROM tab1 WHERE NOT ( NOT - - 13 / col0 IS NULL ) OR 13 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT ALL - ( 78 ) AS col2 FROM tab1
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-2762
SELECT DISTINCT + 23 * + COUNT( * ) col0, ( COUNT( * ) ) FROM tab1
----
69
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2762
SELECT DISTINCT + 23 * + COUNT ( * ) col0, ( COUNT ( * ) ) FROM tab1
----
69
3

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 7 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2764
SELECT - col0 * + CAST( - + col2 AS SIGNED ) FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-2764
SELECT - col0 * + CAST ( - + col2 AS INTEGER ) FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT + 94 * - MAX( col1 ) FROM tab2
----
-7238

skipif mysql # not compatible
query I rowsort label-2765
SELECT + 94 * - MAX ( col1 ) FROM tab2
----
-7238

onlyif mysql # DIV for integer division: 
query I rowsort label-2766
SELECT DISTINCT col2 DIV + ( + col0 ) * - + ( + col2 ) + 18 col0 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2766
SELECT DISTINCT col2 / + ( + col0 ) * - + ( + col2 ) + 18 col0 FROM tab2 AS cor0
----
18

onlyif mysql # DIV for integer division: 
query II rowsort label-2767
SELECT DISTINCT - - col0 DIV col0 AS col1, - 33 + + 17 FROM tab2 AS cor0
----
1
-16

skipif mysql # not compatible
query II rowsort label-2767
SELECT DISTINCT - - col0 / col0 AS col1, - 33 + + 17 FROM tab2 AS cor0
----
1
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - 90 + + + col1 col0 FROM tab0 AS cor0
----
1911
7371
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND + + col2
----
-2

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND + + col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT - COUNT( * ) * SUM( col2 ) AS col0 FROM tab2 cor0
----
-363

skipif mysql # not compatible
query I rowsort label-2770
SELECT - COUNT ( * ) * SUM ( col2 ) AS col0 FROM tab2 cor0
----
-363

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT ALL - - MIN( 76 ) FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL - - MIN ( 76 ) FROM tab1 AS cor0
----
76

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-23
-40
-58

query II rowsort
SELECT DISTINCT col1 AS col0, - 30 AS col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT - ( - + 52 ) + - ( col2 ) AS col0 FROM tab1
----
-16
-44
-7

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2775
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-2775
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT - col2 + col1 * 91 FROM tab2
----
4618
6039
6967

query I rowsort
SELECT ALL - ( + 80 ) FROM tab0
----
-80
-80
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + 92 col0 FROM tab1 AS cor0
----
45
78
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab1 AS cor0 WHERE col0 + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 * + + col2 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query II rowsort label-2781
SELECT col2 AS col0, ( + + col1 ) DIV + ( - col1 ) + ( + col0 ) FROM tab2 AS cor0
----
23
45
40
63
58
74

skipif mysql # not compatible
query II rowsort label-2781
SELECT col2 AS col0, ( + + col1 ) / + ( - col1 ) + ( + col0 ) FROM tab2 AS cor0
----
23
45
40
63
58
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT ALL + - MAX( ALL ( - - 73 ) ) * - + 25 - - MAX( + col2 ) + 63 - + 97 FROM tab0 AS cor0
----
1890

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL + - MAX ( ALL ( - - 73 ) ) * - + 25 - - MAX ( + col2 ) + 63 - + 97 FROM tab0 AS cor0
----
1890

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT ALL - + ( + SUM( ALL - + col2 ) ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-2783
SELECT ALL - + ( + SUM ( ALL - + col2 ) ) FROM tab1 cor0
----
223

query II rowsort
SELECT DISTINCT - - col2 AS col1, col1 AS col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query II rowsort label-2785
SELECT ALL + COUNT( * ) col0, COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2785
SELECT ALL + COUNT ( * ) col0, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
3

query I rowsort
SELECT + col1 * + + col2 * + 59 AS col1 FROM tab1
----
17405
188564
79296

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT + SUM( ALL - + col1 ) col2 FROM tab0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2787
SELECT + SUM ( ALL - + col1 ) col2 FROM tab0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2788
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) AS col1, ( col0 ) - - col1 FROM tab0
----
NULL
108
NULL
96
NULL
98

skipif mysql # not compatible
query II rowsort label-2788
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) AS col1, ( col0 ) - - col1 FROM tab0
----
NULL
108
NULL
96
NULL
98

query I rowsort
SELECT col1 * + + 11 * 12 AS col0 FROM tab2
----
10164
6732
8844

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT ALL SUM( - + col1 ) + - COUNT( * ) FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL SUM ( - + col1 ) + - COUNT ( * ) FROM tab1
----
-69

query I rowsort
SELECT + 70 * - 29 + - 50 FROM tab2
----
-2080
-2080
-2080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2792
SELECT DISTINCT 53 * - + CAST( + ( + - 6 ) AS SIGNED ) + - 32 FROM tab0
----
286

skipif mysql # not compatible
query I rowsort label-2792
SELECT DISTINCT 53 * - + CAST ( + ( + - 6 ) AS INTEGER ) + - 32 FROM tab0
----
286

query II rowsort
SELECT ALL col2 AS col0, + col0 * + + col1 * + + col1 AS col2 FROM tab1
----
59
2125
68
201019
96
9996

query I rowsort
SELECT DISTINCT - 69 + + 43 * - col1 AS col0 FROM tab0
----
-112
-3552
-972

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE 77 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2797
SELECT DISTINCT + ( + CAST( - 28 AS SIGNED ) ) FROM tab2 cor0
----
-28

skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT + ( + CAST ( - 28 AS INTEGER ) ) FROM tab2 cor0
----
-28

query I rowsort
SELECT - + 73 AS col0 FROM tab0 AS cor0
----
-73
-73
-73

query I rowsort
SELECT ALL - col0 + + 52 AS col1 FROM tab0 WHERE NOT + + 35 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2800
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 88 + + 68 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col2 - - + col2 + + - col0 * - ( - col1 ) * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2803
SELECT 70 * - CAST( NULL AS SIGNED ) * - 5 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2803
SELECT 70 * - CAST ( NULL AS INTEGER ) * - 5 AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT DISTINCT - MAX( ALL + col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2805
SELECT DISTINCT - MAX ( ALL + col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2806
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( - - col1 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2806
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( - - col1 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2807
SELECT CAST( - + col0 AS SIGNED ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2807
SELECT CAST ( - + col0 AS INTEGER ) FROM tab2
----
-46
-64
-75

query II rowsort
SELECT + 55 AS col2, col2 AS col1 FROM tab2
----
55
23
55
40
55
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 col2 FROM tab0
----
60
60
60

query I rowsort
SELECT DISTINCT + 13 * + col1 AS col2 FROM tab0
----
1053
13
273

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 BETWEEN col0 + col2 * + - col1 AND - 42
----

query I rowsort
SELECT DISTINCT + 69 * col2 AS col1 FROM tab0
----
3243
6831
690

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 38 col1 FROM tab2
----
1938
2546
2926

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT ALL + COUNT( * ) * COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL + COUNT ( * ) * COUNT ( * ) FROM tab2
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 12 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + - 83 ) FROM tab0 AS cor0
----
-83

query II rowsort
SELECT DISTINCT - - 5 AS col0, - 20 FROM tab2 cor0
----
5
-20

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2819
SELECT + - CAST( + + ( + col2 ) AS SIGNED ) col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2819
SELECT + - CAST ( + + ( + col2 ) AS INTEGER ) col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT ALL + 95 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 3 + 2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT col0 <> 48
----

query I rowsort
SELECT ALL col0 * 4 FROM tab0
----
348
388
60

onlyif mysql # DIV for integer division: 
query I rowsort label-2824
SELECT + col0 + - 37 DIV 65 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2824
SELECT + col0 + - 37 / 65 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2825
SELECT col2 + CAST( col1 AS SIGNED ) AS col0 FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-2825
SELECT col2 + CAST ( col1 AS INTEGER ) AS col0 FROM tab2
----
117
125
74

query I rowsort
SELECT DISTINCT 42 + - col2 * col1 AS col0 FROM tab1
----
-1302
-253
-3154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2827
SELECT - 53 * + 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-2827
SELECT - 53 * + CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + + col2 AS col1 FROM tab1 WHERE ( NULL ) IS NULL
----
144
147
159

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 * - col1 <> ( + col1 ) * 75
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT DISTINCT COUNT( * ) * COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2830
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) FROM tab0
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) > 90
----

query I rowsort
SELECT + col2 * 41 AS col0 FROM tab1
----
2419
2788
3936

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 ) = + 64
----

query I rowsort
SELECT 94 * 53 + 17 AS col0 FROM tab2
----
4999
4999
4999

query I rowsort
SELECT ALL - col2 * 50 FROM tab2 WHERE - 63 IS NULL
----

query I rowsort
SELECT - 67 * - ( + 22 ) AS col2 FROM tab0
----
1474
1474
1474

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT COUNT( * ) + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2838
SELECT COUNT ( * ) + COUNT ( * ) FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT ALL + SUM( ALL 34 ) FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL + SUM ( ALL 34 ) FROM tab1
----
102

query I rowsort
SELECT DISTINCT - 44 AS col1 FROM tab0 WHERE NOT ( NULL ) NOT IN ( + 41 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 31 + + 95 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2842
SELECT col0 * col2 + - CAST( 85 + col0 AS SIGNED ) FROM tab0
----
605
698
9421

skipif mysql # not compatible
query I rowsort label-2842
SELECT col0 * col2 + - CAST ( 85 + col0 AS INTEGER ) FROM tab0
----
605
698
9421

query I rowsort
SELECT ( col1 ) * + 53 + + 60 AS col0 FROM tab2
----
2763
3611
4141

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT ( NULL ) >= ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 5 IS NULL
----

query I rowsort
SELECT 46 * ( col1 * + col1 ) - col2 FROM tab0 AS cor0
----
-53
20276
301759

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT ALL COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2848
SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2849
SELECT MAX( DISTINCT - 93 ) * 98 - SUM( DISTINCT + ( CAST( NULL AS SIGNED ) ) + - col2 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2849
SELECT MAX ( DISTINCT - 93 ) * 98 - SUM ( DISTINCT + ( CAST ( NULL AS INTEGER ) ) + - col2 ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT - COUNT( * ) - - MIN( DISTINCT 76 ) FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-2850
SELECT - COUNT ( * ) - - MIN ( DISTINCT 76 ) FROM tab2 AS cor0
----
73

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 37 ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 * 10 FROM tab0
----
10
210
810

query I rowsort
SELECT ALL - 1 AS col0 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 78 col0 FROM tab0
----
1170
6786
7566

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT MIN( + col2 ) * COUNT( * ) AS col0 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-2855
SELECT MIN ( + col2 ) * COUNT ( * ) AS col0 FROM tab1
----
177

query I rowsort
SELECT DISTINCT ( + 47 ) AS col1 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT ALL + SUM( ALL - col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL + SUM ( ALL - col2 ) FROM tab1
----
-223

query I rowsort
SELECT col2 FROM tab2 WHERE NOT + col0 IS NULL
----
23
40
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT - COUNT( * ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2860
SELECT - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT - COUNT( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2862
SELECT - COUNT ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT DISTINCT COUNT( * ) * SUM( DISTINCT + 39 ) FROM tab1 AS cor0 WHERE - 90 IS NOT NULL
----
117

skipif mysql # not compatible
query I rowsort label-2863
SELECT DISTINCT COUNT ( * ) * SUM ( DISTINCT + 39 ) FROM tab1 AS cor0 WHERE - 90 IS NOT NULL
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT DISTINCT SUM( - 20 ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-2864
SELECT DISTINCT SUM ( - 20 ) FROM tab1
----
-60

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + AVG ( + col0 ) AS col2 FROM tab1 WHERE NOT NULL BETWEEN col2 + 41 AND ( NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2867
SELECT 13 DIV 42 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2867
SELECT 13 / 42 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 < NULL
----

query I rowsort
SELECT DISTINCT 1 * - col0 AS col1 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT MAX( 75 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2870
SELECT MAX ( 75 ) FROM tab2
----
75

query I rowsort
SELECT DISTINCT ( - 13 ) FROM tab0
----
-13

query I rowsort
SELECT ALL - 25 * + 87 FROM tab0
----
-2175
-2175
-2175

query I rowsort
SELECT ALL - 62 AS col2 FROM tab2
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT + MIN( col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2874
SELECT + MIN ( col2 ) AS col0 FROM tab2
----
23

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2876
SELECT DISTINCT + CAST( + - MAX( col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2876
SELECT DISTINCT + CAST ( + - MAX ( col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT DISTINCT ( + COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2877
SELECT DISTINCT ( + COUNT ( * ) ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT ALL - COUNT( * ) * 82 col1 FROM tab1
----
-246

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2878
SELECT ALL - COUNT ( * ) * 82 col1 FROM tab1
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT ALL + COUNT( DISTINCT - 94 ) * + MIN( DISTINCT col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL + COUNT ( DISTINCT - 94 ) * + MIN ( DISTINCT col0 ) AS col2 FROM tab1
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2880
SELECT DISTINCT - col0 DIV + 72 + col1 FROM tab1
----
14
4
46

skipif mysql # not compatible
query I rowsort label-2880
SELECT DISTINCT - col0 / + 72 + col1 FROM tab1
----
14
4
46

query I rowsort
SELECT - 54 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( 84 * 70 ) IS NOT NULL
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

onlyif mysql # DIV for integer division: 
query II rowsort label-2882
SELECT - - 44 AS col2, - col0 * + - col1 - + 50 DIV + 48 AS col2 FROM tab2 cor0
----
44
2345
44
4927
44
5024

skipif mysql # not compatible
query II rowsort label-2882
SELECT - - 44 AS col2, - col0 * + - col1 - + 50 / + 48 AS col2 FROM tab2 cor0
----
44
2345
44
4927
44
5024

query I rowsort
SELECT DISTINCT + - 16 + ( + col0 ) FROM tab1 AS cor0
----
35
69
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2884
SELECT ALL - col0 * - + CAST( NULL AS SIGNED ) * - - 33 + + CAST( - col1 AS SIGNED ) * + 22 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL - col0 * - + CAST ( NULL AS INTEGER ) * - - 33 + + CAST ( - col1 AS INTEGER ) * + 22 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( - 70 ) * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 < NULL
----

query I rowsort
SELECT DISTINCT + col2 - - - col2 * + 77 FROM tab0 AS cor0
----
-3572
-7524
-760

query I rowsort
SELECT 94 - 41 * + col0 FROM tab1
----
-1997
-3391
-3637

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT + COUNT( DISTINCT + col2 ) FROM tab2 WHERE NULL IN ( ( + col1 ) + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2889
SELECT + COUNT ( DISTINCT + col2 ) FROM tab2 WHERE NULL IN ( ( + col1 ) + col1 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - 37 + + col0 col1 FROM tab2
----
-37
-37
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-2891
SELECT ALL + 19 DIV - col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL + 19 / - col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT MIN( + col2 ) - COUNT( * ) FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-2892
SELECT MIN ( + col2 ) - COUNT ( * ) FROM tab2
----
20

query I rowsort
SELECT DISTINCT col0 * + - col0 * + + ( - 19 ) AS col2 FROM tab2
----
106875
40204
77824

query I rowsort
SELECT 35 + + col1 + + ( - col2 ) * 51 * 4 FROM tab1
----
-11996
-13790
-19535

query I rowsort
SELECT col2 * ( col1 ) + + col2 * col0 AS col0 FROM tab1
----
5310
6240
9384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2896
SELECT ALL CAST( SUM( 0 ) AS SIGNED ) + + COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL CAST ( SUM ( 0 ) AS INTEGER ) + + COUNT ( * ) FROM tab2
----
3

query I rowsort
SELECT + 74 + + - 2 FROM tab2
----
72
72
72

query I rowsort
SELECT col2 * + + 56 FROM tab2
----
1288
2240
3248

query I rowsort
SELECT ( 75 ) AS col1 FROM tab0
----
75
75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2900
SELECT DISTINCT - 96 DIV - col1 col2 FROM tab1
----
19
2
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2900
SELECT DISTINCT - 96 / - col1 col2 FROM tab1
----
19
2
6

query I rowsort
SELECT ALL col2 + + - col1 FROM tab2 AS cor0 WHERE NOT - col2 * - - col2 IS NOT NULL
----

query I rowsort
SELECT + - 32 + - col1 AS col0 FROM tab1 AS cor0 WHERE NOT 30 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN ( NULL ) AND + ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 8 col2 FROM tab0 cor0
----
8
8
8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= 16 / + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT ( + COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2906
SELECT ( + COUNT ( * ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT DISTINCT + - MAX( DISTINCT col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2907
SELECT DISTINCT + - MAX ( DISTINCT col2 ) FROM tab2 AS cor0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-2908
SELECT - 29 DIV ( - + col2 ) col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
0
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2908
SELECT - 29 / ( - + col2 ) col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
0
0
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col1 ) AND ( - col2 * - col0 * col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2910
SELECT - col0 DIV - 96 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2910
SELECT - col0 / - 96 AS col0 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2911
SELECT 2 AS col0, SUM( DISTINCT col2 ) AS col0 FROM tab1
----
2
223

skipif mysql # not compatible
query II rowsort label-2911
SELECT 2 AS col0, SUM ( DISTINCT col2 ) AS col0 FROM tab1
----
2
223

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT DISTINCT MIN( DISTINCT - - col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2912
SELECT DISTINCT MIN ( DISTINCT - - col0 ) AS col1 FROM tab0
----
15

query II rowsort
SELECT ALL + col1, col0 AS col2 FROM tab1
----
14
51
47
91
5
85

query I rowsort
SELECT + 42 * - 0 * ( + col0 ) * + + col2 * + 98 + ( col1 + ( ( col0 ) ) * col1 ) FROM tab1
----
430
4324
728

query I rowsort
SELECT DISTINCT 32 * ( ( - col0 ) ) AS col0 FROM tab0
----
-2784
-3104
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT ALL 95 * + COUNT( * ) FROM tab2, tab1 cor0
----
855

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL 95 * + COUNT ( * ) FROM tab2, tab1 cor0
----
855

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT ALL COUNT( * ) * 79 FROM tab2
----
237

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL COUNT ( * ) * 79 FROM tab2
----
237

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( + col0 / - 65 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT ALL - - ( + ( + COUNT( * ) ) ) + 18 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL - - ( + ( + COUNT ( * ) ) ) + 18 FROM tab0 AS cor0
----
21

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < col0 * - 45
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 * + col2 - col0 + + col2 NOT BETWEEN - - 94 * + col2 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - + col0 * + 73 * col2 + + col1 col1 FROM tab2 AS cor0
----
-186843
-317541
-77206

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN + col0 AND - 88
----

query I rowsort
SELECT + col2 * + + col0 AS col0 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-2926
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) FROM tab0
----
-6

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 3 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 32 + + - col1 + - - 64 + - 89 FROM tab2
----
-44
-60
-70

query I rowsort
SELECT DISTINCT + - 36 * - col2 + - + ( + + col1 ) FROM tab1 cor0
----
2119
2401
3442

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2930
SELECT ALL - CAST( NULL AS SIGNED ) + + COUNT( DISTINCT + col1 ) / - 71 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL - CAST ( NULL AS INTEGER ) + + COUNT ( DISTINCT + col1 ) / - 71 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 39 + col0, 10 + + 29 + col0 + col2 * - - col2 col0 FROM tab0 AS cor0
----
-24
2263
48
226
58
9937

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT - + MIN( ALL 65 ) + - SUM( + 33 ) col2 FROM tab2 AS cor0
----
-164

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2932
SELECT - + MIN ( ALL 65 ) + - SUM ( + 33 ) col2 FROM tab2 AS cor0
----
-164

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL - 57 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-57
-57
-57

query I rowsort
SELECT DISTINCT - col1 - + - col2 FROM tab0
----
-11
-34
98

query I rowsort
SELECT - 0 AS col1 FROM tab2 WHERE NULL IS NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2937
SELECT * FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2937
SELECT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2938
SELECT ALL col0 DIV col0 DIV col0 * + col0 * col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2938
SELECT ALL col0 / col0 / col0 * + col0 * col1 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( + + col2 ) IS NOT NULL
----

query I rowsort
SELECT + 84 * 64 AS col0 FROM tab1
----
5376
5376
5376

query III rowsort
SELECT * FROM tab1 WHERE + - ( + + col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT ( 63 ) AS col2 FROM tab1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2943
SELECT DISTINCT - + CAST( + + col1 AS SIGNED ) * + + col1 FROM tab1 WHERE NOT - - 72 BETWEEN + col0 AND col0
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-2943
SELECT DISTINCT - + CAST ( + + col1 AS INTEGER ) * + + col1 FROM tab1 WHERE NOT - - 72 BETWEEN + col0 AND col0
----
-196
-2209
-25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2944
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT - col2 + 92 > NULL
----

skipif mysql # not compatible
query I rowsort label-2944
SELECT DISTINCT - + CAST ( NULL AS REAL ) FROM tab2 WHERE NOT - col2 + 92 > NULL
----

query I rowsort
SELECT col1 / + 61 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - 9 * + - 66 AS col0 FROM tab1
----
594
594
594

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT ( - - COUNT( * ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2947
SELECT ( - - COUNT ( * ) ) AS col1 FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 2 + col1 BETWEEN NULL AND ( + - 70 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2949
SELECT - col2 DIV + - col0 FROM tab2 AS cor0 WHERE NOT - col1 DIV - - col0 * col0 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2949
SELECT - col2 / + - col0 FROM tab2 AS cor0 WHERE NOT - col1 / - - col0 * col0 IS NULL
----
0
0
0

query I rowsort
SELECT DISTINCT - 93 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT 19 * COUNT( * ) FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-2951
SELECT 19 * COUNT ( * ) FROM tab0
----
57

query II rowsort
SELECT ( + + 8 ), 63 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 44f0150bcb6c84247037732ff01fb8d8

query I rowsort
SELECT col2 * - col2 * - - 73 FROM tab0
----
-161257
-715473
-7300

query I rowsort
SELECT DISTINCT 90 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT col1 * - 59 FROM tab1 AS cor0
----
-2773
-295
-826

query I rowsort
SELECT ALL - 15 FROM tab1 AS cor0 WHERE NOT + col0 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2957
SELECT ALL + - ( + - MIN( DISTINCT - - col2 ) ) DIV + 8 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL + - ( + - MIN ( DISTINCT - - col2 ) ) / + 8 FROM tab1 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT + ( - SUM( ALL + col0 ) ) FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2958
SELECT + ( - SUM ( ALL + col0 ) ) FROM tab1 cor0
----
-227

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 46 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2960
SELECT DISTINCT + COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT 22 + - CAST( NULL AS SIGNED ) + + col1 + 28 * + col1 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2960
SELECT DISTINCT + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT 22 + - CAST ( NULL AS INTEGER ) + + col1 + 28 * + col1 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 col0 FROM tab2
----
97

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 65 + + + 85 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT - MAX( ALL 38 ) FROM tab2
----
-38

skipif mysql # not compatible
query I rowsort label-2963
SELECT - MAX ( ALL 38 ) FROM tab2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT 11 + MAX( - - 92 ) FROM tab2 cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2964
SELECT 11 + MAX ( - - 92 ) FROM tab2 cor0 WHERE NULL < NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 40 >= + + col2
----
75
67
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 29 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2967
SELECT - + col2 DIV - col1 + - col1 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2967
SELECT - + col2 / - col1 + - col1 FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT - col0 * + 53 + + col2 + + col1 + - col1 - - col1 * + col1 FROM tab0
----
-4160
-5041
5813

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2969
SELECT + 95 DIV MAX( + - 88 ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2969
SELECT + 95 / MAX ( + - 88 ) AS col2 FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2970
SELECT + 61 DIV - col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2970
SELECT + 61 / - col0 FROM tab2
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2971
SELECT DISTINCT col2 + + col2 DIV + ( col0 ) AS col2 FROM tab0
----
10
100
50

skipif mysql # not compatible
query I rowsort label-2971
SELECT DISTINCT col2 + + col2 / + ( col0 ) AS col2 FROM tab0
----
10
100
50

query II rowsort
SELECT + + col0 * + col2 AS col1, - col1 + - + col2 FROM tab0 cor0
----
705
-128
870
-31
9603
-100

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE ( NULL ) IN ( - 80 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + - 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT DISTINCT + - 70 * + COUNT( * ) - - COUNT( - 28 ) * 16 AS col1 FROM tab2 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-2975
SELECT DISTINCT + - 70 * + COUNT ( * ) - - COUNT ( - 28 ) * 16 AS col1 FROM tab2 AS cor0
----
-162

onlyif mysql # DIV for integer division: 
query I rowsort label-2976
SELECT ALL - col0 DIV 30 + - + 11 - - col1 AS col0 FROM tab2 AS cor0
----
39
54
64

skipif mysql # not compatible
query I rowsort label-2976
SELECT ALL - col0 / 30 + - + 11 - - col1 AS col0 FROM tab2 AS cor0
----
39
54
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT COUNT( * ) * - COUNT( * ) + + - SUM( ALL + 28 ) FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-2977
SELECT COUNT ( * ) * - COUNT ( * ) + + - SUM ( ALL + 28 ) FROM tab2
----
-93

query II rowsort
SELECT ALL col1 * + ( - + col2 ) - + - 99 * col0, 74 AS col2 FROM tab1
----
3705
74
5813
74
8120
74

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE - col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT ALL + MIN( ( - col2 ) ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-2981
SELECT ALL + MIN ( ( - col2 ) ) AS col0 FROM tab2
----
-58

query I rowsort
SELECT - col0 * - 91 AS col0 FROM tab0
----
1365
7917
8827

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT DISTINCT - 47 * + + MIN( ALL + col0 ) FROM tab1
----
-2397

skipif mysql # not compatible
query I rowsort label-2983
SELECT DISTINCT - 47 * + + MIN ( ALL + col0 ) FROM tab1
----
-2397

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 9 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2985
SELECT DISTINCT + col1 / - col1 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT + col1 / - col1 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2986
SELECT col1 DIV + - 79 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2986
SELECT col1 / + - 79 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2987
SELECT - 40 DIV - 90 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2987
SELECT - 40 / - 90 AS col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + 94 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 6 AS col2 FROM tab1 AS cor0
----
6
6
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2990
SELECT DISTINCT + COUNT( + + col1 ) DIV - + COUNT( * ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2990
SELECT DISTINCT + COUNT ( + + col1 ) / - + COUNT ( * ) FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2991
SELECT 47 DIV + 61 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2991
SELECT 47 / + 61 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - 62 AS col0 FROM tab1 AS cor0
----
-62
-62
-62

query I rowsort
SELECT ALL - + 65 AS col2 FROM tab1 AS cor0
----
-65
-65
-65

query I rowsort
SELECT col0 * - + col0 + 60 * - + col2 FROM tab1
----
-10765
-12361
-8361

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT ALL + 91 * - SUM( DISTINCT - 7 ) FROM tab2
----
637

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL + 91 * - SUM ( DISTINCT - 7 ) FROM tab2
----
637

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col2 * - col1 <= - 17
----

query I rowsort
SELECT DISTINCT + ( + + 53 ) AS col2 FROM tab1 WHERE + col1 IS NULL
----

query I rowsort
SELECT col2 FROM tab1 WHERE - - col1 + + 66 + + ( 94 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( 32 ) <> + - 17 * - - col1
----
3

skipif mysql # not compatible
query I rowsort label-3000
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( 32 ) <> + - 17 * - - col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT ALL COUNT( + 80 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3001
SELECT ALL COUNT ( + 80 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col0 * + col2 * + + 45 - 69 AS col0 FROM tab1 AS cor0
----
220251
225606
278391

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT DISTINCT + - ( COUNT( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3003
SELECT DISTINCT + - ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT + 51 FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3005
SELECT + CAST( - 31 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

skipif mysql # not compatible
query I rowsort label-3005
SELECT + CAST ( - 31 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3006
SELECT * FROM tab0 WHERE + CAST( NULL AS DECIMAL ) + - + 57 NOT BETWEEN + col0 AND - ( + 71 )
----

skipif mysql # not compatible
query III rowsort label-3006
SELECT * FROM tab0 WHERE + CAST ( NULL AS REAL ) + - + 57 NOT BETWEEN + col0 AND - ( + 71 )
----

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 33 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 + + - 68 col0 FROM tab0
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT - COUNT( * ) + + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3010
SELECT - COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT + 73 + + 59 FROM tab2 AS cor0
----
132
132
132

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT ALL - SUM( DISTINCT - - 39 ) FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-3014
SELECT ALL - SUM ( DISTINCT - - 39 ) FROM tab1 AS cor0
----
-39

query II rowsort
SELECT DISTINCT col1, + col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT 47 * - 73 AS col2 FROM tab0
----
-3431
-3431
-3431

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3018
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3018
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 NOT BETWEEN 80 AND NULL
----

query I rowsort
SELECT + 77 AS col2 FROM tab1 WHERE NOT NULL > - 48 - 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT DISTINCT - COUNT( * ) * 62 col2 FROM tab0
----
-186

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3021
SELECT DISTINCT - COUNT ( * ) * 62 col2 FROM tab0
----
-186

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - - col0 AND + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 * col0 col2 FROM tab1
----
4896
8160
8736

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT DISTINCT COUNT( * ) * - + 24 * - - COUNT( * ) col0 FROM tab2
----
-216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3024
SELECT DISTINCT COUNT ( * ) * - + 24 * - - COUNT ( * ) col0 FROM tab2
----
-216

query I rowsort
SELECT DISTINCT - 14 AS col1 FROM tab1
----
-14

query I rowsort
SELECT - 44 FROM tab0 WHERE NOT - col1 >= 79
----
-44
-44
-44

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT ALL - 21 * + MAX( ALL + 0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL - 21 * + MAX ( ALL + 0 ) FROM tab2
----
0

query I rowsort
SELECT col1 * + col1 + - - col1 FROM tab1 AS cor0
----
210
2256
30

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - - col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2 AS col1, col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3032
SELECT DISTINCT - - ( col2 ) AS col0, CAST( + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
59
5
68
47
96
14

skipif mysql # not compatible
query II rowsort label-3032
SELECT DISTINCT - - ( col2 ) AS col0, CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT DISTINCT + + col0 + - 49 * - 27 FROM tab1 cor0
----
1374
1408
1414

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----
0

query II rowsort
SELECT DISTINCT 38 * col1 AS col1, col0 + ( - 71 ) + + + col0 + - + col0 - col2 AS col2 FROM tab2 AS cor0
----
1938
-48
2546
-54
2926
-47

query I rowsort
SELECT ALL 94 FROM tab2 AS cor0 WHERE NOT col1 * + col1 + + col2 + + + 38 + 44 NOT BETWEEN - col1 + 85 AND ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT ALL - SUM( + - col1 ) * + + 55 FROM tab1 AS cor0
----
3630

skipif mysql # not compatible
query I rowsort label-3037
SELECT ALL - SUM ( + - col1 ) * + + 55 FROM tab1 AS cor0
----
3630

query II rowsort
SELECT DISTINCT - 28 AS col2, col1 AS col1 FROM tab2
----
-28
51
-28
67
-28
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 / + col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT ALL - COUNT( * ) * + 30 AS col2 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-3040
SELECT ALL - COUNT ( * ) * + 30 AS col2 FROM tab1
----
-90

query I rowsort
SELECT ALL col2 * - 91 + - + col1 + - col1 FROM tab2
----
-2195
-3794
-5412

onlyif mysql # DIV for integer division: 
query I rowsort label-3042
SELECT 87 DIV - ( + col1 ) FROM tab1
----
-1
-17
-6

skipif mysql # not compatible
query I rowsort label-3042
SELECT 87 / - ( + col1 ) FROM tab1
----
-1
-17
-6

query I rowsort
SELECT col2 + ( + + col0 ) * + - col2 AS col0 FROM tab1
----
-4800
-4956
-6120

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - col2 AND col0 / + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3045
SELECT - col1 * + col1 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3045
SELECT - col1 * + col1 + - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT DISTINCT COUNT( * ) + 39 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-3046
SELECT DISTINCT COUNT ( * ) + 39 FROM tab2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT + COUNT( * ) * - COUNT( * ) * 71 FROM tab2 AS cor0 WHERE 9 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3047
SELECT + COUNT ( * ) * - COUNT ( * ) * 71 FROM tab2 AS cor0 WHERE 9 IS NULL
----
0

query II rowsort
SELECT 81 * + ( - 97 ) + 12, 84 AS col1 FROM tab1 cor0
----
-7845
84
-7845
84
-7845
84

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 16 FROM tab1 WHERE NULL > + + col1 * col0
----

query I rowsort
SELECT ( - - col1 ) AS col1 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT ALL + COUNT( * ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3052
SELECT ALL + COUNT ( * ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col0 * ( - + ( - - col2 ) ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
705
870
9603

query I rowsort
SELECT DISTINCT - - 33 * + - col0 * + - 85 AS col0 FROM tab2 AS cor0
----
129030
179520
210375

query I rowsort
SELECT ALL + ( 69 ) FROM tab1
----
69
69
69

query I rowsort
SELECT 73 AS col2 FROM tab2 WHERE NOT - + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT COUNT( 27 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3057
SELECT COUNT ( 27 ) FROM tab2
----
3

query I rowsort
SELECT 47 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
47
47
47

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 30 + - col1 * col0 BETWEEN + + col1 AND - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3062
SELECT ALL - ( + CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3062
SELECT ALL - ( + CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 54 * - + col1 AS col2 FROM tab1 AS cor0
----
-2538
-270
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT ALL ( - + MAX( col1 ) ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-3064
SELECT ALL ( - + MAX ( col1 ) ) AS col2 FROM tab1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3065
SELECT + CAST( NULL AS SIGNED ) + + 2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3065
SELECT + CAST ( NULL AS INTEGER ) + + 2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 37 * + 39 col0 FROM tab1 AS cor0
----
1494
1528
1534

query I rowsort
SELECT DISTINCT + ( - + 72 ) + - ( - + 64 ) FROM tab0 cor0
----
-8

query I rowsort
SELECT DISTINCT ( col0 ) AS col0 FROM tab2 cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT ALL + - COUNT( * ) * + SUM( - 53 ) col2 FROM tab2 AS cor0
----
477

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3069
SELECT ALL + - COUNT ( * ) * + SUM ( - 53 ) col2 FROM tab2 AS cor0
----
477

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT COUNT( * ) + - - 32 AS col2 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-3070
SELECT COUNT ( * ) + - - 32 AS col2 FROM tab0 AS cor0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3071
SELECT + + col1 + col1 + 28 * col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3071
SELECT + + col1 + col1 + 28 * col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col1 + + + col1 AS col0, col0 AS col0 FROM tab2 AS cor0
----
102
46
134
75
154
64

query II rowsort
SELECT col2 + col2 AS col1, col2 AS col1 FROM tab1 AS cor0
----
118
59
136
68
192
96

query I rowsort
SELECT ALL col2 + ( - - col0 ) * 76 FROM tab1
----
3972
6519
6984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 + - - col2 col1 FROM tab2
----
114
79
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3076
SELECT ALL - ( - COUNT( * ) ) DIV COUNT( * ) - COUNT( * ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL - ( - COUNT ( * ) ) / COUNT ( * ) - COUNT ( * ) FROM tab1
----
-2

query I rowsort
SELECT DISTINCT col0 * - ( col2 ) FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT COUNT( * ) + - 7 FROM tab0 WHERE + 24 * + + col0 + col2 * - + col1 + - + col0 IS NULL
----
-7

skipif mysql # not compatible
query I rowsort label-3078
SELECT COUNT ( * ) + - 7 FROM tab0 WHERE + 24 * + + col0 + col2 * - + col1 + - + col0 IS NULL
----
-7

query I rowsort
SELECT 94 FROM tab2 WHERE 93 IS NOT NULL
----
94
94
94

onlyif mysql # DIV for integer division: 
query I rowsort label-3080
SELECT DISTINCT - 27 DIV col1 AS col2 FROM tab0
----
-1
-27
0

skipif mysql # not compatible
query I rowsort label-3080
SELECT DISTINCT - 27 / col1 AS col2 FROM tab0
----
-1
-27
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3081
SELECT DISTINCT + MAX( + CAST( + col0 AS SIGNED ) ) + 49 AS col0 FROM tab0
----
146

skipif mysql # not compatible
query I rowsort label-3081
SELECT DISTINCT + MAX ( + CAST ( + col0 AS INTEGER ) ) + 49 AS col0 FROM tab0
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT ALL - COUNT( * ) + - 95 FROM tab2
----
-98

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL - COUNT ( * ) + - 95 FROM tab2
----
-98

query II rowsort
SELECT + + col1 - + + col0, col2 FROM tab2 AS cor0
----
-8
58
13
40
5
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT DISTINCT - ( - 20 ) - + COUNT( * ) FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-3084
SELECT DISTINCT - ( - 20 ) - + COUNT ( * ) FROM tab2 AS cor0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-3085
SELECT 32 DIV + + 3 FROM tab2
----
10
10
10

skipif mysql # not compatible
query I rowsort label-3085
SELECT 32 / + + 3 FROM tab2
----
10
10
10

query II rowsort
SELECT + 60 + AVG ( 43 ), + 24 AS col1 FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NOT NULL IS NULL
----
NULL
24

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 66 NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT - - SUM( DISTINCT 87 ) AS col1 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-3088
SELECT - - SUM ( DISTINCT 87 ) AS col1 FROM tab1 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT - ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3089
SELECT - ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3090
SELECT DISTINCT + + SUM( DISTINCT + - 97 ) * - COUNT( + col0 ) DIV + COUNT( * ) AS col1 FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3090
SELECT DISTINCT + + SUM ( DISTINCT + - 97 ) * - COUNT ( + col0 ) / + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
97

query I rowsort
SELECT + col0 * - - col2 * - col0 FROM tab2 AS cor0
----
-163840
-326250
-48668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3092
SELECT ALL - + CAST( NULL AS SIGNED ) / + 58 + - 28 + 61 - AVG ( ALL - col2 ) * - 35 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3092
SELECT ALL - + CAST ( NULL AS INTEGER ) / + 58 + - 28 + 61 - AVG ( ALL - col2 ) * - 35 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3093
SELECT ALL MAX( DISTINCT + - 30 ) DIV - + COUNT( * ) col1 FROM tab2 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3093
SELECT ALL MAX ( DISTINCT + - 30 ) / - + COUNT ( * ) col1 FROM tab2 AS cor0
----
10

query I rowsort
SELECT col0 FROM tab2 WHERE NOT NULL BETWEEN 62 + 38 AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col1 * - - col1 * + col0 > - 33
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 57 * - 51 FROM tab2
----
-2907
-2907
-2907

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT + ( COUNT( * ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3098
SELECT + ( COUNT ( * ) ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + 1 * col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 52 col0 FROM tab1
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 col2 FROM tab2 cor0
----
37
37
37

query I rowsort
SELECT DISTINCT - - col1 AS col1 FROM tab0 AS cor0 WHERE NOT - 39 * - ( col2 ) + col1 + col0 * 47 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * + + col2 + col0 - - 20 FROM tab0
----
216
317
3842

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 38 * - - col0 < ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3105
SELECT ALL - ( - col0 ) + + 30 DIV col1 - + - 5 DIV + col1 * - 14 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL - ( - col0 ) + + 30 / col1 - + - 5 / + col1 * - 14 FROM tab2
----
46
64
75

query I rowsort
SELECT + col1 * 5 AS col0 FROM tab1 AS cor0
----
235
25
70

query I rowsort
SELECT ALL 71 * - 16 FROM tab1 AS cor0
----
-1136
-1136
-1136

query I rowsort
SELECT DISTINCT 39 AS col0 FROM tab1 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT ALL COUNT( * ) * - - MAX( col0 ) - - COUNT( * ) AS col0 FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-3109
SELECT ALL COUNT ( * ) * - - MAX ( col0 ) - - COUNT ( * ) AS col0 FROM tab1
----
276

query II rowsort
SELECT ALL col2, + col2 AS col0 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT 21 / - - 72 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL ( 36 ) AS col0 FROM tab2
----
36
36
36

query II rowsort
SELECT DISTINCT + col0 AS col2, 56 AS col1 FROM tab1
----
51
56
85
56
91
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT DISTINCT - COUNT( - col1 ) + + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3114
SELECT DISTINCT - COUNT ( - col1 ) + + COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT - 41 + + col0 FROM tab2
----
23
34
5

query I rowsort
SELECT 59 + ( - 64 ) FROM tab0
----
-5
-5
-5

query III rowsort
SELECT * FROM tab2 WHERE + 92 = NULL
----

query I rowsort
SELECT ALL - 82 + - 21 FROM tab2 cor0
----
-103
-103
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3119
SELECT DISTINCT CAST( + COUNT( col0 ) AS SIGNED ) - - - COUNT( * ) + 21 * - MIN( ALL + - col2 ) FROM tab0 AS cor0
----
2079

skipif mysql # not compatible
query I rowsort label-3119
SELECT DISTINCT CAST ( + COUNT ( col0 ) AS INTEGER ) - - - COUNT ( * ) + 21 * - MIN ( ALL + - col2 ) FROM tab0 AS cor0
----
2079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3120
SELECT DISTINCT - + SUM( + col0 ) * CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3120
SELECT DISTINCT - + SUM ( + col0 ) * CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3121
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 * + 64 AS col1 FROM tab2
----
2944
4096
4800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3124
SELECT ALL col0 * + 7 + + + CAST( NULL AS SIGNED ) / 99 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL col0 * + 7 + + + CAST ( NULL AS INTEGER ) / 99 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3125
SELECT ALL + + col2 DIV col0 + col0 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL + + col2 / col0 + col0 FROM tab2 cor0
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3126
SELECT - 91 DIV - col2 + - 41 FROM tab2 AS cor0
----
-38
-39
-40

skipif mysql # not compatible
query I rowsort label-3126
SELECT - 91 / - col2 + - 41 FROM tab2 AS cor0
----
-38
-39
-40

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3128
SELECT * FROM tab1 cor0 WHERE NOT + col2 + - + CAST( NULL AS SIGNED ) - - + 83 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3128
SELECT * FROM tab1 cor0 WHERE NOT + col2 + - + CAST ( NULL AS INTEGER ) - - + 83 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT ALL MIN( + - col0 ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3129
SELECT ALL MIN ( + - col0 ) FROM tab2 cor0
----
-75

query II rowsort
SELECT + col1 AS col2, col1 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT + 33 * - col0 FROM tab0
----
-2871
-3201
-495

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3132
SELECT - col1 AS col0, - col1 * col1 * - 39 * CAST( + col0 AS SIGNED ) + + - 48 col0 FROM tab2
----
-51
4666146
-67
13130277
-77
14798736

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3132
SELECT - col1 AS col0, - col1 * col1 * - 39 * CAST ( + col0 AS INTEGER ) + + - 48 col0 FROM tab2
----
-51
4666146
-67
13130277
-77
14798736

query I rowsort
SELECT DISTINCT ( - - col2 ) FROM tab2
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 15 col0 FROM tab0
----
1215
15
315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3135
SELECT DISTINCT - MAX( ALL - ( + CAST( NULL AS SIGNED ) ) ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3135
SELECT DISTINCT - MAX ( ALL - ( + CAST ( NULL AS INTEGER ) ) ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT DISTINCT + 10 + - col0 * - col0, - col2 AS col0 FROM tab0 WHERE + col2 NOT IN ( 48, col1 )
----
235
-47
7579
-10
9419
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3137
SELECT - CAST( - + col1 AS SIGNED ) AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3137
SELECT - CAST ( - + col1 AS INTEGER ) AS col2 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3138
SELECT DISTINCT CAST( NULL AS DECIMAL ) + col0 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3138
SELECT DISTINCT CAST ( NULL AS REAL ) + col0 AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT DISTINCT - SUM( + 59 ) FROM tab0
----
-177

skipif mysql # not compatible
query I rowsort label-3139
SELECT DISTINCT - SUM ( + 59 ) FROM tab0
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT DISTINCT + COUNT( + 84 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3140
SELECT DISTINCT + COUNT ( + 84 ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3141
SELECT DISTINCT - 15 DIV 11 AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT - 15 / 11 AS col2 FROM tab2 AS cor0
----
-1

query II rowsort
SELECT ALL col0, - 96 FROM tab1 AS cor0
----
51
-96
85
-96
91
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT ALL COUNT( * ) + - + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL COUNT ( * ) + - + COUNT ( * ) FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3145
SELECT - 2 + 1 + - CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3145
SELECT - 2 + 1 + - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3146
SELECT ALL + ( - col0 ) + - col0 DIV col1 AS col1 FROM tab0 AS cor0
----
-15
-194
-91

skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL + ( - col0 ) + - col0 / col1 AS col1 FROM tab0 AS cor0
----
-15
-194
-91

query I rowsort
SELECT ALL - + col1 * - col1 + - 10 FROM tab2 AS cor0
----
2591
4479
5919

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT + MAX( - col0 ) + - + 11 AS col0 FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-3148
SELECT + MAX ( - col0 ) + - + 11 AS col0 FROM tab1 AS cor0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3149
SELECT col1 + col1 * col0 - CAST( 31 AS SIGNED ) - - 90 AS col2 FROM tab2 cor0
----
2456
5064
5151

skipif mysql # not compatible
query I rowsort label-3149
SELECT col1 + col1 * col0 - CAST ( 31 AS INTEGER ) - - 90 AS col2 FROM tab2 cor0
----
2456
5064
5151

query I rowsort
SELECT ALL + col2 - 37 AS col0 FROM tab0 AS cor0
----
-27
10
62

query I rowsort
SELECT + + 50 AS col0 FROM tab2 AS cor0
----
50
50
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 col1 FROM tab1
----
33

query III rowsort
SELECT * FROM tab1 WHERE + col0 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab0 WHERE NOT + col2 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3155
SELECT + 58 DIV COUNT( * ) FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-3155
SELECT + 58 / COUNT ( * ) FROM tab2
----
19

query III rowsort
SELECT * FROM tab2 WHERE + + 89 <= + 90
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT DISTINCT + MIN( DISTINCT + col1 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3157
SELECT DISTINCT + MIN ( DISTINCT + col1 ) AS col1 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT - COUNT( + col0 ) - - 51 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3158
SELECT - COUNT ( + col0 ) - - 51 FROM tab0 AS cor0
----
48

query I rowsort
SELECT col1 * 2 AS col2 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT DISTINCT + + 4 FROM tab0 AS cor0
----
4

query II rowsort
SELECT ALL + 83 - + 61, 20 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
18 values hashing to 0a3e6f14e3e8d1d3d3158e1f5afb3350

query III rowsort
SELECT * FROM tab0 WHERE NOT - 59 <= + 64
----

query I rowsort
SELECT 24 * + 92 FROM tab1
----
2208
2208
2208

query I rowsort
SELECT + - col2 * + - 59 AS col1 FROM tab1 AS cor0
----
3481
4012
5664

query I rowsort
SELECT + + col0 * - col2 AS col2 FROM tab1 cor0
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT - + ( + col0 ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT - ( + 37 ) FROM tab2 AS cor0
----
-37
-37
-37

onlyif mysql # DIV for integer division: 
query II rowsort label-3168
SELECT DISTINCT col1 AS col0, - col0 DIV - + col1 AS col2 FROM tab2 AS cor0
----
51
0
67
1
77
0

skipif mysql # not compatible
query II rowsort label-3168
SELECT DISTINCT col1 AS col0, - col0 / - + col1 AS col2 FROM tab2 AS cor0
----
51
0
67
1
77
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3169
SELECT DISTINCT - col2 * + col0 DIV - + col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3169
SELECT DISTINCT - col2 * + col0 / - + col0 FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT 29 + - 58 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT DISTINCT COUNT( * ) * 8 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT COUNT ( * ) * 8 FROM tab2
----
24

query II rowsort
SELECT 99, - col1 * + col2 FROM tab1 WHERE NOT - + 4 < 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3173
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL - 49 + + col0 * + col2 FROM tab1
----
4847
4966
6139

query I rowsort
SELECT DISTINCT - + col1 + + 71 FROM tab1 AS cor0
----
24
57
66

query II rowsort
SELECT 65 + + 11 AS col2, - col2 AS col2 FROM tab0 AS cor0
----
76
-10
76
-47
76
-99

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 cor1 WHERE NULL NOT BETWEEN NULL AND 34
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 + col1 col0 FROM tab0
----
103
163
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT DISTINCT + 88 + + - 27 + + + COUNT( * ) * 47 FROM tab0
----
202

skipif mysql # not compatible
query I rowsort label-3179
SELECT DISTINCT + 88 + + - 27 + + + COUNT ( * ) * 47 FROM tab0
----
202

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL >= col1 )
----

query I rowsort
SELECT ALL + 96 + - col2 * 20 AS col2 FROM tab2 AS cor0
----
-1064
-364
-704

query I rowsort
SELECT DISTINCT col1 * - + col1 * - col1 - + col0 FROM tab2 AS cor0
----
132605
300688
456469

onlyif mysql # DIV for integer division: 
query I rowsort label-3183
SELECT DISTINCT 51 + - + col2 + + ( + 76 ) + + + 7 * col0 DIV + col2 FROM tab0 AS cor0
----
177
34
82

skipif mysql # not compatible
query I rowsort label-3183
SELECT DISTINCT 51 + - + col2 + + ( + 76 ) + + + 7 * col0 / + col2 FROM tab0 AS cor0
----
177
34
82

query I rowsort
SELECT DISTINCT + - 62 - - col2 AS col0 FROM tab2 AS cor0
----
-22
-39
-4

query I rowsort
SELECT ALL - - col2 - - 8 AS col2 FROM tab1 cor0
----
104
67
76

query II rowsort
SELECT DISTINCT 34, col1 FROM tab0 AS cor0
----
34
1
34
21
34
81

query II rowsort
SELECT DISTINCT col0 - - col0 + + + 19, + 47 AS col0 FROM tab1 AS cor0
----
121
47
189
47
201
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3188
SELECT CAST( + col1 AS SIGNED ) + - - col2 AS col0 FROM tab0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-3188
SELECT CAST ( + col1 AS INTEGER ) + - - col2 AS col0 FROM tab0
----
100
128
31

query I rowsort
SELECT col0 + ( + + col2 ) + - col0 FROM tab0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3190
SELECT ALL col2 - - col1 * + col1 DIV - col1 + - - col2 FROM tab0
----
-1
13
197

skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL col2 - - col1 * + col1 / - col1 + - - col2 FROM tab0
----
-1
13
197

query I rowsort
SELECT - ( + + col0 ) + 36 FROM tab0
----
-51
-61
21

query I rowsort
SELECT DISTINCT 43 * + col1 - col0 FROM tab2
----
2147
2806
3247

query I rowsort
SELECT + 36 + - 74 FROM tab2
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT + 63 * - COUNT( - col2 ) col2 FROM tab0
----
-189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3194
SELECT + 63 * - COUNT ( - col2 ) col2 FROM tab0
----
-189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3195
SELECT SUM( DISTINCT - + 83 ) DIV - 51 AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3195
SELECT SUM ( DISTINCT - + 83 ) / - 51 AS col0 FROM tab0
----
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= 73
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3197
SELECT DISTINCT + CAST( 41 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-3197
SELECT DISTINCT + CAST ( 41 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT - COUNT( DISTINCT + col0 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3198
SELECT - COUNT ( DISTINCT + col0 ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT ALL ( 19 ) * - + 15 + col1 FROM tab2
----
-208
-218
-234

query I rowsort
SELECT ALL + - 80 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT DISTINCT + col1 * col1 * + - col0 * + 92 AS col1 FROM tab0 AS cor0
----
-3529764
-8924
-9054180

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 - col0 * - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 22 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 + - - ( col2 ) - + col0 * + 16 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT 32 * - COUNT( * ) * - 36 FROM tab2 AS cor0
----
3456

skipif mysql # not compatible
query I rowsort label-3205
SELECT 32 * - COUNT ( * ) * - 36 FROM tab2 AS cor0
----
3456

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT - + COUNT( DISTINCT + 45 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3206
SELECT - + COUNT ( DISTINCT + 45 ) FROM tab0 cor0
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * + 64 FROM tab0 AS cor0
----
-3008
-6336
-640

query I rowsort
SELECT ALL + + ( + 17 ) AS col1 FROM tab0 AS cor0
----
17
17
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3210
SELECT DISTINCT - col0 col0, CAST( 66 AS SIGNED ) * col2 - - col1 AS col0 FROM tab0 AS cor0
----
-15
3183
-87
681
-97
6535

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3210
SELECT DISTINCT - col0 col0, CAST ( 66 AS INTEGER ) * col2 - - col1 AS col0 FROM tab0 AS cor0
----
-15
3183
-87
681
-97
6535

query I rowsort
SELECT col0 + - + 69 AS col0 FROM tab2
----
-23
-5
6

query I rowsort
SELECT + 84 * + - 59 + - col1 + + col1 AS col2 FROM tab2
----
-4956
-4956
-4956

query I rowsort
SELECT DISTINCT - 88 * + - col1 FROM tab0
----
1848
7128
88

query I rowsort
SELECT DISTINCT - ( 59 ) * col2 + - ( + col1 ) FROM tab2
----
-1408
-2437
-3489

query III rowsort
SELECT * FROM tab1 WHERE - + 84 * - + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2 col2, + 43 FROM tab0 AS cor0
----
10
43
47
43
99
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 50 * + col1 - - - col0 col2 FROM tab2 AS cor0
----
2504
3275
3786

query I rowsort
SELECT 61 FROM tab1 cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3219
SELECT DISTINCT - 62 DIV - COUNT( * ) + - COUNT( * ) AS col0 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-3219
SELECT DISTINCT - 62 / - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3220
SELECT DISTINCT 79 DIV COUNT( * ) FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-3220
SELECT DISTINCT 79 / COUNT ( * ) FROM tab1
----
26

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 21 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 70 + - 86 * 89 FROM tab1 AS cor0
----
-7724
-7724
-7724

query I rowsort
SELECT DISTINCT - col2 + 37 FROM tab1 AS cor0
----
-22
-31
-59

query I rowsort
SELECT + 86 * col1 * - col2 + 57 + - 51 + - 9 - - + col0 * + - 1 * 24 AS col1 FROM tab0 AS cor0
----
-10845
-20151
-327765

query I rowsort
SELECT - + 93 AS col1 FROM tab1 AS cor0
----
-93
-93
-93

query I rowsort
SELECT ALL + 66 - + + col2 + - + 18 FROM tab0 AS cor0
----
-51
1
38

query I rowsort
SELECT ALL col2 + - col0 AS col1 FROM tab0 AS cor0 WHERE 63 IS NULL
----

query I rowsort
SELECT DISTINCT + 36 - - col0 FROM tab2 AS cor0
----
100
111
82

query I rowsort
SELECT ALL + - col1 * - + col2 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT DISTINCT + + COUNT( * ) - + 50 FROM tab2 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3230
SELECT DISTINCT + + COUNT ( * ) - + 50 FROM tab2 cor0
----
-47

query III rowsort
SELECT * FROM tab1 WHERE NOT + 0 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - col1, 39, - 76, - 33, ( + + 38 ) - + col1 + - 23, - + col0 * - + col1, + col2 + - - col1 * 0 )
----

query I rowsort
SELECT - col0 * - + col0 * + - col2 FROM tab0
----
-10575
-75690
-931491

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT + SUM( - 34 ) FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-3234
SELECT + SUM ( - 34 ) FROM tab0
----
-102

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 * + + 12 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT + + SUM( ALL col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-3236
SELECT + + SUM ( ALL col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT ALL SUM( ALL + 3 ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL SUM ( ALL + 3 ) AS col1 FROM tab1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3238
SELECT 83 * + col2 DIV - col2 FROM tab0
----
-83
-83
-83

skipif mysql # not compatible
query I rowsort label-3238
SELECT 83 * + col2 / - col2 FROM tab0
----
-83
-83
-83

query I rowsort
SELECT ALL - 89 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT ALL + 32 * 38 FROM tab2
----
1216
1216
1216

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT DISTINCT - - MIN( DISTINCT + + ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT - - MIN ( DISTINCT + + ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT - 18 * - - 56 AS col1 FROM tab0 AS cor0
----
-1008
-1008
-1008

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT ALL - 49 * - COUNT( * ) FROM tab0
----
147

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL - 49 * - COUNT ( * ) FROM tab0
----
147

query I rowsort
SELECT DISTINCT - col0 + + - 21 FROM tab2
----
-67
-85
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT ALL 18 * - COUNT( * ) AS col1 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-3245
SELECT ALL 18 * - COUNT ( * ) AS col1 FROM tab2
----
-54

query III rowsort
SELECT * FROM tab1 WHERE - - col2 + - col1 / - 72 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 22 + + - 61 col2 FROM tab1
----
-39
-39
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-3248
SELECT - col1 DIV - 40 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3248
SELECT - col1 / - 40 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT COUNT( * ) + + 22 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-3249
SELECT COUNT ( * ) + + 22 FROM tab2
----
25

query III rowsort
SELECT * FROM tab0 WHERE + + col2 * - + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3251
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3251
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3252
SELECT col0 * + + 5 * - + 80 + + + ( CAST( - col1 AS SIGNED ) ) + - 20 + + - 63 * col0 AS col2 FROM tab1
----
-23647
-39380
-42200

skipif mysql # not compatible
query I rowsort label-3252
SELECT col0 * + + 5 * - + 80 + + + ( CAST ( - col1 AS INTEGER ) ) + - 20 + + - 63 * col0 AS col2 FROM tab1
----
-23647
-39380
-42200

query I rowsort
SELECT ALL - 55 * - + 72 * - + 4 + - col0 * + - col2 FROM tab0
----
-14970
-15135
-6237

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT ALL 4 + + + COUNT( * ) FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-3254
SELECT ALL 4 + + + COUNT ( * ) FROM tab2
----
7

query II rowsort
SELECT DISTINCT - 54 + - col0 + + - 18 AS col2, col1 FROM tab0
----
-159
21
-169
1
-87
81

query I rowsort
SELECT DISTINCT - 48 + + col1 - col1 * 7 AS col1 FROM tab2
----
-354
-450
-510

query I rowsort
SELECT + 94 * - col2 + col1 AS col0 FROM tab1 AS cor0
----
-5541
-6345
-9010

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT ALL - - COUNT( DISTINCT col2 ) + + - MIN( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL - - COUNT ( DISTINCT col2 ) + + - MIN ( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT + COUNT( * ) + 48 AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3259
SELECT + COUNT ( * ) + 48 AS col1 FROM tab2 AS cor0
----
51

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + + col0 + + 22 FROM tab1 cor0
----
107
113
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT - MIN( ALL col2 ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3262
SELECT - MIN ( ALL col2 ) AS col1 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT DISTINCT col0 * + - col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query II rowsort label-3264
SELECT 63 col1, - ( - - col1 ) DIV + - col1 FROM tab2
----
63
1
63
1
63
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3264
SELECT 63 col1, - ( - - col1 ) / + - col1 FROM tab2
----
63
1
63
1
63
1

query II rowsort
SELECT + 55 * + col2 AS col2, - 7 FROM tab1
----
3245
-7
3740
-7
5280
-7

query II rowsort
SELECT DISTINCT col2, + 14 * + col1 FROM tab1
----
59
70
68
658
96
196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3267
SELECT 55 * + CAST( NULL AS SIGNED ) - + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3267
SELECT 55 * + CAST ( NULL AS INTEGER ) - + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3268
SELECT ALL + - 63 * + COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-3268
SELECT ALL + - 63 * + COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
63

query II rowsort
SELECT col2 AS col2, + col0 AS col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT + ( COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3270
SELECT + ( COUNT ( * ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col0 * + + 67 FROM tab1 AS cor0
----
3417
5695
6097

onlyif mysql # DIV for integer division: 
query I rowsort label-3272
SELECT DISTINCT + col1 DIV - 79 col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3272
SELECT DISTINCT + col1 / - 79 col0 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3273
SELECT ALL - + col2 DIV 42 AS col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL - + col2 / 42 AS col2 FROM tab0 AS cor0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 col1 FROM tab2
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3275
SELECT DISTINCT col1 col0 FROM tab2 WHERE - CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3275
SELECT DISTINCT col1 col0 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-3276
SELECT * FROM tab0, tab0 AS cor0 WHERE + CAST( NULL AS DECIMAL ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

skipif mysql # not compatible
query IIIIII rowsort label-3276
SELECT * FROM tab0, tab0 AS cor0 WHERE + CAST ( NULL AS REAL ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT 14 AS col1 FROM tab1 WHERE NOT - col2 * 56 * + col1 IS NULL
----
14
14
14

onlyif mysql # DIV for integer division: 
query I rowsort label-3278
SELECT ALL - ( - - col2 ) DIV + - 70 + - - 17 FROM tab1
----
17
17
18

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL - ( - - col2 ) / + - 70 + - - 17 FROM tab1
----
17
17
18

query I rowsort
SELECT + - col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT - 22 * - - 83 * + col2 FROM tab2
----
-105908
-41998
-73040

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL IN ( 90 * col2 + - col2, col2, - + col1, + - col2 * - 31 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3282
SELECT ALL + - 30 DIV + CAST( + col0 AS SIGNED ) + + col1 AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL + - 30 / + CAST ( + col0 AS INTEGER ) + + col1 AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3283
SELECT ALL CAST( + col0 AS DECIMAL ) + 90 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL CAST ( + col0 AS REAL ) + 90 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT + COUNT( * ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3284
SELECT + COUNT ( * ) col0 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - 44 + - + col2 FROM tab0 AS cor0
----
-143
-54
-91

query I rowsort
SELECT + ( - ( - col2 ) ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3287
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 cor0
----
3

query I rowsort
SELECT + 87 + + + 69 AS col2 FROM tab1 AS cor0
----
156
156
156

query I rowsort
SELECT + col0 + + - col1 FROM tab0 cor0
----
-66
66
96

query I rowsort
SELECT + + 56 + + - col0 FROM tab1 AS cor0
----
-29
-35
5

query I rowsort
SELECT - + 86 + + + col0 AS col1 FROM tab1 AS cor0
----
-1
-35
5

query I rowsort
SELECT + col1 + 70 AS col1 FROM tab2 cor0
----
121
137
147

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND + + 77
----

query I rowsort
SELECT + 61 + col0 + - col2 FROM tab1
----
16
84
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 col1 FROM tab0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT COUNT( * ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3296
SELECT COUNT ( * ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 18 - col1 + 38 FROM tab0 AS cor0
----
-1
-61
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT - 22 - - + COUNT( ALL + 54 ) AS col1 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-3298
SELECT - 22 - - + COUNT ( ALL + 54 ) AS col1 FROM tab2 AS cor0
----
-19

query I rowsort
SELECT ALL col1 - - + col2 FROM tab2
----
117
125
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab1 WHERE NOT + 76 - + - 74 + + 91 * - col1 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT DISTINCT COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-3302
SELECT DISTINCT COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query I rowsort
SELECT col2 * + + col1 FROM tab0 AS cor0
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 97 col1, - col0 FROM tab2 AS cor0
----
-97
-46
-97
-64
-97
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT ALL - COUNT( ( col0 ) ) * + SUM( 97 ) FROM tab0 AS cor0
----
-873

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL - COUNT ( ( col0 ) ) * + SUM ( 97 ) FROM tab0 AS cor0
----
-873

query I rowsort
SELECT DISTINCT 59 * + col0 FROM tab2 AS cor0
----
2714
3776
4425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3307
SELECT + + 82 DIV - ( COUNT( * ) ) col1 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3307
SELECT + + 82 / - ( COUNT ( * ) ) col1 FROM tab1 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT DISTINCT - SUM( ALL col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-3308
SELECT DISTINCT - SUM ( ALL col1 ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NOT - col2 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT - ( - COUNT( 93 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3310
SELECT - ( - COUNT ( 93 ) ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT + COUNT( * ) * + + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3312
SELECT + COUNT ( * ) * + + COUNT ( * ) FROM tab2
----
9

query I rowsort
SELECT DISTINCT col0 * - - col1 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT - COUNT( * ) * + 32 col0 FROM tab2
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3314
SELECT - COUNT ( * ) * + 32 col0 FROM tab2
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3315
SELECT DISTINCT CAST( + - col0 AS SIGNED ) * - 36 AS col1 FROM tab1
----
1836
3060
3276

skipif mysql # not compatible
query I rowsort label-3315
SELECT DISTINCT CAST ( + - col0 AS INTEGER ) * - 36 AS col1 FROM tab1
----
1836
3060
3276

query I rowsort
SELECT - col0 * - + col0 AS col1 FROM tab2
----
2116
4096
5625

query II rowsort
SELECT DISTINCT + col2 * + col1 * - + ( col1 ), - 90 AS col1 FROM tab0
----
-308367
-90
-4410
-90
-99
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3318
SELECT + MAX( + + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 + + + CAST( - - col1 AS SIGNED ) + col0 - col1 * + 88 = + 1
----
47

skipif mysql # not compatible
query I rowsort label-3318
SELECT + MAX ( + + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 + + + CAST ( - - col1 AS INTEGER ) + col0 - col1 * + 88 = + 1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3319
SELECT ALL col0, - CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

skipif mysql # not compatible
query II rowsort label-3319
SELECT ALL col0, - CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

query I rowsort
SELECT - col1 * - + 64 FROM tab1 AS cor0
----
3008
320
896

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT DISTINCT - MIN( col2 ) AS col1 FROM tab2 cor0 WHERE NOT col1 IS NULL
----
-23

skipif mysql # not compatible
query I rowsort label-3321
SELECT DISTINCT - MIN ( col2 ) AS col1 FROM tab2 cor0 WHERE NOT col1 IS NULL
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NOT 56 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3322
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT 56 < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3323
SELECT - CAST( NULL AS SIGNED ) * CAST( col0 AS SIGNED ) + - col0 + + col2 - + + 36 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3323
SELECT - CAST ( NULL AS INTEGER ) * CAST ( col0 AS INTEGER ) + - col0 + + col2 - + + 36 * + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3324
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0 WHERE - col0 - - col2 > 15
----
NULL

skipif mysql # not compatible
query I rowsort label-3324
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0 WHERE - col0 - - col2 > 15
----
NULL

query I rowsort
SELECT col0 + col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 > + col1 + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col2 AS col1, ( 73 ) FROM tab0
----
10
73
47
73
99
73

query I rowsort
SELECT - col2 - + - 4 FROM tab0
----
-43
-6
-95

query I rowsort
SELECT - col2 - + - col0 AS col0 FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3331
SELECT + 56 DIV COUNT( * ) * + COUNT( * ) + + 33 AS col2 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-3331
SELECT + 56 / COUNT ( * ) * + COUNT ( * ) + + 33 AS col2 FROM tab0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT ALL + MAX( DISTINCT + col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-3332
SELECT ALL + MAX ( DISTINCT + col0 ) AS col0 FROM tab1
----
91

query I rowsort
SELECT + col2 + + - 79 FROM tab2
----
-21
-39
-56

query I rowsort
SELECT + - col2 - 23 AS col1 FROM tab2 WHERE ( NOT col2 * ( - + col1 ) * + 40 + + 95 + + col1 IS NOT NULL )
----

query I rowsort
SELECT 52 + + col2 * + col1 AS col0 FROM tab1
----
1396
3248
347

query II rowsort
SELECT ( - 13 ) + - + col0 AS col2, 58 FROM tab1
----
-104
58
-64
58
-98
58

query I rowsort
SELECT - ( + + col1 ) + + - 0 + + col1 * col1 AS col0 FROM tab2
----
2550
4422
5852

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT ALL + COUNT( * ) + + COUNT( * ) - 57 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3338
SELECT ALL + COUNT ( * ) + + COUNT ( * ) - 57 FROM tab1 AS cor0
----
-51

query II rowsort
SELECT ALL + - 15 AS col2, + col1 * - col2 FROM tab1 AS cor0
----
-15
-1344
-15
-295
-15
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 44 ) col2 FROM tab2 AS cor0
----
44
44
44

query I rowsort
SELECT DISTINCT 3 AS col2 FROM tab0 WHERE NOT + 86 * 60 NOT IN ( col2 )
----

query I rowsort
SELECT col2 + - 55 AS col2 FROM tab1
----
13
4
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT ALL COUNT( + 11 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL COUNT ( + 11 ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3344
SELECT ALL + col2 - - 29 AS col2 FROM tab2 WHERE NOT ( - CAST( + col2 AS SIGNED ) + ( ( col1 ) ) ) >= col2
----
69
87

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL + col2 - - 29 AS col2 FROM tab2 WHERE NOT ( - CAST ( + col2 AS INTEGER ) + ( ( col1 ) ) ) >= col2
----
69
87

query I rowsort
SELECT - col1 + 51 * + col1 AS col2 FROM tab1
----
2350
250
700

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE ( - col0 ) IS NOT NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3347
SELECT col0 DIV - 21 + ( + ( col1 ) ) col1 FROM tab2
----
49
64
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3347
SELECT col0 / - 21 + ( + ( col1 ) ) col1 FROM tab2
----
49
64
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT ALL - ( - COUNT( * ) ) + 10 AS col0 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-3348
SELECT ALL - ( - COUNT ( * ) ) + 10 AS col0 FROM tab1
----
13

query III rowsort
SELECT * FROM tab1 WHERE + 48 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3350
SELECT CAST( 45 AS SIGNED ) * col1 FROM tab2 WHERE NOT ( col0 + col0 * + 53 ) BETWEEN ( + ( - ( col2 ) ) + + 52 * col0 ) AND + col1
----
2295
3015
3465

skipif mysql # not compatible
query I rowsort label-3350
SELECT CAST ( 45 AS INTEGER ) * col1 FROM tab2 WHERE NOT ( col0 + col0 * + 53 ) BETWEEN ( + ( - ( col2 ) ) + + 52 * col0 ) AND + col1
----
2295
3015
3465

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT DISTINCT + MAX( DISTINCT col0 ) col2 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3351
SELECT DISTINCT + MAX ( DISTINCT col0 ) col2 FROM tab1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3352
SELECT DISTINCT - COUNT( * ) + + CAST( + COUNT( * ) AS SIGNED ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3352
SELECT DISTINCT - COUNT ( * ) + + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0
----
0

query I rowsort
SELECT + 64 + 8 AS col0 FROM tab1
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT - COUNT( * ) + COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3354
SELECT - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0
----
0

query I rowsort
SELECT + col1 + 77 AS col2 FROM tab1
----
124
82
91

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 75 + col0 * 79 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT COUNT( 51 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3357
SELECT COUNT ( 51 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT - col0 < + 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT DISTINCT ( ( - MAX( DISTINCT - 91 ) ) ) AS col1 FROM tab1 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3359
SELECT DISTINCT ( ( - MAX ( DISTINCT - 91 ) ) ) AS col1 FROM tab1 WHERE NOT col1 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 * col0 FROM tab0 WHERE NOT 47 < - col2
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT MAX( DISTINCT - col0 ) + COUNT( * ) FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-3361
SELECT MAX ( DISTINCT - col0 ) + COUNT ( * ) FROM tab2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT 93 + SUM( ALL + col0 + col1 ) FROM tab0
----
395

skipif mysql # not compatible
query I rowsort label-3362
SELECT 93 + SUM ( ALL + col0 + col1 ) FROM tab0
----
395

query I rowsort
SELECT ALL + 1 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IN ( + 70 + col2 )
----
1
1
1

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col2 )
----

query I rowsort
SELECT col0 * ( + col0 ) AS col2 FROM tab1 AS cor0
----
2601
7225
8281

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + + col0 * ( col0 ) IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT ALL + COUNT( + col2 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3367
SELECT ALL + COUNT ( + col2 ) AS col0 FROM tab2 cor0
----
3

query I rowsort
SELECT col2 + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT COUNT( 39 ) * + 2 AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3369
SELECT COUNT ( 39 ) * + 2 AS col1 FROM tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE - col2 * col0 <= NULL
----

query I rowsort
SELECT DISTINCT - 48 + - 52 * + col2 FROM tab0
----
-2492
-5196
-568

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT ( - COUNT( * ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3372
SELECT ( - COUNT ( * ) ) FROM tab0
----
-3

query I rowsort
SELECT ALL + 15 + ( + 80 ) AS col1 FROM tab0
----
95
95
95

query I rowsort
SELECT - col2 FROM tab0 cor0 WHERE ( 99 * ( 44 ) + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT ALL - SUM( - col2 ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
220

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL - SUM ( - col2 ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
220

query I rowsort
SELECT col2 * - col0 + - 79 * 39 FROM tab1 cor0
----
-7977
-8096
-9269

query I rowsort
SELECT ALL + ( col0 ) + + 44 FROM tab0 AS cor0
----
131
141
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3378
SELECT + - 61 + + MAX( DISTINCT - CAST( col1 AS SIGNED ) ) FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-3378
SELECT + - 61 + + MAX ( DISTINCT - CAST ( col1 AS INTEGER ) ) FROM tab0 AS cor0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3379
SELECT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) * 95 < NULL
----

skipif mysql # not compatible
query III rowsort label-3379
SELECT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * 95 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT + - 47 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-3380
SELECT + - 47 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-44

query I rowsort
SELECT + 37 * + 39 + - col2 FROM tab2 cor0
----
1385
1403
1420

query I rowsort
SELECT DISTINCT - 57 - ( col2 + + col1 ) AS col1 FROM tab1 cor0
----
-121
-167
-172

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3383
SELECT - COUNT( * ) * + + COUNT( + col1 ) DIV 60 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3383
SELECT - COUNT ( * ) * + + COUNT ( + col1 ) / 60 AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT ALL COUNT( - 60 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL COUNT ( - 60 ) FROM tab0
----
3

query I rowsort
SELECT ( col2 ) + col1 FROM tab0 WHERE - col2 / col1 + - col0 NOT BETWEEN col0 * col0 AND NULL
----
100
128
31

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT DISTINCT MAX( ALL + - col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-3387
SELECT DISTINCT MAX ( ALL + - col2 ) FROM tab2
----
-23

query I rowsort
SELECT + 34 + + col1 AS col2 FROM tab1 WHERE NULL BETWEEN + col2 AND ( 94 + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3389
SELECT + CAST( 7 AS SIGNED ) FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3389
SELECT + CAST ( 7 AS INTEGER ) FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3390
SELECT col0 - - col2 DIV - col0 col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3390
SELECT col0 - - col2 / - col0 col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL + 11 * + - ( col2 ) + col1 AS col2 FROM tab2 AS cor0
----
-202
-363
-571

query I rowsort
SELECT DISTINCT + 56 + - 36 AS col0 FROM tab1 AS cor0
----
20

query I rowsort
SELECT 21 - - col1 AS col1 FROM tab1 AS cor0
----
26
35
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT - + MIN( + + col1 ) col1 FROM tab2 cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3395
SELECT - + MIN ( + + col1 ) col1 FROM tab2 cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 10 ) NOT IN ( col0 + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT ALL + MIN( 74 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
74

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL + MIN ( 74 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT - COUNT( * ) * - SUM( + 75 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
6075

skipif mysql # not compatible
query I rowsort label-3398
SELECT - COUNT ( * ) * - SUM ( + 75 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
6075

query I rowsort
SELECT - 35 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 0 * col1 IN ( - 10 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 40 * - - col2 FROM tab1 AS cor0
----
2360
2720
3840

onlyif mysql # DIV for integer division: 
query I rowsort label-3403
SELECT + 13 DIV col1 FROM tab2 AS cor0 WHERE NOT ( 26 ) IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3403
SELECT + 13 / col1 FROM tab2 AS cor0 WHERE NOT ( 26 ) IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT ALL - - 27 * - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL - - 27 * - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT 96 * + 54 AS col0 FROM tab2 AS cor0 WHERE NULL >= ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT + MIN( - 36 ) FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-3406
SELECT + MIN ( - 36 ) FROM tab0 AS cor0
----
-36

onlyif mysql # DIV for integer division: 
query II rowsort label-3407
SELECT - + col1 col1, col1 DIV col1 * col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3407
SELECT - + col1 col1, col1 / col1 * col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT - ( MIN( ALL - col0 ) ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3408
SELECT - ( MIN ( ALL - col0 ) ) AS col0 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT - + COUNT( * ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3409
SELECT - + COUNT ( * ) FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3410
SELECT DISTINCT CAST( - col1 AS SIGNED ) col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3410
SELECT DISTINCT CAST ( - col1 AS INTEGER ) col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) + + col2 * 75 col2 FROM tab0 AS cor0 WHERE NOT col0 IN ( - - col2 )
----
3606
7426
771

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 8 col1 FROM tab2 WHERE NULL >= - 24
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 10 * + + 76 ) NOT IN ( + col2 )
----

query II rowsort
SELECT DISTINCT - col0 + - + col1 AS col2, col1 * + 23 * + 2 FROM tab0
----
-108
966
-96
3726
-98
46

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - + col1 ) > - ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 66 ) = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( 13 ) * 15 IN ( + col2 - + 36 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - + col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + - col2 )
----

query I rowsort
SELECT DISTINCT - 15 + col2 FROM tab2
----
25
43
8

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col0 / col0 BETWEEN + col1 + col0 AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col2 + + - col0 + - col0 FROM tab2 AS cor0
----
-69
-88
-92

query I rowsort
SELECT DISTINCT - 84 * + col1 FROM tab1 AS cor0
----
-1176
-3948
-420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( 26 ) col1 FROM tab1
----
1534
1768
2496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 col1 FROM tab0 AS cor0
----
51
51
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3426
SELECT - 96 AS col2, COUNT( * ) * 95 AS col0 FROM tab0 AS cor0
----
-96
285

skipif mysql # not compatible
query II rowsort label-3426
SELECT - 96 AS col2, COUNT ( * ) * 95 AS col0 FROM tab0 AS cor0
----
-96
285

onlyif mysql # DIV for integer division: 
query I rowsort label-3427
SELECT - col1 DIV + - col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3427
SELECT - col1 / + - col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
1
2

query I rowsort
SELECT ALL col1 + - - col2 FROM tab1 AS cor0
----
110
115
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 - + + 79 + - col2 col1 FROM tab0
----
-30
-82
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT DISTINCT COUNT( * ) - 68 FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-3430
SELECT DISTINCT COUNT ( * ) - 68 FROM tab2
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3431
SELECT col1 + + CAST( + + col0 AS SIGNED ) FROM tab0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-3431
SELECT col1 + + CAST ( + + col0 AS INTEGER ) FROM tab0
----
108
96
98

query I rowsort
SELECT col0 * 86 * - col0 + col2 - + 76 + - col0 * - 22 AS col0 FROM tab2
----
-181017
-350884
-482118

query I rowsort
SELECT + ( - 85 ) * 7 + + col2 FROM tab0
----
-496
-548
-585

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3434
SELECT ALL COUNT( * ) DIV COUNT( * ) col0 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3434
SELECT ALL COUNT ( * ) / COUNT ( * ) col0 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3435
SELECT ALL 18 + 19 AS col0, + COUNT( * ) AS col2 FROM tab1
----
37
3

skipif mysql # not compatible
query II rowsort label-3435
SELECT ALL 18 + 19 AS col0, + COUNT ( * ) AS col2 FROM tab1
----
37
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( 7 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT COUNT( * ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3438
SELECT COUNT ( * ) col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 79 AS col2 FROM tab2 cor0
----
79

query I rowsort
SELECT DISTINCT 86 AS col0 FROM tab1 AS cor0
----
86

query I rowsort
SELECT + 2 + - col2 AS col0 FROM tab0
----
-45
-8
-97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-3442
SELECT 81 + - CAST( NULL AS SIGNED ) + + + 10 AS col0, col2 * + col1 + col1 AS col0, - col1 DIV 30 - - 28 AS col1 FROM tab0
----
9 values hashing to 571ceb966bb67f7313d37b7ac1bed20d

skipif mysql # not compatible
query III rowsort label-3442
SELECT 81 + - CAST ( NULL AS INTEGER ) + + + 10 AS col0, col2 * + col1 + col1 AS col0, - col1 / 30 - - 28 AS col1 FROM tab0
----
9 values hashing to 571ceb966bb67f7313d37b7ac1bed20d

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 42 <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= + - col0 - col2
----

query I rowsort
SELECT - - col2 FROM tab1 WHERE 38 IS NULL
----

query I rowsort
SELECT ALL + 75 + + 33 + + col0 FROM tab2 AS cor0
----
154
172
183

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT - ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3447
SELECT - ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - + ( + 22 ) * + + col1 FROM tab1 cor0
----
-1034
-110
-308

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + + 15 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 56 * 14 > 73
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT 71 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT * FROM tab1 cor0 JOIN tab2 AS cor1 ON NULL <= ( NULL )
----

query I rowsort
SELECT - col1 + - col1 + - col2 * - col2 AS col0 FROM tab0 AS cor0
----
2047
58
9799

query I rowsort
SELECT 29 * col0 - col0 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN + ( - - col2 ) AND - col1 + - col1 + - 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT DISTINCT - SUM( ALL + + ( - - 20 ) ) * + 87 + + COUNT( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
-5217

skipif mysql # not compatible
query I rowsort label-3456
SELECT DISTINCT - SUM ( ALL + + ( - - 20 ) ) * + 87 + + COUNT ( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
-5217

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( + col2 + col2 * col1 ) AND - col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 8 * - col0 * - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 - - 85 * - col2 FROM tab1 AS cor0
----
-5100
-5871
-8211

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3460
SELECT * FROM tab0 AS cor0 WHERE + 78 / - + ( CAST( - col2 AS SIGNED ) ) NOT IN ( - ( + 16 ), - 83 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3460
SELECT * FROM tab0 AS cor0 WHERE + 78 / - + ( CAST ( - col2 AS INTEGER ) ) NOT IN ( - ( + 16 ), - 83 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 73 * + + col1, - col1 AS col0 FROM tab1 AS cor0
----
-1022
-14
-3431
-47
-365
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT COUNT( * ) * - 81 FROM tab2
----
-243

skipif mysql # not compatible
query I rowsort label-3462
SELECT COUNT ( * ) * - 81 FROM tab2
----
-243

query II rowsort
SELECT - 51 AS col0, col1 AS col2 FROM tab2 WHERE NOT ( NULL ) < NULL AND ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 col1 FROM tab0
----
-46
-46
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 col0 FROM tab0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3466
SELECT DISTINCT 67 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3466
SELECT DISTINCT 67 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3467
SELECT ALL * FROM tab1 WHERE ( + ( col1 ) - - col2 * ( + - CAST( NULL AS SIGNED ) ) * ( - col0 ) ) > ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3467
SELECT ALL * FROM tab1 WHERE ( + ( col1 ) - - col2 * ( + - CAST ( NULL AS INTEGER ) ) * ( - col0 ) ) > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3468
SELECT DISTINCT + + 67 * + - 69 + + - col2 / - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT + + 67 * + - 69 + + - col2 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( + col2 ) = col1
----
-3

skipif mysql # not compatible
query I rowsort label-3469
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( + col2 ) = col1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3470
SELECT CAST( + - 15 AS SIGNED ) FROM tab1 AS cor0
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-3470
SELECT CAST ( + - 15 AS INTEGER ) FROM tab1 AS cor0
----
-15
-15
-15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col1 - 8 AND NULL
----

query I rowsort
SELECT DISTINCT - - col0 * col1 - + 38 AS col1 FROM tab0 AS cor0
----
1177
1789
59

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE ( - 74 ) IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3474
SELECT DISTINCT + MIN( DISTINCT col2 ) DIV COUNT( DISTINCT + 2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3474
SELECT DISTINCT + MIN ( DISTINCT col2 ) / COUNT ( DISTINCT + 2 ) AS col1 FROM tab1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3475
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3475
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT ALL - + COUNT( * ) + - SUM( ALL - + 51 ) + + COUNT( - - 23 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
459

skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL - + COUNT ( * ) + - SUM ( ALL - + 51 ) + + COUNT ( - - 23 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
459

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3477
SELECT * FROM tab0 WHERE NOT CAST( - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3477
SELECT * FROM tab0 WHERE NOT CAST ( - col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT DISTINCT - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3478
SELECT DISTINCT - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3480
SELECT + - MAX( ALL 84 ) DIV - 26 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3480
SELECT + - MAX ( ALL 84 ) / - 26 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3481
SELECT CAST( 31 AS SIGNED ) * + 72 FROM tab0 AS cor0
----
2232
2232
2232

skipif mysql # not compatible
query I rowsort label-3481
SELECT CAST ( 31 AS INTEGER ) * + 72 FROM tab0 AS cor0
----
2232
2232
2232

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - 40 AS col1 FROM tab2 cor0
----
-40
-40
-40

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 42 * col2 + - col2 AS col1 FROM tab0 WHERE NOT ( 25 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3486
SELECT * FROM tab0 WHERE NOT + CAST( - 12 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3486
SELECT * FROM tab0 WHERE NOT + CAST ( - 12 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + ( col0 ) * - 23 * + col2 * col2 AS col0 FROM tab1
----
-10810368
-6805355
-9678032

query II rowsort
SELECT DISTINCT ( + col0 ) AS col1, + col0 * + col2 * + + col1 AS col1 FROM tab1
----
51
68544
85
25075
91
290836

query I rowsort
SELECT DISTINCT 6 + + 49 FROM tab2
----
55

query III rowsort
SELECT * FROM tab2 WHERE - 30 >= + 90 - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3491
SELECT ALL - 24 DIV - col1 + - 49 FROM tab1 AS cor0
----
-45
-48
-49

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL - 24 / - col1 + - 49 FROM tab1 AS cor0
----
-45
-48
-49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 73 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 / col1 ) IS NULL OR col2 * - + 63 * + col2 IN ( - + 88 * - + col2 - - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT DISTINCT - COUNT( DISTINCT + + ( + 23 ) ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3494
SELECT DISTINCT - COUNT ( DISTINCT + + ( + 23 ) ) AS col0 FROM tab1 AS cor0
----
-1

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE 15 < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col1 <> ( + 68 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3497
SELECT ALL - MAX( ( + 97 ) ) AS col1, ( - - 89 ) + + + MAX( ALL - - 27 ) AS col1 FROM tab2 AS cor0
----
-97
116

skipif mysql # not compatible
query II rowsort label-3497
SELECT ALL - MAX ( ( + 97 ) ) AS col1, ( - - 89 ) + + + MAX ( ALL - - 27 ) AS col1 FROM tab2 AS cor0
----
-97
116

onlyif mysql # DIV for integer division: 
query I rowsort label-3498
SELECT - 75 - + col1 DIV + col2 + - + col1 col1 FROM tab2 AS cor0
----
-128
-143
-153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3498
SELECT - 75 - + col1 / + col2 + - + col1 col1 FROM tab2 AS cor0
----
-128
-143
-153

query I rowsort
SELECT ALL - col0 + - col0 * + + 20 + - col2 + + + col1 FROM tab2 AS cor0
----
-1307
-1566
-938

query I rowsort
SELECT ALL - - col2 - - 68 FROM tab1 cor0
----
127
136
164

query I rowsort
SELECT ALL + ( + col0 ) * + 33 + - col1 FROM tab0 AS cor0
----
2850
3200
414

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT DISTINCT - - MIN( col1 ) - + - COUNT( * ) AS col0 FROM tab0 cor0
----
4

skipif mysql # not compatible
query I rowsort label-3502
SELECT DISTINCT - - MIN ( col1 ) - + - COUNT ( * ) AS col0 FROM tab0 cor0
----
4

query I rowsort
SELECT DISTINCT - col0 * + col2 * - - 28 * - + col1 + + col1 AS col2 FROM tab2 AS cor0
----
1510875
5519437
8160667

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 56 IS NULL
----

query I rowsort
SELECT ALL - col1 - - + col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL IN ( 96 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT - - COUNT( * ) * + 59 - - COUNT( * ) FROM tab0 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-3507
SELECT - - COUNT ( * ) * + 59 - - COUNT ( * ) FROM tab0 AS cor0
----
180

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + col2 / + 35 - + - 47 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * - - 42 FROM tab2
----
1932
2688
3150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3510
SELECT DISTINCT + COUNT( * ) * 2 DIV - - COUNT( + ( - + col2 ) ) AS col2 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-3510
SELECT DISTINCT + COUNT ( * ) * 2 / - - COUNT ( + ( - + col2 ) ) AS col2 FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT ALL + MIN( ALL - + ( - col2 ) ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL + MIN ( ALL - + ( - col2 ) ) AS col0 FROM tab1
----
59

query I rowsort
SELECT DISTINCT - 43 / ( - 94 ) AS col1 FROM tab2 WHERE NOT + col2 * - - 16 > + + col1
----

query I rowsort
SELECT ALL + - col2 * col2 * - col2 * col1 FROM tab0 AS cor0
----
21000
8409663
970299

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 0 ) * + ( + col0 ) col0 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 + + + 64 IS NULL
----

query I rowsort
SELECT + + col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT + MAX( - col2 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-3517
SELECT + MAX ( - col2 ) AS col0 FROM tab0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3519
SELECT DISTINCT + col1 DIV - 60 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3519
SELECT DISTINCT + col1 / - 60 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT - 40 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT - ( COUNT( * ) ) + - COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3521
SELECT - ( COUNT ( * ) ) + - COUNT ( * ) FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT ALL COUNT( ALL col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL COUNT ( ALL col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 + col1 * + + 78 col2 FROM tab1 AS cor0
----
1125
3699
423

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL < - 87
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3525
SELECT DISTINCT - col1 DIV col1 + - 38 - - ( col2 ) DIV - CAST( + ( + 46 ) AS SIGNED ) AS col1, col1 col1 FROM tab1 AS cor0
----
-40
47
-40
5
-41
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3525
SELECT DISTINCT - col1 / col1 + - 38 - - ( col2 ) / - CAST ( + ( + 46 ) AS INTEGER ) AS col1, col1 col1 FROM tab1 AS cor0
----
-40
47
-40
5
-41
14

query II rowsort
SELECT DISTINCT - col1, - col1 FROM tab0
----
-1
-1
-21
-21
-81
-81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> ( - - col0 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT + 95 + - + 2 * COUNT( * ) AS col0 FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-3528
SELECT + 95 + - + 2 * COUNT ( * ) AS col0 FROM tab2
----
89

query III rowsort
SELECT * FROM tab1 WHERE ( + ( - col1 ) ) <> - ( + 36 ) + - ( - ( + col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3530
SELECT - col0 * - + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3530
SELECT - col0 * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT DISTINCT 16 + - - COUNT( * ) AS col0 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-3531
SELECT DISTINCT 16 + - - COUNT ( * ) AS col0 FROM tab2
----
19

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3533
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 77 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3533
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 77 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT - 86 + + 23 FROM tab2 AS cor0
----
-63

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < col0 * + - col0
----

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 + + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 18 IN ( - - col2 + + col2 )
----

query I rowsort
SELECT DISTINCT - col1 + - ( - col0 ) AS col0 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT - - 86 AS col0 FROM tab2 cor0
----
86
86
86

query II rowsort
SELECT DISTINCT - + ( - col2 ), col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query I rowsort
SELECT + 40 * col2 FROM tab2
----
1600
2320
920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3543
SELECT DISTINCT + col2 FROM tab2 WHERE NOT - col0 + + - ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3543
SELECT DISTINCT + col2 FROM tab2 WHERE NOT - col0 + + - ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3544
SELECT DISTINCT + col1 DIV + + 63 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3544
SELECT DISTINCT + col1 / + + 63 AS col1 FROM tab1
----
0

query II rowsort
SELECT + col2 AS col2, - col2 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT ALL 93 * + COUNT( * ) FROM tab1 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL 93 * + COUNT ( * ) FROM tab1 AS cor0
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT + SUM( + col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-3547
SELECT + SUM ( + col0 ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT - col2 * + - col0 AS col1 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT DISTINCT + - ( + COUNT( * ) ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3549
SELECT DISTINCT + - ( + COUNT ( * ) ) AS col0 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT DISTINCT + COUNT( * ) + + 1 - - 19 AS col2 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-3550
SELECT DISTINCT + COUNT ( * ) + + 1 - - 19 AS col2 FROM tab1
----
23

query I rowsort
SELECT + 74 * + ( - - 68 ) AS col0 FROM tab2
----
5032
5032
5032

query I rowsort
SELECT DISTINCT + + col2 FROM tab0 WHERE - col1 >= - col0
----
10
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT - ( - - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3553
SELECT - ( - - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL 26 + + 83 + ( + col2 ) * - + col1 AS col2 FROM tab0 cor0
----
-101
-3698
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3555
SELECT DISTINCT + ( - CAST( - col0 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3555
SELECT DISTINCT + ( - CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT ( COUNT( * ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3556
SELECT ( COUNT ( * ) ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 WHERE col2 - + + col1 >= NULL
----

query I rowsort
SELECT ALL 25 + + + col1 FROM tab0
----
106
26
46

query I rowsort
SELECT + 13 + - - col1 AS col0 FROM tab1
----
18
27
60

query I rowsort
SELECT - col0 + ( - col1 ) * + 11 AS col1 FROM tab0
----
-108
-318
-906

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col1 + 19 col1 FROM tab2
----
-1154
-3061
-3867

query III rowsort
SELECT * FROM tab0 WHERE + 32 + - + col1 IN ( - - 35, col1 / col2, 11 * + 11 + + col0 * + col1, - col1 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT - COUNT( * ) + - 29 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-3563
SELECT - COUNT ( * ) + - 29 FROM tab0
----
-32

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL ( - + ( + col2 ) ) + 16 FROM tab1
----
-43
-52
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT DISTINCT + - COUNT( * ) - 26 FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-3566
SELECT DISTINCT + - COUNT ( * ) - 26 FROM tab2 AS cor0
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3567
SELECT + COUNT( * ) + - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3567
SELECT + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 <= + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3569
SELECT DISTINCT - + col1 - - + CAST( - 76 AS SIGNED ) * + + col0 FROM tab0 AS cor0
----
-1221
-6633
-7373

skipif mysql # not compatible
query I rowsort label-3569
SELECT DISTINCT - + col1 - - + CAST ( - 76 AS INTEGER ) * + + col0 FROM tab0 AS cor0
----
-1221
-6633
-7373

onlyif mysql # DIV for integer division: 
query I rowsort label-3570
SELECT DISTINCT col0 DIV - 55 AS col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-3570
SELECT DISTINCT col0 / - 55 AS col2 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3571
SELECT COUNT( * ) AS col1, 26 FROM tab2
----
3
26

skipif mysql # not compatible
query II rowsort label-3571
SELECT COUNT ( * ) AS col1, 26 FROM tab2
----
3
26

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 AND - col1 OR NOT col0 * + col0 * col2 > - 19
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * 76 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 8 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 + + 75 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - ( - 42 ) FROM tab1 AS cor0
----
-42

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 85 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT - COUNT( + col2 ) AS col2 FROM tab2 WHERE NOT + 42 >= + 62
----
-3

skipif mysql # not compatible
query I rowsort label-3578
SELECT - COUNT ( + col2 ) AS col2 FROM tab2 WHERE NOT + 42 >= + 62
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3579
SELECT * FROM tab1 WHERE NOT - CAST( NULL AS DECIMAL ) BETWEEN col2 AND - ( + + col2 )
----

skipif mysql # not compatible
query III rowsort label-3579
SELECT * FROM tab1 WHERE NOT - CAST ( NULL AS REAL ) BETWEEN col2 AND - ( + + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 col0 FROM tab2
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT DISTINCT + ( + + COUNT( * ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3581
SELECT DISTINCT + ( + + COUNT ( * ) ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT ALL SUM( ALL - 46 ) * + COUNT( * ) col1 FROM tab2
----
-414

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3582
SELECT ALL SUM ( ALL - 46 ) * + COUNT ( * ) col1 FROM tab2
----
-414

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3583
SELECT - col1 + + CAST( + col2 AS SIGNED ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3583
SELECT - col1 + + CAST ( + col2 AS INTEGER ) FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3584
SELECT ( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3584
SELECT ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3585
SELECT ALL + 18 * - CAST( + SUM( + col0 ) AS SIGNED ) FROM tab1
----
-4086

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL + 18 * - CAST ( + SUM ( + col0 ) AS INTEGER ) FROM tab1
----
-4086

query I rowsort
SELECT 57 * + - col2 FROM tab1
----
-3363
-3876
-5472

query I rowsort
SELECT 8 * - + ( - - 39 ) FROM tab1 WHERE NOT - col0 IS NULL
----
-312
-312
-312

query I rowsort
SELECT ALL - 27 AS col0 FROM tab0 AS cor0
----
-27
-27
-27

query I rowsort
SELECT DISTINCT - 6 * col2 AS col1 FROM tab2 AS cor0
----
-138
-240
-348

onlyif mysql # aggregate syntax: 
query II rowsort label-3590
SELECT MIN( 84 ) * + COUNT( * ), + SUM( ALL + 84 ) AS col1 FROM tab1 AS cor0
----
252
252

skipif mysql # not compatible
query II rowsort label-3590
SELECT MIN ( 84 ) * + COUNT ( * ), + SUM ( ALL + 84 ) AS col1 FROM tab1 AS cor0
----
252
252

query I rowsort
SELECT ALL 72 * + col1 AS col1 FROM tab0
----
1512
5832
72

query I rowsort
SELECT ALL col0 + + 87 FROM tab1
----
138
172
178

query I rowsort
SELECT ALL - + 99 + + 93 FROM tab0 cor0
----
-6
-6
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3594
SELECT ALL - col2 * + - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL - col2 * + - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * + - col1 * + - col0 + + col1 < 73 - col1 * + col1 * + 48 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3596
SELECT col2 + + col1 + 20 DIV + - 9 + col2 AS col1 FROM tab0 cor0
----
173
197
39

skipif mysql # not compatible
query I rowsort label-3596
SELECT col2 + + col1 + 20 / + - 9 + col2 AS col1 FROM tab0 cor0
----
173
197
39

query I rowsort
SELECT + + 72 + - col1 * + - col2 + - + col0 FROM tab1 AS cor0
----
1365
282
3177

query I rowsort
SELECT + + col0 + + 56 FROM tab1 cor0
----
107
141
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3599
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 * - 28 - - col2 * - col0 IN ( + col1, - 80 + - col0, + col2 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 * - 28 - - col2 * - col0 IN ( + col1, - 80 + - col0, + col2 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3600
SELECT DISTINCT COUNT( * ) AS col2, COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3600
SELECT DISTINCT COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT DISTINCT + + MAX( - ( + - col0 ) ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-3601
SELECT DISTINCT + + MAX ( - ( + - col0 ) ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
225

query II rowsort
SELECT - col0 + - 13 AS col0, col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT ( col2 ) + - + col2 * 64 * - 93 + - col1 AS col0, col1 + + 64 AS col2 FROM tab1 AS cor0
----
351222
69
404757
111
571474
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3604
SELECT DISTINCT - 12 * - + COUNT( * ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3604
SELECT DISTINCT - 12 * - + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3605
SELECT ALL + col2 DIV + 45 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL + col2 / + 45 FROM tab1
----
1
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3606
SELECT col2 DIV + 14 col1 FROM tab2
----
1
2
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3606
SELECT col2 / + 14 col1 FROM tab2
----
1
2
4

query III rowsort
SELECT * FROM tab1 WHERE ( 68 BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT + COUNT( * ) FROM tab0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-3608
SELECT + COUNT ( * ) FROM tab0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
3

query I rowsort
SELECT ALL 8 + + col0 FROM tab1
----
59
93
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3610
SELECT ALL + CAST( - col0 AS SIGNED ) - - - ( - col0 ) AS col1, - col1 AS col1, - ( - 23 ) FROM tab0 cor0
----
9 values hashing to 1402a6c1ecd2dd88d5c50583683a0102

skipif mysql # not compatible
query III rowsort label-3610
SELECT ALL + CAST ( - col0 AS INTEGER ) - - - ( - col0 ) AS col1, - col1 AS col1, - ( - 23 ) FROM tab0 cor0
----
9 values hashing to 1402a6c1ecd2dd88d5c50583683a0102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - - col1 + + col2 / - col2 col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT COUNT( * ) - + 41 FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-3612
SELECT COUNT ( * ) - + 41 FROM tab0 AS cor0
----
-38

query I rowsort
SELECT + col0 + - 98 AS col2 FROM tab1 AS cor0
----
-13
-47
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-3614
SELECT ALL + 64 DIV 81 - - col2 DIV 20 * - col1 FROM tab0 AS cor0
----
-162
-4
0

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL + 64 / 81 - - col2 / 20 * - col1 FROM tab0 AS cor0
----
-162
-4
0

query I rowsort
SELECT ALL 64 * 77 * + col1 - - 55 FROM tab0
----
103543
399223
4983

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT DISTINCT + SUM( - col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-3616
SELECT DISTINCT + SUM ( - col1 ) FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT + MAX( - col1 ) * + + 34 AS col0 FROM tab2 AS cor0
----
-1734

skipif mysql # not compatible
query I rowsort label-3617
SELECT + MAX ( - col1 ) * + + 34 AS col0 FROM tab2 AS cor0
----
-1734

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3618
SELECT col0 AS col1, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-3618
SELECT col0 AS col1, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3619
SELECT - 85 DIV - - MAX( + - 58 ) FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3619
SELECT - 85 / - - MAX ( + - 58 ) FROM tab1 cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 col2 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NOT NULL IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3624
SELECT + CAST( - col1 AS SIGNED ) col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3624
SELECT + CAST ( - col1 AS INTEGER ) col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT DISTINCT MIN( ALL + col2 ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-3625
SELECT DISTINCT MIN ( ALL + col2 ) FROM tab1 cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT ALL COUNT( DISTINCT - 84 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL COUNT ( DISTINCT - 84 ) AS col2 FROM tab2
----
1

query I rowsort
SELECT DISTINCT - + ( + - 30 ) AS col1 FROM tab0 WHERE - - 55 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 col0 FROM tab1
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT ALL - SUM( + col1 ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL - SUM ( + col1 ) AS col1 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT + SUM( DISTINCT + col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-3630
SELECT + SUM ( DISTINCT + col1 ) FROM tab0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3631
SELECT - CAST( + - col1 AS SIGNED ) * 56 * - + col1 + - col2 AS col0 FROM tab1
----
-11072
-123772
-1459

skipif mysql # not compatible
query I rowsort label-3631
SELECT - CAST ( + - col1 AS INTEGER ) * 56 * - + col1 + - col2 AS col0 FROM tab1
----
-11072
-123772
-1459

query I rowsort
SELECT ALL + + 87 * + - col0 * - - 87 AS col0 FROM tab0 AS cor0 WHERE col1 + + + 36 IN ( 95 * - col2 + col1, col0 )
----

query I rowsort
SELECT DISTINCT - - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT ALL 57 * - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE - col0 < 76
----
-171

skipif mysql # not compatible
query I rowsort label-3634
SELECT ALL 57 * - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE - col0 < 76
----
-171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3635
SELECT + - MIN( ALL + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 WHERE + col2 + - col1 / + 77 + - col2 + 91 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3635
SELECT + - MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 WHERE + col2 + - col1 / + 77 + - col2 + 91 IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3636
SELECT ALL + + MAX( DISTINCT 80 ) DIV - COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL + + MAX ( DISTINCT 80 ) / - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-29

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col1 > NULL
----

query I rowsort
SELECT DISTINCT col2 * 86 + ( 5 ) AS col2 FROM tab0 AS cor0
----
4047
8519
865

onlyif mysql # DIV for integer division: 
query I rowsort label-3639
SELECT ALL 87 DIV + 77 col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3639
SELECT ALL 87 / + 77 col1 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT + COUNT( * ) FROM tab0 WHERE NOT - col0 * col2 * + col1 < NULL AND NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3640
SELECT + COUNT ( * ) FROM tab0 WHERE NOT - col0 * col2 * + col1 < NULL AND NOT NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT - COUNT( * ) FROM tab1 WHERE - 8 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3641
SELECT - COUNT ( * ) FROM tab1 WHERE - 8 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3642
SELECT CAST( NULL AS SIGNED ) + + col2 + + 50 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3642
SELECT CAST ( NULL AS INTEGER ) + + col2 + + 50 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 44 - - - 36 AS col0 FROM tab0 WHERE col2 + + - col0 - - col2 * + + col0 * + col0 IS NULL
----

query II rowsort
SELECT 42 + 77 + - 74, col2 AS col1 FROM tab1
----
45
59
45
68
45
96

query I rowsort
SELECT + 27 * - col0 + + 56 + - 67 + + 77 FROM tab2 AS cor0
----
-1176
-1662
-1959

query I rowsort
SELECT DISTINCT - - col2 - - col1 AS col1 FROM tab1 AS cor0
----
110
115
64

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3648
SELECT MIN( CAST( + + col0 AS SIGNED ) ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3648
SELECT MIN ( CAST ( + + col0 AS INTEGER ) ) FROM tab0
----
15

query I rowsort
SELECT ALL col0 + - col2 AS col1 FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT 39 * + + ( col0 ) FROM tab2
----
1794
2496
2925

query I rowsort
SELECT DISTINCT + 62 AS col2 FROM tab1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3652
SELECT DISTINCT - ( - + 41 ) DIV - col2 col2 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3652
SELECT DISTINCT - ( - + 41 ) / - col2 col2 FROM tab2 AS cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3653
SELECT + CAST( col1 AS SIGNED ) AS col2, 71 FROM tab0 AS cor0
----
1
71
21
71
81
71

skipif mysql # not compatible
query II rowsort label-3653
SELECT + CAST ( col1 AS INTEGER ) AS col2, 71 FROM tab0 AS cor0
----
1
71
21
71
81
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 col2 FROM tab2 AS cor0
----
98
98
98

query I rowsort
SELECT ( + col0 ) * col1 AS col1 FROM tab1 cor0
----
425
4277
714

query II rowsort
SELECT ALL col2, 21 AS col0 FROM tab2
----
23
21
40
21
58
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3657
SELECT ( - 94 ) * - SUM( + col2 ) + - ( + + COUNT( * ) ) * 50 + 26 + - 81 DIV 24 FROM tab1
----
20835

skipif mysql # not compatible
query I rowsort label-3657
SELECT ( - 94 ) * - SUM ( + col2 ) + - ( + + COUNT ( * ) ) * 50 + 26 + - 81 / 24 FROM tab1
----
20835

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT 16 + - - COUNT( * ) AS col1 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-3658
SELECT 16 + - - COUNT ( * ) AS col1 FROM tab0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT DISTINCT MIN( DISTINCT col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3659
SELECT DISTINCT MIN ( DISTINCT col2 ) AS col2 FROM tab1
----
59

query I rowsort
SELECT ALL col0 + - 0 AS col1 FROM tab2
----
46
64
75

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 BETWEEN - col1 AND col1
----
15
81
47
87
21
10

query I rowsort
SELECT + + 90 AS col1 FROM tab2 cor0
----
90
90
90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3664
SELECT + CAST( + - col0 AS SIGNED ) DIV - col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3664
SELECT + CAST ( + - col0 AS INTEGER ) / - col2 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3665
SELECT ALL - AVG ( + - 22 ) + 87 / ( - ( CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL - AVG ( + - 22 ) + 87 / ( - ( CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3666
SELECT DISTINCT + col1 DIV col2 - col0 AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3666
SELECT DISTINCT + col1 / col2 - col0 AS col1 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT 78 + col0 + + + ( ( + + 5 ) ) AS col0 FROM tab1 AS cor0
----
134
168
174

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT - 63 + + + MIN( DISTINCT - 35 ) FROM tab0 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-3668
SELECT - 63 + + + MIN ( DISTINCT - 35 ) FROM tab0 AS cor0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT DISTINCT SUM( 16 ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3669
SELECT DISTINCT SUM ( 16 ) FROM tab2 AS cor0
----
48

query II rowsort
SELECT col1, col1 AS col2 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT DISTINCT + ( MAX( + col0 ) ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3671
SELECT DISTINCT + ( MAX ( + col0 ) ) FROM tab2 AS cor0
----
75

query II rowsort
SELECT - 67 AS col2, - 71 FROM tab0 AS cor0
----
-67
-71
-67
-71
-67
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3673
SELECT DISTINCT + MAX( + - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3673
SELECT DISTINCT + MAX ( + - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 / - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 * col1 - + + col0 FROM tab0
----
-196
-297
-3822

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 14 * + + 74 col0 FROM tab1
----
1087
1121
1127

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT DISTINCT 96 + - + SUM( + 70 ) AS col1 FROM tab0
----
-114

skipif mysql # not compatible
query I rowsort label-3677
SELECT DISTINCT 96 + - + SUM ( + 70 ) AS col1 FROM tab0
----
-114

query I rowsort
SELECT + col1 - - 71 * col2 FROM tab1
----
4194
4875
6830

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT ( + - COUNT( * ) ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3679
SELECT ( + - COUNT ( * ) ) col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 / 32 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col0 * col2 * + - col2 FROM tab0
----
-33135
-8700
-950697

query II rowsort
SELECT DISTINCT + + col0, col2 AS col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - col1
----

query I rowsort
SELECT + - col2 * - col1 * + col0 FROM tab1 cor0
----
25075
290836
68544

query I rowsort
SELECT - 30 * - col1 FROM tab0 AS cor0
----
2430
30
630

query I rowsort
SELECT DISTINCT - 89 * - col0 FROM tab2 AS cor0
----
4094
5696
6675

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= - 23 + col2 + - col0 + + col1 * - 38
----

query I rowsort
SELECT ALL 49 * col2 FROM tab2
----
1127
1960
2842

onlyif mysql # aggregate syntax: 
query II rowsort label-3690
SELECT + ( + - 40 ) AS col1, COUNT( DISTINCT 73 ) AS col0 FROM tab1
----
-40
1

skipif mysql # not compatible
query II rowsort label-3690
SELECT + ( + - 40 ) AS col1, COUNT ( DISTINCT 73 ) AS col0 FROM tab1
----
-40
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE + 14 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3693
SELECT SUM( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3693
SELECT SUM ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( col1 ) col1, + col0 * - 15 FROM tab0
----
1
-1455
21
-1305
81
-225

query I rowsort
SELECT + + col1 FROM tab2 WHERE NOT + col1 >= 72
----
51
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( 2 ) + + col2 * - col1 - - - col2 col2, col0 col1 FROM tab1
----
-1438
51
-3262
91
-352
85

query I rowsort
SELECT + ( + - 9 ) + - 83 - + col1 AS col0 FROM tab2
----
-143
-159
-169

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 + + + col1 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT + MIN( DISTINCT col2 ) + + SUM( - col2 ) AS col2 FROM tab1 AS cor0
----
-164

skipif mysql # not compatible
query I rowsort label-3699
SELECT + MIN ( DISTINCT col2 ) + + SUM ( - col2 ) AS col2 FROM tab1 AS cor0
----
-164

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = ( - + col1 )
----

query I rowsort
SELECT - 99 + + 43 * 67 * - col0 * + + col0 + - 79 FROM tab1 AS cor0
----
-20815403
-23857739
-7493659

query I rowsort
SELECT DISTINCT + 50 * - - col2 + col0 FROM tab1 AS cor0
----
3035
3491
4851

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3703
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3703
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 78 + - col2 + 9 AS col1 FROM tab2
----
29
47
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT COUNT( DISTINCT 36 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3705
SELECT COUNT ( DISTINCT 36 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT ALL - - COUNT( * ) + - 18 AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL - - COUNT ( * ) + - 18 AS col2 FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3707
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE - col2 BETWEEN + + col1 AND NULL AND 2 + 82 < CAST( NULL AS SIGNED ) - + 33
----

skipif mysql # not compatible
query I rowsort label-3707
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE - col2 BETWEEN + + col1 AND NULL AND 2 + 82 < CAST ( NULL AS INTEGER ) - + 33
----

query I rowsort
SELECT + 51 * - col2 + + + col2 FROM tab1
----
-2950
-3400
-4800

query II rowsort
SELECT ALL col0 AS col0, + col1 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3710
SELECT col2 + + CAST( + 89 AS SIGNED ) + + 45 AS col0, + 88 AS col0 FROM tab0
----
144
88
181
88
233
88

skipif mysql # not compatible
query II rowsort label-3710
SELECT col2 + + CAST ( + 89 AS INTEGER ) + + 45 AS col0, + 88 AS col0 FROM tab0
----
144
88
181
88
233
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - - col0 col0 FROM tab0
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-3712
SELECT + 59 DIV - + col1 AS col0 FROM tab1
----
-1
-11
-4

skipif mysql # not compatible
query I rowsort label-3712
SELECT + 59 / - + col1 AS col0 FROM tab1
----
-1
-11
-4

query I rowsort
SELECT DISTINCT - 41 * - - col1 FROM tab2
----
-2091
-2747
-3157

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 - col1 <= NULL
----

query I rowsort
SELECT + 6 * - col1 * + 89 AS col2 FROM tab1
----
-25098
-2670
-7476

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 31 + + col1 + + 99 + 11 * - col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3717
SELECT CAST( + 79 AS SIGNED ) / 61 FROM tab2 cor0 WHERE NOT col1 * col2 * + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3717
SELECT CAST ( + 79 AS INTEGER ) / 61 FROM tab2 cor0 WHERE NOT col1 * col2 * + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3718
SELECT DISTINCT CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3718
SELECT DISTINCT CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3720
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT + SUM( 64 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT BETWEEN 82 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3721
SELECT + SUM ( 64 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT BETWEEN 82 AND NULL
----
NULL

query I rowsort
SELECT + - col0 * - ( + - col2 ) * - 76 - col0 AS col2 FROM tab1 WHERE NOT 14 <> + + 18
----

query I rowsort
SELECT 43 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3725
SELECT DISTINCT 25 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3725
SELECT DISTINCT 25 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 NOT IN ( col0, - col1 )
----

query I rowsort
SELECT + - 6 * + - col2 AS col0 FROM tab2 AS cor0
----
138
240
348

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT + + MIN( DISTINCT - - col0 ) * 64 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9792

skipif mysql # not compatible
query I rowsort label-3728
SELECT + + MIN ( DISTINCT - - col0 ) * 64 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9792

query II rowsort
SELECT - col0 + + 82 * - - 1, + 83 AS col1 FROM tab1 AS cor0 WHERE NOT + 9 IS NULL
----
-3
83
-9
83
31
83

query I rowsort
SELECT + col0 + - col1 + + 5 * + col1 * 67 + + col0 AS col1 FROM tab0 AS cor0
----
27084
528
7188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 + + - col0 col2 FROM tab1
----
-116
-122
-82

query I rowsort
SELECT ( + col2 ) + + - 16 AS col2 FROM tab1
----
43
52
80

query III rowsort
SELECT * FROM tab2 WHERE - col2 * - + 73 + + col2 > NULL
----

query I rowsort
SELECT DISTINCT + 46 * - col1 AS col2 FROM tab0
----
-3726
-46
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT DISTINCT + COUNT( * ) + MIN( DISTINCT - col0 ) AS col0 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT + COUNT ( * ) + MIN ( DISTINCT - col0 ) AS col0 FROM tab2
----
-72

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 IS NULL
----

query I rowsort
SELECT ALL - 5 AS col2 FROM tab0
----
-5
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3738
SELECT CAST( - + col1 AS SIGNED ) AS col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3738
SELECT CAST ( - + col1 AS INTEGER ) AS col2 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 WHERE - col2 * 61 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( col1 ) + - + col1 + col2 * + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-295885
-420784
-470016

query I rowsort
SELECT ALL col2 + + - 21 AS col0 FROM tab1 cor0
----
38
47
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3742
SELECT + - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3742
SELECT + - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + 13, col1 * - 67 AS col2 FROM tab2 AS cor0
----
13
-3417
13
-4489
13
-5159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3744
SELECT col1 + 29 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3744
SELECT col1 + 29 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 50 * + col2 FROM tab2
----
1150
2000
2900

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( col1 + - col0 - + - 45 * + - col0, - col2, - ( - - col2 ) / + col1, + col1 + ( + col0 ) )
----

query I rowsort
SELECT - + 43 FROM tab2 WHERE + col2 * + col2 IS NOT NULL
----
-43
-43
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3748
SELECT ALL + 13 * + CAST( - col2 AS SIGNED ) - col1 AS col1 FROM tab1 AS cor0
----
-1262
-772
-931

skipif mysql # not compatible
query I rowsort label-3748
SELECT ALL + 13 * + CAST ( - col2 AS INTEGER ) - col1 AS col1 FROM tab1 AS cor0
----
-1262
-772
-931

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT + ( + 91 ) * - MAX( DISTINCT - 1 ) FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3749
SELECT + ( + 91 ) * - MAX ( DISTINCT - 1 ) FROM tab2 AS cor0
----
91

query I rowsort
SELECT ALL - col2 - + ( - - col2 ) FROM tab0 AS cor0
----
-198
-20
-94

query II rowsort
SELECT - ( col2 ) AS col1, col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query I rowsort
SELECT DISTINCT col0 + 75 AS col0 FROM tab0 AS cor0
----
162
172
90

onlyif mysql # DIV for integer division: 
query I rowsort label-3753
SELECT ALL + col2 DIV + + col0 + col0 - - - col1 AS col0 FROM tab2 AS cor0
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-3753
SELECT ALL + col2 / + + col0 + col0 - - - col1 AS col0 FROM tab2 AS cor0
----
-13
-5
8

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 < NULL
----

query I rowsort
SELECT DISTINCT + col0 / - - 90 AS col0 FROM tab1 AS cor0 WHERE NULL > NULL
----

query II rowsort
SELECT col1 AS col0, + col1 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL col0 * col2 * - 47 FROM tab2
----
-120320
-204450
-49726

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3758
SELECT * FROM tab2 WHERE NOT CAST( - CAST( - 75 AS SIGNED ) AS SIGNED ) IN ( - col2, - ( + col0 ) * + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3758
SELECT * FROM tab2 WHERE NOT CAST ( - CAST ( - 75 AS INTEGER ) AS INTEGER ) IN ( - col2, - ( + col0 ) * + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3759
SELECT - COUNT( * ) DIV + 33 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3759
SELECT - COUNT ( * ) / + 33 AS col0 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3761
SELECT DISTINCT * FROM tab1 WHERE NOT + + CAST( + 56 AS DECIMAL ) - 35 + + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3761
SELECT DISTINCT * FROM tab1 WHERE NOT + + CAST ( + 56 AS REAL ) - 35 + + col2 IS NOT NULL
----

query I rowsort
SELECT ( + 74 ) AS col1 FROM tab0
----
74
74
74

query I rowsort
SELECT 78 * + 51 FROM tab1
----
3978
3978
3978

query II rowsort
SELECT + 37, col1 FROM tab0 AS cor0
----
37
1
37
21
37
81

query I rowsort
SELECT - 40 * + col1 FROM tab2 AS cor0
----
-2040
-2680
-3080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 * 4 col2 FROM tab0 AS cor0
----
-396

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 + - col0 AND NULL
----

query I rowsort
SELECT DISTINCT + col0 + - col1 AS col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3769
SELECT DISTINCT + + CAST( - 5 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3769
SELECT DISTINCT + + CAST ( - 5 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3770
SELECT + COUNT( * ) + - 6 + - CAST( - 22 AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
25

skipif mysql # not compatible
query I rowsort label-3770
SELECT + COUNT ( * ) + - 6 + - CAST ( - 22 AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
25

query I rowsort
SELECT ALL - col1 * col2 FROM tab0 WHERE + col1 IS NOT NULL
----
-210
-3807
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3772
SELECT ALL 70 AS col1, + COUNT( * ) + 4 * - CAST( + 0 AS SIGNED ) AS col2 FROM tab1
----
70
3

skipif mysql # not compatible
query II rowsort label-3772
SELECT ALL 70 AS col1, + COUNT ( * ) + 4 * - CAST ( + 0 AS INTEGER ) AS col2 FROM tab1
----
70
3

query I rowsort
SELECT + 24 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3774
SELECT DISTINCT + 81, + SUM( - CAST( - 22 AS SIGNED ) ) + - + ( + 91 ) AS col2 FROM tab0 AS cor0
----
81
-25

skipif mysql # not compatible
query II rowsort label-3774
SELECT DISTINCT + 81, + SUM ( - CAST ( - 22 AS INTEGER ) ) + - + ( + 91 ) AS col2 FROM tab0 AS cor0
----
81
-25

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 63 / - ( 71 ) = NULL
----

query II rowsort
SELECT ALL - col0 * col1 AS col1, - col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( - col0 ) / - 19 + - col2 / 53 * + + col0 IS NULL
----
-2346
-23
-4928
-40
-5025
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT + - SUM( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3777
SELECT + - SUM ( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
195

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col0 ) < - 17
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 * - + 84 + - - 84 col0 FROM tab1 AS cor0
----
-3780
-3780
-3780

query I rowsort
SELECT DISTINCT + col2 * + 79 FROM tab2 cor0
----
1817
3160
4582

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT COUNT( DISTINCT - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3782
SELECT COUNT ( DISTINCT - col1 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT - col0 + + - ( col0 ) FROM tab1
----
-102
-170
-182

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3784
SELECT - col0 * + col0 + - CAST( - - CAST( + - col2 AS SIGNED ) AS SIGNED ) DIV - ( - col1 ) AS col0 FROM tab0
----
-225
-7569
-9310

skipif mysql # not compatible
query I rowsort label-3784
SELECT - col0 * + col0 + - CAST ( - - CAST ( + - col2 AS INTEGER ) AS INTEGER ) / - ( - col1 ) AS col0 FROM tab0
----
-225
-7569
-9310

query I rowsort
SELECT ALL + 12 + - col0 + + ( - col0 ) - - col2 + - 26 AS col1 FROM tab0
----
-109
-178
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3786
SELECT 77 + CAST( NULL AS SIGNED ) / - 73 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3786
SELECT 77 + CAST ( NULL AS INTEGER ) / - 73 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * - col1 * col2 + + col2 AS col0 FROM tab2
----
-123160
-225330
-26956

query I rowsort
SELECT + + 53 AS col0 FROM tab2 WHERE col0 IS NOT NULL
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT ALL COUNT( * ) - + 90 AS col1 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL COUNT ( * ) - + 90 AS col1 FROM tab1 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT ALL - SUM( DISTINCT - + col2 ) + COUNT( * ) AS col0 FROM tab1 cor0
----
226

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL - SUM ( DISTINCT - + col2 ) + COUNT ( * ) AS col0 FROM tab1 cor0
----
226

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3791
SELECT DISTINCT 27 * + col1 * + col1 col1, 98 + + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
5292
NULL
59643
NULL
675
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3791
SELECT DISTINCT 27 * + col1 * + col1 col1, 98 + + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
5292
NULL
59643
NULL
675
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT + 47 * - - 49 * - 37 * COUNT( * ) AS col2 FROM tab2
----
-255633

skipif mysql # not compatible
query I rowsort label-3792
SELECT + 47 * - - 49 * - 37 * COUNT ( * ) AS col2 FROM tab2
----
-255633

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT + + COUNT( * ) - - - 79 FROM tab2 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-3793
SELECT + + COUNT ( * ) - - - 79 FROM tab2 AS cor0
----
-76

query II rowsort
SELECT col0 AS col2, - col1 - col1 FROM tab0 AS cor0
----
15
-162
87
-42
97
-2

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 + - col2 + - 89 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col1 AS col1, col1 AS col2 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT DISTINCT - 11 * 66 AS col2 FROM tab2
----
-726

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT DISTINCT - MAX( + 39 ) FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-3798
SELECT DISTINCT - MAX ( + 39 ) FROM tab1
----
-39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3799
SELECT ALL + CAST( + 2 AS SIGNED ) DIV + - col1 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3799
SELECT ALL + CAST ( + 2 AS INTEGER ) / + - col1 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT ALL MAX( ALL col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL MAX ( ALL col2 ) FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT ALL + COUNT( * ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT 24 * + 31 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
744

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT DISTINCT 19 + + MAX( DISTINCT - col2 ) FROM tab1
----
-40

skipif mysql # not compatible
query I rowsort label-3803
SELECT DISTINCT 19 + + MAX ( DISTINCT - col2 ) FROM tab1
----
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3805
SELECT DISTINCT COUNT( * ) + + COUNT( * ) * COUNT( ALL col2 ) * COUNT( * ) DIV - + 49 AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) * COUNT ( ALL col2 ) * COUNT ( * ) / - + 49 AS col1 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3806
SELECT DISTINCT - col0, 51 * - - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-3806
SELECT DISTINCT - col0, 51 * - - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT ALL - MAX( col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3807
SELECT ALL - MAX ( col2 ) AS col0 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT + col2 + - + col2 + col1 * col0 AS col0 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT + col0 * + ( 1 ) + - col0 + - col2 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3810
SELECT - - col0 + + + col1 - + CAST( col1 AS SIGNED ) FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3810
SELECT - - col0 + + + col1 - + CAST ( col1 AS INTEGER ) FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT - 44 + - 90 FROM tab1 AS cor0
----
-134
-134
-134

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3812
SELECT DISTINCT col0, - CAST( NULL AS SIGNED ) * + 11 AS col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-3812
SELECT DISTINCT col0, - CAST ( NULL AS INTEGER ) * + 11 AS col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT DISTINCT - 72 + ( col1 ) FROM tab0
----
-51
-71
9

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE ( + col0 ) IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3815
SELECT COUNT( * ), 42 DIV - COUNT( * ) col2 FROM tab0
----
3
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3815
SELECT COUNT ( * ), 42 / - COUNT ( * ) col2 FROM tab0
----
3
-14

query III rowsort
SELECT * FROM tab1 WHERE + + col0 * + col2 * + + col0 + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 51 * + col2 * - col2 AS col2 FROM tab2
----
-171564
-26979
-81600

query I rowsort
SELECT ALL col1 + + 88 FROM tab1
----
102
135
93

query II rowsort
SELECT col1, - col2 FROM tab0
----
1
-99
21
-10
81
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3820
SELECT DISTINCT + CAST( - + 2 AS SIGNED ) - - col1 AS col0 FROM tab2 AS cor0
----
49
65
75

skipif mysql # not compatible
query I rowsort label-3820
SELECT DISTINCT + CAST ( - + 2 AS INTEGER ) - - col1 AS col0 FROM tab2 AS cor0
----
49
65
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3821
SELECT DISTINCT + - COUNT( * ) - - - 22 AS col2, - COUNT( * ) AS col0 FROM tab1 cor0
----
-25
-3

skipif mysql # not compatible
query II rowsort label-3821
SELECT DISTINCT + - COUNT ( * ) - - - 22 AS col2, - COUNT ( * ) AS col0 FROM tab1 cor0
----
-25
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT DISTINCT + 83 + COUNT( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT + 83 + COUNT ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT - MIN( + - col1 ) FROM tab1 AS cor0 WHERE NULL <= - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3823
SELECT - MIN ( + - col1 ) FROM tab1 AS cor0 WHERE NULL <= - col0
----
NULL

query I rowsort
SELECT - 14 - col0 + - 71 * col2 FROM tab2 AS cor0
----
-1693
-2918
-4207

query I rowsort
SELECT DISTINCT 55 AS col2 FROM tab0 WHERE NOT - col1 IS NULL
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3826
SELECT DISTINCT - - 22 + COUNT( * ) DIV - ( + 3 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
19

skipif mysql # not compatible
query I rowsort label-3826
SELECT DISTINCT - - 22 + COUNT ( * ) / - ( + 3 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
19

query I rowsort
SELECT ALL + + 93 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT ALL col0 * - - col2 * 77 FROM tab1
----
376992
386155
476476

query I rowsort
SELECT - 63 AS col2 FROM tab0 cor0
----
-63
-63
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3830
SELECT ALL + COUNT( * ) DIV + + MAX( ALL + 59 ) + ( - + COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL + COUNT ( * ) / + + MAX ( ALL + 59 ) + ( - + COUNT ( * ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 74 * + - col2 * - 19 + + col2 + col2 + - - 99 AS col0 FROM tab0 AS cor0
----
139491
14179
66275

onlyif mysql # DIV for integer division: 
query I rowsort label-3832
SELECT DISTINCT 30 DIV col0 + - ( - - col2 ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3832
SELECT DISTINCT 30 / col0 + - ( - - col2 ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3833
SELECT ALL + - CAST( + - col1 AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL + - CAST ( + - col1 AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT ALL + MAX( col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL + MAX ( col2 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT DISTINCT - 50 * + col2 AS col1 FROM tab1 AS cor0
----
-2950
-3400
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT DISTINCT + ( - COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3837
SELECT ALL - + 21 DIV col1 AS col1 FROM tab0 AS cor0
----
-1
-21
0

skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL - + 21 / col1 AS col1 FROM tab0 AS cor0
----
-1
-21
0

query II rowsort
SELECT ALL col1 AS col2, col0 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL 85, col0 AS col1 FROM tab1
----
85
51
85
85
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3840
SELECT ALL CAST( col2 AS SIGNED ) AS col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3840
SELECT ALL CAST ( col2 AS INTEGER ) AS col1 FROM tab0
----
10
47
99

query I rowsort
SELECT + col0 * 56 AS col2 FROM tab1 AS cor0
----
2856
4760
5096

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3843
SELECT ALL - col1 DIV 92 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL - col1 / 92 AS col1 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 16 NOT IN ( - 31, + 7 / - col1, 84 )
----

query I rowsort
SELECT - 68 * 82 FROM tab1
----
-5576
-5576
-5576

query I rowsort
SELECT + col0 - col2 AS col2 FROM tab0 WHERE NOT NULL BETWEEN + col2 * col2 AND col2 + col0
----

query I rowsort
SELECT ALL 29 - + 2 FROM tab1
----
27
27
27

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3848
SELECT * FROM tab1 WHERE 56 IN ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-3848
SELECT * FROM tab1 WHERE 56 IN ( CAST ( NULL AS REAL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( AVG ( 72 ) ) FROM tab0 WHERE NOT NULL IN ( col1 * - col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3851
SELECT ALL * FROM tab2 WHERE NOT ( col2 * col2 ) NOT BETWEEN + CAST( NULL AS SIGNED ) * CAST( - 56 AS SIGNED ) AND - ( ( - col2 ) )
----

skipif mysql # not compatible
query III rowsort label-3851
SELECT ALL * FROM tab2 WHERE NOT ( col2 * col2 ) NOT BETWEEN + CAST ( NULL AS INTEGER ) * CAST ( - 56 AS INTEGER ) AND - ( ( - col2 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col0 * - col1 ) BETWEEN col0 * col2 AND - 27
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 1 + - 22 AS col2 FROM tab2
----
-21
-21
-21

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col0 ) IN ( - 94 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3855
SELECT * FROM tab2 WHERE NOT ( CAST( + col0 AS DECIMAL ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3855
SELECT * FROM tab2 WHERE NOT ( CAST ( + col0 AS REAL ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT DISTINCT 62 * COUNT( * ) FROM tab1
----
186

skipif mysql # not compatible
query I rowsort label-3857
SELECT DISTINCT 62 * COUNT ( * ) FROM tab1
----
186

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( 35 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3859
SELECT DISTINCT CAST( 34 AS SIGNED ) col2 FROM tab0
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3859
SELECT DISTINCT CAST ( 34 AS INTEGER ) col2 FROM tab0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT ALL - SUM( col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL - SUM ( col0 ) FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT 28 * COUNT( * ) + 10 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-3861
SELECT 28 * COUNT ( * ) + 10 FROM tab1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3862
SELECT ALL + 79 * CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL + 79 * CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE col2 NOT IN ( + col1 * - col1 + 17 )
----
-1
-21
-81

query I rowsort
SELECT 73 + - 61 AS col1 FROM tab2
----
12
12
12

query I rowsort
SELECT DISTINCT 16 AS col1 FROM tab2
----
16

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 / col2 = NULL
----

query I rowsort
SELECT DISTINCT + col1 + + 65 * - 68 AS col1 FROM tab1
----
-4373
-4406
-4415

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE ( - col0 ) <= ( NULL )
----

query I rowsort
SELECT - ( - col0 ) FROM tab2 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3872
SELECT ALL - MIN( + CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL - MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT DISTINCT + MAX( - col0 ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3873
SELECT DISTINCT + MAX ( - col0 ) AS col1 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT COUNT( * ) AS col0 FROM tab1 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3874
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NOT - col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT 45 * - COUNT( * ) AS col2 FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-3875
SELECT 45 * - COUNT ( * ) AS col2 FROM tab0
----
-135

query I rowsort
SELECT col1 FROM tab0 WHERE NOT col1 <= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3877
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + 10 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3877
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + 10 NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT DISTINCT 39 * COUNT( * ) FROM tab2 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-3878
SELECT DISTINCT 39 * COUNT ( * ) FROM tab2 AS cor0
----
117

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT col2 - - col2 / col1 <= ( + 80 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( ( col0 ) )
----

query I rowsort
SELECT DISTINCT - col2 + col2 FROM tab0 AS cor0 WHERE - 59 >= NULL
----

query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3883
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 85 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3883
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 85 AS col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 18 col2 FROM tab2 AS cor0
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT DISTINCT COUNT( - col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3885
SELECT DISTINCT COUNT ( - col2 ) AS col1 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3886
SELECT * FROM tab0 WHERE NOT col1 / CAST( NULL AS SIGNED ) + col2 <> + col1
----

skipif mysql # not compatible
query III rowsort label-3886
SELECT * FROM tab0 WHERE NOT col1 / CAST ( NULL AS INTEGER ) + col2 <> + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT MAX( - 48 ) FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-3887
SELECT MAX ( - 48 ) FROM tab1
----
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 19 col0 FROM tab0 WHERE ( NULL ) IS NULL
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT + ( + 35 ) * - COUNT( * ) FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-3889
SELECT + ( + 35 ) * - COUNT ( * ) FROM tab0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT DISTINCT 39 * MAX( col0 ) FROM tab2
----
2925

skipif mysql # not compatible
query I rowsort label-3890
SELECT DISTINCT 39 * MAX ( col0 ) FROM tab2
----
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT ALL + COUNT( * ) * + 23 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-3891
SELECT ALL + COUNT ( * ) * + 23 FROM tab2
----
69

query I rowsort
SELECT DISTINCT 5 * + - 68 AS col2 FROM tab2
----
-340

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT ( - col1 ) = - 70 + + col2
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3894
SELECT ALL 12 * + col1 + CAST( NULL AS SIGNED ) * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3894
SELECT ALL 12 * + col1 + CAST ( NULL AS INTEGER ) * col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > + 44
----

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 WHERE NOT - 77 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT DISTINCT + 32 + - + COUNT( * ) FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-3898
SELECT DISTINCT + 32 + - + COUNT ( * ) FROM tab0 AS cor0
----
29

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3899
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 + col0 * col0 ) NOT IN ( col1 + col1 * CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-3899
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 + col0 * col0 ) NOT IN ( col1 + col1 * CAST ( NULL AS REAL ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3900
SELECT DISTINCT + col0 + - 54 * CAST( 3 * col1 AS DECIMAL ) col2 FROM tab2 AS cor0 WHERE NOT - 93 = ( NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3900
SELECT DISTINCT + col0 + - 54 * CAST ( 3 * col1 AS REAL ) col2 FROM tab2 AS cor0 WHERE NOT - 93 = ( NULL )
----

query I rowsort
SELECT - + col1 * - col2 + col2 AS col0 FROM tab0 AS cor0
----
198
220
3854

query I rowsort
SELECT 84 FROM tab0 WHERE NULL <= NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT + col1 + + col2 AS col2 FROM tab0 WHERE NULL NOT BETWEEN + 14 AND ( 55 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT ALL + COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 WHERE NULL < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3905
SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 WHERE NULL < ( NULL )
----
0

query I rowsort
SELECT + + 73 * 20 + - col0 FROM tab1 cor0
----
1369
1375
1409

query I rowsort
SELECT ALL 47 + - col1 FROM tab0 cor0
----
-34
26
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT - 14 + - COUNT( * ) AS col0 FROM tab0 cor0
----
-17

skipif mysql # not compatible
query I rowsort label-3908
SELECT - 14 + - COUNT ( * ) AS col0 FROM tab0 cor0
----
-17

query I rowsort
SELECT + 19 + col0 * - - ( 4 ) FROM tab2 AS cor0
----
203
275
319

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3910
SELECT ALL - CAST( + col1 AS SIGNED ) + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL - CAST ( + col1 AS INTEGER ) + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 33 + - - col2 AS col1 FROM tab0 AS cor0
----
132
43
80

query I rowsort
SELECT + - col0 * - + ( - col0 ) FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT - ( ( - + 39 ) ) * 27 AS col2 FROM tab1 cor0
----
1053
1053
1053

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) BETWEEN - 67 AND + col0
----

query I rowsort
SELECT + 77 * + + col1 AS col1 FROM tab1
----
1078
3619
385

query I rowsort
SELECT - 12 AS col2 FROM tab1 WHERE col2 + + + col2 NOT IN ( 89 * + col2 )
----
-12
-12
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 col0 FROM tab0
----
58

query I rowsort
SELECT DISTINCT + 67 + col2 FROM tab2
----
107
125
90

query I rowsort
SELECT + ( + + 5 ) - col1 AS col2 FROM tab2
----
-46
-62
-72

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= + col2 + + col0 AND ( col2 ) IS NULL
----

query I rowsort
SELECT ALL + col1 + ( col0 ) * + 88 * col2 FROM tab1 AS cor0
----
430862
441325
544591

onlyif mysql # DIV for integer division: 
query I rowsort label-3922
SELECT + col2 - - col2 DIV + + col1 AS col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3922
SELECT + col2 - - col2 / + + col1 AS col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT - + col2 - + + 32 AS col0 FROM tab0 AS cor0
----
-131
-42
-79

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( - 63 ) = + col2 + ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT ALL + MAX( ALL + 41 ) AS col1 FROM tab2 AS cor0 WHERE + col1 + - col2 IN ( - - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL + MAX ( ALL + 41 ) AS col1 FROM tab2 AS cor0 WHERE + col1 + - col2 IN ( - - col2 )
----
NULL

query I rowsort
SELECT ALL + 56 FROM tab1 WHERE ( + + 37 - - 59 * - + col0 ) > - 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT DISTINCT - COUNT( + 23 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3927
SELECT DISTINCT - COUNT ( + 23 ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + col1 * - + 61 AS col0 FROM tab0 AS cor0
----
-1281
-4941
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT + + COUNT( * ) * + + 28 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-3929
SELECT + + COUNT ( * ) * + + 28 FROM tab0 AS cor0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3930
SELECT - SUM( DISTINCT + 18 ) * + CAST( + + 72 AS SIGNED ) FROM tab1 cor0
----
-1296

skipif mysql # not compatible
query I rowsort label-3930
SELECT - SUM ( DISTINCT + 18 ) * + CAST ( + + 72 AS INTEGER ) FROM tab1 cor0
----
-1296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3931
SELECT - + ( + + MIN( ALL CAST( - - 3 AS SIGNED ) ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3931
SELECT - + ( + + MIN ( ALL CAST ( - - 3 AS INTEGER ) ) ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT ( - - col2 ) FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT IN ( - 47 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT col2 FROM tab2 WHERE NOT col1 * + 69 <= ( - col0 ) + + col0 * - col0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT + COUNT( * ) * - - 13 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-3936
SELECT + COUNT ( * ) * - - 13 FROM tab0
----
39

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < - - col1
----

query II rowsort
SELECT 30, col1 AS col0 FROM tab2
----
30
51
30
67
30
77

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + col2 + + ( - + col2 ) AS col2 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3941
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT NULL < col1 )
----

query I rowsort
SELECT col0 * col0 * - - col1 FROM tab2
----
107916
315392
376875

query I rowsort
SELECT ALL 3 + col0 + + col1 + ( - 17 ) AS col1 FROM tab1
----
124
51
76

query I rowsort
SELECT ALL col2 + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( col2 * + 79 / + ( + + col0 ) ) IS NOT NULL
----

query II rowsort
SELECT ALL - col2 AS col0, - 19 AS col2 FROM tab1 cor0
----
-59
-19
-68
-19
-96
-19

query I rowsort
SELECT ALL + 62 * - col0 * + - col1 * - ( - + col2 ) * 8 + col0 * - 4 AS col1 FROM tab0 AS cor0
----
28324020
4762700
9061572

query I rowsort
SELECT + - col0 * + 11 + + 88 + - 23 + - col1 * - col2 FROM tab1 WHERE - col0 <= NULL
----

query I rowsort
SELECT DISTINCT - 12 * col2 AS col0 FROM tab2
----
-276
-480
-696

query I rowsort
SELECT ALL + col1 * + - 93 - + col0 AS col1 FROM tab1 AS cor0
----
-1353
-4462
-550

onlyif mysql # DIV for integer division: 
query I rowsort label-3951
SELECT DISTINCT + col2 DIV + col0 + col0 + col2 + col1 + + 89 AS col0 FROM tab2 AS cor0
----
209
270
289

skipif mysql # not compatible
query I rowsort label-3951
SELECT DISTINCT + col2 / + col0 + col0 + col2 + col1 + + 89 AS col0 FROM tab2 AS cor0
----
209
270
289

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL < col0
----

query II rowsort
SELECT ALL - col0 + + + col1 + + - 86, + 26 + col0 AS col1 FROM tab1 AS cor0
----
-123
77
-130
117
-166
111

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT - COUNT( * ) + - 45 AS col0 FROM tab0 AS cor0 WHERE NULL <> 41 * - col0 + + col1 / + + col1 - + col1
----
-45

skipif mysql # not compatible
query I rowsort label-3954
SELECT - COUNT ( * ) + - 45 AS col0 FROM tab0 AS cor0 WHERE NULL <> 41 * - col0 + + col1 / + + col1 - + col1
----
-45

query II rowsort
SELECT DISTINCT + + 25 + col1 + - 34 * - col0 + - 40 AS col0, - 17 AS col1 FROM tab0 AS cor0
----
2964
-17
3284
-17
576
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT ALL + + 25 * SUM( DISTINCT 58 ) FROM tab2 cor0
----
1450

skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL + + 25 * SUM ( DISTINCT 58 ) FROM tab2 cor0
----
1450

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT ALL COUNT( - + col0 ) AS col1 FROM tab0 AS cor0 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL COUNT ( - + col0 ) AS col1 FROM tab0 AS cor0 WHERE - col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT ( + - 5 ) * + col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= ( NULL )
----

query I rowsort
SELECT - col1 + + + 92 AS col2 FROM tab1 AS cor0
----
45
78
87

query I rowsort
SELECT ALL + - col0 * col2 FROM tab1 WHERE NOT + + col0 <> - - 96
----

query I rowsort
SELECT ALL + 77 AS col2 FROM tab0
----
77
77
77

query I rowsort
SELECT ALL + 34 * - col0 AS col0 FROM tab0
----
-2958
-3298
-510

query I rowsort
SELECT ALL 22 * + col0 AS col0 FROM tab0
----
1914
2134
330

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 16 / - - 12 * 12 + - - 90 ) <= ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3965
SELECT ALL col1 DIV - + col1 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL col1 / - + col1 AS col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL col0 + + 79 FROM tab1
----
130
164
170

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE + col2 / + - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - col1 + 9 col0, col0 + - + 33 - + col0 FROM tab1
----
-416
-33
-4268
-33
-705
-33

query II rowsort
SELECT + col1 AS col1, + col1 FROM tab2
----
51
51
67
67
77
77

query II rowsort
SELECT DISTINCT - col2 AS col1, col2 AS col0 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT + SUM( DISTINCT col1 ) col1 FROM tab0 cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3971
SELECT + SUM ( DISTINCT col1 ) col1 FROM tab0 cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT - COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT + col1 * - col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3972
SELECT - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT + col1 * - col0 < NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 89 col1 FROM tab0 AS cor0
----
-89

query I rowsort
SELECT ALL - 83 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 - - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 69 + - col1 FROM tab1 AS cor0
----
22
55
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT DISTINCT + COUNT( * ) * + 64 AS col1 FROM tab0 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-3977
SELECT DISTINCT + COUNT ( * ) * + 64 AS col1 FROM tab0 AS cor0
----
192

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col1 + 98 + + col2 IS NULL
----

query I rowsort
SELECT ALL col2 * - - ( - + 0 ) * ( + ( - + col1 ) ) AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT ALL + COUNT( - col2 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3980
SELECT ALL + COUNT ( - col2 ) col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT + MAX( ALL + + col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-3981
SELECT + MAX ( ALL + + col0 ) AS col0 FROM tab1
----
91

query I rowsort
SELECT - + col1 FROM tab1 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3983
SELECT - + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3983
SELECT - + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL col0 * 57 AS col0 FROM tab2 AS cor0
----
2622
3648
4275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3985
SELECT CAST( - + 50 AS SIGNED ) col0 FROM tab1 AS cor0
----
-50
-50
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3985
SELECT CAST ( - + 50 AS INTEGER ) col0 FROM tab1 AS cor0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT ALL - COUNT( * ) * + 37 FROM tab1
----
-111

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL - COUNT ( * ) * + 37 FROM tab1
----
-111

query II rowsort
SELECT DISTINCT + 2 * - - col0 AS col1, - col1 + + col2 + col1 FROM tab1
----
102
96
170
59
182
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3988
SELECT ALL + COUNT( * ) DIV + 4 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL + COUNT ( * ) / + 4 AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL 32 + + 75 AS col1 FROM tab1
----
107
107
107

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT ALL - - 32 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-3990
SELECT ALL - - 32 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
35

query I rowsort
SELECT + col0 + - 64 AS col1 FROM tab1 AS cor0
----
-13
21
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3992
SELECT - col0 * - CAST( NULL AS SIGNED ) + - + 24 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3992
SELECT - col0 * - CAST ( NULL AS INTEGER ) + - + 24 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 15 - - col2 FROM tab1 AS cor0
----
44
53
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3994
SELECT DISTINCT ( + col1 ) DIV + + col0 AS col2 FROM tab0 AS cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-3994
SELECT DISTINCT ( + col1 ) / + + col0 AS col2 FROM tab0 AS cor0
----
0
5

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col1 - 25 * + 64 AS col0 FROM tab0 cor0
----
-1519
-1579
-1599

query III rowsort
SELECT * FROM tab1 WHERE ( + - col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3998
SELECT ALL + CAST( NULL AS SIGNED ) + col0 / col1 FROM tab2 WHERE NOT NULL <> + col0 + col2 - col1 + + - 47 + + - col2 + + col1 + + 25 / - + ( + col1 ) / - 17 / col1
----

skipif mysql # not compatible
query I rowsort label-3998
SELECT ALL + CAST ( NULL AS INTEGER ) + col0 / col1 FROM tab2 WHERE NOT NULL <> + col0 + col2 - col1 + + - 47 + + - col2 + + col1 + + 25 / - + ( + col1 ) / - 17 / col1
----

query I rowsort
SELECT ALL - 25 AS col2 FROM tab2
----
-25
-25
-25

query I rowsort
SELECT 73 * 45 AS col1 FROM tab2
----
3285
3285
3285

query I rowsort
SELECT + 58 * + col1 FROM tab1
----
2726
290
812

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * col0 IS NOT NULL
----

query II rowsort
SELECT col1, - col0 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + 25 col2 FROM tab1 AS cor0
----
-1475
-1700
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4005
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT DISTINCT + - COUNT( * ) * - 62 AS col1 FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-4006
SELECT DISTINCT + - COUNT ( * ) * - 62 AS col1 FROM tab2 AS cor0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT DISTINCT - + MAX( 63 ) FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT - + MAX ( 63 ) FROM tab0 AS cor0
----
-63

query I rowsort
SELECT DISTINCT - ( + + ( + col1 ) ) FROM tab1 cor0
----
-14
-47
-5

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT - 40 IS NULL
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 78 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE - 56 / - col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4012
SELECT 52 DIV MAX( + - col1 ) col1 FROM tab2
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4012
SELECT 52 / MAX ( + - col1 ) col1 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT 60 + - 6 + - 61 * COUNT( * ) FROM tab0
----
-129

skipif mysql # not compatible
query I rowsort label-4013
SELECT 60 + - 6 + - 61 * COUNT ( * ) FROM tab0
----
-129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4014
SELECT ALL CAST( NULL AS SIGNED ) + - + 24 + col1 * - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4014
SELECT ALL CAST ( NULL AS INTEGER ) + - + 24 + col1 * - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4015
SELECT 25 * + col2 + + ( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4015
SELECT 25 * + col2 + + ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * + - ( + + col0 ) * - - col0 * + col0 FROM tab0 AS cor0
----
158625
6585030
90354627

query I rowsort
SELECT ALL - ( + col0 ) + + col0 * + + 58 * + col0 AS col2 FROM tab2 AS cor0
----
122682
237504
326175

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT + MIN( DISTINCT col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4018
SELECT + MIN ( DISTINCT col0 ) FROM tab1
----
51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 53 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
53

query I rowsort
SELECT ALL - col2 + - col1 * + + 0 * - 62 + - - 81 * - - 45 * - 10 AS col2 FROM tab2
----
-36473
-36490
-36508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4023
SELECT - 38 - ( - + COUNT( * ) ) + CAST( - + 47 AS SIGNED ) * + - 88 AS col0 FROM tab2 AS cor0
----
4101

skipif mysql # not compatible
query I rowsort label-4023
SELECT - 38 - ( - + COUNT ( * ) ) + CAST ( - + 47 AS INTEGER ) * + - 88 AS col0 FROM tab2 AS cor0
----
4101

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( + col0 ) AND + 57
----

query I rowsort
SELECT + col2 - + 50 AS col0 FROM tab0 AS cor0
----
-3
-40
49

query I rowsort
SELECT ALL + col2 - - col2 + + col2 AS col1 FROM tab0 AS cor0
----
141
297
30

query I rowsort
SELECT DISTINCT + col1 - - ( 19 ) AS col0 FROM tab0 AS cor0
----
100
20
40

query I rowsort
SELECT DISTINCT + 17 + col1 AS col0 FROM tab1 cor0
----
22
31
64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - ( + + col1 ) FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT - ( ( COUNT( * ) ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4031
SELECT - ( ( COUNT ( * ) ) ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT ALL SUM( ALL - 93 ) FROM tab2
----
-279

skipif mysql # not compatible
query I rowsort label-4032
SELECT ALL SUM ( ALL - 93 ) FROM tab2
----
-279

query I rowsort
SELECT col1 + - col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT ALL - COUNT( DISTINCT - col2 ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4034
SELECT ALL - COUNT ( DISTINCT - col2 ) col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT DISTINCT + COUNT( * ) * 94 FROM tab2 WHERE + - col1 <= - col2
----
282

skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT + COUNT ( * ) * 94 FROM tab2 WHERE + - col1 <= - col2
----
282

query I rowsort
SELECT DISTINCT col2 * - 75 FROM tab1
----
-4425
-5100
-7200

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT + 68 * COUNT( ALL + 96 ) FROM tab2
----
204

skipif mysql # not compatible
query I rowsort label-4037
SELECT + 68 * COUNT ( ALL + 96 ) FROM tab2
----
204

query I rowsort
SELECT DISTINCT - col2 * - 44 AS col1 FROM tab1
----
2596
2992
4224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4039
SELECT DISTINCT + 64 DIV + MIN( DISTINCT - - col2 ) FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT + 64 / + MIN ( DISTINCT - - col2 ) FROM tab2
----
2

query II rowsort
SELECT ALL + col2 AS col1, + col2 + - - col1 FROM tab0
----
10
31
47
128
99
100

query I rowsort
SELECT ALL + 62 * + 98 AS col1 FROM tab2
----
6076
6076
6076

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = col0
----

query I rowsort
SELECT ALL ( + + col1 ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + col2 / + 38 FROM tab2 AS cor0 WHERE NOT + 37 * - col2 + 28 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT ALL COUNT( * ) * + COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4045
SELECT ALL COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 74 + - 90 < NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-4047
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 DIV - 82 * + col0 * + 42 > - + 88
----

skipif mysql # not compatible
query III rowsort label-4047
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 / - 82 * + col0 * + 42 > - + 88
----

query I rowsort
SELECT + ( + + col2 ) FROM tab2 AS cor0 WHERE col1 * - col1 IS NULL
----

query II rowsort
SELECT ALL + ( + 21 ), - col0 * col1 AS col0 FROM tab1 AS cor0
----
21
-425
21
-4277
21
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT 44 * 53 + - - COUNT( - col1 ) FROM tab0
----
2335

skipif mysql # not compatible
query I rowsort label-4050
SELECT 44 * 53 + - - COUNT ( - col1 ) FROM tab0
----
2335

query I rowsort
SELECT - 79 - col1 AS col2 FROM tab0 AS cor0
----
-100
-160
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4052
SELECT + - col1 - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4052
SELECT + - col1 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT BETWEEN col1 AND - 74
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4054
SELECT + 46 + + - 80 DIV col2 + - 44 FROM tab2
----
-1
0
1

skipif mysql # not compatible
query I rowsort label-4054
SELECT + 46 + + - 80 / col2 + - 44 FROM tab2
----
-1
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 * + col2 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4056
SELECT DISTINCT 39 - COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-4056
SELECT DISTINCT 39 - COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
40

query I rowsort
SELECT ( - 79 ) AS col0 FROM tab0 AS cor0
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-4058
SELECT DISTINCT - - 69, COUNT( * ) col1 FROM tab1 AS cor0 WHERE ( NOT - ( - col2 ) IN ( 67, + 69 + col1 ) )
----
69
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4058
SELECT DISTINCT - - 69, COUNT ( * ) col1 FROM tab1 AS cor0 WHERE ( NOT - ( - col2 ) IN ( 67, + 69 + col1 ) )
----
69
3

query I rowsort
SELECT DISTINCT - + 95 AS col1 FROM tab0 AS cor0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT + + SUM( ALL + + 89 ) AS col0 FROM tab2 cor0
----
267

skipif mysql # not compatible
query I rowsort label-4060
SELECT + + SUM ( ALL + + 89 ) AS col0 FROM tab2 cor0
----
267

query I rowsort
SELECT - 0 * - 81 + - col2 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT - MIN( ALL ( + col2 ) ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4062
SELECT - MIN ( ALL ( + col2 ) ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT SUM( ALL col1 ) col2 FROM tab1
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4064
SELECT SUM ( ALL col1 ) col2 FROM tab1
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * - 18 col1 FROM tab0 AS cor0
----
1458
18
378

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT + + 5 * COUNT( * ) * 4 + + 55 * - SUM( ALL - - 87 ) + - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-14292

skipif mysql # not compatible
query I rowsort label-4066
SELECT + + 5 * COUNT ( * ) * 4 + + 55 * - SUM ( ALL - - 87 ) + - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-14292

query IIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 LEFT JOIN tab2 cor1 ON NULL IS NULL, tab1 AS cor2
----
243 values hashing to 3cba1f06be9f9cdc4339b5472282fb19

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4069
SELECT * FROM tab0 WHERE NOT 64 NOT BETWEEN - CAST( NULL AS SIGNED ) AND - 74
----

skipif mysql # not compatible
query III rowsort label-4069
SELECT * FROM tab0 WHERE NOT 64 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND - 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT ALL 11 + - COUNT( * ) AS col0 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL 11 + - COUNT ( * ) AS col0 FROM tab0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT + COUNT( DISTINCT col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4071
SELECT + COUNT ( DISTINCT col0 ) FROM tab2
----
3

query II rowsort
SELECT DISTINCT + col2, col1 AS col0 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4073
SELECT DISTINCT - 21 + - - 37 DIV 71 AS col2 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-4073
SELECT DISTINCT - 21 + - - 37 / 71 AS col2 FROM tab1 AS cor0
----
-21

query I rowsort
SELECT ALL + 75 AS col0 FROM tab2 AS cor0
----
75
75
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 <= NULL
----

query II rowsort
SELECT + 86, col2 AS col0 FROM tab0 AS cor0
----
86
10
86
47
86
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT DISTINCT ( + + COUNT( * ) ) col1 FROM tab1 AS cor0 WHERE NOT ( 37 ) >= 20 / + - col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4077
SELECT DISTINCT ( + + COUNT ( * ) ) col1 FROM tab1 AS cor0 WHERE NOT ( 37 ) >= 20 / + - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT ALL 6 * - SUM( + 97 ) FROM tab1 cor0
----
-1746

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL 6 * - SUM ( + 97 ) FROM tab1 cor0
----
-1746

query I rowsort
SELECT col0 + + - col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT DISTINCT ( - MIN( - ( + 35 ) ) ) AS col2 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT ( - MIN ( - ( + 35 ) ) ) AS col2 FROM tab0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT DISTINCT - MIN( ALL + col2 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT - MIN ( ALL + col2 ) AS col2 FROM tab0
----
-10

query II rowsort
SELECT ALL col0 + col2, col1 AS col0 FROM tab0
----
196
1
62
81
97
21

query I rowsort
SELECT + ( + 79 ) + - col1 FROM tab0
----
-2
58
78

query I rowsort
SELECT 95 AS col0 FROM tab2 AS cor0 WHERE ( col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT DISTINCT - + COUNT( ALL - col1 ) FROM tab2 AS cor0 WHERE NOT NULL <= col1
----
0

skipif mysql # not compatible
query I rowsort label-4085
SELECT DISTINCT - + COUNT ( ALL - col1 ) FROM tab2 AS cor0 WHERE NOT NULL <= col1
----
0

query II rowsort
SELECT ALL - 57 AS col1, 96 FROM tab2 AS cor0 WHERE ( NULL ) < - 21 * - + 49
----

query I rowsort
SELECT 53 AS col2 FROM tab0 AS cor0 WHERE 23 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT COUNT( * ) - + 97 * + 59 * - COUNT( * ) FROM tab0
----
17172

skipif mysql # not compatible
query I rowsort label-4088
SELECT COUNT ( * ) - + 97 * + 59 * - COUNT ( * ) FROM tab0
----
17172

query II rowsort
SELECT DISTINCT + col2, - 33 AS col1 FROM tab1 cor0
----
59
-33
68
-33
96
-33

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 * + col1 * - + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - - col0 ) col1 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL ( - - 59 ) FROM tab2 AS cor0
----
59
59
59

query I rowsort
SELECT ALL + 4 AS col1 FROM tab1 AS cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT - COUNT( + - col0 ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4094
SELECT - COUNT ( + - col0 ) col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4095
SELECT ALL 46 + - ( + - col2 ) FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) * col2 * - + 0 IN ( + 76 )
----

skipif mysql # not compatible
query I rowsort label-4095
SELECT ALL 46 + - ( + - col2 ) FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * col2 * - + 0 IN ( + 76 )
----

query I rowsort
SELECT DISTINCT + 72 * 12 * - 66 * + ( col2 ) AS col0 FROM tab0 WHERE ( NOT col2 + + 80 IS NULL )
----
-2680128
-5645376
-570240

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4097
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4098
SELECT DISTINCT ( - + COUNT( * ) ) AS col1, + ( - + 71 ) AS col1 FROM tab1 AS cor0
----
-3
-71

skipif mysql # not compatible
query II rowsort label-4098
SELECT DISTINCT ( - + COUNT ( * ) ) AS col1, + ( - + 71 ) AS col1 FROM tab1 AS cor0
----
-3
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 89 col0, + 1 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 + - + 48 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 13 / - ( - + 13 ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT MIN( DISTINCT - 68 ) * + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-4101
SELECT MIN ( DISTINCT - 68 ) * + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT ( + ( + SUM( ALL + - ( - col0 ) ) ) ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-4102
SELECT ( + ( + SUM ( ALL + - ( - col0 ) ) ) ) AS col2 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT COUNT( * ) * 75 * 49 AS col1 FROM tab0
----
11025

skipif mysql # not compatible
query I rowsort label-4103
SELECT COUNT ( * ) * 75 * 49 AS col1 FROM tab0
----
11025

query I rowsort
SELECT 19 * 21 AS col0 FROM tab1
----
399
399
399

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT ALL SUM( - + 45 ) + - 33 FROM tab2 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL SUM ( - + 45 ) + - 33 FROM tab2 AS cor0
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT DISTINCT + + 28 * - COUNT( * ) FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-4106
SELECT DISTINCT + + 28 * - COUNT ( * ) FROM tab0 AS cor0
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-4107
SELECT ( + col1 ) DIV + col0 + + - col2 + col1 - - col0 * + col0 FROM tab2 AS cor0
----
2145
4134
5634

skipif mysql # not compatible
query I rowsort label-4107
SELECT ( + col1 ) / + col0 + + - col2 + col1 - - col0 * + col0 FROM tab2 AS cor0
----
2145
4134
5634

query I rowsort
SELECT ALL + col0 - + col1 FROM tab0 cor0 WHERE NOT 50 = col1 + + col0
----
-66
66
96

query I rowsort
SELECT ALL 60 + - col1 AS col0 FROM tab1 AS cor0
----
13
46
55

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > - col0 * col2 - + col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT + col0 + - 59 AS col1 FROM tab2 AS cor0
----
-13
16
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT DISTINCT + - ( + - MAX( + col1 ) ) * + COUNT( col1 ) FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-4113
SELECT DISTINCT + - ( + - MAX ( + col1 ) ) * + COUNT ( col1 ) FROM tab2 AS cor0
----
231

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4114
SELECT - COUNT( * ) DIV - 57 col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4114
SELECT - COUNT ( * ) / - 57 col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4115
SELECT DISTINCT + COUNT( * ) col1, - COUNT( * ) * 87 AS col1 FROM tab1
----
3
-261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4115
SELECT DISTINCT + COUNT ( * ) col1, - COUNT ( * ) * 87 AS col1 FROM tab1
----
3
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT SUM( ALL - 8 ) AS col2 FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-4116
SELECT SUM ( ALL - 8 ) AS col2 FROM tab2
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 * + col0 col2 FROM tab1
----
1428
2380
2548

query II rowsort
SELECT 35 AS col0, col1 AS col2 FROM tab0
----
35
1
35
21
35
81

query I rowsort
SELECT ALL + col1 + 8 + + col1 FROM tab2
----
110
142
162

query I rowsort
SELECT + + col0 * + + col0 - + - col2 + - col1 FROM tab2 AS cor0
----
2088
4059
5616

onlyif mysql # aggregate syntax: 
query II rowsort label-4121
SELECT ( + 81 ) + + MAX( DISTINCT + 0 ) AS col0, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
81
-3

skipif mysql # not compatible
query II rowsort label-4121
SELECT ( + 81 ) + + MAX ( DISTINCT + 0 ) AS col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
81
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT ALL + 65 * COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
585

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL + 65 * COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
585

query I rowsort
SELECT DISTINCT - 17 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4124
SELECT - CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4124
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 * - - col0 col2 FROM tab0
----
2958
3298
510

onlyif mysql # DIV for integer division: 
query I rowsort label-4126
SELECT col2 DIV ( + 59 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4126
SELECT col2 / ( + 59 ) FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + 80 FROM tab2 WHERE NOT - - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4128
SELECT - + CAST( col1 AS SIGNED ) AS col2, ( col0 ) FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

skipif mysql # not compatible
query II rowsort label-4128
SELECT - + CAST ( col1 AS INTEGER ) AS col2, ( col0 ) FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT DISTINCT MAX( - - 13 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
13

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT MAX ( - - 13 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
13

query I rowsort
SELECT ALL col1 * 81 AS col0 FROM tab1 AS cor0
----
1134
3807
405

query I rowsort
SELECT DISTINCT + 93 AS col1 FROM tab1 cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4132
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4133
SELECT - CAST( NULL AS SIGNED ), col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-4133
SELECT - CAST ( NULL AS INTEGER ), col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 52 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4135
SELECT CAST( - 71 AS SIGNED ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4135
SELECT CAST ( - 71 AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT 11 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-4136
SELECT 11 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
8

query I rowsort
SELECT DISTINCT - 81 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT - MAX( ALL - 19 ) col0 FROM tab0
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4138
SELECT - MAX ( ALL - 19 ) col0 FROM tab0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT ALL + ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL + ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT + ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4140
SELECT + ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - 38 AS col2 FROM tab1 cor0
----
-38
-38
-38

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 2 + + col2 <> ( - + col0 * ( col1 ) + + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + 13 AND NULL AND ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( col2, ( - col2 ) * + 88 + 43 + + col0 * 58 )
----

query I rowsort
SELECT DISTINCT + col0 * + - col0 AS col1 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT - 95 - - col2 FROM tab0 WHERE ( - col2 IS NULL )
----

query I rowsort
SELECT col2 + - - col1 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT COUNT( * ) + 99 FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-4148
SELECT COUNT ( * ) + 99 FROM tab2
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4149
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT DISTINCT 76 * + COUNT( * ) + + - 18 FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-4150
SELECT DISTINCT 76 * + COUNT ( * ) + + - 18 FROM tab0
----
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4151
SELECT col1 + - CAST( NULL AS SIGNED ) / - col0 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4151
SELECT col1 + - CAST ( NULL AS INTEGER ) / - col0 col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + col0 + + col2 AS col2 FROM tab1
----
4992
5074
6256

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT DISTINCT + + COUNT( * ) + + + 84 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-4153
SELECT DISTINCT + + COUNT ( * ) + + + 84 FROM tab1 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT ALL 99 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL 99 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
102

query I rowsort
SELECT 74 * + + 4 FROM tab0 AS cor0
----
296
296
296

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 - 76 = - col2 / + - ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT ALL MAX( ALL + col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL MAX ( ALL + col2 ) AS col1 FROM tab1
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 5, col0 * col2 + + col2 col0 FROM tab2
----
5
1081
5
2600
5
4408

query I rowsort
SELECT DISTINCT 43 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
43

query I rowsort
SELECT ALL col0 * - 70 FROM tab0
----
-1050
-6090
-6790

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT DISTINCT - COUNT( ALL + 87 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4161
SELECT DISTINCT - COUNT ( ALL + 87 ) AS col2 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT DISTINCT col1, ( - 81 ) * - col0 FROM tab2 cor0
----
51
3726
67
6075
77
5184

query I rowsort
SELECT + 63 * + 36 FROM tab2 cor0
----
2268
2268
2268

query II rowsort
SELECT DISTINCT col1 AS col2, + col1 * + 68 * + 59 * + 0 * - col1 AS col1 FROM tab2 AS cor0
----
51
0
67
0
77
0

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT 77 * + - col1 - - col1 IS NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4166
SELECT 92 + col2 + - - col0 col0, + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
161
NULL
196
NULL
225
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4166
SELECT 92 + col2 + - - col0 col0, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
161
NULL
196
NULL
225
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT + ( - + COUNT( * ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4167
SELECT + ( - + COUNT ( * ) ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4168
SELECT DISTINCT - col2 + - - ( + 19 ) * col1 DIV - ( - - 88 ) FROM tab2
----
-34
-56
-72

skipif mysql # not compatible
query I rowsort label-4168
SELECT DISTINCT - col2 + - - ( + 19 ) * col1 / - ( - - 88 ) FROM tab2
----
-34
-56
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4169
SELECT ALL + 4 DIV - ( - COUNT( * ) ) + - - 46 DIV - + MIN( - col1 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL + 4 / - ( - COUNT ( * ) ) + - - 46 / - + MIN ( - col1 ) FROM tab2
----
1

query III rowsort
SELECT * FROM tab2 WHERE NOT - 0 <> + + 73
----

query I rowsort
SELECT ALL - col2 + col0 * - - 32 * - col2 FROM tab1 cor0
----
-156768
-160539
-198084

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN + col2 + col2 AND NULL
----
-2

skipif mysql # not compatible
query I rowsort label-4172
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN + col2 + col2 AND NULL
----
-2

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4174
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT col2 BETWEEN - 45 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4174
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT col2 BETWEEN - 45 AND NULL
----

query I rowsort
SELECT + - col2 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 44 NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT + COUNT( * ) + - + 77 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-4177
SELECT + COUNT ( * ) + - + 77 FROM tab1
----
-74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 < NULL
----

query I rowsort
SELECT + col2 + + col2 * 37 + col1 AS col1 FROM tab0 cor0
----
1867
3763
401

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT ALL + COUNT( * ) - - COUNT( * ) AS col2 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-4180
SELECT ALL + COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab0 cor0
----
6

query I rowsort
SELECT + 20 + + - 70 FROM tab1 cor0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT ALL MIN( + 0 ) FROM tab0 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4182
SELECT ALL MIN ( + 0 ) FROM tab0 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4183
SELECT col1 DIV + ( - 60 ) AS col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4183
SELECT col1 / + ( - 60 ) AS col2 FROM tab2
----
-1
-1
0

query I rowsort
SELECT ALL - col1 * - col0 FROM tab0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 88 AS col0 FROM tab2
----
88

query I rowsort
SELECT - + 99 AS col2 FROM tab0 WHERE - - col0 IS NOT NULL
----
-99
-99
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4187
SELECT 54 - col0 DIV + col2 FROM tab2
----
52
53
53

skipif mysql # not compatible
query I rowsort label-4187
SELECT 54 - col0 / + col2 FROM tab2
----
52
53
53

query I rowsort
SELECT DISTINCT + 33 FROM tab1 cor0 WHERE NOT ( NOT - 47 IS NOT NULL )
----
33

query I rowsort
SELECT - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT ( ( + MAX( ALL - col0 ) ) ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4190
SELECT ( ( + MAX ( ALL - col0 ) ) ) FROM tab1 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4191
SELECT DISTINCT + col1 * - 44 + 35 AS col1 FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
-2209
-2913
-3353

skipif mysql # not compatible
query I rowsort label-4191
SELECT DISTINCT + col1 * - 44 + 35 AS col1 FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
-2209
-2913
-3353

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT COUNT( * ) * - - 42 FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-4192
SELECT COUNT ( * ) * - - 42 FROM tab0
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-4193
SELECT ALL + - col0 DIV + 49 AS col1 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL + - col0 / + 49 AS col1 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4195
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN 94 AND + + 10
----

skipif mysql # not compatible
query III rowsort label-4195
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN 94 AND + + 10
----

query I rowsort
SELECT ALL + 64 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND + 35 * - 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT DISTINCT - COUNT( * ) * - 55 AS col0 FROM tab1 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-4197
SELECT DISTINCT - COUNT ( * ) * - 55 AS col0 FROM tab1 AS cor0
----
165

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > col2
----

query I rowsort
SELECT 2 * + - 83 FROM tab1 AS cor0
----
-166
-166
-166

query I rowsort
SELECT ALL 18 AS col2 FROM tab2 AS cor0
----
18
18
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4201
SELECT DISTINCT col1 * + - col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT col1 * + - col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 FROM tab1 cor0 WHERE col0 IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT ALL - + SUM( ALL 42 ) FROM tab2 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL - + SUM ( ALL 42 ) FROM tab2 AS cor0
----
-126

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT - + col1 + - col2 + ( - + 67 ) + + 52 - col1 AS col2 FROM tab0 WHERE NOT - 69 + col1 NOT BETWEEN 38 * 64 AND + col2
----

query I rowsort
SELECT ALL - 32 + - - 95 FROM tab1
----
63
63
63

query I rowsort
SELECT ALL - - 36 FROM tab0 WHERE + + col2 + - col2 > - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4208
SELECT DISTINCT 93 DIV + 82 col0 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4208
SELECT DISTINCT 93 / + 82 col0 FROM tab2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4209
SELECT ALL - 37 * + + CAST( NULL AS SIGNED ) * COUNT( * ) + - - 57 AS col1, + 25 + - 56 AS col1 FROM tab0
----
NULL
-31

skipif mysql # not compatible
query II rowsort label-4209
SELECT ALL - 37 * + + CAST ( NULL AS INTEGER ) * COUNT ( * ) + - - 57 AS col1, + 25 + - 56 AS col1 FROM tab0
----
NULL
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col1 col1 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT ( + 69 ) + - 82 AS col2 FROM tab1
----
-13
-13
-13

query II rowsort
SELECT DISTINCT - + col2, + col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query I rowsort
SELECT + + 16 * - col1 + - col2 * + 23 FROM tab2 AS cor0
----
-1345
-2152
-2406

query I rowsort
SELECT - col0 * - - col0 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT + 41 - - + col1 AS col2 FROM tab1 AS cor0
----
46
55
88

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + + 72 * - ( col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT ALL + - col1 - col1 AS col0 FROM tab1 AS cor0
----
-10
-28
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT SUM( ALL - 7 ) + 6 AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4219
SELECT SUM ( ALL - 7 ) + 6 AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col0 + - + col1 * + 14 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1119
-207
83

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 * + col1 BETWEEN NULL AND + + 78 - 10 + - - 57 / + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= col2
----

query III rowsort
SELECT * FROM tab2 WHERE + - col1 * - col1 = + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 col1 FROM tab2
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT ALL + SUM( + - col2 ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL + SUM ( + - col2 ) AS col0 FROM tab2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT ALL - COUNT( * ) * - + 11 * - 58 AS col2 FROM tab0
----
-1914

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL - COUNT ( * ) * - + 11 * - 58 AS col2 FROM tab0
----
-1914

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col0 * - - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT DISTINCT MIN( ALL - col1 ) col2 FROM tab0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4228
SELECT DISTINCT MIN ( ALL - col1 ) col2 FROM tab0
----
-81

query I rowsort
SELECT + col2 * 32 AS col2 FROM tab0
----
1504
3168
320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4230
SELECT 93 * - CAST( - + COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-4230
SELECT 93 * - CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT SUM( - col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-4231
SELECT SUM ( - col0 ) FROM tab0
----
-199

query I rowsort
SELECT DISTINCT - 48 * - col2 AS col0 FROM tab0 AS cor0
----
2256
4752
480

onlyif mysql # aggregate syntax: 
query II rowsort label-4233
SELECT DISTINCT 54 AS col0, SUM( DISTINCT + - col0 ) FROM tab0 AS cor0
----
54
-199

skipif mysql # not compatible
query II rowsort label-4233
SELECT DISTINCT 54 AS col0, SUM ( DISTINCT + - col0 ) FROM tab0 AS cor0
----
54
-199

query I rowsort
SELECT - col0 * + 44 FROM tab0 AS cor0
----
-3828
-4268
-660

query I rowsort
SELECT DISTINCT 50 * + col0 FROM tab1
----
2550
4250
4550

query I rowsort
SELECT - ( + - col1 ) FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT ( 11 ) FROM tab2
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-4238
SELECT DISTINCT - 40 * + 91 AS col0, - COUNT( * ) * + - 37 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-3640
333

skipif mysql # not compatible
query II rowsort label-4238
SELECT DISTINCT - 40 * + 91 AS col0, - COUNT ( * ) * + - 37 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-3640
333

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT - SUM( DISTINCT col0 ) + 98 + - 80 col2 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-167

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4240
SELECT - SUM ( DISTINCT col0 ) + 98 + - 80 col2 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-167

onlyif mysql # DIV for integer division: 
query II rowsort label-4241
SELECT - ( - col0 ) DIV + - col1 + - col1 AS col1, - col1 FROM tab2 AS cor0
----
-51
-51
-68
-67
-77
-77

skipif mysql # not compatible
query II rowsort label-4241
SELECT - ( - col0 ) / + - col1 + - col1 AS col1, - col1 FROM tab2 AS cor0
----
-51
-51
-68
-67
-77
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 6 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT ( - 7 ) + + COUNT( * ) FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-4243
SELECT ( - 7 ) + + COUNT ( * ) FROM tab2 AS cor0
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - ( + 11 ) col2 FROM tab1 AS cor0
----
154
517
55

query I rowsort
SELECT + col2 + + - col2 AS col0 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL - 66 AS col2, - col2 + col2 + + 29 * - 19 + - - col0 * - 18 + + ( - - col0 ) AS col0 FROM tab1
----
-66
-1418
-66
-1996
-66
-2098

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4247
SELECT ALL + 97 + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL + 97 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4248
SELECT DISTINCT - 4 + + 15 + - CAST( NULL AS SIGNED ) AS col1, + COUNT( - 13 ) FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4248
SELECT DISTINCT - 4 + + 15 + - CAST ( NULL AS INTEGER ) AS col1, + COUNT ( - 13 ) FROM tab0 AS cor0
----
NULL
3

query I rowsort
SELECT DISTINCT - + 67 AS col2 FROM tab2 AS cor0
----
-67

query I rowsort
SELECT ALL - 79 AS col0 FROM tab1 cor0
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT ALL COUNT( * ) + + ( - MAX( + col0 ) ) AS col1 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL COUNT ( * ) + + ( - MAX ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
-72

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= col2
----

query I rowsort
SELECT - 54 - + - col1 - - 49 FROM tab2 AS cor0
----
46
62
72

query I rowsort
SELECT DISTINCT - 42 * - + col0 FROM tab2 AS cor0
----
1932
2688
3150

query I rowsort
SELECT + col2 + - - 94 * - 48 FROM tab2 AS cor0
----
-4454
-4472
-4489

query I rowsort
SELECT DISTINCT - 75 * - col2 * - + ( - - col2 ) AS col2 FROM tab2
----
-120000
-252300
-39675

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT DISTINCT MIN( DISTINCT - col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-4257
SELECT DISTINCT MIN ( DISTINCT - col2 ) AS col2 FROM tab2
----
-58

query III rowsort
SELECT * FROM tab1 WHERE ( - - 45 * - 60 / - col1 + - col2 ) IS NULL
----

query I rowsort
SELECT ALL col2 + 0 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT + 21 - - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
30

skipif mysql # not compatible
query I rowsort label-4260
SELECT + 21 - - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-4261
SELECT + COUNT( * ), + 34 AS col1 FROM tab1 cor0
----
3
34

skipif mysql # not compatible
query II rowsort label-4261
SELECT + COUNT ( * ), + 34 AS col1 FROM tab1 cor0
----
3
34

query I rowsort
SELECT DISTINCT + - col2 + 14 AS col0 FROM tab0 AS cor0
----
-33
-85
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT + + MIN( - 33 ) AS col2 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-4263
SELECT + + MIN ( - 33 ) AS col2 FROM tab2 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT + MIN( 36 ) FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-4264
SELECT + MIN ( 36 ) FROM tab1 AS cor0
----
36

query II rowsort
SELECT - - col0, + col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT DISTINCT col2 - ( - 84 ) * + 48 FROM tab2 AS cor0
----
4055
4072
4090

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT - COUNT( * ) * + MIN( + col2 ) FROM tab2 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4267
SELECT - COUNT ( * ) * + MIN ( + col2 ) FROM tab2 cor0
----
-69

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= col0 / - 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT - MIN( DISTINCT - - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4269
SELECT - MIN ( DISTINCT - - col1 ) FROM tab2 AS cor0
----
-51

query II rowsort
SELECT + col0 AS col2, + 63 * - - col1 AS col2 FROM tab1 AS cor0
----
51
882
85
315
91
2961

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4271
SELECT + + 2 - - 73 FROM tab1 WHERE NOT - 45 = - col2 * + CAST( NULL AS SIGNED ) * + col0
----

skipif mysql # not compatible
query I rowsort label-4271
SELECT + + 2 - - 73 FROM tab1 WHERE NOT - 45 = - col2 * + CAST ( NULL AS INTEGER ) * + col0
----

query I rowsort
SELECT ALL + ( 23 ) AS col0 FROM tab1
----
23
23
23

query I rowsort
SELECT - col0 * + 64 FROM tab1
----
-3264
-5440
-5824

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 - 42 + + col1 col2 FROM tab2 AS cor0 WHERE NOT NULL <= - 68 * - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT COUNT( + 21 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4275
SELECT COUNT ( + 21 ) col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 55 + - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT SUM( - 91 ) col1 FROM tab0
----
-273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4277
SELECT SUM ( - 91 ) col1 FROM tab0
----
-273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4278
SELECT DISTINCT CAST( - - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4278
SELECT DISTINCT CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4279
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col2, + CAST( NULL AS SIGNED ) - col1, - 94 - - col1, - col1 / - col2, - 81 )
----

skipif mysql # not compatible
query III rowsort label-4279
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col2, + CAST ( NULL AS INTEGER ) - col1, - 94 - - col1, - col1 / - col2, - 81 )
----

query I rowsort
SELECT 40 * + col1 AS col0 FROM tab1 AS cor0
----
1880
200
560

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT ALL MAX( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL MAX ( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT col0 * ( + col0 ) FROM tab1 cor0
----
2601
7225
8281

query I rowsort
SELECT DISTINCT - col1 * - col0 - - col2 AS col2 FROM tab0 AS cor0
----
1262
1837
196

query I rowsort
SELECT DISTINCT + 18 - + col0 + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> - col0
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 > 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT DISTINCT + 63 * COUNT( * ) FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-4286
SELECT DISTINCT + 63 * COUNT ( * ) FROM tab1
----
189

query I rowsort
SELECT DISTINCT col2 + 48 FROM tab0
----
147
58
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + - col2, 33 col2 FROM tab0
----
-196
33
-62
33
-97
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT DISTINCT 18 * - COUNT( * ) + COUNT( * ) FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT 18 * - COUNT ( * ) + COUNT ( * ) FROM tab0
----
-51

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 48 * + + 2 + + 83 + + + ( col0 ) + + col0 AS col1 FROM tab0
----
209
353
373

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4292
SELECT ALL * FROM tab1 cor0 WHERE col2 + - + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4292
SELECT ALL * FROM tab1 cor0 WHERE col2 + - + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 76 + 24 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - 63 + - col1, 75 AS col2 FROM tab0 AS cor0
----
-144
75
-64
75
-84
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4295
SELECT + CAST( NULL AS SIGNED ) / + col0 * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4295
SELECT + CAST ( NULL AS INTEGER ) / + col0 * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col2 * + col2 - - col0 * + col2 AS col0, 79 FROM tab1 cor0
----
10812
79
14112
79
8496
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT ALL COUNT( * ) * + 46 - - 7 AS col1 FROM tab0
----
145

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL COUNT ( * ) * + 46 - - 7 AS col1 FROM tab0
----
145

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 * + - col1 < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT - 17 - + COUNT( * ) FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-4299
SELECT - 17 - + COUNT ( * ) FROM tab1
----
-20

query I rowsort
SELECT - 34 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT ALL MIN( col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4301
SELECT ALL MIN ( col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT ALL + SUM( - 47 ) + 78 - + 93 FROM tab0 AS cor0 WHERE - col0 * + + col0 IS NOT NULL
----
-156

skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL + SUM ( - 47 ) + 78 - + 93 FROM tab0 AS cor0 WHERE - col0 * + + col0 IS NOT NULL
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4303
SELECT ALL + CAST( - 8 AS SIGNED ) DIV - + CAST( - COUNT( * ) AS SIGNED ) + + + ( - - MIN( ALL col0 ) ) AS col0 FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL + CAST ( - 8 AS INTEGER ) / - + CAST ( - COUNT ( * ) AS INTEGER ) + + + ( - - MIN ( ALL col0 ) ) AS col0 FROM tab1 AS cor0
----
49

query I rowsort
SELECT DISTINCT + col1 * - 21 FROM tab2
----
-1071
-1407
-1617

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT DISTINCT - MIN( + - col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4305
SELECT DISTINCT - MIN ( + - col0 ) AS col0 FROM tab1
----
91

query I rowsort
SELECT - - 64 FROM tab1 WHERE NOT + - 59 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT COUNT( DISTINCT 83 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4307
SELECT COUNT ( DISTINCT 83 ) FROM tab0
----
1

query II rowsort
SELECT DISTINCT 59 AS col2, 87 AS col1 FROM tab0
----
59
87

query II rowsort
SELECT ( + col1 ) AS col0, - ( col0 ) FROM tab1
----
14
-51
47
-91
5
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT + SUM( ALL - - col0 ) * 78 * - COUNT( * ) AS col0 FROM tab2
----
-43290

skipif mysql # not compatible
query I rowsort label-4310
SELECT + SUM ( ALL - - col0 ) * 78 * - COUNT ( * ) AS col0 FROM tab2
----
-43290

query I rowsort
SELECT 57 * + 83 FROM tab0
----
4731
4731
4731

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT + COUNT( * ) col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4312
SELECT + COUNT ( * ) col1 FROM tab0 cor0
----
3

query II rowsort
SELECT - 84, col2 FROM tab1 AS cor0
----
-84
59
-84
68
-84
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT ALL - + MAX( ALL - + col0 ) col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4314
SELECT ALL - + MAX ( ALL - + col0 ) col0 FROM tab2 AS cor0
----
46

query I rowsort
SELECT ( - 66 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4316
SELECT + 63 * + CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4316
SELECT + 63 * + CAST ( NULL AS REAL ) * - COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT ALL - COUNT( - ( - 66 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL - COUNT ( - ( - 66 ) ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + col1 + + - 20 AS col2 FROM tab2 AS cor0
----
31
47
57

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * + + col0 * col0 AS col1 FROM tab2 cor0
----
-107916
-315392
-376875

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT + COUNT( ALL - 26 ) + + + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4321
SELECT + COUNT ( ALL - 26 ) + + + COUNT ( * ) FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4322
SELECT ALL + - CAST( 66 AS SIGNED ) AS col0, + col0 AS col0 FROM tab2 AS cor0
----
-66
46
-66
64
-66
75

skipif mysql # not compatible
query II rowsort label-4322
SELECT ALL + - CAST ( 66 AS INTEGER ) AS col0, + col0 AS col0 FROM tab2 AS cor0
----
-66
46
-66
64
-66
75

query I rowsort
SELECT ALL - - 36 FROM tab1 AS cor0
----
36
36
36

query I rowsort
SELECT + - col1 + - 84 + + ( + - col0 ) AS col2 FROM tab1 AS cor0
----
-149
-174
-222

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 60 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-4326
SELECT - + col0 * + - 86, - col2 DIV col1 DIV col2 * - 83 AS col0 FROM tab0 AS cor0
----
1290
0
7482
0
8342
83

skipif mysql # not compatible
query II rowsort label-4326
SELECT - + col0 * + - 86, - col2 / col1 / col2 * - 83 AS col0 FROM tab0 AS cor0
----
1290
0
7482
0
8342
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + - 26 col1 FROM tab2
----
-101
-72
-90

query II rowsort
SELECT ALL 58 * col1 * + col1 + + - 81, + col0 * - col1 AS col2 FROM tab1
----
11287
-714
128041
-4277
1369
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT - MAX( + 6 ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-4329
SELECT - MAX ( + 6 ) FROM tab2
----
-6

query I rowsort
SELECT DISTINCT - 28 * col1 + + 20 AS col1 FROM tab1
----
-120
-1296
-372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4331
SELECT ALL - CAST( - col2 AS SIGNED ) FROM tab0 WHERE NULL < - col2 + + + col2
----

skipif mysql # not compatible
query I rowsort label-4331
SELECT ALL - CAST ( - col2 AS INTEGER ) FROM tab0 WHERE NULL < - col2 + + + col2
----

query I rowsort
SELECT 36 - col0 AS col0 FROM tab0 AS cor0
----
-51
-61
21

query I rowsort
SELECT + col2 - 92 AS col2 FROM tab0 AS cor0
----
-45
-82
7

query I rowsort
SELECT ALL + + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT + - ( - + 66 ) + - + ( + MAX( ALL - + col0 ) ) AS col1 FROM tab2 AS cor0
----
112

skipif mysql # not compatible
query I rowsort label-4335
SELECT + - ( - + 66 ) + - + ( + MAX ( ALL - + col0 ) ) AS col1 FROM tab2 AS cor0
----
112

query I rowsort
SELECT - col0 * col1 FROM tab0 cor0 WHERE + col1 IS NOT NULL
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT + col2 + + col0 * - col0 FROM tab1
----
-2505
-7166
-8213

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 - col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col2 * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4340
SELECT - ( - COUNT( * ) ) + COUNT( CAST( - CAST( + 35 AS SIGNED ) AS SIGNED ) ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4340
SELECT - ( - COUNT ( * ) ) + COUNT ( CAST ( - CAST ( + 35 AS INTEGER ) AS INTEGER ) ) FROM tab0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4341
SELECT 84 AS col0 FROM tab1 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4341
SELECT 84 AS col0 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4342
SELECT + CAST( NULL AS DECIMAL ) + COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4342
SELECT + CAST ( NULL AS REAL ) + COUNT ( * ) AS col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab2 WHERE NOT col2 NOT BETWEEN ( 63 ) AND 80 * - col2
----

query I rowsort
SELECT + col2 + 20 AS col0 FROM tab0
----
119
30
67

query I rowsort
SELECT col0 + 16 FROM tab2 WHERE NOT NULL <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 47 + + 20 NOT BETWEEN col2 - - col0 AND 81 * col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN + col1 AND col0
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 > col2 + col1
----

query I rowsort
SELECT col2 / 27 FROM tab0 WHERE NOT NULL < col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4350
SELECT DISTINCT 1 * + 26 - + CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT 1 * + 26 - + CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 77 ) <> + 36
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 * col1 + - 60 col0 FROM tab1
----
1256
332
80

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 < - 89
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + AVG ( col2 ) FROM tab1 WHERE NOT ( NULL ) BETWEEN - 25 AND + col2
----
NULL

query I rowsort
SELECT ( + 62 ) FROM tab0
----
62
62
62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4356
SELECT DISTINCT * FROM tab1 WHERE CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4356
SELECT DISTINCT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT COUNT( * ) * COUNT( DISTINCT + col2 ) FROM tab0 WHERE ( col1 ) IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-4358
SELECT COUNT ( * ) * COUNT ( DISTINCT + col2 ) FROM tab0 WHERE ( col1 ) IS NOT NULL
----
9

query I rowsort
SELECT 36 * 33 - 85 AS col2 FROM tab1
----
1103
1103
1103

query III rowsort
SELECT * FROM tab1 WHERE ( - col0 ) NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT DISTINCT - MIN( col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT - MIN ( col2 ) FROM tab0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 NOT BETWEEN ( 95 ) AND NULL
----

query I rowsort
SELECT 34 + - ( - col2 ) * 28 AS col2 FROM tab2
----
1154
1658
678

onlyif mysql # DIV for integer division: 
query I rowsort label-4364
SELECT + 40 DIV + 92 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4364
SELECT + 40 / + 92 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= - col2 + 4 * col1
----

query I rowsort
SELECT + 86 AS col1 FROM tab0 AS cor0 WHERE NOT ( - col1 + + col2 ) IS NULL
----
86
86
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 / col0 col2 FROM tab2 cor0 WHERE NOT + col1 IS NOT NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE + 32 IS NULL
----

query I rowsort
SELECT DISTINCT 64 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4370
SELECT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE 65 * col0 BETWEEN - col1 AND ( col0 )
----

skipif mysql # not compatible
query I rowsort label-4370
SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE 65 * col0 BETWEEN - col1 AND ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4372
SELECT ALL COUNT( * ) * - ( 81 ) + + 56 DIV 4 FROM tab2 AS cor0
----
-229

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL COUNT ( * ) * - ( 81 ) + + 56 / 4 FROM tab2 AS cor0
----
-229

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT DISTINCT + COUNT( * ) + - 98 FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-4374
SELECT DISTINCT + COUNT ( * ) + - 98 FROM tab0 AS cor0
----
-95

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN - 82 AND NULL
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND ( - 92 )
----

query I rowsort
SELECT ( + AVG ( DISTINCT + col2 ) ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT DISTINCT - MIN( ALL 39 ) FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-4379
SELECT DISTINCT - MIN ( ALL 39 ) FROM tab0
----
-39

query I rowsort
SELECT DISTINCT col0 + + col0 + - col1 AS col0 FROM tab1
----
135
165
88

query I rowsort
SELECT - ( 25 ) + col1 * + 7 AS col1 FROM tab1
----
10
304
73

query I rowsort
SELECT 44 * col1 * + col2 + - 47 FROM tab2
----
135473
170937
51565

query I rowsort
SELECT 7 + - col0 + + 86 FROM tab0
----
-4
6
78

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= + col1
----

query III rowsort
SELECT * FROM tab2 WHERE + 53 < NULL
----

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE - col2 * col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 33 col1 FROM tab2 cor0
----
-13
-31
-42

query I rowsort
SELECT 90 AS col1 FROM tab2 AS cor0 WHERE - 90 > + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( col0 )
----

query I rowsort
SELECT DISTINCT + col1 + - + 31 AS col0 FROM tab2 AS cor0
----
20
36
46

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 * + 86 + - 65 NOT IN ( + col1 / + col2 + + 10 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT + + 50 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-4392
SELECT + + 50 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-150

query I rowsort
SELECT - col0 * + 44 FROM tab1
----
-2244
-3740
-4004

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT - col0 * + 47 + + col2 * + ( + col1 ) AS col1 FROM tab1 WHERE NOT col2 - + 87 BETWEEN ( - 94 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT ALL - SUM( 48 ) AS col0 FROM tab1 AS cor0 WHERE ( + - col2 ) IS NULL OR NOT - col1 IS NULL
----
-144

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL - SUM ( 48 ) AS col0 FROM tab1 AS cor0 WHERE ( + - col2 ) IS NULL OR NOT - col1 IS NULL
----
-144

query I rowsort
SELECT + col2 * col2 + - - 90 + - 77 * col2 AS col0 FROM tab0 AS cor0
----
-1320
-580
2268

query I rowsort
SELECT DISTINCT + 27 * - 15 AS col1 FROM tab1 cor0 WHERE NOT ( col0 ) < 74
----
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT DISTINCT + 14 * + SUM( - col1 ) * 72 + - 10 AS col1 FROM tab1 cor0
----
-66538

skipif mysql # not compatible
query I rowsort label-4399
SELECT DISTINCT + 14 * + SUM ( - col1 ) * 72 + - 10 AS col1 FROM tab1 cor0
----
-66538

query I rowsort
SELECT col0 * - col0 AS col0 FROM tab0 cor0 WHERE NOT col2 BETWEEN ( - - 28 ) AND + col2
----
-7569

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 67 * - col2 <= NULL
----

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - 11 AS col0, 27 FROM tab1 AS cor0
----
-11
27
-11
27
-11
27

query I rowsort
SELECT + ( + 64 ) FROM tab2 AS cor0
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT DISTINCT SUM( ALL - ( + + col0 ) ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-4405
SELECT DISTINCT SUM ( ALL - ( + + col0 ) ) AS col2 FROM tab2
----
-185

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 84 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 BETWEEN - col1 * col0 AND NULL
----

query I rowsort
SELECT DISTINCT ( + col0 ) + + ( - col0 ) AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT ALL 10 * + COUNT( * ) FROM tab2 WHERE NOT ( + + col1 ) NOT IN ( 63 * + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL 10 * + COUNT ( * ) FROM tab2 WHERE NOT ( + + col1 ) NOT IN ( 63 * + col2 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4410
SELECT ALL + + CAST( + 22 AS SIGNED ) AS col0, + COUNT( * ) * + 13 AS col0 FROM tab1 AS cor0
----
22
39

skipif mysql # not compatible
query II rowsort label-4410
SELECT ALL + + CAST ( + 22 AS INTEGER ) AS col0, + COUNT ( * ) * + 13 AS col0 FROM tab1 AS cor0
----
22
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT DISTINCT - SUM( ALL + 18 ) + - 36 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 AND - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-4411
SELECT DISTINCT - SUM ( ALL + 18 ) + - 36 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 AND - 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4412
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4413
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT 55 * + 43 * - - col2 + + + col2 FROM tab2 cor0
----
137228
54418
94640

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT - MIN( - + col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4415
SELECT - MIN ( - + col2 ) AS col0 FROM tab2 AS cor0
----
58

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 * + ( - + col0 ) * + col1 - - 98 * - col2 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4417
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4417
SELECT ALL - CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT + + SUM( + 9 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-4418
SELECT + + SUM ( + 9 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
81

query III rowsort
SELECT * FROM tab0 WHERE NULL >= ( col2 * - ( ( + 45 ) ) * - col1 + + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col2 col0 FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4422
SELECT DISTINCT + + col1 + - col0 * CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT + + col1 + - col0 * CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 51 col1 FROM tab2 AS cor0 WHERE NOT 1 IN ( + - col1 * col0 * - + col1 )
----
-11
-28
7

onlyif mysql # aggregate syntax: 
query II rowsort label-4424
SELECT - + COUNT( * ) AS col0, - 59 FROM tab0 AS cor0
----
-3
-59

skipif mysql # not compatible
query II rowsort label-4424
SELECT - + COUNT ( * ) AS col0, - 59 FROM tab0 AS cor0
----
-3
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4425
SELECT ALL + col0 FROM tab1 AS cor0 WHERE + 90 * + + 31 * CAST( + - 94 AS SIGNED ) + - col0 <= NULL
----

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL + col0 FROM tab1 AS cor0 WHERE + 90 * + + 31 * CAST ( + - 94 AS INTEGER ) + - col0 <= NULL
----

query I rowsort
SELECT 70 FROM tab0 AS cor0 WHERE + col0 * - - 65 NOT IN ( col1 + - col1 )
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT COUNT( * ) * + 31 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-4427
SELECT COUNT ( * ) * + 31 FROM tab2 AS cor0
----
93

query I rowsort
SELECT - 23 AS col2 FROM tab0 cor0
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT - + MAX( ALL 40 ) FROM tab0 cor0
----
-40

skipif mysql # not compatible
query I rowsort label-4429
SELECT - + MAX ( ALL 40 ) FROM tab0 cor0
----
-40

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 - - 51 * + col1 NOT BETWEEN NULL AND - col1 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT 89 * + COUNT( * ) AS col1 FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-4431
SELECT 89 * + COUNT ( * ) AS col1 FROM tab0
----
267

query III rowsort
SELECT * FROM tab1 WHERE col2 > - - 1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 86 - - col0 * col0 FROM tab1
----
2687
7311
8367

query III rowsort
SELECT * FROM tab0 WHERE ( + 57 ) IS NULL
----

query I rowsort
SELECT - col1 - + + col0 FROM tab2 AS cor0
----
-141
-142
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) BETWEEN + col2 AND ( NULL )
----

query I rowsort
SELECT 81 FROM tab1 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4438
SELECT - CAST( CAST( + col1 AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4438
SELECT - CAST ( CAST ( + col1 AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4439
SELECT DISTINCT 12 * - - ( + - 59 ) + - - col0 * CAST( col0 AS SIGNED ) DIV - 51 AS col0 FROM tab2 AS cor0
----
-749
-788
-818

skipif mysql # not compatible
query I rowsort label-4439
SELECT DISTINCT 12 * - - ( + - 59 ) + - - col0 * CAST ( col0 AS INTEGER ) / - 51 AS col0 FROM tab2 AS cor0
----
-749
-788
-818

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4441
SELECT - + 49 * - 40 - - - CAST( NULL AS SIGNED ) + + ( + col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT 18 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4441
SELECT - + 49 * - 40 - - - CAST ( NULL AS INTEGER ) + + ( + col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT 18 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col0 * col1 * + 24 AS col0 FROM tab2 AS cor0
----
118272
120600
56304

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * + ( + + col0 ) IS NOT NULL
----

query I rowsort
SELECT + + ( - + 20 ) FROM tab1 AS cor0
----
-20
-20
-20

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 ) * + 44 * - col0 + + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT DISTINCT + - 74 + ( - 79 ) * - COUNT( * ) AS col0 FROM tab1 WHERE ( 21 ) > col1
----
84

skipif mysql # not compatible
query I rowsort label-4447
SELECT DISTINCT + - 74 + ( - 79 ) * - COUNT ( * ) AS col0 FROM tab1 WHERE ( 21 ) > col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT ALL + COUNT( * ) * 68 FROM tab0
----
204

skipif mysql # not compatible
query I rowsort label-4448
SELECT ALL + COUNT ( * ) * 68 FROM tab0
----
204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4449
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) + - 28 FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) + - 28 FROM tab2
----
-31

query II rowsort
SELECT ALL - 18, col1 AS col2 FROM tab0
----
-18
1
-18
21
-18
81

query I rowsort
SELECT ALL + col2 * + - col2 AS col2 FROM tab0 AS cor0
----
-100
-2209
-9801

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT NULL >= ( - 99 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + - col1 col2 FROM tab2 WHERE ( ( col2 * 41 ) IS NOT NULL )
----
2601
4489
5929

query III rowsort
SELECT * FROM tab2 WHERE col2 * - 4 < + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT 96 + - + COUNT( * ) FROM tab0, tab1 cor0
----
87

skipif mysql # not compatible
query I rowsort label-4455
SELECT 96 + - + COUNT ( * ) FROM tab0, tab1 cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT DISTINCT + COUNT( * ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4456
SELECT DISTINCT + COUNT ( * ) col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL 91 FROM tab1 cor0
----
91
91
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4459
SELECT DISTINCT - col2 - col2 DIV - - col0 + + col2 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT - col2 - col2 / - - col0 + + col2 AS col1 FROM tab1
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4460
SELECT ALL col2 DIV - + 52 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4460
SELECT ALL col2 / - + 52 AS col0 FROM tab0
----
-1
0
0

query III rowsort
SELECT * FROM tab0 WHERE + col2 + + 73 - - 28 NOT BETWEEN ( + col0 ) AND - + 4
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 80 + + 34 AS col1 FROM tab0
----
114
114
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT COUNT( * ) + - 0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4463
SELECT COUNT ( * ) + - 0 FROM tab0
----
3

query I rowsort
SELECT col2 + ( - - 31 ) FROM tab2
----
54
71
89

query I rowsort
SELECT ( + 61 ) AS col1 FROM tab1
----
61
61
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4466
SELECT + 93, - CAST( NULL AS SIGNED ) + - + ( - - 91 ) / + - ( + + COUNT( * ) ) AS col0 FROM tab2
----
93
NULL

skipif mysql # not compatible
query II rowsort label-4466
SELECT + 93, - CAST ( NULL AS INTEGER ) + - + ( - - 91 ) / + - ( + + COUNT ( * ) ) AS col0 FROM tab2
----
93
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 / col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT DISTINCT + SUM( - + 83 ) AS col2 FROM tab0
----
-249

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT + SUM ( - + 83 ) AS col2 FROM tab0
----
-249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 col1 FROM tab2 AS cor0
----
69

query I rowsort
SELECT DISTINCT - 49 FROM tab2 cor0
----
-49

query I rowsort
SELECT DISTINCT + 69 * + 30 AS col0 FROM tab1 AS cor0
----
2070

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4472
SELECT DISTINCT + + MIN( CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4472
SELECT DISTINCT + + MIN ( CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT DISTINCT - MAX( col1 ) AS col0 FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4473
SELECT DISTINCT - MAX ( col1 ) AS col0 FROM tab2 cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 68 col2 FROM tab2 AS cor0
----
-68
-68
-68

query I rowsort
SELECT ALL - ( + col1 ) AS col1 FROM tab1
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 85 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query II rowsort
SELECT ALL + col0, col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 61 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4479
SELECT DISTINCT + 41 AS col1, + COUNT( * ) * + - 77 FROM tab2 AS cor0
----
41
-231

skipif mysql # not compatible
query II rowsort label-4479
SELECT DISTINCT + 41 AS col1, + COUNT ( * ) * + - 77 FROM tab2 AS cor0
----
41
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT - MAX( ALL - 96 ) AS col2 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4480
SELECT - MAX ( ALL - 96 ) AS col2 FROM tab2 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT ALL + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - 74 + - 62 + 67 AS col1 FROM tab2 cor0
----
-69
-69
-69

query I rowsort
SELECT 37 + + ( + + col0 ) FROM tab1 AS cor0
----
122
128
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT + MAX( + col2 ) AS col0 FROM tab2 WHERE NOT - col1 NOT IN ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4484
SELECT + MAX ( + col2 ) AS col0 FROM tab2 WHERE NOT - col1 NOT IN ( + col1 )
----
NULL

query II rowsort
SELECT + col0 * + col0 AS col2, + 38 + col1 AS col1 FROM tab0
----
225
119
7569
59
9409
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 col1 FROM tab2
----
-32
-32
-32

query I rowsort
SELECT DISTINCT - col1 + 86 * col2 * 69 AS col1 FROM tab1
----
350101
403465
569650

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + 4 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT ALL 90 * MIN( ALL - 2 ) * 35 FROM tab2
----
-6300

skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL 90 * MIN ( ALL - 2 ) * 35 FROM tab2
----
-6300

query III rowsort
SELECT * FROM tab2 WHERE - + 25 + + col0 IS NULL
----

query II rowsort
SELECT ALL - col2 + + col1, + col1 FROM tab1
----
-21
47
-54
5
-82
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT + MIN( ALL + col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4492
SELECT + MIN ( ALL + col2 ) AS col1 FROM tab1
----
59

query I rowsort
SELECT + - col1 + - col2 AS col0 FROM tab1 WHERE - col0 IS NOT NULL
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT DISTINCT + ( + + COUNT( * ) ) FROM tab2 WHERE ( - col1 ) + 40 NOT BETWEEN col0 * col2 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT + ( + + COUNT ( * ) ) FROM tab2 WHERE ( - col1 ) + 40 NOT BETWEEN col0 * col2 AND NULL
----
3

query I rowsort
SELECT - 6 * + 4 * ( col0 ) FROM tab2 AS cor0
----
-1104
-1536
-1800

query I rowsort
SELECT ALL + 27 * + 6 * - 68 FROM tab2 cor0
----
-11016
-11016
-11016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4497
SELECT + col1 * - - CAST( - + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-4497
SELECT + col1 * - - CAST ( - + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4498
SELECT + 95 AS col0, COUNT( * ) * + CAST( NULL AS SIGNED ) / - COUNT( * ) FROM tab1 WHERE + col0 BETWEEN NULL AND NULL AND NULL <= NULL
----
95
NULL

skipif mysql # not compatible
query II rowsort label-4498
SELECT + 95 AS col0, COUNT ( * ) * + CAST ( NULL AS INTEGER ) / - COUNT ( * ) FROM tab1 WHERE + col0 BETWEEN NULL AND NULL AND NULL <= NULL
----
95
NULL

query I rowsort
SELECT DISTINCT 78 + - col0 FROM tab2
----
14
3
32

query I rowsort
SELECT DISTINCT + 89 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col2 + - 48 * + col1 AS col2 FROM tab1 AS cor0
----
-181
-2188
-576

query I rowsort
SELECT ( + 76 ) AS col2 FROM tab0 AS cor0
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT DISTINCT + SUM( - - col1 ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-4503
SELECT DISTINCT + SUM ( - - col1 ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT - + COUNT( * ) - - 27 * + - MAX( + + col2 ) + + COUNT( * ) AS col2 FROM tab0 cor0
----
-2673

skipif mysql # not compatible
query I rowsort label-4504
SELECT - + COUNT ( * ) - - 27 * + - MAX ( + + col2 ) + + COUNT ( * ) AS col2 FROM tab0 cor0
----
-2673

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT 52 - - 4 * - + COUNT( * ) + - - 50 AS col1 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-4505
SELECT 52 - - 4 * - + COUNT ( * ) + - - 50 AS col1 FROM tab2 AS cor0
----
90

query I rowsort
SELECT DISTINCT + col0 - 39 * col2 FROM tab2 AS cor0
----
-1496
-2187
-851

query III rowsort
SELECT * FROM tab0 WHERE + ( + + 36 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4508
SELECT + SUM( + col0 ) - + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4508
SELECT + SUM ( + col0 ) - + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4509
SELECT - + col2 * CAST( + col2 AS SIGNED ) - ( + col2 ) FROM tab1 WHERE NULL IS NULL
----
-3540
-4692
-9312

skipif mysql # not compatible
query I rowsort label-4509
SELECT - + col2 * CAST ( + col2 AS INTEGER ) - ( + col2 ) FROM tab1 WHERE NULL IS NULL
----
-3540
-4692
-9312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4510
SELECT ALL COUNT( * ) DIV - - 98 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL COUNT ( * ) / - - 98 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * - 98 <= - 35
----

query II rowsort
SELECT ALL - ( col1 ) AS col2, col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT MAX( - - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4513
SELECT MAX ( - - col2 ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - 85 ) FROM tab0
----
-85

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 BETWEEN + + col2 AND + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + col1 * + col0, + col0 col1 FROM tab2 AS cor0
----
2397
46
5005
64
5092
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4518
SELECT ALL COUNT( * ), COUNT( * ) * + COUNT( * ) FROM tab1 cor0 WHERE NOT 10 IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-4518
SELECT ALL COUNT ( * ), COUNT ( * ) * + COUNT ( * ) FROM tab1 cor0 WHERE NOT 10 IS NOT NULL
----
0
0

query I rowsort
SELECT DISTINCT + ( + - 85 ) AS col0 FROM tab0 AS cor0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT DISTINCT - SUM( ALL - 0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4520
SELECT DISTINCT - SUM ( ALL - 0 ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 66 * - 63 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 17 FROM tab1 AS cor0 WHERE + - col0 * + col2 BETWEEN NULL AND ( NULL ) OR NOT + col0 IS NULL
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT DISTINCT SUM( - col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4524
SELECT DISTINCT SUM ( - col0 ) AS col0 FROM tab2 AS cor0
----
-185

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( + col0, + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4526
SELECT DISTINCT 47 * - col1 * + - CAST( NULL AS SIGNED ) / + 15 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4526
SELECT DISTINCT 47 * - col1 * + - CAST ( NULL AS INTEGER ) / + 15 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4527
SELECT DISTINCT col0 + col0 DIV + + 5 FROM tab1
----
102
109
61

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT col0 + col0 / + + 5 FROM tab1
----
102
109
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT - COUNT( ALL - - 84 ) + SUM( ALL + + 37 ) * + ( 71 ) col1 FROM tab0
----
7878

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4528
SELECT - COUNT ( ALL - - 84 ) + SUM ( ALL + + 37 ) * + ( 71 ) col1 FROM tab0
----
7878

query II rowsort
SELECT ALL - col0 AS col2, - col2 AS col1 FROM tab2
----
-46
-23
-64
-40
-75
-58

query I rowsort
SELECT ALL - 21 * + 38 * + 58 + - 24 FROM tab1
----
-46308
-46308
-46308

query I rowsort
SELECT col1 * - col0 + col1 AS col0 FROM tab0
----
-1134
-1806
-96

query I rowsort
SELECT + col1 * - - 21 + - - col0 FROM tab2
----
1117
1482
1681

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT ALL COUNT( * ) + - - 37 * + 44 FROM tab0
----
1631

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL COUNT ( * ) + - - 37 * + 44 FROM tab0
----
1631

query I rowsort
SELECT + 54 + - + 5 FROM tab1
----
49
49
49

query I rowsort
SELECT DISTINCT 92 + + + 87 FROM tab2 AS cor0
----
179

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT col1 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4537
SELECT 12 DIV - 14 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4537
SELECT 12 / - 14 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT col2 - + + ( + col1 ) - + - 66 AS col0 FROM tab0
----
164
32
55

onlyif mysql # DIV for integer division: 
query I rowsort label-4539
SELECT DISTINCT + col1 DIV col0 + - col2 * + col1 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT + col1 / col0 + - col2 * + col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT ALL + col0 + - - col0 AS col2 FROM tab0 cor0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT DISTINCT 24 - COUNT( * ) * - 4 AS col2 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-4541
SELECT DISTINCT 24 - COUNT ( * ) * - 4 AS col2 FROM tab2 AS cor0
----
36

query I rowsort
SELECT ALL + + 90 * + col2 AS col1 FROM tab1 cor0
----
5310
6120
8640

query I rowsort
SELECT DISTINCT col2 * 23 FROM tab2 cor0
----
1334
529
920

query I rowsort
SELECT ALL - 94 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT ALL + ( - COUNT( * ) ) * - 22 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL + ( - COUNT ( * ) ) * - 22 FROM tab1 AS cor0
----
66

query I rowsort
SELECT ALL - + col2 FROM tab0 AS cor0 WHERE NOT 47 NOT BETWEEN - + 11 + col1 AND NULL
----

query I rowsort
SELECT - col2 * + 27 FROM tab0
----
-1269
-2673
-270

query I rowsort
SELECT 17 * - - 37 AS col0 FROM tab2
----
629
629
629

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN - - 41 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4550
SELECT DISTINCT * FROM tab1 WHERE NOT - - 59 NOT BETWEEN - - col1 * - + CAST( - + col2 AS DECIMAL ) * - + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4550
SELECT DISTINCT * FROM tab1 WHERE NOT - - 59 NOT BETWEEN - - col1 * - + CAST ( - + col2 AS REAL ) * - + col1 AND NULL
----

query I rowsort
SELECT + ( + 9 ) AS col1 FROM tab2
----
9
9
9

query II rowsort
SELECT - 98 AS col2, + ( + col0 ) AS col0 FROM tab0
----
-98
15
-98
87
-98
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4553
SELECT DISTINCT CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4553
SELECT DISTINCT CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4554
SELECT ALL 26, + COUNT( * ) AS col1 FROM tab1
----
26
3

skipif mysql # not compatible
query II rowsort label-4554
SELECT ALL 26, + COUNT ( * ) AS col1 FROM tab1
----
26
3

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 66 / - 59 * - 58 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * + - 37 * - - col2 AS col0, col2 col2 FROM tab2
----
-160950
58
-39146
23
-94720
40

query I rowsort
SELECT DISTINCT - - col2 * - - ( - + col2 ) FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query II rowsort label-4558
SELECT DISTINCT - + COUNT( * ), ( - - 90 ) AS col2 FROM tab2 AS cor0
----
-3
90

skipif mysql # not compatible
query II rowsort label-4558
SELECT DISTINCT - + COUNT ( * ), ( - - 90 ) AS col2 FROM tab2 AS cor0
----
-3
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT + - COUNT( 99 ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4559
SELECT + - COUNT ( 99 ) AS col1 FROM tab2 cor0
----
-3

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 WHERE NOT col1 <> 21 / - + col1 + - 13 + + 86
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4561
SELECT ALL + MIN( DISTINCT - col1 ) DIV - + COUNT( * ) FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL + MIN ( DISTINCT - col1 ) / - + COUNT ( * ) FROM tab2 AS cor0
----
25

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT DISTINCT + 1 + - COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-4563
SELECT DISTINCT + 1 + - COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT ALL + COUNT( * ) * COUNT( * ) + - 46 FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL + COUNT ( * ) * COUNT ( * ) + - 46 FROM tab2 AS cor0
----
-37

query I rowsort
SELECT + - col0 + - - 9 FROM tab0 AS cor0
----
-6
-78
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT DISTINCT ( + + MAX( - col0 ) ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4566
SELECT DISTINCT ( + + MAX ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4567
SELECT + - col1 + + CAST( NULL AS SIGNED ) + - col1 + + col1 + - - 65 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4567
SELECT + - col1 + + CAST ( NULL AS INTEGER ) + - col1 + + col1 + - - 65 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4568
SELECT - ( - col0 ) * + col0 * 30 - - 67 + + col0 DIV + 65 AS col2 FROM tab2 AS cor0
----
122947
168818
63547

skipif mysql # not compatible
query I rowsort label-4568
SELECT - ( - col0 ) * + col0 * 30 - - 67 + + col0 / + 65 AS col2 FROM tab2 AS cor0
----
122947
168818
63547

query II rowsort
SELECT DISTINCT col1 AS col1, - 77 - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL - col2 + + col0 + col2 * - 77 * col0 * + ( - + col2 ) + ( col1 ) AS col1 FROM tab1
----
22783176
32400438
36191201

query III rowsort
SELECT * FROM tab1 WHERE - 65 <> - + 94 + + 96 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 42 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 20 * - 48 AS col0 FROM tab0
----
-960
-960
-960

query I rowsort
SELECT 35 AS col2 FROM tab0 cor0
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 - + + 67 col0 FROM tab0 AS cor0
----
-109
-109
-109

query I rowsort
SELECT - col0 * - 13 AS col0 FROM tab0 AS cor0 WHERE 15 IS NULL
----

query I rowsort
SELECT DISTINCT - - 43 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4578
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-4579
SELECT + col0 AS col1, + col2 DIV + 17 AS col0 FROM tab1
----
51
5
85
3
91
4

skipif mysql # not compatible
query II rowsort label-4579
SELECT + col0 AS col1, + col2 / + 17 AS col0 FROM tab1
----
51
5
85
3
91
4

query II rowsort
SELECT - 5, + col0 FROM tab0 AS cor0
----
-5
15
-5
87
-5
97

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT DISTINCT - - COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT - - COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4583
SELECT - col1 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-4583
SELECT - col1 / + - col2 + col2 col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT - - SUM( + col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4584
SELECT - - SUM ( + col0 ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT + 2 FROM tab2 AS cor0 WHERE NOT + 66 IS NULL
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT ALL SUM( DISTINCT - 40 ) AS col1 FROM tab1
----
-40

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL SUM ( DISTINCT - 40 ) AS col1 FROM tab1
----
-40

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 16 col2 FROM tab2 WHERE NOT - - col1 IS NULL
----
-16
-16
-16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4589
SELECT DISTINCT - 93 * - 13 * - MIN( ALL - CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4589
SELECT DISTINCT - 93 * - 13 * - MIN ( ALL - CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4590
SELECT + col2 * 72 AS col2, + CAST( NULL AS SIGNED ) - + 14 FROM tab0 AS cor0
----
3384
NULL
7128
NULL
720
NULL

skipif mysql # not compatible
query II rowsort label-4590
SELECT + col2 * 72 AS col2, + CAST ( NULL AS INTEGER ) - + 14 FROM tab0 AS cor0
----
3384
NULL
7128
NULL
720
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT ALL ( + COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL ( + COUNT ( * ) ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4592
SELECT col0 DIV col2 * - ( + - col0 ) FROM tab2 AS cor0
----
64
75
92

skipif mysql # not compatible
query I rowsort label-4592
SELECT col0 / col2 * - ( + - col0 ) FROM tab2 AS cor0
----
64
75
92

query I rowsort
SELECT ALL col0 * - + ( - + col1 ) FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT MIN( - col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4594
SELECT MIN ( - col1 ) AS col1 FROM tab1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4595
SELECT DISTINCT - - col0 AS col2, ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-4595
SELECT DISTINCT - - col0 AS col2, ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT ( + - 70 ) * 38 FROM tab2 AS cor0
----
-2660
-2660
-2660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 col1 FROM tab1 AS cor0 WHERE col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT DISTINCT COUNT( * ) + - 82 FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-4598
SELECT DISTINCT COUNT ( * ) + - 82 FROM tab0 AS cor0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT DISTINCT + - SUM( DISTINCT + 37 ) AS col2 FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-4599
SELECT DISTINCT + - SUM ( DISTINCT + 37 ) AS col2 FROM tab2 AS cor0
----
-37

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

query II rowsort
SELECT DISTINCT + - 1 AS col0, + col0 AS col0 FROM tab2 AS cor0
----
-1
46
-1
64
-1
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4602
SELECT * FROM tab2 AS cor0 WHERE NULL < + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4602
SELECT * FROM tab2 AS cor0 WHERE NULL < + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 4, col0 * 59 col0 FROM tab0 AS cor0
----
-4
5133
-4
5723
-4
885

onlyif mysql # DIV for integer division: 
query I rowsort label-4604
SELECT + col2 + 50 DIV - 89 + col2 * + - col0 FROM tab1 cor0
----
-4800
-4956
-6120

skipif mysql # not compatible
query I rowsort label-4604
SELECT + col2 + 50 / - 89 + col2 * + - col0 FROM tab1 cor0
----
-4800
-4956
-6120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4605
SELECT DISTINCT + ( + - CAST( NULL AS SIGNED ) ) AS col2, col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-4605
SELECT DISTINCT + ( + - CAST ( NULL AS INTEGER ) ) AS col2, col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT DISTINCT COUNT( * ) + + COUNT( * ) * + 11 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-4606
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) * + 11 FROM tab2
----
36

onlyif mysql # DIV for integer division: 
query II rowsort label-4607
SELECT col2 + + + col2, col0 DIV col2 * - col0 AS col1 FROM tab2
----
116
-75
46
-92
80
-64

skipif mysql # not compatible
query II rowsort label-4607
SELECT col2 + + + col2, col0 / col2 * - col0 AS col1 FROM tab2
----
116
-75
46
-92
80
-64

query I rowsort
SELECT + ( + + col2 ) + col2 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT ALL COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4609
SELECT ALL COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 78 + - ( + col1 ) - - col0 + + 22 * + col2 col0 FROM tab0 cor0
----
-202
-5292
-6500

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 74 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 63 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 30 * + col2 FROM tab0 AS cor0
----
-1410
-2970
-300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 61 - - col1 col1 FROM tab2 AS cor0
----
-10
16
6

query I rowsort
SELECT ALL + 38 - 68 AS col1 FROM tab1
----
-30
-30
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4616
SELECT - COUNT( * ) DIV - 33 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4616
SELECT - COUNT ( * ) / - 33 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4617
SELECT ALL - ( 82 ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL - ( 82 ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT COUNT( DISTINCT col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4618
SELECT COUNT ( DISTINCT col2 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - col0 * + 87 - + col0 AS col0 FROM tab0 WHERE + col0 * - 84 IS NOT NULL
----
-1320
-7656
-8536

query II rowsort
SELECT ALL col0, - 27 AS col1 FROM tab1
----
51
-27
85
-27
91
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4621
SELECT ALL + 13 + 56 + col0 * col0 + + - 24 * col0 * - ( + 92 ) * - + col0 * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - ( + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4621
SELECT ALL + 13 + 56 + col0 * col0 + + - 24 * col0 * - ( + 92 ) * - + col0 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - ( + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - ( - - AVG ( + 30 ) ) AS col0 FROM tab1 AS cor0 WHERE col0 <= NULL
----
NULL

query I rowsort
SELECT DISTINCT - - 65 AS col1 FROM tab1 cor0
----
65

query II rowsort
SELECT DISTINCT + 30, col1 * - 44 AS col2 FROM tab0 AS cor0
----
30
-3564
30
-44
30
-924

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4625
SELECT ALL col2 AS col0, CAST( NULL AS DECIMAL ) FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-4625
SELECT ALL col2 AS col0, CAST ( NULL AS REAL ) FROM tab2
----
23
NULL
40
NULL
58
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4626
SELECT ALL col0, + 3 * - col2 * + CAST( NULL AS SIGNED ) + col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-4626
SELECT ALL col0, + 3 * - col2 * + CAST ( NULL AS INTEGER ) + col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT DISTINCT - ( - + MAX( ALL + + col0 ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4627
SELECT DISTINCT - ( - + MAX ( ALL + + col0 ) ) FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT DISTINCT MIN( DISTINCT 28 ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-4628
SELECT DISTINCT MIN ( DISTINCT 28 ) FROM tab0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT + 66 * COUNT( - col0 ) FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-4629
SELECT + 66 * COUNT ( - col0 ) FROM tab0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT DISTINCT - 32 * - - MIN( ALL - col2 ) AS col0 FROM tab0
----
3168

skipif mysql # not compatible
query I rowsort label-4630
SELECT DISTINCT - 32 * - - MIN ( ALL - col2 ) AS col0 FROM tab0
----
3168

query I rowsort
SELECT ALL ( - - 5 ) AS col0 FROM tab2
----
5
5
5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4632
SELECT ALL * FROM tab0 WHERE NULL > CAST( - col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4632
SELECT ALL * FROM tab0 WHERE NULL > CAST ( - col1 AS REAL )
----

query II rowsort
SELECT 8, col2 FROM tab2
----
8
23
8
40
8
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT ALL + 10 * MIN( + col0 ) FROM tab2 AS cor0
----
460

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL + 10 * MIN ( + col0 ) FROM tab2 AS cor0
----
460

query I rowsort
SELECT - 11 * - - 19 AS col0 FROM tab1 AS cor0
----
-209
-209
-209

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT - + 37 * + + MIN( + 58 ) col1 FROM tab2 AS cor0
----
-2146

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4636
SELECT - + 37 * + + MIN ( + 58 ) col1 FROM tab2 AS cor0
----
-2146

query I rowsort
SELECT DISTINCT + 87 * ( col2 ) * col1 + + - ( - - 33 ) FROM tab0 AS cor0
----
18237
331176
8580

query I rowsort
SELECT + 24 * + col1 FROM tab1 cor0
----
1128
120
336

query II rowsort
SELECT ALL col2, - col1 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

query II rowsort
SELECT DISTINCT 31 * - 4 AS col2, + col0 FROM tab0
----
-124
15
-124
87
-124
97

query II rowsort
SELECT - col0 * - col0 AS col0, + col2 * - 77 * col0 + - col1 FROM tab2
----
2116
-81517
4096
-197197
5625
-335017

query I rowsort
SELECT 49 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT ALL + 7 * + 70 * col2 FROM tab0 AS cor0
----
23030
48510
4900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4644
SELECT DISTINCT - - COUNT( * ) + - CAST( + 60 AS SIGNED ) + ( COUNT( * ) ) FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4644
SELECT DISTINCT - - COUNT ( * ) + - CAST ( + 60 AS INTEGER ) + ( COUNT ( * ) ) FROM tab0 AS cor0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4645
SELECT DISTINCT CAST( + ( + col2 ) AS SIGNED ) * ( 69 ) + + + col2 FROM tab2 AS cor0
----
1610
2800
4060

skipif mysql # not compatible
query I rowsort label-4645
SELECT DISTINCT CAST ( + ( + col2 ) AS INTEGER ) * ( 69 ) + + + col2 FROM tab2 AS cor0
----
1610
2800
4060

query I rowsort
SELECT ALL + 26 * - - col1 * + 98 FROM tab1
----
119756
12740
35672

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4647
SELECT DISTINCT - col2 * + 26 * + col2 AS col2, col2 - + col1 + CAST( - col2 AS SIGNED ) - 15 AS col0 FROM tab0
----
-254826
-16
-2600
-36
-57434
-96

skipif mysql # not compatible
query II rowsort label-4647
SELECT DISTINCT - col2 * + 26 * + col2 AS col2, col2 - + col1 + CAST ( - col2 AS INTEGER ) - 15 AS col0 FROM tab0
----
-254826
-16
-2600
-36
-57434
-96

query I rowsort
SELECT col2 * + ( - 78 ) FROM tab2
----
-1794
-3120
-4524

query I rowsort
SELECT ALL 4 * + - col1 FROM tab1
----
-188
-20
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( - - 39 ) + + + col0, 87 col1 FROM tab0
----
126
87
136
87
54
87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4651
SELECT ALL + col0 + - - CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL + col0 + - - CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 50 + - col2 + 4 AS col1 FROM tab1
----
-105
-114
-142

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) = + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4654
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, col0 AS col1 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-4654
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, col0 AS col1 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col2 * 95 / col2 + + + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT DISTINCT MAX( ALL + col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT MAX ( ALL + col1 ) FROM tab0
----
81

query III rowsort
SELECT * FROM tab2 WHERE NOT - 82 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4658
SELECT - - col2 DIV col2 * + col0 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4658
SELECT - - col2 / col2 * + col0 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT 56 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
56
56
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4660
SELECT CAST( - col0 AS SIGNED ) * + col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-4660
SELECT CAST ( - col0 AS INTEGER ) * + col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT ( - + col1 ) * + col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 cor0 WHERE 46 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT ALL + 38 AS col0 FROM tab1 AS cor0
----
38
38
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4665
SELECT ALL CAST( + 31 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
31
31
31

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL CAST ( + 31 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
31
31
31

query II rowsort
SELECT DISTINCT + col2 AS col2, col0 AS col0 FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT + col2 <> NULL
----

query II rowsort
SELECT 98 AS col2, - col0 * + col2 + + col0 * col2 FROM tab1
----
98
0
98
0
98
0

query III rowsort
SELECT * FROM tab2 WHERE NOT 91 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + ( ( - col0 ) ), - col1 * - - col0 AS col0 FROM tab1
----
-51
-714
-85
-425
-91
-4277

query I rowsort
SELECT DISTINCT + col2 + 16 * + - col0 FROM tab0
----
-1382
-1453
-193

query II rowsort
SELECT ALL - col0 AS col2, + 43 FROM tab1 AS cor0
----
-51
43
-85
43
-91
43

query I rowsort
SELECT ALL 64 AS col0 FROM tab0 AS cor0
----
64
64
64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + - col1 col0 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT - 56 + col2 FROM tab0
----
-46
-9
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 32 col2 FROM tab2
----
1280
1856
736

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT ALL ( + - COUNT( * ) ) * + - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
81

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL ( + - COUNT ( * ) ) * + - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT - MIN( ALL - - 74 ) AS col0 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-4680
SELECT - MIN ( ALL - - 74 ) AS col0 FROM tab1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT + MIN( + + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4681
SELECT + MIN ( + + col0 ) FROM tab1 AS cor0
----
51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <> + - 50
----

query I rowsort
SELECT + - col1 - - + ( col2 ) FROM tab2 AS cor0
----
-28
-37
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 - - col2 - - 21 * + + col2 * col2 NOT BETWEEN - col1 AND - 67
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 * col2 + 67 FROM tab0 AS cor0
----
772
937
9670

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4686
SELECT + CAST( col1 AS SIGNED ) + col2 + - + col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4686
SELECT + CAST ( col1 AS INTEGER ) + col2 + - + col1 FROM tab0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4687
SELECT DISTINCT + 39 DIV + ( col1 ) * + - col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4687
SELECT DISTINCT + 39 / + ( col1 ) * + - col0 FROM tab2
----
0

query II rowsort
SELECT 48 + - + col0, col1 + + col2 AS col0 FROM tab2
----
-16
117
-27
125
2
74

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 + + col2 col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4691
SELECT ALL + 89 DIV COUNT( * ) FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL + 89 / COUNT ( * ) FROM tab1
----
29

query I rowsort
SELECT col0 + ( - + 97 ) - col0 FROM tab2
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT ALL + COUNT( DISTINCT + 23 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL + COUNT ( DISTINCT + 23 ) AS col0 FROM tab0
----
1

query I rowsort
SELECT DISTINCT 47 + - + 74 AS col0 FROM tab1
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - 37 col0 FROM tab0 cor0 WHERE 58 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4696
SELECT ALL COUNT( * ) * - MAX( - col1 ) / CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4696
SELECT ALL COUNT ( * ) * - MAX ( - col1 ) / CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4697
SELECT DISTINCT - 93 / + CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4697
SELECT DISTINCT - 93 / + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL + 54 * + col1 FROM tab1
----
2538
270
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 38 ) col1 FROM tab0
----
38

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = + col0 + + col0
----

query I rowsort
SELECT + col0 * - - 39 FROM tab0 AS cor0
----
3393
3783
585

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4703
SELECT DISTINCT ( + COUNT( * ) ) DIV + + 13 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT ( + COUNT ( * ) ) / + + 13 AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 48 = NULL
----

query I rowsort
SELECT DISTINCT + - 14 AS col2 FROM tab1 cor0
----
-14

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 IN ( + col1, col1, ( col1 ), + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - ( col2 ) AS col0, col1 AS col1 FROM tab1
----
-59
5
-68
47
-96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT DISTINCT MAX( DISTINCT - + col0 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT MAX ( DISTINCT - + col0 ) AS col0 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT - ( - COUNT( * ) ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4709
SELECT - ( - COUNT ( * ) ) col2 FROM tab1
----
3

query I rowsort
SELECT ALL - col1 + + 36 FROM tab2
----
-15
-31
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT ALL - - COUNT( * ) - - COUNT( * ) FROM tab1 WHERE NULL = - col1
----
0

skipif mysql # not compatible
query I rowsort label-4711
SELECT ALL - - COUNT ( * ) - - COUNT ( * ) FROM tab1 WHERE NULL = - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4712
SELECT DISTINCT - CAST( col2 AS SIGNED ) + - ( - CAST( col0 AS SIGNED ) ) AS col0 FROM tab1
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + - ( - CAST ( col0 AS INTEGER ) ) AS col0 FROM tab1
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4713
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 / - CAST( 16 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4713
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 / - CAST ( 16 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4714
SELECT DISTINCT 77 + + col0 DIV + + col0 AS col2 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-4714
SELECT DISTINCT 77 + + col0 / + + col0 AS col2 FROM tab0
----
78

query I rowsort
SELECT - col1 FROM tab2 WHERE - 88 + + 7 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 IS NOT NULL OR + 31 * - 92 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 0 + ( - + col1 ) + + 94 FROM tab0
----
13
73
93

query I rowsort
SELECT DISTINCT + - 92 - + 9 FROM tab0 AS cor0
----
-101

query I rowsort
SELECT DISTINCT + 92 + - col2 + 37 * col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3301
3582
600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4720
SELECT ALL - + 95 + + CAST( + col2 AS SIGNED ) * col2 * + col1 FROM tab0 AS cor0
----
178834
2005
9706

skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL - + 95 + + CAST ( + col2 AS INTEGER ) * col2 * + col1 FROM tab0 AS cor0
----
178834
2005
9706

query I rowsort
SELECT DISTINCT col2 - - - col2 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4722
SELECT ALL CAST( - - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL CAST ( - - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT + col0 - 84 FROM tab2 AS cor0
----
-20
-38
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4724
SELECT - COUNT( * ) * - CAST( + 25 AS SIGNED ) FROM tab1 WHERE - col1 * - 4 IS NOT NULL
----
75

skipif mysql # not compatible
query I rowsort label-4724
SELECT - COUNT ( * ) * - CAST ( + 25 AS INTEGER ) FROM tab1 WHERE - col1 * - 4 IS NOT NULL
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4725
SELECT - 94 DIV 42 - col0 FROM tab0
----
-17
-89
-99

skipif mysql # not compatible
query I rowsort label-4725
SELECT - 94 / 42 - col0 FROM tab0
----
-17
-89
-99

query III rowsort
SELECT * FROM tab0 WHERE + 56 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( - 35 ) AS col1 FROM tab2
----
-35

query III rowsort
SELECT * FROM tab1 WHERE NOT - 54 * + col1 * - 52 * - col2 + - col2 <= + col1 * + col0 + - - col1 + 5 * - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 29 NOT BETWEEN NULL AND + ( - col2 )
----

query I rowsort
SELECT ALL col2 * + ( + 28 ) AS col0 FROM tab2 AS cor0
----
1120
1624
644

onlyif mysql # DIV for integer division: 
query I rowsort label-4731
SELECT - + 8 DIV + - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4731
SELECT - + 8 / + - col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4732
SELECT + - col1 DIV col1 + - + col1 AS col1 FROM tab2 AS cor0
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-4732
SELECT + - col1 / col1 + - + col1 AS col1 FROM tab2 AS cor0
----
-52
-68
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4733
SELECT DISTINCT COUNT( * ) DIV - - MIN( DISTINCT + col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4733
SELECT DISTINCT COUNT ( * ) / - - MIN ( DISTINCT + col0 ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) = - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT ALL SUM( 88 ) FROM tab1
----
264

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL SUM ( 88 ) FROM tab1
----
264

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4736
SELECT * FROM ( tab0 cor0 CROSS JOIN tab1 cor1 ) WHERE NOT ( NULL ) = 20 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-4736
SELECT * FROM ( tab0 cor0 CROSS JOIN tab1 cor1 ) WHERE NOT ( NULL ) = 20 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT ALL - COUNT( * ) * - - COUNT( DISTINCT 82 ) + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4737
SELECT ALL - COUNT ( * ) * - - COUNT ( DISTINCT 82 ) + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 0 * + col0 col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4739
SELECT ALL 85 * - - 63 * + - MIN( - + col1 ) DIV - COUNT( * ) col0 FROM tab0
----
-144585

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4739
SELECT ALL 85 * - - 63 * + - MIN ( - + col1 ) / - COUNT ( * ) col0 FROM tab0
----
-144585

query I rowsort
SELECT + ( - ( col1 ) ) * - + ( + col0 ) FROM tab2 AS cor0
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - + col0 + + col1 col1 FROM tab0 cor0
----
-1134
-1806
-96

query I rowsort
SELECT DISTINCT + 94 * - col0 AS col0 FROM tab0 AS cor0
----
-1410
-8178
-9118

query I rowsort
SELECT + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 < - - col0 * + 87 * - col2
----
23
40
58

onlyif mysql # DIV for integer division: 
query II rowsort label-4744
SELECT col1 DIV - + col0 AS col2, ( + col1 ) FROM tab1 AS cor0
----
0
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-4744
SELECT col1 / - + col0 AS col2, ( + col1 ) FROM tab1 AS cor0
----
0
14
0
47
0
5

query II rowsort
SELECT 81 * + col2 AS col1, - 79 + col1 * + col0 FROM tab2 AS cor0
----
1863
2267
3240
4849
4698
4946

onlyif mysql # DIV for integer division: 
query I rowsort label-4746
SELECT ALL - col0 DIV + col1 AS col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL - col0 / + col1 AS col0 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4747
SELECT DISTINCT - + ( col0 ) DIV col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-4747
SELECT DISTINCT - + ( col0 ) / col1 FROM tab1 AS cor0
----
-1
-17
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT - ( + 7 ) + - COUNT( - col2 ) FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-4748
SELECT - ( + 7 ) + - COUNT ( - col2 ) FROM tab1
----
-10

query I rowsort
SELECT DISTINCT - 21 + - 70 + + 18 FROM tab0
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-4750
SELECT 16 DIV 47 + - + col2 DIV + col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4750
SELECT 16 / 47 + - + col2 / + col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4751
SELECT ALL - - 25 DIV 40 + + col0 * + col0 AS col0 FROM tab2 AS cor0
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL - - 25 / 40 + + col0 * + col0 AS col0 FROM tab2 AS cor0
----
2116
4096
5625

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT - 33 AS col0, - 11 AS col2 FROM tab1 AS cor0
----
-33
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT - COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4754
SELECT - COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT DISTINCT - 5 AS col0 FROM tab0
----
-5

query I rowsort
SELECT ALL - 17 FROM tab2, tab1 AS cor0
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

onlyif mysql # aggregate syntax: 
query II rowsort label-4757
SELECT 99, COUNT( * ) - ( 31 ) AS col0 FROM tab2, tab1 AS cor0
----
99
-22

skipif mysql # not compatible
query II rowsort label-4757
SELECT 99, COUNT ( * ) - ( 31 ) AS col0 FROM tab2, tab1 AS cor0
----
99
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4758
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - AVG ( - ( - 35 ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4758
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - AVG ( - ( - 35 ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4759
SELECT DISTINCT + 99 + - + 23 + - col2 * - - col0 DIV - + col0 FROM tab0
----
123
175
86

skipif mysql # not compatible
query I rowsort label-4759
SELECT DISTINCT + 99 + - + 23 + - col2 * - - col0 / - + col0 FROM tab0
----
123
175
86

query I rowsort
SELECT ALL + col1 * col2 + 26 FROM tab2 cor0
----
1199
3106
3912

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) <= col1
----
0

skipif mysql # not compatible
query I rowsort label-4761
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) <= col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4762
SELECT 25 - + col0 * 88 DIV - + 12 FROM tab2 AS cor0
----
362
494
575

skipif mysql # not compatible
query I rowsort label-4762
SELECT 25 - + col0 * 88 / - + 12 FROM tab2 AS cor0
----
362
494
575

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT + MAX( - - col2 ) AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT + MAX ( - - col2 ) AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 64 <= NULL
----

query I rowsort
SELECT DISTINCT - + 26 - + col1 FROM tab0 AS cor0
----
-107
-27
-47

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 + + 88 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 - + + 94 + - - 37 AS col2 FROM tab0 AS cor0
----
-36
-56
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT DISTINCT MAX( ALL - col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT MAX ( ALL - col2 ) FROM tab1
----
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-4770
SELECT ALL - col2 col0, - 54 DIV - col1 FROM tab1
----
-59
10
-68
1
-96
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4770
SELECT ALL - col2 col0, - 54 / - col1 FROM tab1
----
-59
10
-68
1
-96
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT MIN( ALL + + col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-4771
SELECT MIN ( ALL + + col2 ) FROM tab0
----
10

query I rowsort
SELECT + 41 * - 18 FROM tab2
----
-738
-738
-738

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT - 7 * + COUNT( * ) FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-4773
SELECT - 7 * + COUNT ( * ) FROM tab0
----
-21

query I rowsort
SELECT 41 * + col1 FROM tab2
----
2091
2747
3157

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT ALL + 55 * - - COUNT( * ) FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL + 55 * - - COUNT ( * ) FROM tab1
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4776
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-4776
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 8 * - 30 FROM tab2
----
-240

query I rowsort
SELECT - - col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( + - col1 IS NULL )
----
1
21
81

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4780
SELECT DISTINCT 32 DIV - 47 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
0

skipif mysql # not compatible
query I rowsort label-4780
SELECT DISTINCT 32 / - 47 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT DISTINCT - 85 * + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-765

skipif mysql # not compatible
query I rowsort label-4781
SELECT DISTINCT - 85 * + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-765

query I rowsort
SELECT ALL + 10 * + - 45 AS col0 FROM tab2
----
-450
-450
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT DISTINCT COUNT( * ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4783
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( 21 + - - col1 * col0 * - - col2 )
----

query II rowsort
SELECT ALL - 65 AS col1, - 25 FROM tab0 cor0
----
-65
-25
-65
-25
-65
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2 col1, + 9 * - 11 AS col0 FROM tab2 AS cor0
----
23
-99
40
-99
58
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-4787
SELECT ALL - 80, col2 DIV + ( - + col1 ) AS col2 FROM tab2 AS cor0
----
-80
0
-80
0
-80
0

skipif mysql # not compatible
query II rowsort label-4787
SELECT ALL - 80, col2 / + ( - + col1 ) AS col2 FROM tab2 AS cor0
----
-80
0
-80
0
-80
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 68 * col1 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4789
SELECT DISTINCT CAST( NULL AS SIGNED ), + col0 - col0 * 24 AS col0 FROM tab2 AS cor0
----
NULL
-1058
NULL
-1472
NULL
-1725

skipif mysql # not compatible
query II rowsort label-4789
SELECT DISTINCT CAST ( NULL AS INTEGER ), + col0 - col0 * 24 AS col0 FROM tab2 AS cor0
----
NULL
-1058
NULL
-1472
NULL
-1725

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4790
SELECT DISTINCT - CAST( + col0 AS SIGNED ) * - 29 FROM tab0
----
2523
2813
435

skipif mysql # not compatible
query I rowsort label-4790
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) * - 29 FROM tab0
----
2523
2813
435

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 col0 FROM tab0 WHERE NOT + + 24 * + + 39 = + - 38
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT ALL COUNT( DISTINCT + col2 ) AS col0 FROM tab2 WHERE ( + col2 * col2 NOT BETWEEN NULL AND - 84 )
----
3

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL COUNT ( DISTINCT + col2 ) AS col0 FROM tab2 WHERE ( + col2 * col2 NOT BETWEEN NULL AND - 84 )
----
3

query I rowsort
SELECT ALL - 61 * - col2 * - + 27 AS col2 FROM tab2
----
-37881
-65880
-95526

query I rowsort
SELECT ALL - 55 + ( - - 47 ) + + col2 * - ( - 66 ) FROM tab1
----
3886
4480
6328

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT + COUNT( + + 44 ) AS col2 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4795
SELECT + COUNT ( + + 44 ) AS col2 FROM tab2, tab2 AS cor0
----
9

query I rowsort
SELECT ALL + + 30 AS col2 FROM tab1 AS cor0
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT ALL COUNT( * ) + COUNT( * ) col0 FROM tab2
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4797
SELECT ALL COUNT ( * ) + COUNT ( * ) col0 FROM tab2
----
6

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 + 64 AS col2 FROM tab1 AS cor0
----
-21
-27
13

query I rowsort
SELECT DISTINCT - + col1 - + - 3 AS col1 FROM tab0 AS cor0
----
-18
-78
2

query I rowsort
SELECT - + 25 AS col1 FROM tab2 AS cor0
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-4802
SELECT ALL 94, COUNT( * ) + - + MIN( + ( - col1 ) ) AS col1 FROM tab2 AS cor0
----
94
80

skipif mysql # not compatible
query II rowsort label-4802
SELECT ALL 94, COUNT ( * ) + - + MIN ( + ( - col1 ) ) AS col1 FROM tab2 AS cor0
----
94
80

query II rowsort
SELECT DISTINCT - col1 AS col0, - ( col0 ) FROM tab2 AS cor0
----
-51
-46
-67
-75
-77
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-4804
SELECT DISTINCT + COUNT( * ) AS col2, + 73 AS col0 FROM tab1 AS cor0
----
3
73

skipif mysql # not compatible
query II rowsort label-4804
SELECT DISTINCT + COUNT ( * ) AS col2, + 73 AS col0 FROM tab1 AS cor0
----
3
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( + col2 ) col1 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 <> + - ( - col1 ) - - 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT - - SUM( DISTINCT + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4807
SELECT - - SUM ( DISTINCT + col1 ) FROM tab0 AS cor0
----
103

query II rowsort
SELECT + 36 AS col1, col0 FROM tab2 AS cor0
----
36
46
36
64
36
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col1, col0 FROM tab0 cor0
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4811
SELECT + col0 FROM tab1 WHERE NOT col2 NOT BETWEEN + col1 * - CAST( + + col0 AS SIGNED ) + + 77 - - col2 / - + 84 AND 54
----

skipif mysql # not compatible
query I rowsort label-4811
SELECT + col0 FROM tab1 WHERE NOT col2 NOT BETWEEN + col1 * - CAST ( + + col0 AS INTEGER ) + + 77 - - col2 / - + 84 AND 54
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4812
SELECT ALL 90 * + col2 DIV col2 * 92 * + col0 FROM tab0
----
124200
720360
803160

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL 90 * + col2 / col2 * 92 * + col0 FROM tab0
----
124200
720360
803160

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT DISTINCT + COUNT( * ) * 20 AS col1 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-4813
SELECT DISTINCT + COUNT ( * ) * 20 AS col1 FROM tab0
----
60

query I rowsort
SELECT 10 * - col0 * 50 FROM tab2
----
-23000
-32000
-37500

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT ALL + COUNT( * ) * - 38 FROM tab0
----
-114

skipif mysql # not compatible
query I rowsort label-4815
SELECT ALL + COUNT ( * ) * - 38 FROM tab0
----
-114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) col1 FROM tab0 cor0
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 87 = - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 <> + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 28 * - ( + col2 ) AS col2, + 82 AS col1 FROM tab0 AS cor0
----
-1316
82
-2772
82
-280
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT + COUNT( * ) * + COUNT( DISTINCT - 19 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4820
SELECT + COUNT ( * ) * + COUNT ( DISTINCT - 19 ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4821
SELECT ALL 9 * + + CAST( + - COUNT( * ) AS SIGNED ) col1 FROM tab2
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4821
SELECT ALL 9 * + + CAST ( + - COUNT ( * ) AS INTEGER ) col1 FROM tab2
----
-27

query III rowsort
SELECT * FROM tab0 WHERE NULL > col0
----

query I rowsort
SELECT col0 + + - col0 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 12 + - col0 + 42 AS col1 FROM tab2
----
-10
-21
8

query I rowsort
SELECT ALL col0 * - - col1 + - ( + 10 ) FROM tab2
----
2336
4918
5015

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT ALL - COUNT( - - col0 ) FROM tab1 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL - COUNT ( - - col0 ) FROM tab1 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT col2 + + + 42 AS col0 FROM tab0
----
141
52
89

query I rowsort
SELECT 73 * - 35 * - + 59 + 77 * - + 96 FROM tab1
----
143353
143353
143353

query I rowsort
SELECT DISTINCT - col2 + - + col0 * + + col2 FROM tab1
----
-4992
-5074
-6256

query I rowsort
SELECT DISTINCT 62 * + - col0 + + - col2 AS col2 FROM tab0 cor0
----
-5404
-6113
-977

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 * + col2 < - + col0
----
-3

skipif mysql # not compatible
query I rowsort label-4831
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 * + col2 < - + col0
----
-3

query II rowsort
SELECT + col1 - 95 * + + col1 AS col1, col1 FROM tab2
----
-4794
51
-6298
67
-7238
77

query I rowsort
SELECT - col2 - - col1 * - + col2 + + ( - + col2 ) AS col1 FROM tab0
----
-230
-297
-3901

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 col1 FROM tab2
----
44
44
44

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 25 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + col2 AND + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT ALL + + COUNT( * ) * + MAX( DISTINCT - - 9 ) + + COUNT( * ) col1 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4838
SELECT ALL + + COUNT ( * ) * + MAX ( DISTINCT - - 9 ) + + COUNT ( * ) col1 FROM tab0 AS cor0
----
30

onlyif mysql # DIV for integer division: 
query II rowsort label-4839
SELECT ALL 35 DIV - + col2 AS col0, - col0 FROM tab2 AS cor0
----
-1
-46
0
-64
0
-75

skipif mysql # not compatible
query II rowsort label-4839
SELECT ALL 35 / - + col2 AS col0, - col0 FROM tab2 AS cor0
----
-1
-46
0
-64
0
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 - + col1 = - + 24
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - 30 * + col2 FROM tab2 cor0
----
1200
1740
690

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4842
SELECT DISTINCT - + 31 DIV + - SUM( ALL - ( 77 ) ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4842
SELECT DISTINCT - + 31 / + - SUM ( ALL - ( 77 ) ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE ( NULL >= col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4844
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + col2 - - col2 AS col0 FROM tab0
----
NULL
198
NULL
20
NULL
94

skipif mysql # not compatible
query II rowsort label-4844
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + col2 - - col2 AS col0 FROM tab0
----
NULL
198
NULL
20
NULL
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, - 8 + - col2 - - 81 * + col2 col0 FROM tab2
----
51
1832
67
4632
77
3192

query II rowsort
SELECT DISTINCT col2, col1 AS col1 FROM tab0
----
10
21
47
81
99
1

query I rowsort
SELECT ALL + 97 AS col2 FROM tab0
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT DISTINCT SUM( ALL col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4848
SELECT DISTINCT SUM ( ALL col1 ) FROM tab1
----
66

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 - - col0 BETWEEN + + 7 AND - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT ALL COUNT( * ) * + - MIN( - 28 ) AS col1 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL COUNT ( * ) * + - MIN ( - 28 ) AS col1 FROM tab2
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4851
SELECT DISTINCT CAST( - 21 AS SIGNED ) DIV COUNT( * ) + 66 AS col1, - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
59
NULL

skipif mysql # not compatible
query II rowsort label-4851
SELECT DISTINCT CAST ( - 21 AS INTEGER ) / COUNT ( * ) + 66 AS col1, - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
59
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 92 BETWEEN - col1 - - col0 + - 1 + - + 63 + - 28 * - col2 AND - 30
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT DISTINCT MAX( ALL + col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4853
SELECT DISTINCT MAX ( ALL + col2 ) FROM tab2
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4854
SELECT + - ( 40 ) DIV + 33 AS col2, + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-1
3

skipif mysql # not compatible
query II rowsort label-4854
SELECT + - ( 40 ) / + 33 AS col2, + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT DISTINCT COUNT( * ) * 35 FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-4855
SELECT DISTINCT COUNT ( * ) * 35 FROM tab1
----
105

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + 42 - col2 AND - 79 * 25
----

query I rowsort
SELECT ALL - 78 * col1 FROM tab0
----
-1638
-6318
-78

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN col2 AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4859
SELECT col1 DIV + 1 FROM tab1 WHERE NOT col2 >= 61
----
5

skipif mysql # not compatible
query I rowsort label-4859
SELECT col1 / + 1 FROM tab1 WHERE NOT col2 >= 61
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT + 17 * COUNT( * ) FROM tab0 WHERE ( col1 ) IN ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4860
SELECT + 17 * COUNT ( * ) FROM tab0 WHERE ( col1 ) IN ( - col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE ( NULL ) > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4861
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE ( NULL ) > ( NULL )
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND ( col1 ) + col1
----

query I rowsort
SELECT ALL ( + col1 ) * + col2 + + 4 AS col1 FROM tab0
----
103
214
3811

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 11 * col1 FROM tab1
----
154
517
55

query III rowsort
SELECT ALL * FROM tab1 WHERE 22 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE ( + ( col2 ) * + col2 ) NOT BETWEEN NULL AND - 39
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT DISTINCT COUNT( ( + col2 ) ) * COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4868
SELECT DISTINCT COUNT ( ( + col2 ) ) * COUNT ( * ) AS col0 FROM tab0
----
9

query I rowsort
SELECT ( col1 ) * + col1 + + col1 FROM tab2
----
2652
4556
6006

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 28 + + 82 * col0 = col2 + 63
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT DISTINCT - 90 * COUNT( * ) AS col0 FROM tab2 WHERE NOT + col1 >= - col0
----
0

skipif mysql # not compatible
query I rowsort label-4871
SELECT DISTINCT - 90 * COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col1 >= - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT DISTINCT + 91 * 71 + + MAX( ( col2 ) ) FROM tab0 WHERE NOT col2 IS NULL
----
6560

skipif mysql # not compatible
query I rowsort label-4872
SELECT DISTINCT + 91 * 71 + + MAX ( ( col2 ) ) FROM tab0 WHERE NOT col2 IS NULL
----
6560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * ( + col2 ) + col2 col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-2162
-90
-9702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 4 * 20 col2 FROM tab1
----
80

query I rowsort
SELECT - 15 + - col0 FROM tab0
----
-102
-112
-30

query I rowsort
SELECT - 49 + 47 FROM tab1
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT ALL COUNT( ALL - 86 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL COUNT ( ALL - 86 ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 WHERE ( - 1 ) = col0
----

query I rowsort
SELECT 84 + - 60 AS col2 FROM tab0
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT ( COUNT( * ) ) * MAX( DISTINCT col1 * col2 ) FROM tab1 WHERE NOT ( NULL ) > col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4880
SELECT ( COUNT ( * ) ) * MAX ( DISTINCT col1 * col2 ) FROM tab1 WHERE NOT ( NULL ) > col1
----
NULL

query I rowsort
SELECT col1 * col0 - 10 / col2 AS col0 FROM tab0 WHERE ( NULL ) <= + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4882
SELECT 20 DIV col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4882
SELECT 20 / col1 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( 82 ) + - col2 AS col2 FROM tab1 AS cor0
----
-14
14
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4885
SELECT DISTINCT - 42 FROM tab2 AS cor0 WHERE 25 * CAST( NULL AS SIGNED ) IS NULL
----
-42

skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT - 42 FROM tab2 AS cor0 WHERE 25 * CAST ( NULL AS INTEGER ) IS NULL
----
-42

query I rowsort
SELECT DISTINCT - 84 * col2 + - col1 AS col1 FROM tab2 AS cor0
----
-1983
-3437
-4939

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT DISTINCT COUNT( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT COUNT ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-4888
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT DISTINCT - ( SUM( + 19 ) ) FROM tab1 cor0 CROSS JOIN tab2
----
-171

skipif mysql # not compatible
query I rowsort label-4889
SELECT DISTINCT - ( SUM ( + 19 ) ) FROM tab1 cor0 CROSS JOIN tab2
----
-171

query I rowsort
SELECT DISTINCT + 75 * - col0 AS col1 FROM tab2 WHERE NOT ( NULL ) > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT ALL - SUM( col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL - SUM ( col2 ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT ALL + + 38 * + col2 FROM tab2 AS cor0
----
1520
2204
874

onlyif mysql # DIV for integer division: 
query I rowsort label-4893
SELECT - 17 DIV - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4893
SELECT - 17 / - col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4894
SELECT ALL + MIN( + col2 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL + MIN ( + col2 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4895
SELECT col1 DIV + 91 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4895
SELECT col1 / + 91 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT + SUM( DISTINCT col0 ) / - ( 68 ) FROM tab1 AS cor0 WHERE NOT col0 + - 69 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4896
SELECT + SUM ( DISTINCT col0 ) / - ( 68 ) FROM tab1 AS cor0 WHERE NOT col0 + - 69 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4897
SELECT ALL - col0 DIV + col1 AS col0 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL - col0 / + col1 AS col0 FROM tab0 AS cor0
----
-4
-97
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4898
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col0 + + CAST( NULL AS SIGNED ) AND col2
----

skipif mysql # not compatible
query III rowsort label-4898
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col0 + + CAST ( NULL AS INTEGER ) AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4899
SELECT ALL + col1 DIV - col2 col1 FROM tab0 cor0
----
-1
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4899
SELECT ALL + col1 / - col2 col1 FROM tab0 cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT + 64 * 36 AS col1 FROM tab2 AS cor0 WHERE ( col2 ) BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT ALL + 84 + - COUNT( * ) FROM tab2 AS cor0 WHERE ( col0 + + col1 ) IS NULL
----
84

skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL + 84 + - COUNT ( * ) FROM tab2 AS cor0 WHERE ( col0 + + col1 ) IS NULL
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT ALL - COUNT( * ) + - COUNT( * ) col1 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4902
SELECT ALL - COUNT ( * ) + - COUNT ( * ) col1 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4903
SELECT + 94 DIV + 75 FROM tab2 WHERE NOT col0 + 50 IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4903
SELECT + 94 / + 75 FROM tab2 WHERE NOT col0 + 50 IS NULL
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4904
SELECT ALL - 65 DIV COUNT( * ) * + 29 AS col0 FROM tab1
----
-609

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL - 65 / COUNT ( * ) * + 29 AS col0 FROM tab1
----
-609

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT ALL 26 * COUNT( * ) * + 71 AS col1 FROM tab2
----
5538

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL 26 * COUNT ( * ) * + 71 AS col1 FROM tab2
----
5538

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 IN ( - col1 )
----

query I rowsort
SELECT 66 * - col2 FROM tab1 WHERE NOT + 5 IS NULL
----
-3894
-4488
-6336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 col1 FROM tab0 AS cor0
----
84
84
84

query I rowsort
SELECT - col2 + + 48 AS col0 FROM tab1 AS cor0 WHERE NOT + 78 < col1
----
-11
-20
-48

query I rowsort
SELECT DISTINCT + - 63 AS col1 FROM tab1 AS cor0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col0 <> col2
----
0

skipif mysql # not compatible
query I rowsort label-4911
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col0 <> col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4912
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + col0 IN ( CAST( NULL AS SIGNED ) + col1 )
----

skipif mysql # not compatible
query III rowsort label-4912
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + col0 IN ( CAST ( NULL AS INTEGER ) + col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 32 IS NULL AND NOT ( col2 ) >= ( col1 )
----

query I rowsort
SELECT DISTINCT - + col1 * col0 * + col2 FROM tab1 AS cor0
----
-25075
-290836
-68544

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT 11 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
11

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 63 + + - col0 + col2 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT MIN( 77 ) FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4918
SELECT MIN ( 77 ) FROM tab1 AS cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 + 26 col1 FROM tab0 AS cor0 WHERE ( - col1 * col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 cor0 WHERE NOT ( - col1 ) IS NULL
----
15
87
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN ( - - col2 ) AND ( col2 - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 FROM tab1 cor0 WHERE NULL NOT BETWEEN 77 AND - 46 + - ( 54 )
----

query I rowsort
SELECT col2 + - - 31 AS col2 FROM tab2 AS cor0
----
54
71
89

query I rowsort
SELECT DISTINCT - col1 - - 85 + - + 64 + + col0 FROM tab0 AS cor0
----
-45
117
87

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( + col1 + 24 * col1 ) AND ( + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE - - 5 * col0 IS NULL
----

query I rowsort
SELECT ALL 97 * col1 FROM tab1
----
1358
4559
485

query I rowsort
SELECT ALL + col1 * - + 12 + + 71 FROM tab0
----
-181
-901
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - 28 col2 FROM tab2
----
-105
-79
-95

query I rowsort
SELECT DISTINCT + col2 * col2 + + col1 * 3 * col0 FROM tab1
----
11358
17455
4756

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT + COUNT( * ) + - 64 AS col2 FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-4931
SELECT + COUNT ( * ) + - 64 AS col2 FROM tab2
----
-61

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE ( - + col1 ) < + col2 + - col2 * 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT MAX( - col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-4933
SELECT MAX ( - col2 ) FROM tab2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4934
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT ( NULL ) NOT IN ( CAST( - col1 AS SIGNED ) / - 62 )
----
0

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) NOT IN ( CAST ( - col1 AS INTEGER ) / - 62 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + col0 ) col1, col1 AS col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT DISTINCT 36 - + col1 + - col2 * + col2 FROM tab2 AS cor0
----
-1641
-3395
-544

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 * + - ( + + col0 ) ) BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT 69 * col0 * 18 - + col0 * + col1 FROM tab1 AS cor0
----
105145
108745
62628

query III rowsort
SELECT * FROM tab2 WHERE NOT 51 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col2 * col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 * - 90 + - - 34 AS col1 FROM tab1 cor0
----
4624
7684
8224

query I rowsort
SELECT ALL + col1 * + - col2 * + + 2 AS col2 FROM tab1 AS cor0
----
-2688
-590
-6392

query I rowsort
SELECT DISTINCT - col2 * + 81 AS col1 FROM tab0 AS cor0
----
-3807
-8019
-810

query I rowsort
SELECT ALL - 37 * - col2 * - col0 AS col1 FROM tab0 cor0
----
-26085
-32190
-355311

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 + - - ( + + col2 ) * + 44 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 95 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4947
SELECT ALL - col0 DIV - 32 FROM tab1 cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-4947
SELECT ALL - col0 / - 32 FROM tab1 cor0
----
1
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4948
SELECT DISTINCT - CAST( - 89 AS SIGNED ) FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-4948
SELECT DISTINCT - CAST ( - 89 AS INTEGER ) FROM tab1 AS cor0
----
89

query I rowsort
SELECT 66 * + - 15 AS col1 FROM tab0
----
-990
-990
-990

query I rowsort
SELECT ALL col1 * + 34 FROM tab1
----
1598
170
476

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT DISTINCT MAX( ALL - + 14 ) AS col1 FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-4951
SELECT DISTINCT MAX ( ALL - + 14 ) AS col1 FROM tab2
----
-14

query I rowsort
SELECT DISTINCT + 84 * + + col1 * - + col2 AS col0 FROM tab0
----
-17640
-319788
-8316

query I rowsort
SELECT DISTINCT 11 FROM tab0 WHERE NOT ( ( NULL <= ( + + col2 ) ) )
----

query I rowsort
SELECT - col1 * - - col2 AS col1 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT + ( 54 ) * 70 AS col1 FROM tab2
----
3780
3780
3780

query III rowsort
SELECT * FROM tab0 WHERE NOT - 54 + + col0 * 57 NOT IN ( 64 )
----

query I rowsort
SELECT - 29 + + - ( + col2 ) FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN ( + col2 * - col2 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + + + 38 <> NULL
----

query II rowsort
SELECT DISTINCT + + col1, 6 AS col0 FROM tab1 AS cor0
----
14
6
47
6
5
6

query II rowsort
SELECT ALL + 99 AS col0, col1 + + + col1 AS col2 FROM tab2 AS cor0
----
99
102
99
134
99
154

onlyif mysql # aggregate syntax: 
query II rowsort label-4961
SELECT ALL + 79 AS col2, MIN( ALL - 97 ) + + + COUNT( * ) FROM tab1 AS cor0
----
79
-94

skipif mysql # not compatible
query II rowsort label-4961
SELECT ALL + 79 AS col2, MIN ( ALL - 97 ) + + + COUNT ( * ) FROM tab1 AS cor0
----
79
-94

query I rowsort
SELECT DISTINCT + 86 AS col0 FROM tab1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT DISTINCT - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4963
SELECT DISTINCT - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4964
SELECT DISTINCT - col0 + - - 26 + + 66 DIV + + col0 FROM tab1
----
-24
-59
-65

skipif mysql # not compatible
query I rowsort label-4964
SELECT DISTINCT - col0 + - - 26 + + 66 / + + col0 FROM tab1
----
-24
-59
-65

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - ( + - col1 ) + 5 + + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT NULL <= NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= col2 / 12 * + 90 * + 1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4968
SELECT DISTINCT - MAX( - col0 ) AS col0, + 12 AS col0 FROM tab2 AS cor0
----
46
12

skipif mysql # not compatible
query II rowsort label-4968
SELECT DISTINCT - MAX ( - col0 ) AS col0, + 12 AS col0 FROM tab2 AS cor0
----
46
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT - MIN( - + 45 ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-4969
SELECT - MIN ( - + 45 ) FROM tab0 AS cor0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4970
SELECT + CAST( + 85 AS SIGNED ) AS col2 FROM tab2
----
85
85
85

skipif mysql # not compatible
query I rowsort label-4970
SELECT + CAST ( + 85 AS INTEGER ) AS col2 FROM tab2
----
85
85
85

query II rowsort
SELECT col2 * - 70 * 39 AS col0, + col2 AS col2 FROM tab1
----
-161070
59
-185640
68
-262080
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col1 > - - col2 * - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4973
SELECT + COUNT( * ) FROM tab2 WHERE + col2 * + - 31 * - - CAST( NULL AS SIGNED ) >= 27
----
0

skipif mysql # not compatible
query I rowsort label-4973
SELECT + COUNT ( * ) FROM tab2 WHERE + col2 * + - 31 * - - CAST ( NULL AS INTEGER ) >= 27
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT ALL MIN( DISTINCT 63 ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL MIN ( DISTINCT 63 ) FROM tab1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4975
SELECT ALL - ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 WHERE NOT + col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 WHERE NOT + col2 IS NULL
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 3 AS col0, col0 + + col0 - + col0 FROM tab0
----
-3
15
-3
87
-3
97

query I rowsort
SELECT - col0 - - 26 FROM tab0
----
-61
-71
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4978
SELECT DISTINCT col2 + - CAST( col2 AS SIGNED ) + - col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT col2 + - CAST ( col2 AS INTEGER ) + - col1 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-4979
SELECT ALL + - COUNT( * ), 91 col1 FROM tab2 AS cor0
----
-3
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4979
SELECT ALL + - COUNT ( * ), 91 col1 FROM tab2 AS cor0
----
-3
91

query I rowsort
SELECT - col1 * + col0 + - 69 + + col1 + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-2341
-4880
-4969

query II rowsort
SELECT - - col1 AS col2, col0 * + 92 * + + ( col1 ) AS col1 FROM tab2 AS cor0
----
51
215832
67
462300
77
453376

query I rowsort
SELECT DISTINCT + - ( - - col0 ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4983
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + 81 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4983
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + 81 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4984
SELECT + + 52, - col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - CAST( + 8 AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-4984
SELECT + + 52, - col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - CAST ( + 8 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - col0 col2 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT ALL - + 91 * + col0 * + col2 FROM tab2 AS cor0
----
-232960
-395850
-96278

query II rowsort
SELECT ALL col2 * + + col2 + + ( + - col0 ), - col1 AS col0 FROM tab2 AS cor0
----
1536
-77
3289
-67
483
-51

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT col2 * + col2 / - + 51 * - col0 IS NULL
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 39 / + - col2 > + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4990
SELECT col2 - CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab0 WHERE NOT - 14 <> NULL
----

skipif mysql # not compatible
query I rowsort label-4990
SELECT col2 - CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab0 WHERE NOT - 14 <> NULL
----

query I rowsort
SELECT DISTINCT 83 * col0 * - col0 + - - col2 FROM tab2
----
-175605
-339928
-466817

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col2 + - + col0 - - 40 * col0 >= + + ( - - 76 )
----

query I rowsort
SELECT col0 + - - 6 FROM tab1
----
57
91
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4994
SELECT CAST( NULL AS SIGNED ) + - col1 - - 24 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4994
SELECT CAST ( NULL AS INTEGER ) + - col1 - - 24 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + - col2 + - 43 col1 FROM tab1
----
-4939
-5058
-6231

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT SUM( DISTINCT + col2 ) + + 1 * + - 65 * - 90 FROM tab2
----
5971

skipif mysql # not compatible
query I rowsort label-4996
SELECT SUM ( DISTINCT + col2 ) + + 1 * + - 65 * - 90 FROM tab2
----
5971

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT ALL COUNT( ALL + 65 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL COUNT ( ALL + 65 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col1 * ( - col1 ) + 98 AS col2 FROM tab2 AS cor0
----
-2503
-4391
-5831

query I rowsort
SELECT ALL - 95 * + col1 + + col2 FROM tab2 AS cor0
----
-4822
-6307
-7275

query I rowsort
SELECT + col1 + 12 FROM tab0 cor0
----
13
33
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT DISTINCT MAX( DISTINCT - + col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( col1 ) + - ( - col2 ) * + col2 NOT IN ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5001
SELECT DISTINCT MAX ( DISTINCT - + col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( col1 ) + - ( - col2 ) * + col2 NOT IN ( + col0 )
----
NULL

query I rowsort
SELECT DISTINCT - 18 AS col2 FROM tab1 cor0
----
-18

query I rowsort
SELECT + 26 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT DISTINCT - COUNT( * ) * - 27 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-5004
SELECT DISTINCT - COUNT ( * ) * - 27 FROM tab0
----
81

query III rowsort
SELECT * FROM tab1 WHERE + col0 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 * + - col0 * + col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5007
SELECT 78 - - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5007
SELECT 78 - - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + - ( 0 ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT DISTINCT - MIN( DISTINCT - col0 ) + ( - - COUNT( * ) ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT - MIN ( DISTINCT - col0 ) + ( - - COUNT ( * ) ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
100

query I rowsort
SELECT ALL + 96 - + col1 AS col0 FROM tab0 AS cor0
----
15
75
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT DISTINCT - MIN( 46 ) - + - 47 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5011
SELECT DISTINCT - MIN ( 46 ) - + - 47 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5012
SELECT ALL - 26 + + + 77 AS col0, + CAST( - 34 AS SIGNED ) - col1 AS col2 FROM tab0 AS cor0
----
51
-115
51
-35
51
-55

skipif mysql # not compatible
query II rowsort label-5012
SELECT ALL - 26 + + + 77 AS col0, + CAST ( - 34 AS INTEGER ) - col1 AS col2 FROM tab0 AS cor0
----
51
-115
51
-35
51
-55

query I rowsort
SELECT + col1 + + - 76 AS col0 FROM tab2 AS cor0
----
-25
-9
1

query I rowsort
SELECT DISTINCT col2 - - col1 FROM tab2 cor0
----
117
125
74

query I rowsort
SELECT DISTINCT - col1 * + col2 + - 20 AS col0 FROM tab1 cor0
----
-1364
-315
-3216

query I rowsort
SELECT DISTINCT 24 - col1 * + + col2 + 8 FROM tab0
----
-178
-3775
-67

query II rowsort
SELECT - 77 + + 76 AS col2, col1 * col1 FROM tab2
----
-1
2601
-1
4489
-1
5929

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5018
SELECT - CAST( NULL AS DECIMAL ) + 90 + - + ( 74 ) * - 95 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5018
SELECT - CAST ( NULL AS REAL ) + 90 + - + ( 74 ) * - 95 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 - col1 col0 FROM tab2
----
-1109
-2637
-4417

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 col1 FROM tab1
----
31
31
31

query III rowsort
SELECT * FROM tab0 WHERE - col0 + 17 BETWEEN col2 AND NULL
----

query I rowsort
SELECT DISTINCT + col1 + - col2 + - col2 * + col2 * - 61 FROM tab1 WHERE NOT - col0 <= + 17
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 col1 FROM tab0
----
59
59
59

query I rowsort
SELECT ALL - 47 AS col0 FROM tab2 cor0
----
-47
-47
-47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + - col2 >= NULL OR ( col2 * - col1 + - 17 ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5026
SELECT DISTINCT CAST( 62 AS SIGNED ) AS col0 FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT CAST ( 62 AS INTEGER ) AS col0 FROM tab0
----
62

query I rowsort
SELECT + col1 * + 47 AS col1 FROM tab0
----
3807
47
987

query I rowsort
SELECT DISTINCT ( + 71 ) + - 5 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
66

query II rowsort
SELECT DISTINCT + col2 AS col2, col2 + col2 - - - 57 FROM tab2 AS cor0
----
23
-11
40
23
58
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT DISTINCT COUNT( ALL - 78 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT COUNT ( ALL - 78 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5032
SELECT 13 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST( - col0 AS SIGNED ) AND - col1
----

skipif mysql # not compatible
query I rowsort label-5032
SELECT 13 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST ( - col0 AS INTEGER ) AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT DISTINCT MIN( DISTINCT - col0 ) col2 FROM tab2
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5033
SELECT DISTINCT MIN ( DISTINCT - col0 ) col2 FROM tab2
----
-75

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE + col0 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5035
SELECT SUM( - - col0 ) * - + COUNT( * ) DIV - COUNT( * ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-5035
SELECT SUM ( - - col0 ) * - + COUNT ( * ) / - COUNT ( * ) FROM tab1
----
227

query I rowsort
SELECT ( - - col0 ) FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT + col0 * + - 87 AS col1 FROM tab1
----
-4437
-7395
-7917

query III rowsort
SELECT * FROM tab0 WHERE - ( + - col1 ) >= + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5039
SELECT - 96 DIV + col2 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5039
SELECT - 96 / + col2 AS col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col2 * - - col0 + + col1 AS col1 FROM tab2
----
1109
2637
4417

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL <> col1 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT ALL + MAX( DISTINCT - - col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5042
SELECT ALL + MAX ( DISTINCT - - col1 ) AS col0 FROM tab0 AS cor0
----
81

query I rowsort
SELECT col0 + ( + col0 ) * - ( - 78 ) * + 9 FROM tab0 AS cor0
----
10545
61161
68191

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5044
SELECT ALL + CAST( NULL AS DECIMAL ) / - col0 + + + 25 * + ( - 78 ) + - 2 + + + col0 * - col2 * col1 * 79 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL + CAST ( NULL AS REAL ) / - col0 + + + 25 * + ( - 78 ) + - 2 + + + col0 * - col2 * col1 * 79 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 17 * + col1 AS col1 FROM tab0
----
-1377
-17
-357

onlyif mysql # DIV for integer division: 
query I rowsort label-5046
SELECT - ( col1 ) + - 55 DIV col0 FROM tab1
----
-15
-47
-5

skipif mysql # not compatible
query I rowsort label-5046
SELECT - ( col1 ) + - 55 / col0 FROM tab1
----
-15
-47
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-5047
SELECT + COUNT( * ), - COUNT( * ) AS col1 FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-5047
SELECT + COUNT ( * ), - COUNT ( * ) AS col1 FROM tab0
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5048
SELECT ALL - col1 / + CAST( NULL AS SIGNED ) + + - col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5048
SELECT ALL - col1 / + CAST ( NULL AS INTEGER ) + + - col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + + col2 * - + col2 * + - 60 - col2 + - + col2 FROM tab1 AS cor0
----
208742
277304
552768

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5051
SELECT ALL + - col0 * - + col2 - + CAST( NULL AS DECIMAL ), col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-5051
SELECT ALL + - col0 * - + col2 - + CAST ( NULL AS REAL ), col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT - col0 - - ( - col1 ) * + + ( + + col0 ) + - - 60 + - + col1 FROM tab0 AS cor0
----
-1251
-135
-1875

query I rowsort
SELECT DISTINCT col2 - + + col2 - 89 + - col0 * 54 AS col1 FROM tab2 AS cor0
----
-2573
-3545
-4139

query I rowsort
SELECT 61 - - col0 AS col1 FROM tab1 AS cor0
----
112
146
152

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 NOT BETWEEN - col1 AND col0 + + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT ALL - ( ( COUNT( * ) ) ) AS col2 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5056
SELECT ALL - ( ( COUNT ( * ) ) ) AS col2 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT ALL + MAX( ALL + col0 ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-5057
SELECT ALL + MAX ( ALL + col0 ) FROM tab0 cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT ( - COUNT( + 22 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5058
SELECT ( - COUNT ( + 22 ) ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + ( + 57 ) AS col2 FROM tab1 AS cor0
----
57

query III rowsort
SELECT ALL + col1 AS col0, 59, col2 AS col1 FROM tab0 AS cor0
----
9 values hashing to e983aa99b527d245a0df0c9461e6daf3

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT - 92 * + col1 AS col0 FROM tab1
----
-1288
-4324
-460

query I rowsort
SELECT DISTINCT - 19 * + + col0 + - col0 FROM tab2 AS cor0
----
-1280
-1500
-920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 14 col1 FROM tab1 AS cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT DISTINCT + - COUNT( DISTINCT ( - - 85 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT + - COUNT ( DISTINCT ( - - 85 ) ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT ALL + ( + COUNT( * ) ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5067
SELECT ALL + ( + COUNT ( * ) ) col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN + col1 AND NULL
----

query I rowsort
SELECT ALL ( - - ( - + col1 ) ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > - 33 * + - col1
----

query I rowsort
SELECT DISTINCT - ( - + col0 ) AS col2 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL col2 + + - 21 FROM tab1
----
38
47
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT ALL - COUNT( * ) FROM tab0, tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL - COUNT ( * ) FROM tab0, tab0 cor0
----
-9

query I rowsort
SELECT ALL + col0 + + col1 - + col0 + + ( - col0 ) + - - 33 AS col0 FROM tab2
----
25
38
46

query I rowsort
SELECT - col1 * + + col0 AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT - col1 FROM tab1 cor0 WHERE ( NULL ) <= - 9
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 col0 FROM tab1 WHERE col2 IN ( - - 25 )
----

query I rowsort
SELECT col2 - - - 10 FROM tab0
----
0
37
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 30 * + + col2 + + + col1 col1 FROM tab0 cor0
----
-1329
-279
-2969

query I rowsort
SELECT DISTINCT - + ( + 22 ) * col0 FROM tab2 AS cor0
----
-1012
-1408
-1650

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT ALL + 57 * + - COUNT( * ) FROM tab2 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-5082
SELECT ALL + 57 * + - COUNT ( * ) FROM tab2 AS cor0
----
-171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5083
SELECT DISTINCT + - CAST( + 91 AS SIGNED ) / + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5083
SELECT DISTINCT + - CAST ( + 91 AS INTEGER ) / + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT - MIN( DISTINCT + 50 ) AS col0 FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-5084
SELECT - MIN ( DISTINCT + 50 ) AS col0 FROM tab1
----
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-5085
SELECT - 20, + 83 - - col2 + - col2 DIV col1 AS col0 FROM tab1
----
-20
131
-20
150
-20
173

skipif mysql # not compatible
query II rowsort label-5085
SELECT - 20, + 83 - - col2 + - col2 / col1 AS col0 FROM tab1
----
-20
131
-20
150
-20
173

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > + col2
----

query II rowsort
SELECT - col1 AS col1, + col0 * + - 72 FROM tab1
----
-14
-3672
-47
-6552
-5
-6120

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT ALL - - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5088
SELECT ALL - - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5089
SELECT ALL - CAST( col2 AS SIGNED ) + + col1 FROM tab1
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-5089
SELECT ALL - CAST ( col2 AS INTEGER ) + + col1 FROM tab1
----
-21
-54
-82

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( - 0 ) > NULL
----

query I rowsort
SELECT DISTINCT - + col0 + + ( + col0 ) * - + col0 + + col1 AS col2 FROM tab0 cor0
----
-159
-7635
-9505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5093
SELECT ALL - CAST( - col0 AS SIGNED ) + col0 FROM tab2 AS cor0
----
128
150
92

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL - CAST ( - col0 AS INTEGER ) + col0 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5094
SELECT COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
6

query II rowsort
SELECT col0, + col0 + col2 AS col0 FROM tab1 AS cor0
----
51
147
85
144
91
159

onlyif mysql # aggregate syntax: 
query II rowsort label-5096
SELECT ALL - 29, 26 * - - COUNT( * ) col1 FROM tab1 AS cor0
----
-29
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5096
SELECT ALL - 29, 26 * - - COUNT ( * ) col1 FROM tab1 AS cor0
----
-29
78

query I rowsort
SELECT + + 15 * col0 FROM tab0 AS cor0
----
1305
1455
225

onlyif mysql # DIV for integer division: 
query I rowsort label-5098
SELECT + 82 DIV 71 - + 52 FROM tab2 AS cor0
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-5098
SELECT + 82 / 71 - + 52 FROM tab2 AS cor0
----
-51
-51
-51

query III rowsort
SELECT * FROM tab0 WHERE + 89 < - col2 + + 8 - + col2
----

query I rowsort
SELECT ALL + 5 * + col2 + col2 + col0 FROM tab1
----
439
499
627

query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5102
SELECT ALL + 4 * 99 / - col0 + ( + col1 ) * + + col2 - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5102
SELECT ALL + 4 * 99 / - col0 + ( + col1 ) * + + col2 - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + + 27 - + + col2 - - 45 * + col0 AS col0 FROM tab1 AS cor0
----
2240
3798
4101

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 45 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT + MIN( + col1 ) * + - COUNT( * ) + - 17 FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-5105
SELECT + MIN ( + col1 ) * + - COUNT ( * ) + - 17 FROM tab1 AS cor0
----
-32

query I rowsort
SELECT + col2 + - 92 AS col2 FROM tab2
----
-34
-52
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5107
SELECT DISTINCT + CAST( - + col0 AS SIGNED ) * - col0 - 28 col1 FROM tab2
----
2088
4068
5597

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5107
SELECT DISTINCT + CAST ( - + col0 AS INTEGER ) * - col0 - 28 col1 FROM tab2
----
2088
4068
5597

query II rowsort
SELECT DISTINCT col2 AS col0, + col0 AS col0 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5109
SELECT DISTINCT - + 74 * MIN( - CAST( + col2 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
7104

skipif mysql # not compatible
query I rowsort label-5109
SELECT DISTINCT - + 74 * MIN ( - CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
7104

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT ( - COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5110
SELECT ( - COUNT ( * ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT + COUNT( + col2 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5111
SELECT + COUNT ( + col2 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT ALL ( COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT - + MAX( 43 ) FROM tab0 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-5113
SELECT - + MAX ( 43 ) FROM tab0 AS cor0
----
-43

query I rowsort
SELECT - 44 * + col2 + + col0 * - col1 FROM tab0 AS cor0
----
-2267
-3283
-4453

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 36 * + + 18 col1 FROM tab1
----
-33048
-55080
-58968

query I rowsort
SELECT DISTINCT + 18 * + ( ( + - 65 ) ) FROM tab1
----
-1170

query II rowsort
SELECT ALL 95 * - + col1 AS col1, + col0 * ( - - 8 ) AS col1 FROM tab1
----
-1330
408
-4465
728
-475
680

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5118
SELECT ALL - ( + 31 ) DIV col0 + - CAST( + + 63 AS SIGNED ) AS col0 FROM tab0
----
-63
-63
-65

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL - ( + 31 ) / col0 + - CAST ( + + 63 AS INTEGER ) AS col0 FROM tab0
----
-63
-63
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-5119
SELECT + 61 DIV 83 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5119
SELECT + 61 / 83 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT DISTINCT + 5 * + MAX( + - col0 ) * - ( + + 80 ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
20403

skipif mysql # not compatible
query I rowsort label-5120
SELECT DISTINCT + 5 * + MAX ( + - col0 ) * - ( + + 80 ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
20403

onlyif mysql # DIV for integer division: 
query I rowsort label-5121
SELECT ALL + + col1 DIV - + 37 + + col2 FROM tab1 AS cor0
----
59
67
96

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL + + col1 / - + 37 + + col2 FROM tab1 AS cor0
----
59
67
96

query I rowsort
SELECT ALL 57 + + + col1 FROM tab2 WHERE NOT col0 <= - 13
----
108
124
134

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 71 col0, col0 FROM tab0
----
-71
15
-71
87
-71
97

query I rowsort
SELECT 12 * - - col2 * - + col2 FROM tab0
----
-117612
-1200
-26508

query I rowsort
SELECT - - col2 * - 6 FROM tab0 AS cor0
----
-282
-594
-60

query I rowsort
SELECT col2 * - - col2 AS col2 FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 AS cor0 WHERE NULL <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT - + ( + + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5128
SELECT - + ( + + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + + 69 AS col2 FROM tab1 AS cor0
----
69

query I rowsort
SELECT + 39 + col0 * - col0 + + col2 FROM tab1 AS cor0
----
-2466
-7127
-8174

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT ALL - SUM( ALL + 47 ) * - 61 FROM tab0 AS cor0 WHERE NOT col1 * - 81 * + col2 <> col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL - SUM ( ALL + 47 ) * - 61 FROM tab0 AS cor0 WHERE NOT col1 * - 81 * + col2 <> col2
----
NULL

query I rowsort
SELECT + col2 FROM tab1 WHERE - ( + ( - + col2 ) ) IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT ALL + 85 + - - ( - SUM( - 55 ) ) * - + 46 * 46 FROM tab0
----
-349055

skipif mysql # not compatible
query I rowsort label-5133
SELECT ALL + 85 + - - ( - SUM ( - 55 ) ) * - + 46 * 46 FROM tab0
----
-349055

query I rowsort
SELECT - col0 + - 94 AS col1 FROM tab0
----
-109
-181
-191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5135
SELECT DISTINCT 86 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5135
SELECT DISTINCT 86 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ( - col1 ) + + col0 AS col2 FROM tab1
----
37
44
80

query I rowsort
SELECT - ( - col1 ) + 93 + + 66 AS col1 FROM tab0
----
160
180
240

query I rowsort
SELECT ALL 4 + col2 AS col0 FROM tab2
----
27
44
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5139
SELECT DISTINCT 31 + + COUNT( * ) DIV - 67 AS col2 FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-5139
SELECT DISTINCT 31 + + COUNT ( * ) / - 67 AS col2 FROM tab1
----
31

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 55 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5141
SELECT - 22, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-22
3

skipif mysql # not compatible
query II rowsort label-5141
SELECT - 22, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-22
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 / - + 77 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5143
SELECT - CAST( - col2 AS SIGNED ), + 5 AS col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
59
5
68
5
96
5

skipif mysql # not compatible
query II rowsort label-5143
SELECT - CAST ( - col2 AS INTEGER ), + 5 AS col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
59
5
68
5
96
5

query I rowsort
SELECT 55 - + col0 + col0 AS col0 FROM tab2
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT ALL ( COUNT( * ) ) AS col0 FROM tab2 WHERE NOT - + col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5145
SELECT ALL ( COUNT ( * ) ) AS col0 FROM tab2 WHERE NOT - + col0 = NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + 46 * - 68 NOT BETWEEN col1 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT ALL MIN( + - col1 ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5147
SELECT ALL MIN ( + - col1 ) FROM tab1 cor0
----
-47

query I rowsort
SELECT DISTINCT + 38 + + + col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
119
39
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5149
SELECT DISTINCT - - CAST( + + COUNT( * ) AS SIGNED ), 5 AS col0 FROM tab0 AS cor0
----
3
5

skipif mysql # not compatible
query II rowsort label-5149
SELECT DISTINCT - - CAST ( + + COUNT ( * ) AS INTEGER ), 5 AS col0 FROM tab0 AS cor0
----
3
5

query I rowsort
SELECT DISTINCT + - 36 FROM tab2 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT MAX( 45 ) FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-5151
SELECT MAX ( 45 ) FROM tab1 AS cor0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5152
SELECT ALL + CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5152
SELECT ALL + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + - col2 ) FROM tab2
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT MAX( DISTINCT + 4 ) FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-5155
SELECT MAX ( DISTINCT + 4 ) FROM tab1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT SUM( - + 68 ) AS col0 FROM tab0
----
-204

skipif mysql # not compatible
query I rowsort label-5156
SELECT SUM ( - + 68 ) AS col0 FROM tab0
----
-204

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5157
SELECT DISTINCT + CAST( ( + + col2 ) AS SIGNED ), col1 FROM tab1
----
59
5
68
47
96
14

skipif mysql # not compatible
query II rowsort label-5157
SELECT DISTINCT + CAST ( ( + + col2 ) AS INTEGER ), col1 FROM tab1
----
59
5
68
47
96
14

query I rowsort
SELECT ( - - col2 ) AS col0 FROM tab2
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= + 68
----

query I rowsort
SELECT DISTINCT 77 * col1 * + 77 FROM tab2
----
302379
397243
456533

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT SUM( DISTINCT - col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-5161
SELECT SUM ( DISTINCT - col0 ) AS col1 FROM tab0
----
-199

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5163
SELECT DISTINCT 4 DIV - + col0 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5163
SELECT DISTINCT 4 / - + col0 AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5164
SELECT ALL * FROM tab1 WHERE - 16 BETWEEN NULL AND - CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5164
SELECT ALL * FROM tab1 WHERE - 16 BETWEEN NULL AND - CAST ( col2 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col1 + - col0 <> + - col0
----

query II rowsort
SELECT ALL - + 2, - col2 AS col1 FROM tab0 AS cor0
----
-2
-10
-2
-47
-2
-99

query II rowsort
SELECT - col0 * + - col0 + + col1, + col0 + - col1 AS col1 FROM tab0 AS cor0
----
306
-66
7590
66
9410
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5168
SELECT - 87 DIV col2 FROM tab2 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5168
SELECT - 87 / col2 FROM tab2 AS cor0
----
-1
-2
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) = - 46
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * + col2 + + col2 col2, 11 * - 79 AS col0 FROM tab1 WHERE NULL NOT BETWEEN + col0 AND col1
----

query I rowsort
SELECT DISTINCT ( + 91 ) * - + col1 AS col2 FROM tab2
----
-4641
-6097
-7007

query II rowsort
SELECT + col0 + - - col0, col0 AS col1 FROM tab0 AS cor0
----
174
87
194
97
30
15

query I rowsort
SELECT ALL + + 66 + col2 AS col1 FROM tab1 AS cor0
----
125
134
162

query II rowsort
SELECT ALL - 55 + + - col0 + - 70 + - col0 AS col0, - col0 AS col0 FROM tab0 cor0
----
-155
-15
-299
-87
-319
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT ALL SUM( DISTINCT + 11 ) col2 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5175
SELECT ALL SUM ( DISTINCT + 11 ) col2 FROM tab2 AS cor0
----
11

query I rowsort
SELECT + 62 * col0 AS col2 FROM tab2 AS cor0
----
2852
3968
4650

query I rowsort
SELECT col0 * - col2 * + 39 * - - col0 FROM tab0 AS cor0
----
-2951910
-36328149
-412425

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT + COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5178
SELECT + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT 96 * 98 * + 5 AS col1 FROM tab1
----
47040

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT - COUNT( DISTINCT col2 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5180
SELECT - COUNT ( DISTINCT col2 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT ALL - ( - COUNT( * ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5181
SELECT ALL - ( - COUNT ( * ) ) FROM tab0
----
3

query I rowsort
SELECT ALL - - 16 + + col2 FROM tab2 WHERE NOT ( NOT col0 BETWEEN 46 + - 96 AND - + col1 )
----

query II rowsort
SELECT ALL col0, 65 FROM tab2
----
46
65
64
65
75
65

query I rowsort
SELECT ALL + - 53 FROM tab1 WHERE NOT + 41 NOT BETWEEN + col1 AND NULL
----

query I rowsort
SELECT - 42 - + col0 FROM tab1
----
-127
-133
-93

query I rowsort
SELECT ALL col0 * - col0 * + col0 AS col0 FROM tab1
----
-132651
-614125
-753571

query I rowsort
SELECT ALL + col0 * 74 FROM tab0 WHERE NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5189
SELECT 95 / ( + col2 ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5189
SELECT 95 / ( + col2 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 56 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT DISTINCT + COUNT( - 16 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5191
SELECT DISTINCT + COUNT ( - 16 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT - COUNT( * ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5192
SELECT - COUNT ( * ) AS col2 FROM tab0 cor0
----
-3

query II rowsort
SELECT col1 AS col1, - col1 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, + 95 * - 27 AS col1 FROM tab2 AS cor0
----
-46
-2565
-64
-2565
-75
-2565

query I rowsort
SELECT DISTINCT - + col1 * + 3 + 46 AS col1 FROM tab2 AS cor0 WHERE 34 / ( - col2 ) + - col2 > - + col0 - - + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - 84 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5197
SELECT + + CAST( + COUNT( * ) AS SIGNED ), 80 AS col2 FROM tab0 AS cor0
----
3
80

skipif mysql # not compatible
query II rowsort label-5197
SELECT + + CAST ( + COUNT ( * ) AS INTEGER ), 80 AS col2 FROM tab0 AS cor0
----
3
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT DISTINCT - + COUNT( * ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5198
SELECT DISTINCT - + COUNT ( * ) col0 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 12 col1 FROM tab0 AS cor0
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT + MIN( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5200
SELECT + MIN ( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 91 < NULL
----

query II rowsort
SELECT ALL - - ( - col1 ) AS col1, - 51 AS col0 FROM tab0 cor0
----
-1
-51
-21
-51
-81
-51

query I rowsort
SELECT DISTINCT col0 + + 11 AS col2 FROM tab0
----
108
26
98

query I rowsort
SELECT ALL col1 * + 21 + - - col0 FROM tab0
----
118
1716
528

query I rowsort
SELECT col0 * col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT + COUNT( * ) + - MAX( ALL col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5206
SELECT + COUNT ( * ) + - MAX ( ALL col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL = NULL
----
NULL

query I rowsort
SELECT DISTINCT - + 94 * + col1 * col0 * + - col1 FROM tab2 cor0
----
11246724
31647450
35668864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5208
SELECT ALL CAST( NULL AS SIGNED ) + + 42 * - - COUNT( * ) / - 99 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL CAST ( NULL AS INTEGER ) + + 42 * - - COUNT ( * ) / - 99 AS col2 FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT col0 + - col1 * - col1 AS col0, + col1 + + + ( + - col0 ) + - ( + col0 ) FROM tab0
----
528
-153
6576
51
98
-193

query I rowsort
SELECT ALL + col1 * + 94 AS col2 FROM tab2 AS cor0
----
4794
6298
7238

query I rowsort
SELECT - - col2 + - col0 * - ( - 70 ) AS col1 FROM tab0 AS cor0
----
-1003
-6080
-6691

query I rowsort
SELECT ALL + 18 * - 23 * - ( - col0 ) AS col0 FROM tab0 AS cor0
----
-36018
-40158
-6210

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) = + + 74
----

query II rowsort
SELECT ALL + col2 * + + 44 AS col2, 8 FROM tab0
----
2068
8
4356
8
440
8

query II rowsort
SELECT DISTINCT 5 + - col0, col2 AS col2 FROM tab1
----
-46
96
-80
59
-86
68

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 13 * - col0 + 89 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 9 NOT IN ( - col1, - col2 * - + 28, + + 11, - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5217
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 9 NOT IN ( - col1, - col2 * - + 28, + + 11, - col2 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, + 46 col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-51
46
-85
46
-91
46

query I rowsort
SELECT - 81 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - - col1 col0 FROM tab0 AS cor0
----
-210
-3807
-99

query II rowsort
SELECT DISTINCT 40 AS col0, + col2 AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT DISTINCT + MIN( ALL col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5222
SELECT DISTINCT + MIN ( ALL col1 ) AS col0 FROM tab1 AS cor0
----
5

query II rowsort
SELECT ALL - col2 AS col2, ( + - col2 ) + col1 AS col0 FROM tab0 cor0
----
-10
11
-47
34
-99
-98

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 * - 44 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT - COUNT( + + 71 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5225
SELECT - COUNT ( + + 71 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 - col2 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 20 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5227
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 cor0
----
3

query II rowsort
SELECT col1 * - col2 AS col1, col0 FROM tab1
----
-1344
51
-295
85
-3196
91

query III rowsort
SELECT - col1, + col1 * 82 * col2 AS col2, + + col1 FROM tab1
----
9 values hashing to cd91d49e5c3300627c31314eb373953d

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT ALL SUM( DISTINCT - + 33 ) FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-5230
SELECT ALL SUM ( DISTINCT - + 33 ) FROM tab0
----
-33

query II rowsort
SELECT - 14 AS col1, - col0 AS col2 FROM tab0
----
-14
-15
-14
-87
-14
-97

query II rowsort
SELECT + col0 AS col2, - col2 FROM tab1
----
51
-96
85
-59
91
-68

query II rowsort
SELECT - col0, - ( 93 ) AS col2 FROM tab0
----
-15
-93
-87
-93
-97
-93

query II rowsort
SELECT - col1, + col2 * - + col2 + + col0 * + - col2 AS col0 FROM tab1
----
-14
-14112
-47
-10812
-5
-8496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 1 + + - col1 col0 FROM tab0 AS cor0
----
-2
-22
-82

query I rowsort
SELECT DISTINCT - + col0 * - - col0 AS col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5237
SELECT ALL col0 AS col2, col1 - 69 * - 61, + col0 - - CAST( + - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
9 values hashing to 8c482238ec9ba48f6b59468b48da742d

skipif mysql # not compatible
query III rowsort label-5237
SELECT ALL col0 AS col2, col1 - 69 * - 61, + col0 - - CAST ( + - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
9 values hashing to 8c482238ec9ba48f6b59468b48da742d

query I rowsort
SELECT - - 6 + - col1 FROM tab0 AS cor0
----
-15
-75
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT ALL + + MAX( ALL + + col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5239
SELECT ALL + + MAX ( ALL + + col1 ) AS col2 FROM tab0 AS cor0
----
81

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab0 WHERE NOT + - 4 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 + + 27 FROM tab0 AS cor0
----
-60
-70
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5242
SELECT DISTINCT + + 72 + 16 + CAST( - 86 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5242
SELECT DISTINCT + + 72 + 16 + CAST ( - 86 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
2

query I rowsort
SELECT ALL 88 - 43 FROM tab0
----
45
45
45

query I rowsort
SELECT ALL + ( 2 ) + + 5 AS col1 FROM tab1
----
7
7
7

query I rowsort
SELECT 27 * - col1 FROM tab0
----
-2187
-27
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT ALL + SUM( DISTINCT - - col2 ) * COUNT( * ) AS col2 FROM tab2
----
363

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL + SUM ( DISTINCT - - col2 ) * COUNT ( * ) AS col2 FROM tab2
----
363

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5247
SELECT ALL + SUM( ALL + col0 ) DIV - ( 82 ) AS col0, 23 + - MIN( DISTINCT - 38 ) + + MIN( DISTINCT + - col2 ) DIV - SUM( - + col1 ) FROM tab1 AS cor0
----
-2
60

skipif mysql # not compatible
query II rowsort label-5247
SELECT ALL + SUM ( ALL + col0 ) / - ( 82 ) AS col0, 23 + - MIN ( DISTINCT - 38 ) + + MIN ( DISTINCT + - col2 ) / - SUM ( - + col1 ) FROM tab1 AS cor0
----
-2
60

query II rowsort
SELECT col2 AS col2, - col1 * + + ( + col1 ) FROM tab2 AS cor0
----
23
-2601
40
-5929
58
-4489

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT MIN( 15 ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-5249
SELECT MIN ( 15 ) FROM tab0 cor0
----
15

query I rowsort
SELECT ALL + - col0 * - + col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5251
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) * 8 + + col2 > col0
----

skipif mysql # not compatible
query I rowsort label-5251
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) * 8 + + col2 > col0
----

query I rowsort
SELECT ALL - col1 + + + 82 - col0 AS col2 FROM tab0 AS cor0
----
-14
-16
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5253
SELECT col0 * + + ( - col2 ) / - col0 + + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5253
SELECT col0 * + + ( - col2 ) / - col0 + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 69 * + + 12 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT ( - - COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5255
SELECT ( - - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5256
SELECT DISTINCT + - CAST( - - 56 AS SIGNED ) DIV ( - col0 ) AS col0, col0 + col2 + col0 AS col1 FROM tab0 AS cor0
----
0
184
0
293
3
77

skipif mysql # not compatible
query II rowsort label-5256
SELECT DISTINCT + - CAST ( - - 56 AS INTEGER ) / ( - col0 ) AS col0, col0 + col2 + col0 AS col1 FROM tab0 AS cor0
----
0
184
0
293
3
77

query II rowsort
SELECT - col0 * - col2, col0 AS col0 FROM tab0 AS cor0
----
705
15
870
87
9603
97

query I rowsort
SELECT ALL col0 + - 59 FROM tab0
----
-44
28
38

query I rowsort
SELECT DISTINCT col0 + - + ( - col0 ) FROM tab2
----
128
150
92

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT - COUNT( * ) + - ( - + COUNT( DISTINCT 10 ) ) AS col1 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-5261
SELECT - COUNT ( * ) + - ( - + COUNT ( DISTINCT 10 ) ) AS col1 FROM tab0
----
-2

query I rowsort
SELECT + 30 AS col2 FROM tab1 AS cor0 WHERE col0 <> NULL
----

query I rowsort
SELECT ALL - - ( col0 ) AS col0 FROM tab2 cor0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= + 4 + + col2 * + col1 / + col2 + + + ( - col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 NOT BETWEEN 45 AND NULL )
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT SUM( ALL - col1 ) - + 12 FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-5266
SELECT SUM ( ALL - col1 ) - + 12 FROM tab1
----
-78

query I rowsort
SELECT DISTINCT 95 * - col0 - + 64 FROM tab0 cor0
----
-1489
-8329
-9279

query II rowsort
SELECT ALL + 55, col2 * - col0 AS col1 FROM tab1 AS cor0
----
55
-4896
55
-5015
55
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT - SUM( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-5269
SELECT - SUM ( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
-121

query III rowsort
SELECT * FROM tab1 WHERE NOT - 47 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 66 AS col0 FROM tab0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT DISTINCT MIN( DISTINCT - - col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5272
SELECT DISTINCT MIN ( DISTINCT - - col1 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5273
SELECT DISTINCT COUNT( + col0 ) AS col2, COUNT( ALL + + col0 ) + MAX( DISTINCT + - col0 ) AS col1 FROM tab2
----
3
-43

skipif mysql # not compatible
query II rowsort label-5273
SELECT DISTINCT COUNT ( + col0 ) AS col2, COUNT ( ALL + + col0 ) + MAX ( DISTINCT + - col0 ) AS col1 FROM tab2
----
3
-43

query I rowsort
SELECT ALL - 6 AS col1 FROM tab0
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT ALL + 13 * - ( - + COUNT( * ) ) FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-5275
SELECT ALL + 13 * - ( - + COUNT ( * ) ) FROM tab1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT - 30 * - + COUNT( * ) AS col0 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-5276
SELECT - 30 * - + COUNT ( * ) AS col0 FROM tab2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT ALL 18 * - - COUNT( * ) AS col1 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL 18 * - - COUNT ( * ) AS col1 FROM tab1
----
54

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT + col2 * + 59 AS col2 FROM tab0
----
2773
5841
590

onlyif mysql # DIV for integer division: 
query I rowsort label-5280
SELECT 47 DIV - 67 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5280
SELECT 47 / - 67 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT ALL 45 * MIN( + 93 ) AS col2 FROM tab0
----
4185

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL 45 * MIN ( + 93 ) AS col2 FROM tab0
----
4185

query I rowsort
SELECT ALL col2 * - + col1 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT ALL + - col1 * col2 - col0 AS col2 FROM tab2 AS cor0
----
-1219
-3144
-3961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col0 ) col1 FROM tab0 cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT - MIN( DISTINCT col0 ) AS col1 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5285
SELECT - MIN ( DISTINCT col0 ) AS col1 FROM tab1 cor0
----
-51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5287
SELECT ALL CAST( NULL AS SIGNED ) * + 98 * - - 61 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL CAST ( NULL AS INTEGER ) * + 98 * - - 61 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT - MAX( ALL - - 2 ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-5288
SELECT - MAX ( ALL - - 2 ) FROM tab1
----
-2

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= 83 + 53
----

query II rowsort
SELECT 55, 62 * ( 55 ) AS col1 FROM tab1
----
55
3410
55
3410
55
3410

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT - - MAX( - + 83 ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-83

skipif mysql # not compatible
query I rowsort label-5292
SELECT - - MAX ( - + 83 ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-83

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT DISTINCT + MIN( - + 16 ) AS col0 FROM tab0 cor0
----
-16

skipif mysql # not compatible
query I rowsort label-5294
SELECT DISTINCT + MIN ( - + 16 ) AS col0 FROM tab0 cor0
----
-16

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 >= + 52 + + + col0 * - + col0 + 59
----

query I rowsort
SELECT DISTINCT ( - 54 ) FROM tab0 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5297
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT - + 59, col2 AS col0 FROM tab0 AS cor0
----
-59
10
-59
47
-59
99

query I rowsort
SELECT + ( + 92 ) FROM tab1 cor0
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT DISTINCT + COUNT( * ) * - MIN( - - 37 ) FROM tab2
----
-111

skipif mysql # not compatible
query I rowsort label-5300
SELECT DISTINCT + COUNT ( * ) * - MIN ( - - 37 ) FROM tab2
----
-111

onlyif mysql # DIV for integer division: 
query I rowsort label-5301
SELECT - col1 DIV + 28 col0 FROM tab0
----
-2
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5301
SELECT - col1 / + 28 col0 FROM tab0
----
-2
0
0

query I rowsort
SELECT DISTINCT col0 + 9 + col2 FROM tab2 AS cor0
----
113
142
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT + 64 * + 8 * + 66 + + COUNT( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0 WHERE col1 / - - 22 * ( + 52 ) IS NULL
----
33792

skipif mysql # not compatible
query I rowsort label-5303
SELECT + 64 * + 8 * + 66 + + COUNT ( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0 WHERE col1 / - - 22 * ( + 52 ) IS NULL
----
33792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5304
SELECT MIN( col2 ) + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5304
SELECT MIN ( col2 ) + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 87 AS col1 FROM tab2 AS cor0
----
-87

query I rowsort
SELECT - col2 + + col2 - + 46 * + col2 FROM tab1 WHERE ( NULL > - 12 + + 47 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 + - - 99 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 73dfaab5bffad64399ffa17616b9603e

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5309
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5309
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT - ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5310
SELECT - ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT + col1, - col2 FROM tab0 cor0
----
1
-99
21
-10
81
-47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT DISTINCT + SUM( col2 ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-5313
SELECT DISTINCT + SUM ( col2 ) AS col2 FROM tab2 AS cor0
----
121

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 * + - col2 * - col0 FROM tab1
----
295885
420784
470016

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT ALL ( - COUNT( * ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL ( - COUNT ( * ) ) AS col1 FROM tab2
----
-3

query II rowsort
SELECT DISTINCT + 83 AS col1, 63 FROM tab2
----
83
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT - SUM( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-5318
SELECT - SUM ( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5319
SELECT DISTINCT - - col1 col1, CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5319
SELECT DISTINCT - - col1 col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5320
SELECT DISTINCT * FROM tab1 WHERE col1 BETWEEN 16 * 30 * - col1 + CAST( NULL AS SIGNED ) + - col2 + + - 86 + + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5320
SELECT DISTINCT * FROM tab1 WHERE col1 BETWEEN 16 * 30 * - col1 + CAST ( NULL AS INTEGER ) + - col2 + + - 86 + + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT - COUNT( * ) * + - SUM( ALL col0 ) FROM tab0
----
597

skipif mysql # not compatible
query I rowsort label-5321
SELECT - COUNT ( * ) * + - SUM ( ALL col0 ) FROM tab0
----
597

onlyif mysql # aggregate syntax: 
query II rowsort label-5322
SELECT ALL + + ( - COUNT( * ) ) AS col0, + COUNT( * ) * - - MIN( ALL 64 ) FROM tab1 AS cor0
----
-3
192

skipif mysql # not compatible
query II rowsort label-5322
SELECT ALL + + ( - COUNT ( * ) ) AS col0, + COUNT ( * ) * - - MIN ( ALL 64 ) FROM tab1 AS cor0
----
-3
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 49 * + 21 col1, + col0 FROM tab0 AS cor0
----
1029
15
1029
87
1029
97

query II rowsort
SELECT DISTINCT + - col2 + col0, - col0 AS col2 FROM tab2 AS cor0
----
17
-75
23
-46
24
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-5325
SELECT col2 DIV - 24 col1 FROM tab0 AS cor0
----
-1
-4
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5325
SELECT col2 / - 24 col1 FROM tab0 AS cor0
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab2 AS cor0 WHERE NOT + ( col2 ) * - + col1 + - + col0 <> - col1
----

query I rowsort
SELECT + 5 * 50 AS col1 FROM tab1 AS cor0
----
250
250
250

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT DISTINCT + SUM( ALL - col2 ) AS col0 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5328
SELECT DISTINCT + SUM ( ALL - col2 ) AS col0 FROM tab0 cor0
----
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-5329
SELECT + 42 + COUNT( * ), - COUNT( * ) + 90 AS col1 FROM tab2 AS cor0
----
45
87

skipif mysql # not compatible
query II rowsort label-5329
SELECT + 42 + COUNT ( * ), - COUNT ( * ) + 90 AS col1 FROM tab2 AS cor0
----
45
87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 >= NULL
----

query I rowsort
SELECT ALL col2 * 8 FROM tab2 AS cor0
----
184
320
464

query I rowsort
SELECT col0 FROM tab1 WHERE ( NOT col2 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5333
SELECT DISTINCT 13 DIV + - col2 AS col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5333
SELECT DISTINCT 13 / + - col2 AS col0 FROM tab0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT + SUM( ALL col0 ) + 48 AS col2 FROM tab0
----
247

skipif mysql # not compatible
query I rowsort label-5334
SELECT + SUM ( ALL col0 ) + 48 AS col2 FROM tab0
----
247

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5335
SELECT + + CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5335
SELECT + + CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 51 + col2 + + col1 FROM tab2
----
125
168
176

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT + MIN( col1 ) * - + COUNT( * ) * - + 74 + 15 FROM tab1
----
1125

skipif mysql # not compatible
query I rowsort label-5337
SELECT + MIN ( col1 ) * - + COUNT ( * ) * - + 74 + 15 FROM tab1
----
1125

query I rowsort
SELECT ALL 44 * - 44 + + + 41 * + col1 FROM tab1
----
-1362
-1731
-9

query I rowsort
SELECT + 68 + + + ( 29 ) FROM tab1
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT DISTINCT + ( - COUNT( * ) ) + - 46 AS col2 FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-5340
SELECT DISTINCT + ( - COUNT ( * ) ) + - 46 AS col2 FROM tab0 AS cor0
----
-49

query I rowsort
SELECT DISTINCT - col1 - + + col1 FROM tab0 AS cor0
----
-162
-2
-42

query I rowsort
SELECT ALL - 23 * 67 + col1 FROM tab2
----
-1464
-1474
-1490

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5343
SELECT MIN( col2 ) DIV 18 AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5343
SELECT MIN ( col2 ) / 18 AS col2 FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5344
SELECT 19 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5344
SELECT 19 / - col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5345
SELECT ALL CAST( col0 AS SIGNED ) * + col1 + - col0 AS col0 FROM tab2
----
2300
4864
4950

skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL CAST ( col0 AS INTEGER ) * + col1 + - col0 AS col0 FROM tab2
----
2300
4864
4950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5346
SELECT COUNT( * ) DIV 27 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5346
SELECT COUNT ( * ) / 27 AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL - 35 - + col0 AS col2 FROM tab2
----
-110
-81
-99

query III rowsort
SELECT ALL * FROM tab1 WHERE 91 NOT IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 55 * + col2 + - 70 FROM tab1
----
3175
3670
5210

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT ALL 25 + + COUNT( * ) AS col0 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL 25 + + COUNT ( * ) AS col0 FROM tab0
----
28

query I rowsort
SELECT ALL col0 * - 40 FROM tab0 WHERE NULL IS NULL
----
-3480
-3880
-600

query I rowsort
SELECT ALL - 84 + 65 AS col2 FROM tab0
----
-19
-19
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5353
SELECT ALL - col2 + col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL - col2 + col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT COUNT( DISTINCT - 68 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5354
SELECT COUNT ( DISTINCT - 68 ) AS col2 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT 20 * COUNT( * ) AS col0 FROM tab1 WHERE NOT 17 NOT BETWEEN col2 / + 40 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5355
SELECT 20 * COUNT ( * ) AS col0 FROM tab1 WHERE NOT 17 NOT BETWEEN col2 / + 40 AND NULL
----
0

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE NOT + 35 NOT IN ( + col2 / + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT DISTINCT COUNT( * ) + + 19 AS col1 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-5357
SELECT DISTINCT COUNT ( * ) + + 19 AS col1 FROM tab1
----
22

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT ( 37 * + col1 ) >= + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5359
SELECT ALL + 2 FROM tab2 WHERE NOT ( CAST( + col1 AS SIGNED ) ) NOT IN ( 43 )
----

skipif mysql # not compatible
query I rowsort label-5359
SELECT ALL + 2 FROM tab2 WHERE NOT ( CAST ( + col1 AS INTEGER ) ) NOT IN ( 43 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5360
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5360
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT ALL MIN( DISTINCT + ( + col1 ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-5361
SELECT ALL MIN ( DISTINCT + ( + col1 ) ) FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT 66 + SUM( DISTINCT 22 ) AS col0 FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-5362
SELECT 66 + SUM ( DISTINCT 22 ) AS col0 FROM tab0
----
88

query I rowsort
SELECT DISTINCT - 43 FROM tab2 WHERE NOT NULL > + col1
----

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT NULL >= ( 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT + MAX( ALL 29 ) col2 FROM tab2
----
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5365
SELECT + MAX ( ALL 29 ) col2 FROM tab2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT DISTINCT - MIN( col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-5366
SELECT DISTINCT - MIN ( col1 ) FROM tab1
----
-5

query I rowsort
SELECT DISTINCT - col1 + - col0 AS col1 FROM tab1 WHERE col0 <= NULL
----

query I rowsort
SELECT 57 * col1 FROM tab1 WHERE NULL IS NULL
----
2679
285
798

query I rowsort
SELECT + col2 * ( + col2 ) FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 70 - col0 FROM tab1
----
-15
-21
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col1 col1 FROM tab2 AS cor0 WHERE NOT ( - ( + 68 ) + + ( + col2 ) / col0 ) IS NOT NULL
----

query I rowsort
SELECT col1 * - 33 FROM tab2 AS cor0
----
-1683
-2211
-2541

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 >= col0
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT ALL COUNT( * ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL COUNT ( * ) AS col1 FROM tab0 cor0
----
3

query I rowsort
SELECT 29 * col2 FROM tab2 cor0
----
1160
1682
667

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5376
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 <= - col0 * - 80
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col0 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 3 col1 FROM tab2
----
-48
-64
-74

query III rowsort
SELECT * FROM tab2 WHERE + col0 + col2 / col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT DISTINCT + 94 + COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 WHERE ( col0 ) IS NULL
----
94

skipif mysql # not compatible
query I rowsort label-5381
SELECT DISTINCT + 94 + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 WHERE ( col0 ) IS NULL
----
94

query I rowsort
SELECT DISTINCT - col2 * col2 FROM tab1 AS cor0 WHERE + col1 IN ( + 81 + col2 * + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5383
SELECT ALL + ( - 8 ) + 9 DIV 9 FROM tab1 AS cor0
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-5383
SELECT ALL + ( - 8 ) + 9 / 9 FROM tab1 AS cor0
----
-7
-7
-7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5384
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-5384
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5385
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + CAST( 66 AS SIGNED ) + + col1 * - col2
----

skipif mysql # not compatible
query III rowsort label-5385
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + CAST ( 66 AS INTEGER ) + + col1 * - col2
----

query I rowsort
SELECT ALL - ( - col2 ) * col0 FROM tab1 AS cor0 WHERE NOT col1 / + col2 - 39 * + 6 >= 90 * - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( ( + 75 ) ) <= ( NULL )
----

query I rowsort
SELECT DISTINCT col2 + + 83 AS col1 FROM tab1 cor0 WHERE col1 IN ( + col2 )
----

query I rowsort
SELECT ALL + + col1 * 72 AS col0 FROM tab1 AS cor0
----
1008
3384
360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5391
SELECT DISTINCT + 92 * - MIN( ALL + CAST( NULL AS SIGNED ) + col0 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5391
SELECT DISTINCT + 92 * - MIN ( ALL + CAST ( NULL AS INTEGER ) + col0 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5392
SELECT DISTINCT - col0 DIV + CAST( - ( col0 ) DIV 24 AS SIGNED ) col1 FROM tab2 AS cor0
----
25
32
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5392
SELECT DISTINCT - col0 / + CAST ( - ( col0 ) / 24 AS INTEGER ) col1 FROM tab2 AS cor0
----
25
32
46

query I rowsort
SELECT + col1 * + ( - col1 ) AS col2 FROM tab2
----
-2601
-4489
-5929

query I rowsort
SELECT - 87 * col0 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col1 + + + col1 FROM tab1
----
10
28
94

onlyif mysql # DIV for integer division: 
query I rowsort label-5396
SELECT 61 DIV + col1 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5396
SELECT 61 / + col1 AS col2 FROM tab2
----
0
0
1

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE col0 - - ( col2 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) < ( - col0 )
----

query I rowsort
SELECT col0 + - col1 AS col0 FROM tab2 WHERE ( col1 * + 28 + col0 ) IS NULL
----

query I rowsort
SELECT ALL + 9 * - 59 + + 63 FROM tab2
----
-468
-468
-468

query I rowsort
SELECT - + col2 * 38 - - 53 * 35 FROM tab2 AS cor0
----
-349
335
981

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5402
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NULL AND NOT + col2 BETWEEN 6 AND - col1
----

skipif mysql # not compatible
query III rowsort label-5402
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NULL AND NOT + col2 BETWEEN 6 AND - col1
----

query I rowsort
SELECT col2 * col0 FROM tab1 AS cor0 WHERE - col2 * ( 72 * + col2 ) = 20 * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5404
SELECT ALL - col0 * col2 DIV 78 + col1 FROM tab0 AS cor0
----
-122
10
72

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL - col0 * col2 / 78 + col1 FROM tab0 AS cor0
----
-122
10
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT COUNT( * ) + + 64 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-5405
SELECT COUNT ( * ) + + 64 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT DISTINCT COUNT( * ) - - ( - 16 ) FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-5406
SELECT DISTINCT COUNT ( * ) - - ( - 16 ) FROM tab2 AS cor0
----
-13

query I rowsort
SELECT + col1 + - col2 + ( 54 ) FROM tab1 cor0
----
-28
0
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT COUNT( * ) + ( 25 ) AS col0 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-5408
SELECT COUNT ( * ) + ( 25 ) AS col0 FROM tab0 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5409
SELECT + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT 84 * + col0 FROM tab0
----
1260
7308
8148

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <= 39
----

query I rowsort
SELECT - 51 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT ALL - MIN( DISTINCT + col2 ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-5413
SELECT ALL - MIN ( DISTINCT + col2 ) AS col0 FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT ALL COUNT( * ) + 57 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
66

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL COUNT ( * ) + 57 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
66

query I rowsort
SELECT ALL + + ( - + ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( col1 + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5417
SELECT DISTINCT - 57 * - CAST( NULL AS SIGNED ) col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5417
SELECT DISTINCT - 57 * - CAST ( NULL AS INTEGER ) col1 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5418
SELECT 51 * col2 + + col1 + CAST( NULL AS DECIMAL ) / col2 * - 91 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5418
SELECT 51 * col2 + + col1 + CAST ( NULL AS REAL ) / col2 * - 91 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 95 AS col1 FROM tab1 AS cor0
----
-95
-95
-95

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * + - 47 BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5422
SELECT 49 * - CAST( - col2 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-5422
SELECT 49 * - CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT - 76 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5424
SELECT DISTINCT CAST( + 26 AS SIGNED ) FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-5424
SELECT DISTINCT CAST ( + 26 AS INTEGER ) FROM tab1
----
26

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE NOT + + col0 < - col2 * - col0
----

query I rowsort
SELECT DISTINCT ( + - col1 ) FROM tab2
----
-51
-67
-77

query I rowsort
SELECT 55 + + 53 * - - col1 FROM tab2 AS cor0
----
2758
3606
4136

query I rowsort
SELECT DISTINCT + 69 AS col0 FROM tab0 cor0
----
69

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT ALL + COUNT( * ) + + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL + COUNT ( * ) + + COUNT ( * ) FROM tab0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5431
SELECT * FROM tab1 WHERE CAST( - + col0 AS SIGNED ) - 94 <= 60 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5431
SELECT * FROM tab1 WHERE CAST ( - + col0 AS INTEGER ) - 94 <= 60 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT + - SUM( DISTINCT - 59 ) col0 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5432
SELECT + - SUM ( DISTINCT - 59 ) col0 FROM tab0 AS cor0
----
59

query I rowsort
SELECT ( col0 ) + 56 FROM tab2 AS cor0 WHERE ( col2 ) BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL + - col2 + - 95 FROM tab1 AS cor0
----
-154
-163
-191

query I rowsort
SELECT ( + - 31 ) AS col2 FROM tab2 AS cor0
----
-31
-31
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT DISTINCT + + MAX( DISTINCT - - col1 ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-5436
SELECT DISTINCT + + MAX ( DISTINCT - - col1 ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
80

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT + col0 - + col2 BETWEEN + ( + col1 ) - 75 AND col0
----
15

query I rowsort
SELECT - + 43 - - col0 AS col2 FROM tab2 AS cor0
----
21
3
32

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL >= + col1
----

query II rowsort
SELECT DISTINCT col2, + col0 - + 56 FROM tab1 AS cor0
----
59
29
68
35
96
-5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND 27 AND + 28 <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5442
SELECT col0 DIV + - col2 + + ( - col2 ), 82 col1 FROM tab1
----
-60
82
-69
82
-96
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5442
SELECT col0 / + - col2 + + ( - col2 ), 82 col1 FROM tab1
----
-60
82
-69
82
-96
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT DISTINCT + 53 + + COUNT( * ) AS col2 FROM tab2, tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-5443
SELECT DISTINCT + 53 + + COUNT ( * ) AS col2 FROM tab2, tab0 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT - SUM( ALL + + col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-5444
SELECT - SUM ( ALL + + col0 ) FROM tab2
----
-185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5445
SELECT DISTINCT - MIN( - - 6 ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5445
SELECT DISTINCT - MIN ( - - 6 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ( + col0 ) * 37 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) < ( + 44 )
----

query I rowsort
SELECT DISTINCT + + col2 - + - col2 AS col0 FROM tab2 AS cor0
----
116
46
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 20 AS col2, 87 col1 FROM tab1 AS cor0
----
20
87
20
87
20
87

query I rowsort
SELECT DISTINCT + 88 FROM tab2 AS cor0 WHERE NOT 47 <= col1
----

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE ( 4 ) = NULL
----

query I rowsort
SELECT DISTINCT - 90 * col1 AS col2 FROM tab0 cor0
----
-1890
-7290
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5452
SELECT ALL - CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL - CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT ALL - SUM( col2 ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL - SUM ( col2 ) AS col1 FROM tab1 AS cor0
----
-223

query III rowsort
SELECT * FROM tab0 WHERE NOT - 93 * - 2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - ( - col2 ) * + 21 FROM tab0 AS cor0
----
2079
210
987

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 cor0 WHERE NOT ( + col2 + + 43 + col2 - + col2 IS NOT NULL )
----

query II rowsort
SELECT + + 79 + col2 AS col0, - 91 AS col1 FROM tab2 AS cor0 WHERE NOT + ( 2 ) IS NULL
----
102
-91
119
-91
137
-91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 31 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col1 )
----

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( - 67 IS NULL )
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - col0 * + col0 AS col1 FROM tab1 AS cor0 WHERE NOT - 92 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN col1 + col1 AND - 79
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5463
SELECT - ( + 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-5463
SELECT - ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + 51 * 45 AS col2, 44 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 + - + col1 IS NULL
----
2295
44
2295
44
2295
44

onlyif mysql # aggregate syntax: 
query II rowsort label-5465
SELECT + 41, - COUNT( * ) AS col1 FROM tab2
----
41
-3

skipif mysql # not compatible
query II rowsort label-5465
SELECT + 41, - COUNT ( * ) AS col1 FROM tab2
----
41
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 col1 FROM tab0
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT DISTINCT MIN( DISTINCT col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-5467
SELECT DISTINCT MIN ( DISTINCT col2 ) AS col0 FROM tab2
----
23

query II rowsort
SELECT ALL col0, ( - col1 ) FROM tab1
----
51
-14
85
-5
91
-47

query I rowsort
SELECT ALL + col2 + - 55 AS col2 FROM tab0
----
-45
-8
44

query II rowsort
SELECT col1, ( + col1 ) * - + col1 FROM tab0
----
1
-1
21
-441
81
-6561

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 54 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 24 * + col0 + + 47 * - col2 FROM tab0
----
-1849
-2325
1618

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 88 col1 FROM tab1
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-5474
SELECT DISTINCT + + col2 DIV - + col2 AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5474
SELECT DISTINCT + + col2 / - + col2 AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT + ( 72 ) * + ( 49 ) - 44 IN ( - + col1 )
----
-46
-64
-75

query I rowsort
SELECT + + 97 + 47 FROM tab2 AS cor0
----
144
144
144

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5477
SELECT - - CAST( NULL AS SIGNED ) + + ( - 94 ) AS col0, col1 + 83 AS col2 FROM tab0 AS cor0
----
NULL
104
NULL
164
NULL
84

skipif mysql # not compatible
query II rowsort label-5477
SELECT - - CAST ( NULL AS INTEGER ) + + ( - 94 ) AS col0, col1 + 83 AS col2 FROM tab0 AS cor0
----
NULL
104
NULL
164
NULL
84

onlyif mysql # DIV for integer division: 
query I rowsort label-5478
SELECT - + col1 DIV - - col1 + col1 AS col2 FROM tab2 AS cor0
----
50
66
76

skipif mysql # not compatible
query I rowsort label-5478
SELECT - + col1 / - - col1 + col1 AS col2 FROM tab2 AS cor0
----
50
66
76

query I rowsort
SELECT DISTINCT col1 + + 93 FROM tab0
----
114
174
94

query I rowsort
SELECT DISTINCT - 57 * 28 + - col0 - col2 AS col2 FROM tab0
----
-1658
-1693
-1792

query I rowsort
SELECT DISTINCT - 6 + - 6 + + - col1 FROM tab2 AS cor0
----
-63
-79
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-5482
SELECT DISTINCT - COUNT( - - col0 ) AS col1, - SUM( DISTINCT + + col0 ) FROM tab0 AS cor0
----
-3
-199

skipif mysql # not compatible
query II rowsort label-5482
SELECT DISTINCT - COUNT ( - - col0 ) AS col1, - SUM ( DISTINCT + + col0 ) FROM tab0 AS cor0
----
-3
-199

query I rowsort
SELECT ALL + - 4 - - col2 AS col0 FROM tab1 AS cor0
----
55
64
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5484
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE + col1 BETWEEN + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5484
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE + col1 BETWEEN + col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 56 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT DISTINCT - SUM( DISTINCT + 51 ) - + - MIN( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT - SUM ( DISTINCT + 51 ) - + - MIN ( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-5488
SELECT col1 DIV + + col1 - - - col1 FROM tab1
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-5488
SELECT col1 / + + col1 - - - col1 FROM tab1
----
-13
-4
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT DISTINCT - SUM( - + 0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5489
SELECT DISTINCT - SUM ( - + 0 ) FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IN ( - col2 / - col1 * + 24 * - 25 * - ( + col2 ) + + col0 ) AND - col2 * ( 99 * col2 ) IN ( + col1 + - col0 * 97 )
----

query I rowsort
SELECT DISTINCT ( + 49 ) + - 49 - 68 FROM tab2
----
-68

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE - 6 / col1 * + col0 = ( NULL )
----

query I rowsort
SELECT DISTINCT 90 * - + col2 FROM tab2
----
-2070
-3600
-5220

query II rowsort
SELECT ALL + col1, col1 + - + col1 AS col0 FROM tab1
----
14
0
47
0
5
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5495
SELECT COUNT( * ), 12 AS col1 FROM tab1
----
3
12

skipif mysql # not compatible
query II rowsort label-5495
SELECT COUNT ( * ), 12 AS col1 FROM tab1
----
3
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 3 col1 FROM tab2 AS cor0 WHERE NOT NULL = col2 * + 13 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5497
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE - col2 IS NULL
----
0

query IIIIII rowsort
SELECT * FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - 26 ) col2 FROM tab1
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5500
SELECT + + COUNT( * ) * - 82 + + + COUNT( * ) DIV ( - + COUNT( * ) ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-739

skipif mysql # not compatible
query I rowsort label-5500
SELECT + + COUNT ( * ) * - 82 + + + COUNT ( * ) / ( - + COUNT ( * ) ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-739

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5501
SELECT DISTINCT CAST( col1 AS SIGNED ) * 1 + + ( + col1 ) AS col0 FROM tab1 AS cor0
----
10
28
94

skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT CAST ( col1 AS INTEGER ) * 1 + + ( + col1 ) AS col0 FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5503
SELECT ( - col0 ) DIV col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5503
SELECT ( - col0 ) / col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query II rowsort
SELECT + - 90, - col0 AS col0 FROM tab2 AS cor0
----
-90
-46
-90
-64
-90
-75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT - SUM( ALL + col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5506
SELECT - SUM ( ALL + col1 ) FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5507
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 <= ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT ALL ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5508
SELECT ALL ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT + + 6 AS col2, 46 FROM tab0 cor0
----
6
46
6
46
6
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT DISTINCT + MIN( 41 ) FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-5510
SELECT DISTINCT + MIN ( 41 ) FROM tab1 AS cor0
----
41

query III rowsort
SELECT ALL * FROM tab0 WHERE + 11 * + col1 * - 70 - + col2 + col2 = - col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 + - col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 81 col2 FROM tab2
----
-3726
-5184
-6075

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( - col0 * + col0 / - - col0 * + - col1 + col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT ALL - COUNT( + 70 ) + - COUNT( + + col2 ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-5515
SELECT ALL - COUNT ( + 70 ) + - COUNT ( + + col2 ) FROM tab2
----
-6

query I rowsort
SELECT - ( - col2 ) + - col0 + - 47 * 95 FROM tab2
----
-4482
-4488
-4489

onlyif mysql # DIV for integer division: 
query I rowsort label-5517
SELECT DISTINCT + + 35 + - ( - ( - - 28 ) ) DIV - 97 AS col2 FROM tab1 WHERE col2 IS NOT NULL
----
35

skipif mysql # not compatible
query I rowsort label-5517
SELECT DISTINCT + + 35 + - ( - ( - - 28 ) ) / - 97 AS col2 FROM tab1 WHERE col2 IS NOT NULL
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5518
SELECT DISTINCT 95 + - CAST( + col0 AS SIGNED ) * + col2 AS col2 FROM tab1
----
-4801
-4920
-6093

skipif mysql # not compatible
query I rowsort label-5518
SELECT DISTINCT 95 + - CAST ( + col0 AS INTEGER ) * + col2 AS col2 FROM tab1
----
-4801
-4920
-6093

query I rowsort
SELECT 24 * - + col1 + + col1 FROM tab1
----
-1081
-115
-322

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 + - - 20 col2 FROM tab1 AS cor0
----
-1324
-275
-3176

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL = col0
----

query I rowsort
SELECT DISTINCT - 6 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-5523
SELECT 39 DIV + col1 FROM tab0
----
0
1
39

skipif mysql # not compatible
query I rowsort label-5523
SELECT 39 / + col1 FROM tab0
----
0
1
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5524
SELECT col0 - + col0 DIV - col2 + - col0 * + + col0 FROM tab1
----
-2550
-7139
-8189

skipif mysql # not compatible
query I rowsort label-5524
SELECT col0 - + col0 / - col2 + - col0 * + + col0 FROM tab1
----
-2550
-7139
-8189

query I rowsort
SELECT - col0 * - + 20 - - - 28 FROM tab2 AS cor0
----
1252
1472
892

query I rowsort
SELECT 80 + ( - col1 ) FROM tab0 AS cor0
----
-1
59
79

onlyif mysql # DIV for integer division: 
query I rowsort label-5527
SELECT DISTINCT col2 DIV - + col0 - col2 AS col1 FROM tab1 AS cor0
----
-59
-68
-97

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT col2 / - + col0 - col2 AS col1 FROM tab1 AS cor0
----
-59
-68
-97

query I rowsort
SELECT ALL - col2 - col0 * - + col0 AS col2 FROM tab1 cor0
----
2505
7166
8213

query II rowsort
SELECT ALL + 34 * + 91 - + + col1 AS col1, 99 AS col0 FROM tab1 AS cor0
----
3047
99
3080
99
3089
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT ALL - MIN( DISTINCT + col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL - MIN ( DISTINCT + col0 ) FROM tab2
----
-46

query I rowsort
SELECT DISTINCT col0 - + ( - col1 ) FROM tab0
----
108
96
98

query III rowsort
SELECT * FROM tab2 WHERE - - col2 + + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT MAX( DISTINCT 37 ) AS col2 FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-5533
SELECT MAX ( DISTINCT 37 ) AS col2 FROM tab2
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-5534
SELECT + 80 DIV 37 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-5534
SELECT + 80 / 37 FROM tab0
----
2
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5535
SELECT ALL + 79 DIV + col0 col2 FROM tab0
----
0
0
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5535
SELECT ALL + 79 / + col0 col2 FROM tab0
----
0
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT DISTINCT - MIN( DISTINCT - col1 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5536
SELECT DISTINCT - MIN ( DISTINCT - col1 ) AS col2 FROM tab2
----
77

query I rowsort
SELECT ( col1 ) AS col2 FROM tab2 WHERE NOT + - 62 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT - MIN( DISTINCT - 54 ) FROM tab1 cor0
----
54

skipif mysql # not compatible
query I rowsort label-5538
SELECT - MIN ( DISTINCT - 54 ) FROM tab1 cor0
----
54

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 * - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5540
SELECT DISTINCT ( - + CAST( + - COUNT( * ) AS SIGNED ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5540
SELECT DISTINCT ( - + CAST ( + - COUNT ( * ) AS INTEGER ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT + SUM( - col1 ) col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5541
SELECT + SUM ( - col1 ) col2 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT 47 IS NULL
----
1
21
81

query I rowsort
SELECT - 34 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-34
-34
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5544
SELECT + 99 + - col2 + CAST( - - ( + - 92 ) AS SIGNED ) + 67 + + 54 * - - col2 FROM tab0 AS cor0
----
2565
5321
604

skipif mysql # not compatible
query I rowsort label-5544
SELECT + 99 + - col2 + CAST ( - - ( + - 92 ) AS INTEGER ) + 67 + + 54 * - - col2 FROM tab0 AS cor0
----
2565
5321
604

query I rowsort
SELECT - ( col1 ) * 74 FROM tab2 AS cor0
----
-3774
-4958
-5698

query I rowsort
SELECT DISTINCT - - 13 AS col0 FROM tab0 AS cor0
----
13

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT ALL 91 * + MIN( DISTINCT + + col0 ) AS col1 FROM tab2
----
4186

skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL 91 * + MIN ( DISTINCT + + col0 ) AS col1 FROM tab2
----
4186

query I rowsort
SELECT DISTINCT 18 * + - 9 AS col0 FROM tab1
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT MIN( - 80 ) AS col1 FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-5550
SELECT MIN ( - 80 ) AS col1 FROM tab1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT + MIN( DISTINCT 53 ) AS col1 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-5551
SELECT + MIN ( DISTINCT 53 ) AS col1 FROM tab2
----
53

query I rowsort
SELECT DISTINCT + col2 + + + 36 FROM tab2
----
59
76
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 * col1 col0 FROM tab0 AS cor0
----
1218
4698
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5554
SELECT + COUNT( * ) + CAST( + - 6 AS SIGNED ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5554
SELECT + COUNT ( * ) + CAST ( + - 6 AS INTEGER ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5555
SELECT ALL 91 DIV SUM( col1 ) * + 78 AS col0 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-5555
SELECT ALL 91 / SUM ( col1 ) * + 78 AS col0 FROM tab1
----
78

query III rowsort
SELECT * FROM tab2 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5557
SELECT DISTINCT - 10 FROM tab0 WHERE ( - + CAST( ( - col2 ) AS SIGNED ) / - + col0 ) NOT IN ( + col2 )
----
-10

skipif mysql # not compatible
query I rowsort label-5557
SELECT DISTINCT - 10 FROM tab0 WHERE ( - + CAST ( ( - col2 ) AS INTEGER ) / - + col0 ) NOT IN ( + col2 )
----
-10

query I rowsort
SELECT ALL col2 - + + col1 AS col1 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5559
SELECT - COUNT( DISTINCT + + ( - - col0 ) ) DIV + + 15 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5559
SELECT - COUNT ( DISTINCT + + ( - - col0 ) ) / + + 15 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - 27 - + 0 AS col2 FROM tab0 AS cor0
----
-27
-27
-27

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 IS NULL AND col1 - 40 / + - 1 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col1 AS col0, + col1 AS col0 FROM tab0 AS cor0 WHERE NOT col0 + - - 25 - - col2 > 91 + - col2
----

query II rowsort
SELECT ALL + 87, col2 FROM tab1
----
87
59
87
68
87
96

query I rowsort
SELECT + col2 * + + col2 FROM tab0
----
100
2209
9801

onlyif mysql # DIV for integer division: 
query II rowsort label-5566
SELECT DISTINCT col2 DIV ( 25 ), + col0 AS col2 FROM tab0
----
0
87
1
15
3
97

skipif mysql # not compatible
query II rowsort label-5566
SELECT DISTINCT col2 / ( 25 ), + col0 AS col2 FROM tab0
----
0
87
1
15
3
97

query I rowsort
SELECT ALL ( - 37 ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5568
SELECT DISTINCT + + col1 AS col2 FROM tab1 WHERE NOT + 16 + + col0 * + ( - CAST( NULL AS DECIMAL ) ) * + col1 + - 22 + + 8 > 27
----

skipif mysql # not compatible
query I rowsort label-5568
SELECT DISTINCT + + col1 AS col2 FROM tab1 WHERE NOT + 16 + + col0 * + ( - CAST ( NULL AS REAL ) ) * + col1 + - 22 + + 8 > 27
----

query I rowsort
SELECT DISTINCT - ( - - col1 ) FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5570
SELECT ALL col1, col0 * - 66 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-5570
SELECT ALL col1, col0 * - 66 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-5571
SELECT + CAST( CAST( - col1 AS DECIMAL ) AS SIGNED ) DIV 49 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5571
SELECT + CAST ( CAST ( - col1 AS REAL ) AS INTEGER ) / 49 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT DISTINCT + ( - + COUNT( * ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT + ( - + COUNT ( * ) ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT ALL + 54 * + + COUNT( * ) FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL + 54 * + + COUNT ( * ) FROM tab0
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5574
SELECT ALL col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5575
SELECT + MAX( + 89 ) AS col2, - MAX( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
89
-96

skipif mysql # not compatible
query II rowsort label-5575
SELECT + MAX ( + 89 ) AS col2, - MAX ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
89
-96

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5577
SELECT - - col0 DIV + 66 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5577
SELECT - - col0 / + 66 FROM tab0 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5578
SELECT ALL COUNT( col0 ) AS col1, COUNT( * ) col0 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5578
SELECT ALL COUNT ( col0 ) AS col1, COUNT ( * ) col0 FROM tab2 AS cor0
----
3
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 19 * - + 71 NOT BETWEEN NULL AND + ( col0 ) + + col0
----

query I rowsort
SELECT - + 21 AS col0 FROM tab1 cor0 WHERE NULL > 38
----

query I rowsort
SELECT ALL col0 * col2 * - + 88 FROM tab0
----
-62040
-76560
-845064

query I rowsort
SELECT 75 + + + col2 FROM tab1
----
134
143
171

query I rowsort
SELECT DISTINCT + 70 + col0 AS col1 FROM tab2
----
116
134
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5584
SELECT - CAST( NULL AS SIGNED ) + - - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5584
SELECT - CAST ( NULL AS INTEGER ) + - - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT ALL - ( + COUNT( * ) ) + + + COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5585
SELECT ALL - ( + COUNT ( * ) ) + + + COUNT ( * ) AS col2 FROM tab0
----
0

query I rowsort
SELECT + col1 + + - col0 AS col0 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT ( - col0 ) + col1 * + col0 * col1 AS col1 FROM tab0
----
0
38280
98400

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 92 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5589
SELECT DISTINCT - + ( - CAST( + 47 AS SIGNED ) ) + - 50 AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5589
SELECT DISTINCT - + ( - CAST ( + 47 AS INTEGER ) ) + - 50 AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 10 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5591
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST( - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5591
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST ( - col1 AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 35 col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query III rowsort
SELECT * FROM tab1 WHERE ( 75 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 9 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # DIV for integer division: 
query I rowsort label-5595
SELECT - col0 DIV ( col0 ) - + + col1 AS col2 FROM tab1
----
-15
-48
-6

skipif mysql # not compatible
query I rowsort label-5595
SELECT - col0 / ( col0 ) - + + col1 AS col2 FROM tab1
----
-15
-48
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT ALL + COUNT( * ) + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-5596
SELECT ALL + COUNT ( * ) + COUNT ( * ) FROM tab1
----
6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 + - 0 IS NULL
----

query I rowsort
SELECT ALL - ( - col0 ) * + + col1 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT SUM( DISTINCT + + 20 ) AS col0 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-5599
SELECT SUM ( DISTINCT + + 20 ) AS col0 FROM tab0 AS cor0
----
20

query I rowsort
SELECT ALL - + 56 AS col2 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL 94 * + - 17 FROM tab0 AS cor0 WHERE 74 IS NOT NULL
----
-1598
-1598
-1598

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + + 23 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 75 * - - col2 FROM tab0
----
-3525
-7425
-750

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5604
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( + + CAST( + 45 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5604
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( + + CAST ( + 45 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT DISTINCT - SUM( - + 14 ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-5605
SELECT DISTINCT - SUM ( - + 14 ) FROM tab1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5606
SELECT - col2 FROM tab2 WHERE NOT - col2 * + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5606
SELECT - col2 FROM tab2 WHERE NOT - col2 * + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5607
SELECT ALL col0 / CAST( NULL AS SIGNED ) / + col0 * + 61 * + 64 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL col0 / CAST ( NULL AS INTEGER ) / + col0 * + 61 * + 64 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 NOT BETWEEN NULL AND - col1 * + 64
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > - ( - 36 )
----

query I rowsort
SELECT ALL - - 87 * - + 97 FROM tab2 AS cor0
----
-8439
-8439
-8439

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5611
SELECT + 69 col0, CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
69
NULL
69
NULL
69
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5611
SELECT + 69 col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
69
NULL
69
NULL
69
NULL

query I rowsort
SELECT ALL + ( - ( + 49 ) ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT - MIN( - col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-5613
SELECT - MIN ( - col2 ) AS col0 FROM tab2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5614
SELECT DISTINCT col1 AS col2, col1 - + - ( - 2 ) * - ( - - CAST( - col0 AS SIGNED ) ) FROM tab1
----
14
-88
47
-135
5
-165

skipif mysql # not compatible
query II rowsort label-5614
SELECT DISTINCT col1 AS col2, col1 - + - ( - 2 ) * - ( - - CAST ( - col0 AS INTEGER ) ) FROM tab1
----
14
-88
47
-135
5
-165

query I rowsort
SELECT - col0 + - - col2 * - + 52 * + 74 FROM tab2 AS cor0
----
-153984
-223259
-88550

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5617
SELECT ALL + ( + 68 ) + - col2 DIV - - col1 FROM tab1 AS cor0
----
57
62
67

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL + ( + 68 ) + - col2 / - - col1 FROM tab1 AS cor0
----
57
62
67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5618
SELECT DISTINCT - - col2 * + col2 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5618
SELECT DISTINCT - - col2 * + col2 * + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT + ( COUNT( DISTINCT + 0 ) ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5619
SELECT + ( COUNT ( DISTINCT + 0 ) ) FROM tab0 AS cor0
----
1

query II rowsort
SELECT DISTINCT + col1, 96 * 15 * + 39 FROM tab2 AS cor0
----
51
56160
67
56160
77
56160

query I rowsort
SELECT + AVG ( col2 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col2 * col0 * + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - 55 AS col1 FROM tab1
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-5624
SELECT DISTINCT + col2 DIV col0 + + col0 FROM tab0
----
18
87
98

skipif mysql # not compatible
query I rowsort label-5624
SELECT DISTINCT + col2 / col0 + + col0 FROM tab0
----
18
87
98

onlyif mysql # DIV for integer division: 
query I rowsort label-5625
SELECT - 12 DIV - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5625
SELECT - 12 / - col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT ALL MIN( ALL + col0 ) + + + COUNT( * ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-5626
SELECT ALL MIN ( ALL + col0 ) + + + COUNT ( * ) FROM tab0
----
18

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 - + + 23 >= - 63
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT - COUNT( * ) * 24 * + 36 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-7776

skipif mysql # not compatible
query I rowsort label-5628
SELECT - COUNT ( * ) * 24 * + 36 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-7776

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT SUM( DISTINCT 29 ) FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-5629
SELECT SUM ( DISTINCT 29 ) FROM tab2
----
29

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > - ( col0 ) * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5631
SELECT + + CAST( NULL AS SIGNED ) / + col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5631
SELECT + + CAST ( NULL AS INTEGER ) / + col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5632
SELECT - + 73 DIV + col1 - - col1 FROM tab2 AS cor0
----
50
66
77

skipif mysql # not compatible
query I rowsort label-5632
SELECT - + 73 / + col1 - - col1 FROM tab2 AS cor0
----
50
66
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * + + col1 - + col2 / + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + + col0 AS col0, col1 * + - col2 * + 79 + col0 FROM tab2 AS cor0
----
46
-92621
64
-243256
75
-306919

onlyif mysql # DIV for integer division: 
query I rowsort label-5635
SELECT - col0 DIV + + col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-5635
SELECT - col0 / + + col2 FROM tab2 AS cor0
----
-1
-1
-2

query I rowsort
SELECT col0 - - col1 * - - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT - SUM( - - col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5637
SELECT - SUM ( - - col1 ) AS col0 FROM tab0 AS cor0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5638
SELECT CAST( - 79 AS SIGNED ) * 28 AS col2 FROM tab1 cor0
----
-2212
-2212
-2212

skipif mysql # not compatible
query I rowsort label-5638
SELECT CAST ( - 79 AS INTEGER ) * 28 AS col2 FROM tab1 cor0
----
-2212
-2212
-2212

query I rowsort
SELECT DISTINCT - + 73 AS col0 FROM tab1 AS cor0
----
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + ( + 2 ) ) col0 FROM tab2 AS cor0
----
2
2
2

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT + 21 AS col1 FROM tab1 cor0
----
21
21
21

query I rowsort
SELECT 87 * + col1 AS col0 FROM tab2
----
4437
5829
6699

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - + 7 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + 10 AS col2, + col0 AS col0 FROM tab2
----
10
46
10
64
10
75

query I rowsort
SELECT DISTINCT - 76 * - col1 AS col0 FROM tab1
----
1064
3572
380

query I rowsort
SELECT DISTINCT 4 * col2 * + + ( + - col2 ) * col0 AS col0 FROM tab1
----
-1183540
-1683136
-1880064

query II rowsort
SELECT col0 AS col0, + col0 + + + col2 FROM tab0
----
15
62
87
97
97
196

query I rowsort
SELECT DISTINCT + 58 AS col1 FROM tab0
----
58

query I rowsort
SELECT DISTINCT - col2 * - 0 AS col2 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 IN ( + + col2, + 60, col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 28 * col1 AS col1 FROM tab1 AS cor0
----
-1316
-140
-392

query I rowsort
SELECT - + col0 + 1 AS col1 FROM tab0 AS cor0
----
-14
-86
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5655
SELECT ALL - 50 DIV - CAST( - AVG ( ALL - ( + col1 ) ) AS SIGNED ), - COUNT( * ) + - 75 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
-78

skipif mysql # not compatible
query II rowsort label-5655
SELECT ALL - 50 / - CAST ( - AVG ( ALL - ( + col1 ) ) AS INTEGER ), - COUNT ( * ) + - 75 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
-78

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + + ( 33 ) AS col0 FROM tab2 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-5658
SELECT ALL COUNT( * ) AS col0, + 71 FROM tab2 AS cor0
----
3
71

skipif mysql # not compatible
query II rowsort label-5658
SELECT ALL COUNT ( * ) AS col0, + 71 FROM tab2 AS cor0
----
3
71

query IIIIII rowsort
SELECT * FROM tab0 cor0 JOIN tab1 AS cor1 ON NOT NULL IS NULL
----

query I rowsort
SELECT - 51 * col0 * + 2 FROM tab1
----
-5202
-8670
-9282

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT COUNT( * ) FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5661
SELECT COUNT ( * ) FROM tab0, tab1 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + col1 AS col2, col2 col2 FROM tab0 AS cor0
----
0
10
0
47
0
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - 91 col0 FROM tab2 AS cor0
----
2093
3640
5278

query II rowsort
SELECT DISTINCT ( - 59 ), - col0 * + + 67 AS col2 FROM tab2 AS cor0
----
-59
-3082
-59
-4288
-59
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT MAX( col1 ) + + + 76 FROM tab2 AS cor0 WHERE col0 * - - col1 + - + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5665
SELECT MAX ( col1 ) + + + 76 FROM tab2 AS cor0 WHERE col0 * - - col1 + - + col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5666
SELECT - + col2 * - CAST( NULL AS SIGNED ) + - col1 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-5666
SELECT - + col2 * - CAST ( NULL AS INTEGER ) + - col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT ALL - COUNT( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL - COUNT ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT ALL SUM( + + 18 ) AS col1 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL SUM ( + + 18 ) AS col1 FROM tab2
----
54

query I rowsort
SELECT DISTINCT - 24 AS col2 FROM tab1
----
-24

query III rowsort
SELECT * FROM tab1 WHERE NULL <> + 31
----

query I rowsort
SELECT 42 + - - 9 FROM tab1
----
51
51
51

query I rowsort
SELECT col0 + + 58 + col2 + 36 AS col0 FROM tab1
----
238
241
253

query I rowsort
SELECT DISTINCT 95 + + col0 FROM tab0
----
110
182
192

query I rowsort
SELECT col0 + + 43 * + col0 - ( - - 84 ) FROM tab2
----
1940
2732
3216

onlyif mysql # DIV for integer division: 
query I rowsort label-5675
SELECT - col2 DIV 65 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5675
SELECT - col2 / 65 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT col0, + col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
51
64
77
75
67

query I rowsort
SELECT ALL - 15 + + col0 AS col1 FROM tab0 cor0
----
0
72
82

query II rowsort
SELECT ALL col0 * + col1 AS col1, - col2 AS col0 FROM tab0
----
1215
-47
1827
-10
97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT ALL + 44 + COUNT( * ) AS col1 FROM tab1 WHERE NOT - col0 < - - col1 + + col1 + - col0
----
44

skipif mysql # not compatible
query I rowsort label-5679
SELECT ALL + 44 + COUNT ( * ) AS col1 FROM tab1 WHERE NOT - col0 < - - col1 + + col1 + - col0
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 50 col2 FROM tab2
----
1150
2000
2900

query I rowsort
SELECT - 51 * + 57 FROM tab2 AS cor0
----
-2907
-2907
-2907

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - + col2 col0 FROM tab2 AS cor0
----
1058
2560
4350

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 25 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-5684
SELECT DISTINCT - MIN( + col2 ) AS col1, 75 AS col2 FROM tab1 AS cor0
----
-59
75

skipif mysql # not compatible
query II rowsort label-5684
SELECT DISTINCT - MIN ( + col2 ) AS col1, 75 AS col2 FROM tab1 AS cor0
----
-59
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 = 41 + - 84
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 43 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5687
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1, tab2 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT ( - COUNT( * ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5688
SELECT ( - COUNT ( * ) ) FROM tab2
----
-3

query II rowsort
SELECT 52, col2 AS col1 FROM tab1
----
52
59
52
68
52
96

query I rowsort
SELECT ALL - 15 * 95 FROM tab0
----
-1425
-1425
-1425

onlyif mysql # aggregate syntax: 
query II rowsort label-5691
SELECT 56 * + + SUM( + col0 ), 28 AS col0 FROM tab0
----
11144
28

skipif mysql # not compatible
query II rowsort label-5691
SELECT 56 * + + SUM ( + col0 ), 28 AS col0 FROM tab0
----
11144
28

query I rowsort
SELECT ALL col0 * - - col1 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT DISTINCT - + MAX( + + col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5693
SELECT DISTINCT - + MAX ( + + col2 ) AS col0 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5696
SELECT DISTINCT col0 AS col2, CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-5696
SELECT DISTINCT col0 AS col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT - col0 + - 90 AS col2 FROM tab1 AS cor0
----
-141
-175
-181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5698
SELECT col2 + - col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5698
SELECT col2 + - col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - col2 ) * col0 + + 47 - - + 62 AS col0 FROM tab1 cor0
----
-4787
-4906
-6079

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT DISTINCT COUNT( + + ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5700
SELECT DISTINCT COUNT ( + + ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT col0 AS col0, col2 * - - 72, + col1 * - + 15 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, - col2 FROM tab0 AS cor0
----
-15
-47
-87
-10
-97
-99

query II rowsort
SELECT ALL 25, col2 AS col0 FROM tab2 AS cor0
----
25
23
25
40
25
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 col1, + col1 AS col2 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5705
SELECT ALL CAST( NULL AS SIGNED ) col0, col1 FROM tab2 cor0 WHERE NOT + col1 + + col0 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5705
SELECT ALL CAST ( NULL AS INTEGER ) col0, col1 FROM tab2 cor0 WHERE NOT + col1 + + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5706
SELECT ALL - + 94 - + col2 DIV - - col0 AS col1 FROM tab2 AS cor0
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL - + 94 - + col2 / - - col0 AS col1 FROM tab2 AS cor0
----
-94
-94
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + col2 * - col1 col1, - col2 * + 91 AS col2, ( - - col1 ) * + 39 * + + col1 FROM tab1 AS cor0
----
9 values hashing to fa38e30465ff1c0d28639368270865a0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5708
SELECT * FROM tab0 AS cor0 WHERE CAST( col1 AS SIGNED ) = + col0
----

skipif mysql # not compatible
query III rowsort label-5708
SELECT * FROM tab0 AS cor0 WHERE CAST ( col1 AS INTEGER ) = + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 67 col0, - col1 - + 17 * - col0 AS col2 FROM tab1 AS cor0
----
-67
1440
-67
1500
-67
853

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5710
SELECT - - CAST( NULL AS SIGNED ), 94 AS col1 FROM tab2 cor0
----
NULL
94
NULL
94
NULL
94

skipif mysql # not compatible
query II rowsort label-5710
SELECT - - CAST ( NULL AS INTEGER ), 94 AS col1 FROM tab2 cor0
----
NULL
94
NULL
94
NULL
94

query III rowsort
SELECT * FROM tab2 WHERE col2 <= 32
----
46
51
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5712
SELECT CAST( NULL AS SIGNED ) - + 99 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5712
SELECT CAST ( NULL AS INTEGER ) - + 99 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + col2 ) * col2 * + 76 AS col2 FROM tab2
----
121600
255664
40204

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5714
SELECT DISTINCT + 14 DIV - COUNT( * ), - COUNT( * ) AS col0 FROM tab1
----
-4
-3

skipif mysql # not compatible
query II rowsort label-5714
SELECT DISTINCT + 14 / - COUNT ( * ), - COUNT ( * ) AS col0 FROM tab1
----
-4
-3

query I rowsort
SELECT + - col0 AS col1 FROM tab1 WHERE + - col2 IN ( col0, + 31, - col1 / col2 )
----

query I rowsort
SELECT + 28 FROM tab2 AS cor0 WHERE NOT col1 <= - 75
----
28
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0, + col0 col1 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT DISTINCT + COUNT( + col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5718
SELECT DISTINCT + COUNT ( + col0 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT - - 80 / - - 39 * - - 2 - 35 AS col2 FROM tab0 WHERE NOT + col1 NOT IN ( - 55, 76, - + 37 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5720
SELECT ALL 95, COUNT( * ) * - + 55 AS col2 FROM tab0 AS cor0
----
95
-165

skipif mysql # not compatible
query II rowsort label-5720
SELECT ALL 95, COUNT ( * ) * - + 55 AS col2 FROM tab0 AS cor0
----
95
-165

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5721
SELECT ALL - col0 AS col2, col1 + - CAST( col1 AS SIGNED ) col0 FROM tab1 AS cor0
----
-51
0
-85
0
-91
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5721
SELECT ALL - col0 AS col2, col1 + - CAST ( col1 AS INTEGER ) col0 FROM tab1 AS cor0
----
-51
0
-85
0
-91
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5722
SELECT DISTINCT + CAST( + CAST( col2 AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5722
SELECT DISTINCT + CAST ( + CAST ( col2 AS