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 INTEGER ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5723
SELECT + + 62 FROM tab0 AS cor0 WHERE - 97 IS NOT NULL OR NOT ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
62
62
62

skipif mysql # not compatible
query I rowsort label-5723
SELECT + + 62 FROM tab0 AS cor0 WHERE - 97 IS NOT NULL OR NOT ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
62
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 * - + col0 + + col2 col1 FROM tab1 AS cor0
----
-4545
-7676
-8213

query I rowsort
SELECT DISTINCT 13 * + col0 AS col1 FROM tab0 AS cor0
----
1131
1261
195

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT SUM( DISTINCT - 84 ) FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-5726
SELECT SUM ( DISTINCT - 84 ) FROM tab2
----
-84

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 - - 94 <= + 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT DISTINCT MIN( + + 18 ) + - 29 col1 FROM tab1
----
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5728
SELECT DISTINCT MIN ( + + 18 ) + - 29 col1 FROM tab1
----
-11

query I rowsort
SELECT ( - + col0 ) FROM tab2 WHERE NOT 56 * - - col0 NOT IN ( + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = 28
----

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col2 NOT BETWEEN col2 AND col1
----
97
1
99

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5736
SELECT + 45 + - + 52 DIV - 57 AS col2 FROM tab0
----
45
45
45

skipif mysql # not compatible
query I rowsort label-5736
SELECT + 45 + - + 52 / - 57 AS col2 FROM tab0
----
45
45
45

onlyif mysql # aggregate syntax: 
query II rowsort label-5737
SELECT DISTINCT 24 + + COUNT( * ) AS col0, + 32 FROM tab2
----
27
32

skipif mysql # not compatible
query II rowsort label-5737
SELECT DISTINCT 24 + + COUNT ( * ) AS col0, + 32 FROM tab2
----
27
32

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - + col0 ) IS NULL
----

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

query I rowsort
SELECT + + 95 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 32
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 59 * 81 + - - col1 col0 FROM tab1
----
-4732
-4765
-4774

query I rowsort
SELECT - 91 + 67 FROM tab0 AS cor0
----
-24
-24
-24

query I rowsort
SELECT ALL - + col1 * col1 + + col1 * - + col0 FROM tab1 AS cor0
----
-450
-6486
-910

onlyif mysql # DIV for integer division: 
query I rowsort label-5745
SELECT col0 DIV col2 + + + col1 + - col0 FROM tab1 AS cor0
----
-37
-43
-79

skipif mysql # not compatible
query I rowsort label-5745
SELECT col0 / col2 + + + col1 + - col0 FROM tab1 AS cor0
----
-37
-43
-79

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

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

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

query I rowsort
SELECT ALL col2 * ( + - col2 ) AS col2 FROM tab1
----
-3481
-4624
-9216

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

skipif mysql # not compatible
query I rowsort label-5749
SELECT + - CAST ( NULL AS REAL ) AS col0 FROM tab2 WHERE 21 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + 82 * - + col2 AS col0 FROM tab0
----
-3854
-8118
-820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5751
SELECT - COUNT( * ) DIV MIN( DISTINCT col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5751
SELECT - COUNT ( * ) / MIN ( DISTINCT col2 ) FROM tab0
----
0

query II rowsort
SELECT - col0 * - col1, + col0 FROM tab1
----
425
85
4277
91
714
51

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

query II rowsort
SELECT ALL + 21 AS col2, + 94 AS col0 FROM tab0 AS cor0
----
21
94
21
94
21
94

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

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

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-23
-40
-58

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT 18 * + COUNT( * ) AS col0 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-5760
SELECT 18 * + COUNT ( * ) AS col0 FROM tab0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT ALL + - COUNT( * ) + 55 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
46

skipif mysql # not compatible
query I rowsort label-5761
SELECT ALL + - COUNT ( * ) + 55 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
46

query I rowsort
SELECT ( - - col1 ) * 58 * - - col2 AS col0 FROM tab1
----
17110
185368
77952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 84 + - 60 col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 3676328d75056be335dcb8cc110835b4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT ALL COUNT( * ) * + + 66 - 58 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-58

skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL COUNT ( * ) * + + 66 - 58 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 * - col2 col2, - col2 * col2 AS col0 FROM tab1 cor0
----
-4896
-9216
-5015
-3481
-6188
-4624

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5769
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * col1 <= - col2 + + 2
----

skipif mysql # not compatible
query III rowsort label-5769
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * col1 <= - col2 + + 2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT DISTINCT + + ( COUNT( * ) ) FROM tab0 AS cor0 WHERE NULL > + col2
----
0

skipif mysql # not compatible
query I rowsort label-5771
SELECT DISTINCT + + ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE NULL > + col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5772
SELECT 69, - COUNT( DISTINCT col0 ) AS col1 FROM tab1
----
69
-3

skipif mysql # not compatible
query II rowsort label-5772
SELECT 69, - COUNT ( DISTINCT col0 ) AS col1 FROM tab1
----
69
-3

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NOT - col2 * - - 59 NOT IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT DISTINCT - MAX( DISTINCT - + col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-5774
SELECT DISTINCT - MAX ( DISTINCT - + col2 ) FROM tab0
----
10

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5775
SELECT - CAST( NULL AS DECIMAL ) AS col2, + 21 AS col0 FROM tab2
----
NULL
21
NULL
21
NULL
21

skipif mysql # not compatible
query II rowsort label-5775
SELECT - CAST ( NULL AS REAL ) AS col2, + 21 AS col0 FROM tab2
----
NULL
21
NULL
21
NULL
21

query I rowsort
SELECT 54 + - 23 * col2 * + 11 + + + col0 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > ( col2 ) * 17 / 12
----

query I rowsort
SELECT col1 + + 1 FROM tab0 AS cor0
----
2
22
82

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

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

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

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

query I rowsort
SELECT 98 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT + col2 / 96 / - - 52 / - col0 + - + col2 AS col0 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5785
SELECT + CAST( - AVG ( DISTINCT col2 ) AS SIGNED ) FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-5785
SELECT + CAST ( - AVG ( DISTINCT col2 ) AS INTEGER ) FROM tab1 AS cor0
----
-74

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT + MIN( col2 ) FROM tab2 AS cor0 WHERE 31 + + 74 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5787
SELECT + MIN ( col2 ) FROM tab2 AS cor0 WHERE 31 + + 74 IS NULL
----
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT - + COUNT( ALL + 38 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5791
SELECT - + COUNT ( ALL + 38 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-3

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

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

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

query I rowsort
SELECT ALL - 71 * col0 AS col0 FROM tab2 WHERE NOT 90 / col1 + col1 + - - 80 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-5795
SELECT DISTINCT + COUNT ( * ) * - - 96 FROM tab2
----
288

query I rowsort
SELECT + col0 * + ( - - col1 ) + col0 FROM tab2 AS cor0
----
2392
4992
5100

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

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

query I rowsort
SELECT - + col0 FROM tab0 AS cor0 WHERE NOT 44 = + - col2
----
-15
-87
-97

query I rowsort
SELECT ALL 15 * + + col2 * - 84 * + - col1 AS col1 FROM tab2 AS cor0
----
1477980
3880800
4896360

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 61 >= + + col0
----
64
77
40
75
67
58

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5803
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2 WHERE 14 + ( + - 96 ) = NULL
----

skipif mysql # not compatible
query I rowsort label-5803
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 WHERE 14 + ( + - 96 ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5804
SELECT DISTINCT + ( + col0 ) * col2 + - col2 + 6 - + - 15 DIV - col2 * col1 FROM tab1
----
4806
4962
6126

skipif mysql # not compatible
query I rowsort label-5804
SELECT DISTINCT + ( + col0 ) * col2 + - col2 + 6 - + - 15 / - col2 * col1 FROM tab1
----
4806
4962
6126

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5806
SELECT + 38 + - - 78 + + 73 + 60 * + + ( ( COUNT( * ) ) ) + + 85 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5806
SELECT + 38 + - - 78 + + 73 + 60 * + + ( ( COUNT ( * ) ) ) + + 85 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT ALL + SUM( DISTINCT - 31 ) AS col1 FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-5807
SELECT ALL + SUM ( DISTINCT - 31 ) AS col1 FROM tab2
----
-31

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

query I rowsort
SELECT + 79 + + - col1 AS col2 FROM tab1 AS cor0
----
32
65
74

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

query I rowsort
SELECT ALL ( + 57 ) + - col1 AS col1 FROM tab1 AS cor0
----
10
43
52

query I rowsort
SELECT - + col1 + + 32 FROM tab1 AS cor0
----
-15
18
27

query I rowsort
SELECT ALL - ( col0 ) FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT DISTINCT - MAX( ALL - 77 ) * - 29 AS col2 FROM tab1 AS cor0
----
-2233

skipif mysql # not compatible
query I rowsort label-5815
SELECT DISTINCT - MAX ( ALL - 77 ) * - 29 AS col2 FROM tab1 AS cor0
----
-2233

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT ALL - MIN( - col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL - MIN ( - col0 ) FROM tab1
----
91

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

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

query I rowsort
SELECT 8 * 54 AS col0 FROM tab0
----
432
432
432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 * - col0 col2 FROM tab2
----
-460
-640
-750

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT 88 * COUNT( * ) AS col1 FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-5821
SELECT 88 * COUNT ( * ) AS col1 FROM tab0
----
264

query I rowsort
SELECT DISTINCT - col2 * - 28 AS col1 FROM tab0
----
1316
2772
280

onlyif mysql # aggregate syntax: 
query III rowsort label-5823
SELECT SUM( ALL - - ( + 18 ) ) * - + 70 AS col2, COUNT( * ), - - COUNT( * ) FROM tab1
----
-3780
3
3

skipif mysql # not compatible
query III rowsort label-5823
SELECT SUM ( ALL - - ( + 18 ) ) * - + 70 AS col2, COUNT ( * ), - - COUNT ( * ) FROM tab1
----
-3780
3
3

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

query I rowsort
SELECT + 97 * - - 21 AS col0 FROM tab2 AS cor0
----
2037
2037
2037

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 56 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5827
SELECT ALL - CAST( NULL AS SIGNED ) / - + ( + + COUNT( * ) ) * - 57, - COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-5827
SELECT ALL - CAST ( NULL AS INTEGER ) / - + ( + + COUNT ( * ) ) * - 57, - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5828
SELECT DISTINCT + col1 DIV - col0 FROM tab0 cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-5828
SELECT DISTINCT + col1 / - col0 FROM tab0 cor0
----
-5
0

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

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

query II rowsort
SELECT ALL col0 AS col0, - 9 + + col2 AS col0 FROM tab0
----
15
38
87
1
97
90

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

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

query I rowsort
SELECT + 48 * - col2 AS col1 FROM tab1 AS cor0
----
-2832
-3264
-4608

query I rowsort
SELECT DISTINCT col2 + + 90 AS col0 FROM tab1
----
149
158
186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, - col2 - + 54 + - col1 AS col1 FROM tab0
----
15
-182
87
-85
97
-154

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5837
SELECT DISTINCT + col2 * col0 + col1 + col0 * - ( + + 79 ) * + col2 * + - CAST( NULL AS SIGNED ) * + - 0 + + col0 + + 59 AS col1, 62 DIV col2 + - col1 AS col1 FROM tab2
----
NULL
-49
NULL
-66
NULL
-76

skipif mysql # not compatible
query II rowsort label-5837
SELECT DISTINCT + col2 * col0 + col1 + col0 * - ( + + 79 ) * + col2 * + - CAST ( NULL AS INTEGER ) * + - 0 + + col0 + + 59 AS col1, 62 / col2 + - col1 AS col1 FROM tab2
----
NULL
-49
NULL
-66
NULL
-76

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 50 + - 33 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + 95 FROM tab1
----
146
180
186

onlyif mysql # DIV for integer division: 
query I rowsort label-5840
SELECT col0 DIV - + col0 FROM tab2 WHERE 88 IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5840
SELECT col0 / - + col0 FROM tab2 WHERE 88 IS NOT NULL
----
-1
-1
-1

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + 76 * + col2 + + - 54
----

query I rowsort
SELECT DISTINCT - ( 33 ) * - - col2 AS col1 FROM tab1
----
-1947
-2244
-3168

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col0 ) > col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + 13 FROM tab1, tab1 AS cor0 WHERE NOT - + 95 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 44 AS col2, 35 + ( - col1 ) - ( + + 60 ) * - col1 * col0 FROM tab0
----
44
109634
44
5854
44
72854

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT ALL - SUM( DISTINCT + ( + - ( col2 ) ) ) FROM tab2 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5850
SELECT ALL - SUM ( DISTINCT + ( + - ( col2 ) ) ) FROM tab2 WHERE NOT NULL > NULL
----
NULL

query I rowsort
SELECT col1 * + 73 FROM tab1
----
1022
3431
365

query I rowsort
SELECT DISTINCT + 15 * + + 71 AS col1 FROM tab1
----
1065

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT MAX( 43 ) + + ( 13 ) * COUNT( * ) AS col0 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-5856
SELECT MAX ( 43 ) + + ( 13 ) * COUNT ( * ) AS col0 FROM tab0
----
82

query I rowsort
SELECT ( + 38 ) AS col0 FROM tab1
----
38
38
38

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

query I rowsort
SELECT 72 + col2 AS col1 FROM tab1
----
131
140
168

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 * - col2 < ( + 64 + 40 )
----

query I rowsort
SELECT ALL - col0 + + col0 FROM tab1 WHERE NOT 10 IS NOT NULL
----

query I rowsort
SELECT col1 * - 7 FROM tab2 WHERE NOT ( - col0 * + col1 ) IS NULL
----
-357
-469
-539

query I rowsort
SELECT 52 * 66 FROM tab0
----
3432
3432
3432

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

query I rowsort
SELECT + 54 + col2 * + col2 FROM tab1
----
3535
4678
9270

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT 58 * - SUM( DISTINCT col0 * - col2 ) AS col2 FROM tab2
----
462144

skipif mysql # not compatible
query I rowsort label-5867
SELECT 58 * - SUM ( DISTINCT col0 * - col2 ) AS col2 FROM tab2
----
462144

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

query I rowsort
SELECT DISTINCT + 39 AS col0 FROM tab1
----
39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5870
SELECT + CAST( NULL AS DECIMAL ) * 45 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5870
SELECT + CAST ( NULL AS REAL ) * 45 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 + - col2 = ( + col2 * 90 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5872
SELECT - col0 AS col1 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-5872
SELECT - col0 AS col1 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) < NULL
----

query I rowsort
SELECT 13 * 6 FROM tab2
----
78
78
78

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col0 ) >= col0
----

query I rowsort
SELECT col1 + - col2 * col0 AS col0 FROM tab0
----
-624
-849
-9602

query I rowsort
SELECT ALL - 9 * + col2 + - col1 * 28 FROM tab2
----
-1635
-2398
-2516

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 40 + + col0 ) NOT BETWEEN ( 63 ) AND ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * - 51 AS col0 FROM tab0
----
-4437
-4947
-765

query I rowsort
SELECT 56 * 71 FROM tab1
----
3976
3976
3976

query I rowsort
SELECT DISTINCT - 99 * col0 FROM tab1
----
-5049
-8415
-9009

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( 99 + - col1 )
----

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

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

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

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

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

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

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT 63 + + 68 IS NOT NULL
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 32 / + col1 <= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-5890
SELECT + COUNT ( col1 ) - ( - COUNT ( * ) ) FROM tab2
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 col2 FROM tab1 WHERE - col0 >= + ( + col2 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT - COUNT( * ) * + 7 AS col0 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-5894
SELECT - COUNT ( * ) * + 7 AS col0 FROM tab1
----
-21

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

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

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

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

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

query I rowsort
SELECT ALL + 19 + + col2 FROM tab1 AS cor0 WHERE - 78 <= col0
----
115
78
87

query I rowsort
SELECT DISTINCT - 92 * - ( - ( col1 ) ) AS col1 FROM tab1 AS cor0 WHERE ( col0 ) IS NOT NULL
----
-1288
-4324
-460

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5902
SELECT COUNT( * ) * - CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL

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

query I rowsort
SELECT - col0 * - + col1 * col2 FROM tab0
----
18270
57105
9603

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

query I rowsort
SELECT ALL + 5 * + 98 * col1 AS col0 FROM tab0
----
10290
39690
490

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

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

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

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

query I rowsort
SELECT col0 + - 11 FROM tab0 AS cor0 WHERE NOT + col2 - col2 > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 / + col0 + 92 * + 14 >= col0
----

query I rowsort
SELECT ALL - 74 * 0 * 89 + col2 FROM tab1 AS cor0
----
59
68
96

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

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

query I rowsort
SELECT + ( 19 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT DISTINCT col0 * + 95 + 34 AS col0 FROM tab1
----
4879
8109
8679

query I rowsort
SELECT - 89 * - col1 + + col2 * col0 FROM tab0
----
2739
7914
9692

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5918
SELECT DISTINCT col2 + + + col2 + + col2 DIV + 37 AS col1 FROM tab2 AS cor0
----
117
46
81

skipif mysql # not compatible
query I rowsort label-5918
SELECT DISTINCT col2 + + + col2 + + col2 / + 37 AS col1 FROM tab2 AS cor0
----
117
46
81

query I rowsort
SELECT ALL + 33 + ( + col0 ) AS col2 FROM tab2 AS cor0
----
108
79
97

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

skipif mysql # not compatible
query I rowsort label-5920
SELECT CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 cor0 WHERE ( 74 ) <> - col2 * CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT ALL 2 * 20 FROM tab1 cor0
----
40
40
40

query I rowsort
SELECT + col1 * - col2 * - col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1589490
-856575
-931491

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT COUNT( * ) * ( - 77 ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-693

skipif mysql # not compatible
query I rowsort label-5924
SELECT COUNT ( * ) * ( - 77 ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-693

query I rowsort
SELECT - col0 / + 22 FROM tab1 AS cor0 WHERE ( + 89 * + 26 ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5926
SELECT + + 75 DIV + col2 + col2 FROM tab0 AS cor0
----
17
48
99

skipif mysql # not compatible
query I rowsort label-5926
SELECT + + 75 / + col2 + col2 FROM tab0 AS cor0
----
17
48
99

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

query I rowsort
SELECT DISTINCT - col2 * - - col2 AS col1 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT 38 * + + 54 FROM tab2
----
2052
2052
2052

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT DISTINCT - MIN( + ( - col1 ) ) * + 64 FROM tab2
----
4928

skipif mysql # not compatible
query I rowsort label-5930
SELECT DISTINCT - MIN ( + ( - col1 ) ) * + 64 FROM tab2
----
4928

query I rowsort
SELECT col2 * + + col2 * - - col0 * 1 AS col0 FROM tab1
----
295885
420784
470016

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

query I rowsort
SELECT + 36 AS col2 FROM tab0 WHERE + 74 IS NULL
----

query I rowsort
SELECT - 75 + ( - - col0 ) AS col1 FROM tab0
----
-60
12
22

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( 43 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5936
SELECT DISTINCT - - 75 - + 34 DIV - 12 AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5936
SELECT DISTINCT - - 75 - + 34 / - 12 AS col2 FROM tab2 AS cor0
----
77

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + - col2 col0 FROM tab0 AS cor0
----
-198
-20
-94

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col1 ) <= - col2 + + + 65
----
15
81
47
97
1
99

query II rowsort
SELECT DISTINCT col1 * + + col0 * + col1, - col0 AS col0 FROM tab2
----
119646
-46
336675
-75
379456
-64

query I rowsort
SELECT DISTINCT - ( - ( + col1 ) ) AS col2 FROM tab2 AS cor0
----
51
67
77

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5949
SELECT DISTINCT 39 DIV MAX( + col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5949
SELECT DISTINCT 39 / MAX ( + col2 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT ALL - MIN( DISTINCT col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5950
SELECT ALL - MIN ( DISTINCT col1 ) FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5951
SELECT ALL + CAST( col0 AS SIGNED ) - 69 FROM tab0 WHERE - col0 + + col2 + ( - - CAST( col2 AS SIGNED ) ) * col2 * col1 <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5951
SELECT ALL + CAST ( col0 AS INTEGER ) - 69 FROM tab0 WHERE - col0 + + col2 + ( - - CAST ( col2 AS INTEGER ) ) * col2 * col1 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT + MIN( ALL - - 21 ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-5952
SELECT + MIN ( ALL - - 21 ) FROM tab0
----
21

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col1 IS NULL
----

query I rowsort
SELECT - ( - ( + 25 ) ) FROM tab0
----
25
25
25

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

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

query II rowsort
SELECT ALL + col0 AS col0, + col1 + col2 + 9 FROM tab0
----
15
137
87
40
97
109

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5957
SELECT - COUNT ( * ) col0 FROM tab2, tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT - 5 + + col0 AS col1 FROM tab0 cor0
----
10
82
92

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND + ( 34 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 54 = ( + 90 + 93 )
----

query I rowsort
SELECT ALL 6 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

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

query I rowsort
SELECT - + 6 + - col0 FROM tab0 AS cor0
----
-103
-21
-93

query I rowsort
SELECT DISTINCT 61 + - col1 - + col0 * + 82 AS col1 FROM tab0 AS cor0
----
-1250
-7094
-7894

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT DISTINCT COUNT( * ) * 49 FROM tab2 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-5965
SELECT DISTINCT COUNT ( * ) * 49 FROM tab2 AS cor0
----
147

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 0 + - col2 col2 FROM tab2 AS cor0 WHERE 51 + - - 62 IS NOT NULL
----
-23
-40
-58

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

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

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

query I rowsort
SELECT DISTINCT 97 * col0 FROM tab0
----
1455
8439
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT ALL 85 + MIN( DISTINCT + col1 ) AS col2 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL 85 + MIN ( DISTINCT + col1 ) AS col2 FROM tab1
----
90

query I rowsort
SELECT col2 * col1 * + 49 AS col1 FROM tab0
----
10290
186543
4851

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT DISTINCT MAX( col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5973
SELECT DISTINCT MAX ( col0 ) FROM tab1
----
91

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

skipif mysql # not compatible
query I rowsort label-5974
SELECT col1 / 23 AS col0 FROM tab0
----
0
0
3

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5977
SELECT * FROM tab0 WHERE NULL <> ( + CAST( NULL AS SIGNED ) / col0 )
----

skipif mysql # not compatible
query III rowsort label-5977
SELECT * FROM tab0 WHERE NULL <> ( + CAST ( NULL AS INTEGER ) / col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 * col1 NOT BETWEEN + 87 AND + col1
----

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

query II rowsort
SELECT ALL col0 * - col1 * 27 AS col0, - 20 FROM tab0 AS cor0
----
-2619
-20
-32805
-20
-49329
-20

query I rowsort
SELECT DISTINCT - - col0 * - + 94 + - col2 FROM tab0 cor0
----
-1457
-8188
-9217

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT - COUNT( DISTINCT 54 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5983
SELECT - COUNT ( DISTINCT 54 ) AS col2 FROM tab0
----
-1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5985
SELECT - + col2 DIV - + 64 * - col1 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5985
SELECT - + col2 / - + 64 * - col1 AS col2 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5986
SELECT DISTINCT + 19 DIV + COUNT( * ) col2 FROM tab0 cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5986
SELECT DISTINCT + 19 / + COUNT ( * ) col2 FROM tab0 cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5987
SELECT CAST( - - col1 AS SIGNED ) * - + col1 col2 FROM tab2
----
-2601
-4489
-5929

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5987
SELECT CAST ( - - col1 AS INTEGER ) * - + col1 col2 FROM tab2
----
-2601
-4489
-5929

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

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

query I rowsort
SELECT ALL - 58 * - ( - 13 ) + + 33 FROM tab0
----
-721
-721
-721

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5991
SELECT DISTINCT col1 + 11 DIV + col1 AS col0, - col2 FROM tab2
----
51
-23
67
-58
77
-40

skipif mysql # not compatible
query II rowsort label-5991
SELECT DISTINCT col1 + 11 / + col1 AS col0, - col2 FROM tab2
----
51
-23
67
-58
77
-40

query II rowsort
SELECT - 36 AS col2, + 7 + col0 AS col2 FROM tab2
----
-36
53
-36
71
-36
82

query II rowsort
SELECT ALL 47, 25 * + 13 AS col1 FROM tab0
----
47
325
47
325
47
325

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

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

query I rowsort
SELECT ALL - 98 * + col2 * - + 19 AS col0 FROM tab2
----
107996
42826
74480

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

query I rowsort
SELECT + col2 * + 31 AS col1 FROM tab0
----
1457
3069
310

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= + 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT + 70 * - COUNT( * ) + + ( + 30 ) + 95 * + 46 AS col0 FROM tab1 AS cor0
----
4190

skipif mysql # not compatible
query I rowsort label-6000
SELECT + 70 * - COUNT ( * ) + + ( + 30 ) + 95 * + 46 AS col0 FROM tab1 AS cor0
----
4190

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6001
SELECT - 94 + - - CAST( NULL AS DECIMAL ) + + + 14 * + + COUNT( * ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6001
SELECT - 94 + - - CAST ( NULL AS REAL ) + + + 14 * + + COUNT ( * ) AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT COUNT( * ) + - SUM( col2 ) AS col1 FROM tab2
----
-118

skipif mysql # not compatible
query I rowsort label-6002
SELECT COUNT ( * ) + - SUM ( col2 ) AS col1 FROM tab2
----
-118

onlyif mysql # DIV for integer division: 
query I rowsort label-6003
SELECT col1 DIV 76 + - col1 FROM tab2
----
-51
-67
-76

skipif mysql # not compatible
query I rowsort label-6003
SELECT col1 / 76 + - col1 FROM tab2
----
-51
-67
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-6004
SELECT - ( - 96 ) + + + 99 DIV - col2 FROM tab1
----
95
95
95

skipif mysql # not compatible
query I rowsort label-6004
SELECT - ( - 96 ) + + + 99 / - col2 FROM tab1
----
95
95
95

query I rowsort
SELECT + - col2 AS col0 FROM tab1 WHERE 21 = - + col0 * + + ( - + col2 )
----

query I rowsort
SELECT DISTINCT + 23 + AVG ( + 29 ) * - 68 FROM tab0 WHERE NOT - col1 NOT BETWEEN NULL AND col0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL = + 92 * + col1
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6009
SELECT DISTINCT + col0 DIV col2 + + + 16 + col0 AS col2 FROM tab2 cor0
----
64
81
92

skipif mysql # not compatible
query I rowsort label-6009
SELECT DISTINCT + col0 / col2 + + + 16 + col0 AS col2 FROM tab2 cor0
----
64
81
92

query I rowsort
SELECT DISTINCT col2 + - 13 - + 9 AS col1 FROM tab1 cor0
----
37
46
74

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * - col2 > NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT DISTINCT + MAX( + col2 ) - + 37 AS col2 FROM tab0 cor0
----
62

skipif mysql # not compatible
query I rowsort label-6015
SELECT DISTINCT + MAX ( + col2 ) - + 37 AS col2 FROM tab0 cor0
----
62

query I rowsort
SELECT ALL - 15 + col1 - + - 45 - - col2 * + col2 FROM tab1 cor0
----
3516
4701
9260

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

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

query I rowsort
SELECT DISTINCT col1 - + + ( 32 ) + - col0 AS col1 FROM tab0 AS cor0
----
-128
-98
34

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6020
SELECT - col2 DIV col1 - 34 FROM tab2
----
-34
-34
-34

skipif mysql # not compatible
query I rowsort label-6020
SELECT - col2 / col1 - 34 FROM tab2
----
-34
-34
-34

query III rowsort
SELECT * FROM tab2 WHERE ( NOT - 87 + col1 <= NULL )
----

query I rowsort
SELECT DISTINCT col0 + + col2 * - col2 AS col0 FROM tab2
----
-1536
-3289
-483

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT DISTINCT - SUM( ALL 36 ) AS col1 FROM tab0
----
-108

skipif mysql # not compatible
query I rowsort label-6023
SELECT DISTINCT - SUM ( ALL 36 ) AS col1 FROM tab0
----
-108

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 ) >= - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6027
SELECT DISTINCT + 82, ( - COUNT( * ) ) AS col2 FROM tab0 WHERE ( NOT - col1 * + col2 NOT BETWEEN NULL AND CAST( NULL AS SIGNED ) )
----
82
0

skipif mysql # not compatible
query II rowsort label-6027
SELECT DISTINCT + 82, ( - COUNT ( * ) ) AS col2 FROM tab0 WHERE ( NOT - col1 * + col2 NOT BETWEEN NULL AND CAST ( NULL AS INTEGER ) )
----
82
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6028
SELECT col0 / + 6 col0 FROM tab0
----
14
16
2

query I rowsort
SELECT ALL ( + col2 ) AS col2 FROM tab0 cor0 WHERE 0 + + 76 = NULL
----

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

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

query I rowsort
SELECT + col2 * 38 FROM tab2 cor0
----
1520
2204
874

query I rowsort
SELECT DISTINCT col1 * + + col1 * 56 + col2 FROM tab1 AS cor0
----
11072
123772
1459

query II rowsort
SELECT - + 54 AS col2, - col0 - 87 FROM tab0 AS cor0
----
-54
-102
-54
-174
-54
-184

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6035
SELECT 35 DIV + 52 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6035
SELECT 35 / + 52 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 >= + + 85
----
51
14
96

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col2 col0 FROM tab0 cor0
----
100
2209
9801

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6039
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - - 33 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6039
SELECT DISTINCT - CAST ( NULL AS REAL ) * - - 33 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6040
SELECT * FROM tab0 WHERE NOT 89 * - col0 + CAST( NULL AS SIGNED ) + + + col0 / + col2 * - + col2 = + - col0
----

skipif mysql # not compatible
query III rowsort label-6040
SELECT * FROM tab0 WHERE NOT 89 * - col0 + CAST ( NULL AS INTEGER ) + + + col0 / + col2 * - + col2 = + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT DISTINCT - MIN( ALL + ( - 63 ) ) + COUNT( * ) * + 75 * + 48 FROM tab2
----
10863

skipif mysql # not compatible
query I rowsort label-6041
SELECT DISTINCT - MIN ( ALL + ( - 63 ) ) + COUNT ( * ) * + 75 * + 48 FROM tab2
----
10863

query I rowsort
SELECT DISTINCT col2 + col0 + col0 * + - col2 AS col2 FROM tab1
----
-4749
-4871
-6029

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT 0 + - ( 29 ) * + SUM( ALL col1 ) col0 FROM tab0
----
-2987

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6044
SELECT 0 + - ( 29 ) * + SUM ( ALL col1 ) col0 FROM tab0
----
-2987

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

query I rowsort
SELECT 91 * 94 FROM tab2 AS cor0
----
8554
8554
8554

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT ALL - MAX( - 86 ) AS col0 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL - MAX ( - 86 ) AS col0 FROM tab2 AS cor0
----
86

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 - - + col1 col1 FROM tab2
----
123
139
149

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

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

skipif mysql # not compatible
query I rowsort label-6051
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1 / + CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - 0 AS col0 FROM tab1 AS cor0 WHERE + 16 IN ( - 46 + - + 20 * col0, col2, - 54 )
----

query I rowsort
SELECT ALL - + 42 + - + 89 AS col2 FROM tab2 AS cor0
----
-131
-131
-131

query I rowsort
SELECT ALL + col2 - + 83 * - + col1 AS col1 FROM tab1 cor0
----
1258
3969
474

query I rowsort
SELECT - - col2 + + - col1 AS col1 FROM tab1 AS cor0
----
21
54
82

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6058
SELECT ALL + col1 FROM tab2 WHERE NOT + col0 <= 46 / - - col0 + - col0 * CAST( - 28 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6058
SELECT ALL + col1 FROM tab2 WHERE NOT + col0 <= 46 / - - col0 + - col0 * CAST ( - 28 AS INTEGER )
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 = - col2
----

query II rowsort
SELECT col2, 1 FROM tab1
----
59
1
68
1
96
1

query I rowsort
SELECT - col0 * + 14 * col0 FROM tab0
----
-105966
-131726
-3150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6063
SELECT COUNT( * ) DIV + 30 col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6063
SELECT COUNT ( * ) / + 30 col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT + MAX( ALL + 0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6064
SELECT + MAX ( ALL + 0 ) FROM tab0
----
0

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

query I rowsort
SELECT DISTINCT + 57 * - col2 AS col1 FROM tab2 AS cor0
----
-1311
-2280
-3306

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6073
SELECT + col1 * + 79 * - CAST( + 52 AS SIGNED ) AS col0 FROM tab1
----
-193076
-20540
-57512

skipif mysql # not compatible
query I rowsort label-6073
SELECT + col1 * + 79 * - CAST ( + 52 AS INTEGER ) AS col0 FROM tab1
----
-193076
-20540
-57512

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 83 * - col2 * + col1 * + 98 FROM tab1 cor0
----
-10932096
-2399530
-25996264

query I rowsort
SELECT col0 * - + 70 AS col2 FROM tab2
----
-3220
-4480
-5250

onlyif mysql # DIV for integer division: 
query I rowsort label-6083
SELECT - 98 DIV + col2 AS col1 FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-6083
SELECT - 98 / + col2 AS col1 FROM tab2
----
-1
-2
-4

query I rowsort
SELECT DISTINCT ( 58 ) * col2 + + col1 * col0 AS col0 FROM tab0
----
2407
3941
5839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + col2 col1 FROM tab2
----
1600
3364
529

query II rowsort
SELECT DISTINCT ( - col2 ) + + - col2 AS col1, + ( + 21 ) + - + col2 FROM tab2
----
-116
-37
-46
-2
-80
-19

onlyif mysql # DIV for integer division: 
query II rowsort label-6087
SELECT ALL 44 + + ( - col0 ), col2 - + col0 DIV 80 + + col1 AS col0 FROM tab2
----
-2
74
-20
117
-31
125

skipif mysql # not compatible
query II rowsort label-6087
SELECT ALL 44 + + ( - col0 ), col2 - + col0 / 80 + + col1 AS col0 FROM tab2
----
-2
74
-20
117
-31
125

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

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

skipif mysql # not compatible
query I rowsort label-6089
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT NULL >= ( - + 14 )
----
0

query I rowsort
SELECT ALL + 51 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6092
SELECT ALL CAST( - + ( - - col2 ) AS SIGNED ) FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL CAST ( - + ( - - col2 ) AS INTEGER ) FROM tab2 cor0
----
-23
-40
-58

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6093
SELECT - CAST ( NULL AS REAL ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT - 75 * - 83 FROM tab0 cor0
----
6225
6225
6225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6097
SELECT col0 col0 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * col1 * - col0 = NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6097
SELECT col0 col0 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * col1 * - col0 = NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT DISTINCT SUM( DISTINCT + col0 ) * COUNT( col2 ) FROM tab0
----
597

skipif mysql # not compatible
query I rowsort label-6099
SELECT DISTINCT SUM ( DISTINCT + col0 ) * COUNT ( col2 ) FROM tab0
----
597

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

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

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

skipif mysql # not compatible
query I rowsort label-6101
SELECT + 54 / col1 FROM tab0
----
0
2
54

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT + + 30 * - - COUNT( * ) FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-6104
SELECT + + 30 * - - COUNT ( * ) FROM tab2 AS cor0
----
90

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

query I rowsort
SELECT DISTINCT - - 26 AS col1 FROM tab2 cor0
----
26

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT - - COUNT( * ) * + 95 * 41 * - - 59 AS col0 FROM tab2 AS cor0
----
689415

skipif mysql # not compatible
query I rowsort label-6112
SELECT - - COUNT ( * ) * + 95 * 41 * - - 59 AS col0 FROM tab2 AS cor0
----
689415

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

query I rowsort
SELECT col1 * ( + col1 ) AS col2 FROM tab2 cor0
----
2601
4489
5929

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6115
SELECT ALL * FROM tab0 cor0 WHERE NOT - CAST( col1 AS SIGNED ) / col1 * - col2 / col2 IN ( - 5, - col1 * - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6115
SELECT ALL * FROM tab0 cor0 WHERE NOT - CAST ( col1 AS INTEGER ) / col1 * - col2 / col2 IN ( - 5, - col1 * - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - col1, + 28 AS col1 FROM tab0 AS cor0
----
-1
28
-21
28
-81
28

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

query I rowsort
SELECT ALL - ( - col0 ) * 49 AS col1 FROM tab2
----
2254
3136
3675

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT COUNT( * ) + + 89 * + - COUNT( DISTINCT + col2 ) FROM tab2
----
-264

skipif mysql # not compatible
query I rowsort label-6121
SELECT COUNT ( * ) + + 89 * + - COUNT ( DISTINCT + col2 ) FROM tab2
----
-264

query I rowsort
SELECT DISTINCT col0 * + 7 + 58 AS col2 FROM tab2
----
380
506
583

query I rowsort
SELECT + - 70 FROM tab2 AS cor0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT ( + + COUNT( * ) ) * - 71 AS col1 FROM tab1 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-6124
SELECT ( + + COUNT ( * ) ) * - 71 AS col1 FROM tab1 AS cor0
----
-213

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

query II rowsort
SELECT ALL + 63 * + + 4 AS col0, col0 * col2 FROM tab2 AS cor0
----
252
1058
252
2560
252
4350

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-23
-40
-58

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

query I rowsort
SELECT DISTINCT col0 - - 21 AS col0 FROM tab0
----
108
118
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6130
SELECT - 67 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6130
SELECT - 67 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT - + COUNT( * ) * + COUNT( ALL 36 ) * ( + COUNT( * ) ) * + 90 - + MAX( - + col2 ) * 25 FROM tab0 WHERE + + col2 * - + col0 IS NOT NULL
----
-2180

skipif mysql # not compatible
query I rowsort label-6131
SELECT - + COUNT ( * ) * + COUNT ( ALL 36 ) * ( + COUNT ( * ) ) * + 90 - + MAX ( - + col2 ) * 25 FROM tab0 WHERE + + col2 * - + col0 IS NOT NULL
----
-2180

query I rowsort
SELECT ( col2 ) + + col2 FROM tab1
----
118
136
192

query I rowsort
SELECT DISTINCT - - col2 * + 19 * - col0 FROM tab2 AS cor0
----
-20102
-48640
-82650

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT - ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 / - 81 * + col2 <> - + col1
----
0

skipif mysql # not compatible
query I rowsort label-6134
SELECT - ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 / - 81 * + col2 <> - + col1
----
0

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 97 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6137
SELECT DISTINCT - col0 AS col1 FROM tab1 AS cor0 WHERE - CAST( - col0 AS DECIMAL ) IS NOT NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6137
SELECT DISTINCT - col0 AS col1 FROM tab1 AS cor0 WHERE - CAST ( - col0 AS REAL ) IS NOT NULL
----
-51
-85
-91

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

query I rowsort
SELECT ALL + - 49 * 23 AS col1 FROM tab0 AS cor0
----
-1127
-1127
-1127

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT ALL - - SUM( ALL - + col0 ) * - ( + 30 ) * - - 84 AS col1 FROM tab2 AS cor0
----
466200

skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL - - SUM ( ALL - + col0 ) * - ( + 30 ) * - - 84 AS col1 FROM tab2 AS cor0
----
466200

onlyif mysql # DIV for integer division: 
query I rowsort label-6143
SELECT DISTINCT 11 DIV - 39 * col1 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6143
SELECT DISTINCT 11 / - 39 * col1 AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6144
SELECT DISTINCT + COUNT( ALL + CAST( col2 AS SIGNED ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6144
SELECT DISTINCT + COUNT ( ALL + CAST ( col2 AS INTEGER ) ) AS col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT + 9 FROM tab2 WHERE NOT - - col0 < - ( col1 )
----
9

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

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

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

query I rowsort
SELECT ALL + col2 * + col2 + + ( - col2 ) AS col2 FROM tab0 AS cor0
----
2162
90
9702

query I rowsort
SELECT DISTINCT ( + - 64 ) FROM tab1
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6150
SELECT + 51 + MAX( ALL - col2 ) DIV ( + - 78 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-6150
SELECT + 51 + MAX ( ALL - col2 ) / ( + - 78 ) AS col0 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT ALL + 77 + + COUNT( * ) FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-6151
SELECT ALL + 77 + + COUNT ( * ) FROM tab1
----
80

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + ( + + col2 ) NOT IN ( + col0, + col2, + 40 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 * col1 + + 28 FROM tab0 cor0
----
1243
125
1855

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

query I rowsort
SELECT - + col1 * - - col1 FROM tab1 AS cor0
----
-196
-2209
-25

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

skipif mysql # not compatible
query I rowsort label-6157
SELECT + COUNT ( ALL col2 ) * COUNT ( * ) FROM tab1
----
9

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

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

query III rowsort
SELECT * FROM tab0 WHERE - 84 IN ( + + 90 * + - col2, - col2 )
----

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

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

query I rowsort
SELECT ALL + ( - col1 ) FROM tab0 WHERE NOT + 94 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT - 17 * MAX( ALL - + col0 ) AS col1 FROM tab2
----
782

skipif mysql # not compatible
query I rowsort label-6162
SELECT - 17 * MAX ( ALL - + col0 ) AS col1 FROM tab2
----
782

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

skipif mysql # not compatible
query I rowsort label-6163
SELECT DISTINCT - COUNT ( - col1 ) FROM tab0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE - col2 + + 41 < - col0 * - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 4 + + + col0 col2 FROM tab0 AS cor0
----
11
83
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 26 + col2 col2 FROM tab0 AS cor0
----
-16
21
73

query I rowsort
SELECT - - col1 * + + col0 + + - 40 * + + col2 * 38 FROM tab2 AS cor0
----
-32614
-55872
-83135

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

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

query I rowsort
SELECT DISTINCT + 95 * 85 - + - 60 + 24 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
8159

onlyif mysql # DIV for integer division: 
query I rowsort label-6170
SELECT col2 DIV - - col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6170
SELECT col2 / - - col2 FROM tab0
----
1
1
1

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 69 + col0 ) < col1 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT ALL COUNT( * ) * - + COUNT( col0 ) * COUNT( * ) AS col1 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL COUNT ( * ) * - + COUNT ( col0 ) * COUNT ( * ) AS col1 FROM tab2
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-6173
SELECT - col2 DIV - + 22 FROM tab0 cor0
----
0
2
4

skipif mysql # not compatible
query I rowsort label-6173
SELECT - col2 / - + 22 FROM tab0 cor0
----
0
2
4

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col0 * - + col1, - col2 * 89 )
----

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

query I rowsort
SELECT ALL 63 * + 13 FROM tab2 AS cor0
----
819
819
819

query I rowsort
SELECT DISTINCT + col1 * - col0 + + + 13 - + 60 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-4324
-472
-761

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT DISTINCT - SUM( + col0 ) * + + MAX( ALL - ( + 39 ) ) FROM tab2 AS cor0
----
7215

skipif mysql # not compatible
query I rowsort label-6178
SELECT DISTINCT - SUM ( + col0 ) * + + MAX ( ALL - ( + 39 ) ) FROM tab2 AS cor0
----
7215

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 78 * - col0 col0 FROM tab1 AS cor0
----
3978
6630
7098

query II rowsort
SELECT - - col1 * - col2, col2 FROM tab1 AS cor0
----
-1344
96
-295
59
-3196
68

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

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

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

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

query I rowsort
SELECT DISTINCT col1 * 8 FROM tab1
----
112
376
40

query I rowsort
SELECT DISTINCT - 94 AS col0 FROM tab2
----
-94

query I rowsort
SELECT DISTINCT 28 * - - col2 FROM tab0
----
1316
2772
280

query I rowsort
SELECT ALL 0 AS col2 FROM tab0
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT col0 + - ( col2 ) + ( col1 ) FROM tab0
----
-1
49
98

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

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

query I rowsort
SELECT DISTINCT - 16 + + + col0 FROM tab2 AS cor0
----
30
48
59

query I rowsort
SELECT + col0 * - 46 AS col0 FROM tab0 AS cor0
----
-4002
-4462
-690

query I rowsort
SELECT + + col2 + col2 + + 53 AS col1 FROM tab1 AS cor0
----
171
189
245

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

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

query I rowsort
SELECT - 51 + col1 AS col0 FROM tab1 AS cor0
----
-37
-4
-46

query I rowsort
SELECT + + col2 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN + 13 + + + col2 * 9 AND + col1
----
23
40
58

query I rowsort
SELECT DISTINCT + col1 * + + 28 + + + col1 * col0 AS col1 FROM tab2 AS cor0
----
3774
6901
7084

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

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

query I rowsort
SELECT ALL + col0 + 30 FROM tab1 AS cor0
----
115
121
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT + - COUNT( * ) + + 2 + 25 * + MIN( DISTINCT - 71 ) col0 FROM tab0 AS cor0
----
-1776

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6200
SELECT + - COUNT ( * ) + + 2 + 25 * + MIN ( DISTINCT - 71 ) col0 FROM tab0 AS cor0
----
-1776

query I rowsort
SELECT 58 * col1 - - 93 + 85 AS col1 FROM tab1 AS cor0
----
2904
468
990

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

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

query III rowsort
SELECT * FROM tab1 WHERE - 3 IS NULL
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6205
SELECT ALL - 62 DIV + 37 AS col2, + col2 AS col2 FROM tab0 WHERE - col1 NOT BETWEEN 6 AND ( 91 * - 52 + - col0 * + ( + col2 ) )
----
-1
10
-1
47
-1
99

skipif mysql # not compatible
query II rowsort label-6205
SELECT ALL - 62 / + 37 AS col2, + col2 AS col2 FROM tab0 WHERE - col1 NOT BETWEEN 6 AND ( 91 * - 52 + - col0 * + ( + col2 ) )
----
-1
10
-1
47
-1
99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6207
SELECT + col2 DIV - - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6207
SELECT + col2 / - - col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6208
SELECT col2 - + + col2 + - CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6208
SELECT col2 - + + col2 + - CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6209
SELECT * FROM tab1 cor0 WHERE NOT + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6209
SELECT * FROM tab1 cor0 WHERE NOT + CAST ( NULL AS REAL ) IS NULL
----

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

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

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

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

query I rowsort
SELECT + 66 * 29 AS col1 FROM tab0
----
1914
1914
1914

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL col1 * - + 48 AS col2 FROM tab0 cor0
----
-1008
-3888
-48

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6224
SELECT + CAST( - MIN( ALL - col0 ) AS SIGNED ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-6224
SELECT + CAST ( - MIN ( ALL - col0 ) AS INTEGER ) AS col0 FROM tab2
----
75

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

skipif mysql # not compatible
query I rowsort label-6225
SELECT DISTINCT 92 * + COUNT ( * ) FROM tab2
----
276

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL < - - ( - - col1 )
----

query I rowsort
SELECT DISTINCT + col2 + 38 * ( 3 ) AS col1 FROM tab2
----
137
154
172

onlyif mysql # DIV for integer division: 
query II rowsort label-6228
SELECT - col0 * + col1 AS col2, 62 DIV + ( - col2 ) FROM tab2
----
-2346
-2
-4928
-1
-5025
-1

skipif mysql # not compatible
query II rowsort label-6228
SELECT - col0 * + col1 AS col2, 62 / + ( - col2 ) FROM tab2
----
-2346
-2
-4928
-1
-5025
-1

query I rowsort
SELECT DISTINCT + 25 FROM tab0 AS cor0 WHERE - 91 IS NOT NULL
----
25

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

query II rowsort
SELECT 72 * - + 82, col1 FROM tab0 cor0
----
-5904
1
-5904
21
-5904
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 83 >= NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT 75 + + COUNT( + + col1 ) + + COUNT( * ) AS col2 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-6235
SELECT 75 + + COUNT ( + + col1 ) + + COUNT ( * ) AS col2 FROM tab2
----
81

query I rowsort
SELECT DISTINCT + 6 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
6

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

query I rowsort
SELECT ALL - 59 + + - 81 AS col2 FROM tab0 AS cor0
----
-140
-140
-140

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6239
SELECT COUNT( * ) AS col2, COUNT( - col0 ) DIV + + 33 FROM tab0 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-6239
SELECT COUNT ( * ) AS col2, COUNT ( - col0 ) / + + 33 FROM tab0 AS cor0
----
3
0

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6246
SELECT DISTINCT CAST( - col2 AS SIGNED ) + + col2 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6246
SELECT DISTINCT CAST ( - col2 AS INTEGER ) + + col2 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT + 43 - COUNT( * ) - COUNT( * ) * COUNT( * ) AS col1 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-6247
SELECT + 43 - COUNT ( * ) - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 * col1 col2 FROM tab2
----
107916
315392
376875

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6249
SELECT + CAST( col2 AS SIGNED ) DIV col0 + col2 - - 31 FROM tab1
----
128
90
99

skipif mysql # not compatible
query I rowsort label-6249
SELECT + CAST ( col2 AS INTEGER ) / col0 + col2 - - 31 FROM tab1
----
128
90
99

query I rowsort
SELECT DISTINCT - 72 * - col0 FROM tab1
----
3672
6120
6552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 - + col2 col1 FROM tab0
----
-109
-20
-57

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - col0 + col1 - + - col0 + + col2 * 5 * + 24 * - 83 AND - - 49
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6254
SELECT - ( + 73 ) + - 53 + + col0 * col0 DIV - + col0 + ( col0 ) * + 50 FROM tab1 AS cor0
----
2373
4039
4333

skipif mysql # not compatible
query I rowsort label-6254
SELECT - ( + 73 ) + - 53 + + col0 * col0 / - + col0 + ( col0 ) * + 50 FROM tab1 AS cor0
----
2373
4039
4333

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

query I rowsort
SELECT + 88 * - 92 FROM tab1 WHERE NOT NULL < + + 17
----

query I rowsort
SELECT + - col1 * + - col0 FROM tab1 AS cor0
----
425
4277
714

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6261
SELECT - - ( - COUNT( * ) ) DIV + 79 * - - 72 * - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6261
SELECT - - ( - COUNT ( * ) ) / + 79 * - - 72 * - COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + - ( + + 56 ) * ( - - col2 ) AS col1 FROM tab2 AS cor0
----
-1288
-2240
-3248

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

query I rowsort
SELECT 20 * + 27 FROM tab0 AS cor0
----
540
540
540

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

query I rowsort
SELECT ALL col0 + + + col1 FROM tab0
----
108
96
98

query I rowsort
SELECT + 24 * 15 + 8 + + - col2 AS col1 FROM tab1
----
272
300
309

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

skipif mysql # not compatible
query I rowsort label-6268
SELECT + 55 + + COUNT ( * ) FROM tab0
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6269
SELECT DISTINCT - - COUNT( * ) DIV - COUNT( * ), 3 AS col0 FROM tab2 WHERE ( col0 IS NOT NULL )
----
-1
3

skipif mysql # not compatible
query II rowsort label-6269
SELECT DISTINCT - - COUNT ( * ) / - COUNT ( * ), 3 AS col0 FROM tab2 WHERE ( col0 IS NOT NULL )
----
-1
3

query I rowsort
SELECT ALL + 2 + + 87 AS col2 FROM tab1 WHERE - - 68 IS NULL
----

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

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

query I rowsort
SELECT ALL - 7 * - 96 + - 4 FROM tab1
----
668
668
668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6273
SELECT + + 53 * - ( col2 ) + + CAST( + 9 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3118
-3595
-5079

skipif mysql # not compatible
query I rowsort label-6273
SELECT + + 53 * - ( col2 ) + + CAST ( + 9 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3118
-3595
-5079

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

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

query I rowsort
SELECT DISTINCT - - 46 AS col2 FROM tab2 AS cor0
----
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT - 88 - COUNT( * ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-6278
SELECT - 88 - COUNT ( * ) AS col0 FROM tab1
----
-91

query II rowsort
SELECT ALL col2 * - ( + + col1 ) + + col2 + + 22 AS col1, + col1 AS col2 FROM tab2 AS cor0
----
-1128
51
-3018
77
-3806
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6280
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 70 + + - col0 = - CAST( col1 AS SIGNED ) * + - col2 + + + 39
----

skipif mysql # not compatible
query III rowsort label-6280
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 70 + + - col0 = - CAST ( col1 AS INTEGER ) * + - col2 + + + 39
----

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

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

query I rowsort
SELECT DISTINCT - col0 + + - 47 * + 23 * + col0 FROM tab1 AS cor0
----
-55182
-91970
-98462

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6284
SELECT ALL col0 + col0 DIV - col1 AS col1 FROM tab1 AS cor0
----
48
68
90

skipif mysql # not compatible
query I rowsort label-6284
SELECT ALL col0 + col0 / - col1 AS col1 FROM tab1 AS cor0
----
48
68
90

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE - ( + - col2 ) / 13 * - 46 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT + MAX( ( 46 ) ) + 60 + + - 98 * - COUNT( + col2 ) AS col1 FROM tab2 AS cor0
----
400

skipif mysql # not compatible
query I rowsort label-6286
SELECT + MAX ( ( 46 ) ) + 60 + + - 98 * - COUNT ( + col2 ) AS col1 FROM tab2 AS cor0
----
400

query I rowsort
SELECT DISTINCT + - 3 AS col0 FROM tab0 AS cor0 WHERE 93 IS NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6289
SELECT - - 20 DIV + + 70 + - COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6289
SELECT - - 20 / + + 70 + - COUNT ( * ) FROM tab0 AS cor0
----
-3

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT ALL - - COUNT( * ) * 15 col2 FROM tab2 AS cor0
----
45

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

query I rowsort
SELECT ALL - 44 - - ( + + col2 ) AS col0 FROM tab1
----
15
24
52

onlyif mysql # DIV for integer division: 
query I rowsort label-6295
SELECT DISTINCT col2 DIV - col2 - + col2 * - + col0 * col1 FROM tab1
----
25074
290835
68543

skipif mysql # not compatible
query I rowsort label-6295
SELECT DISTINCT col2 / - col2 - + col2 * - + col0 * col1 FROM tab1
----
25074
290835
68543

query I rowsort
SELECT 64 * + - col2 * - + col2 FROM tab1
----
222784
295936
589824

onlyif mysql # DIV for integer division: 
query I rowsort label-6297
SELECT DISTINCT - 62 DIV + - 39 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6297
SELECT DISTINCT - 62 / + - 39 AS col1 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6298
SELECT - col0 DIV + - col2 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-6298
SELECT - col0 / + - col2 FROM tab0
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab1 WHERE ( + + col0 * - + col1 ) IS NOT NULL
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 72 col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-72

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6302
SELECT DISTINCT - COUNT( * ) AS col1, - 29 AS col0 FROM tab1
----
-3
-29

skipif mysql # not compatible
query II rowsort label-6302
SELECT DISTINCT - COUNT ( * ) AS col1, - 29 AS col0 FROM tab1
----
-3
-29

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

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

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

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

query I rowsort
SELECT ALL 33 FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6307
SELECT DISTINCT - ( - col0 ) DIV col1 + + ( ( + 13 ) ) + + + col2 - + - col1 * col0 AS col2 FROM tab0
----
1275
1854
306

skipif mysql # not compatible
query I rowsort label-6307
SELECT DISTINCT - ( - col0 ) / col1 + + ( ( + 13 ) ) + + + col2 - + - col1 * col0 AS col2 FROM tab0
----
1275
1854
306

onlyif mysql # aggregate syntax: 
query II rowsort label-6308
SELECT DISTINCT + MIN( 36 ) col1, + 17 + + COUNT( * ) FROM tab0
----
36
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6308
SELECT DISTINCT + MIN ( 36 ) col1, + 17 + + COUNT ( * ) FROM tab0
----
36
20

onlyif mysql # DIV for integer division: 
query II rowsort label-6309
SELECT - col0 DIV + col1, - 43 + 71 AS col0 FROM tab2 AS cor0
----
-1
28
0
28
0
28

skipif mysql # not compatible
query II rowsort label-6309
SELECT - col0 / + col1, - 43 + 71 AS col0 FROM tab2 AS cor0
----
-1
28
0
28
0
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT MIN( DISTINCT - col0 ) * - + 5 FROM tab0 cor0
----
485

skipif mysql # not compatible
query I rowsort label-6310
SELECT MIN ( DISTINCT - col0 ) * - + 5 FROM tab0 cor0
----
485

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

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

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( - 28 * - - col2 / + + col0 * 43 * + col0 * + col1 - - + col0 + - ( + col1 ), col1 )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6316
SELECT - COUNT( 33 ) AS col1, - COUNT( * ) - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-6316
SELECT - COUNT ( 33 ) AS col1, - COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3
0

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

query I rowsort
SELECT ALL col0 * - 79 FROM tab2
----
-3634
-5056
-5925

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 98 + ( + 69 ) col1 FROM tab1
----
167
167
167

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT - MIN( ALL 32 ) FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-6320
SELECT - MIN ( ALL 32 ) FROM tab1
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6321
SELECT - COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 col2 FROM tab2 WHERE + 73 >= NULL
----

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

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

query I rowsort
SELECT + - col2 + - + col0 FROM tab0 cor0
----
-196
-62
-97

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT ALL - COUNT( ALL - + 48 ) - - 14 col2 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6328
SELECT ALL - COUNT ( ALL - + 48 ) - - 14 col2 FROM tab2 AS cor0
----
11

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

query II rowsort
SELECT - col1 AS col1, col2 * + col2 FROM tab0 AS cor0
----
-1
9801
-21
100
-81
2209

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

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

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

query I rowsort
SELECT - col2 - - 29 FROM tab1 cor0
----
-30
-39
-67

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

query I rowsort
SELECT + + col0 - - - col2 FROM tab0 AS cor0
----
-2
-32
77

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

query I rowsort
SELECT - ( + 87 ) FROM tab1
----
-87
-87
-87

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

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

query I rowsort
SELECT - 32 * + - col1 AS col1 FROM tab1
----
1504
160
448

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

skipif mysql # not compatible
query I rowsort label-6340
SELECT DISTINCT COUNT ( * ) / + + COUNT ( ALL + 67 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT DISTINCT MAX( DISTINCT - col1 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6341
SELECT DISTINCT MAX ( DISTINCT - col1 ) AS col0 FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6342
SELECT DISTINCT CAST( - - col0 AS SIGNED ) AS col2, + 55 + - - col2 * - 33 + + - col1 - col1 AS col0 FROM tab0
----
15
-1658
87
-317
97
-3214

skipif mysql # not compatible
query II rowsort label-6342
SELECT DISTINCT CAST ( - - col0 AS INTEGER ) AS col2, + 55 + - - col2 * - 33 + + - col1 - col1 AS col0 FROM tab0
----
15
-1658
87
-317
97
-3214

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

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

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT ( + 83 <= + col2 * + ( + ( - + col1 ) ) )
----
10
47
99

query I rowsort
SELECT DISTINCT + - col2 / + col1 AS col0 FROM tab2 WHERE NOT NULL > 33 * 53
----

query I rowsort
SELECT ALL col0 * - 0 FROM tab1
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6348
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 72 ) * - col1 BETWEEN + CAST( - col0 AS SIGNED ) AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6348
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 72 ) * - col1 BETWEEN + CAST ( - col0 AS INTEGER ) AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 * - 97 - col1 * col1 / col1 / - + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * 17 AS col1 FROM tab0
----
1683
170
799

query II rowsort
SELECT DISTINCT + col0, col1 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT 42 * + col0 AS col1 FROM tab0 AS cor0
----
3654
4074
630

query I rowsort
SELECT col2 * 7 AS col1 FROM tab1 AS cor0
----
413
476
672

query I rowsort
SELECT DISTINCT - col0 * 27 AS col1 FROM tab0 AS cor0
----
-2349
-2619
-405

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

query I rowsort
SELECT col1 * - + col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

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

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

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

query I rowsort
SELECT + col1 * col0 + + col0 AS col1 FROM tab0
----
1230
1914
194

query I rowsort
SELECT col0 + - - ( + col2 ) FROM tab0
----
196
62
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6361
SELECT ALL + COUNT( * ) AS col2, - ( - + CAST( NULL AS SIGNED ) ) col2 FROM tab0 WHERE - - CAST( + 58 AS SIGNED ) NOT BETWEEN - + 35 / + col0 + 68 AND - col0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6361
SELECT ALL + COUNT ( * ) AS col2, - ( - + CAST ( NULL AS INTEGER ) ) col2 FROM tab0 WHERE - - CAST ( + 58 AS INTEGER ) NOT BETWEEN - + 35 / + col0 + 68 AND - col0
----
3
NULL

query I rowsort
SELECT DISTINCT col0 * col2 + - + 57 + 91 FROM tab2
----
1092
2594
4384

query I rowsort
SELECT DISTINCT + + 15 + + col1 + col2 FROM tab0 AS cor0
----
115
143
46

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * - + col0 + - 75 IS NULL
----

query I rowsort
SELECT ALL 18 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col1 NOT BETWEEN 23 AND NULL
----

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

query I rowsort
SELECT DISTINCT col1 + - 26 FROM tab1 cor0
----
-12
-21
21

query I rowsort
SELECT ALL - 64 * - + col2 FROM tab0 AS cor0
----
3008
6336
640

query I rowsort
SELECT ALL - col1 * - - col2 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT ALL - + COUNT( DISTINCT - - 2 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL - + COUNT ( DISTINCT - - 2 ) FROM tab0 AS cor0
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT + 80 * + COUNT( * ) * + 17 * + - 43 col0 FROM tab2
----
-175440

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6377
SELECT + 80 * + COUNT ( * ) * + 17 * + - 43 col0 FROM tab2
----
-175440

query I rowsort
SELECT - col0 * + 52 AS col0 FROM tab2
----
-2392
-3328
-3900

query II rowsort
SELECT + col2, + 75 FROM tab0
----
10
75
47
75
99
75

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

query I rowsort
SELECT DISTINCT col1 * 29 FROM tab2
----
1479
1943
2233

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

query I rowsort
SELECT - col0 * - - 32 * - - col1 FROM tab1 cor0
----
-13600
-136864
-22848

query I rowsort
SELECT 94 * col1 - + col0 - col1 + - - 89 + - + col1 * - 80 * + - col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-182894
-387054
-395755

onlyif mysql # aggregate syntax: 
query II rowsort label-6385
SELECT DISTINCT COUNT( * ), COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-6385
SELECT DISTINCT COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0
----
3
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6387
SELECT DISTINCT - 25 DIV + + 72 * + col1 * - col0 DIV + ( + 33 ) + + 72 col1 FROM tab1
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6387
SELECT DISTINCT - 25 / + + 72 * + col1 * - col0 / + ( + 33 ) + + 72 col1 FROM tab1
----
72

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6389
SELECT * FROM tab2 AS cor0 WHERE - col0 + + CAST( NULL AS SIGNED ) * - 49 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6389
SELECT * FROM tab2 AS cor0 WHERE - col0 + + CAST ( NULL AS INTEGER ) * - 49 IS NOT NULL
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE 46 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6391
SELECT ALL - 51 DIV - col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6391
SELECT ALL - 51 / - col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT 55 * - col0 AS col0 FROM tab2
----
-2530
-3520
-4125

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6394
SELECT col0 DIV col0 DIV - col1 AS col0, - col2 * col0 AS col2 FROM tab0
----
-1
-9603
0
-705
0
-870

skipif mysql # not compatible
query II rowsort label-6394
SELECT col0 / col0 / - col1 AS col0, - col2 * col0 AS col2 FROM tab0
----
-1
-9603
0
-705
0
-870

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6396
SELECT - 51 DIV - COUNT( * ) FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-6396
SELECT - 51 / - COUNT ( * ) FROM tab0
----
17

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

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

query I rowsort
SELECT + col0 - - 75 AS col1 FROM tab1
----
126
160
166

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

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

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT col2 BETWEEN 6 AND NULL
----

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6403
SELECT + COUNT( * ) DIV COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-6403
SELECT + COUNT ( * ) / COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1

query III rowsort
SELECT * FROM tab1 WHERE NULL = - col0
----

query I rowsort
SELECT ALL col1 * + 73 FROM tab1
----
1022
3431
365

query I rowsort
SELECT ALL col2 - 25 * + col0 AS col2 FROM tab0
----
-2165
-2326
-328

query I rowsort
SELECT - 65 * 9 + col1 FROM tab2
----
-508
-518
-534

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT ALL + COUNT( * ) + SUM( DISTINCT - 63 ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL + COUNT ( * ) + SUM ( DISTINCT - 63 ) FROM tab1
----
-60

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6409
SELECT MIN ( DISTINCT + col0 ) col1 FROM tab1
----
51

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 ) NOT BETWEEN ( NULL ) AND ( col0 / - col1 )
----

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NOT 2 <> col1 / col2 + 39
----

query I rowsort
SELECT + col0 * + col2 AS col0 FROM tab1 WHERE - col2 * ( ( - 8 ) ) = + col1 + 60 * + 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT - SUM( ALL col0 ) + ( 73 ) FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-6413
SELECT - SUM ( ALL col0 ) + ( 73 ) FROM tab0
----
-126

query I rowsort
SELECT 16 * - col2 FROM tab0 WHERE 9 NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT SUM( col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-6415
SELECT SUM ( col2 ) FROM tab1
----
223

query I rowsort
SELECT ALL - 36 + + col2 * - col1 FROM tab0
----
-135
-246
-3843

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

query I rowsort
SELECT - 42 + col1 FROM tab2
----
25
35
9

query I rowsort
SELECT col1 - - col2 * 34 FROM tab2 WHERE - col1 IS NOT NULL
----
1437
2039
833

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

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

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

query I rowsort
SELECT DISTINCT 7 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
7

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - ( + 81 ) + + 27 FROM tab1 AS cor0
----
-54

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT ALL - ( COUNT( * ) ) AS col2 FROM tab2 cor0 WHERE NOT - col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL - ( COUNT ( * ) ) AS col2 FROM tab2 cor0 WHERE NOT - col1 < NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT + MIN( col1 ) + - 55 AS col1 FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-6433
SELECT + MIN ( col1 ) + - 55 AS col1 FROM tab2 AS cor0
----
-4

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

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

query I rowsort
SELECT ALL - col0 * + + 28 AS col2 FROM tab0
----
-2436
-2716
-420

query I rowsort
SELECT - col2 + 20 AS col0 FROM tab2 WHERE - col2 + - col0 NOT BETWEEN - col1 AND 50
----
-20
-3
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT ALL COUNT( * ) * - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL COUNT ( * ) * - COUNT ( * ) FROM tab2
----
-9

query I rowsort
SELECT + col2 / 68 FROM tab0 WHERE 99 < NULL
----

query I rowsort
SELECT ( + 67 ) FROM tab2
----
67
67
67

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN 79 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-6441
SELECT SUM ( + - col2 ) AS col1 FROM tab0
----
-156

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

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

query I rowsort
SELECT ALL col0 + col1 + col2 AS col1 FROM tab0
----
118
143
197

query I rowsort
SELECT DISTINCT - 23 - + col1 AS col1 FROM tab1 AS cor0
----
-28
-37
-70

query I rowsort
SELECT ALL + 58 - - 20 AS col0 FROM tab1 AS cor0
----
78
78
78

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col1 * - 47 ) NOT BETWEEN NULL AND ( NULL )
----

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

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

query I rowsort
SELECT DISTINCT + col2 - - - col0 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6451
SELECT 89 * - col0 AS col2 FROM tab2 AS cor0 WHERE + col0 <= ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6451
SELECT 89 * - col0 AS col2 FROM tab2 AS cor0 WHERE + col0 <= ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT 60 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT + + 60 + COUNT( - 52 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
69

skipif mysql # not compatible
query I rowsort label-6453
SELECT + + 60 + COUNT ( - 52 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
69

query I rowsort
SELECT DISTINCT + 40 FROM tab1 WHERE NOT NULL > col2
----

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

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

query I rowsort
SELECT - + col0 * 82 AS col2 FROM tab0 AS cor0 WHERE NOT - 98 IS NULL
----
-1230
-7134
-7954

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

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

skipif mysql # not compatible
query I rowsort label-6459
SELECT - - MAX ( 73 ) AS col2 FROM tab2 AS cor0
----
73

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

query II rowsort
SELECT ALL + 15, + 81 AS col2 FROM tab0 AS cor0
----
15
81
15
81
15
81

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

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

skipif mysql # not compatible
query I rowsort label-6463
SELECT ( COUNT ( * ) ) AS col0 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - ( + - col1 ) FROM tab2
----
51
67
77

query I rowsort
SELECT col2 * - col1 * + col2 AS col2 FROM tab1
----
-129024
-17405
-217328

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6467
SELECT DISTINCT col1 DIV ( col1 ) AS col2 FROM tab1 WHERE + 91 * + col2 + - 14 NOT IN ( col2 )
----
1

skipif mysql # not compatible
query I rowsort label-6467
SELECT DISTINCT col1 / ( col1 ) AS col2 FROM tab1 WHERE + 91 * + col2 + - 14 NOT IN ( col2 )
----
1

query I rowsort
SELECT ALL + ( col2 ) * - + 58 AS col1 FROM tab1
----
-3422
-3944
-5568

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

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

query I rowsort
SELECT ALL col0 * - ( + 9 ) AS col2 FROM tab2
----
-414
-576
-675

query I rowsort
SELECT ( - 68 ) * + col2 AS col0 FROM tab2
----
-1564
-2720
-3944

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT - SUM( + 8 ) * + - 59 AS col0 FROM tab0 AS cor0
----
1416

skipif mysql # not compatible
query I rowsort label-6472
SELECT - SUM ( + 8 ) * + - 59 AS col0 FROM tab0 AS cor0
----
1416

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

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

query I rowsort
SELECT 99 + + 79 + + 33 AS col0 FROM tab2
----
211
211
211

query I rowsort
SELECT - 50 AS col1 FROM tab1 WHERE NULL >= ( col0 )
----

query I rowsort
SELECT 32 + + ( - col0 ) AS col0 FROM tab0
----
-55
-65
17

onlyif mysql # DIV for integer division: 
query I rowsort label-6478
SELECT DISTINCT - 40 DIV + + 33 + col1 AS col1 FROM tab0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-6478
SELECT DISTINCT - 40 / + + 33 + col1 AS col1 FROM tab0
----
0
20
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + ( + col1 ) col0 FROM tab0
----
162
2
42

query I rowsort
SELECT - 81 + - col1 * 94 AS col2 FROM tab0 WHERE NULL IN ( + col2 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6482
SELECT DISTINCT + 65 + col0 * + CAST( - 70 AS SIGNED ) + col2 FROM tab0 cor0
----
-6015
-6626
-938

skipif mysql # not compatible
query I rowsort label-6482
SELECT DISTINCT + 65 + col0 * + CAST ( - 70 AS INTEGER ) + col2 FROM tab0 cor0
----
-6015
-6626
-938

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

query I rowsort
SELECT ALL - - 84 * - 89 FROM tab1 cor0
----
-7476
-7476
-7476

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT ALL - ( - COUNT( * ) ) * - SUM( ALL col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT - 33 * - - col0 * + 58 IS NULL
----
-198

skipif mysql # not compatible
query I rowsort label-6485
SELECT ALL - ( - COUNT ( * ) ) * - SUM ( ALL col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT - 33 * - - col0 * + 58 IS NULL
----
-198

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 89 = - 40 - + - 73 + 15
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6488
SELECT ALL col1 * - 52 - - - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-1102
-151
-4259

skipif mysql # not compatible
query I rowsort label-6488
SELECT ALL col1 * - 52 - - - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-1102
-151
-4259

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT + 46 * + + SUM( ALL + - 80 ) AS col1 FROM tab0 AS cor0
----
-11040

skipif mysql # not compatible
query I rowsort label-6489
SELECT + 46 * + + SUM ( ALL + - 80 ) AS col1 FROM tab0 AS cor0
----
-11040

query I rowsort
SELECT ALL - col2 * + - col0 AS col2 FROM tab2 AS cor0
----
1058
2560
4350

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6492
SELECT DISTINCT + ( + - COUNT( * ) ) DIV SUM( + col1 ) * + + MIN( ALL 37 ) DIV - 65 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT + ( + - COUNT ( * ) ) / SUM ( + col1 ) * + + MIN ( ALL 37 ) / - 65 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + 98 AS col2 FROM tab0 WHERE - col1 * + col1 >= + + 36
----

query I rowsort
SELECT col2 + + col0 * + + 41 AS col1 FROM tab0 AS cor0
----
3577
4076
662

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

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

query I rowsort
SELECT DISTINCT - col1 - + col0 * + 52 * - col0 FROM tab1 AS cor0
----
135238
375695
430565

query I rowsort
SELECT - 44 * - col0 AS col1 FROM tab1
----
2244
3740
4004

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6498
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 / col1 * CAST( - + col0 AS DECIMAL ) ) NOT BETWEEN + col0 / - + CAST( NULL AS SIGNED ) + 49 AND NULL
----

skipif mysql # not compatible
query III rowsort label-6498
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 / col1 * CAST ( - + col0 AS REAL ) ) NOT BETWEEN + col0 / - + CAST ( NULL AS INTEGER ) + 49 AND NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6499
SELECT COUNT ( ALL + - col1 ) / - 59 col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + - ( + - ( 67 ) ) col2 FROM tab1 AS cor0
----
-3953
-4556
-6432

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6501
SELECT ALL * FROM tab2 cor0 WHERE - 77 + + 86 + + - CAST( - ( - 18 ) AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6501
SELECT ALL * FROM tab2 cor0 WHERE - 77 + + 86 + + - CAST ( - ( - 18 ) AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6502
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + CAST( + col2 AS SIGNED ) * + 6 < col1 + + - ( - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-6502
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + CAST ( + col2 AS INTEGER ) * + 6 < col1 + + - ( - col0 )
----
3

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

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

query I rowsort
SELECT DISTINCT - 21 AS col2 FROM tab2 AS cor0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6506
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col1, CAST( NULL AS SIGNED ) + - ( + ( - col0 ) ) * + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6506
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col1, CAST ( NULL AS INTEGER ) + - ( + ( - col0 ) ) * + col2 )
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6508
SELECT ALL + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT 19 * - - 9 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6508
SELECT ALL + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT 19 * - - 9 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT ALL + SUM( 35 ) AS col1 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-6509
SELECT ALL + SUM ( 35 ) AS col1 FROM tab0
----
105

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 28 ) IS NOT NULL
----

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

query I rowsort
SELECT - 83 * - col1 AS col1 FROM tab2 AS cor0
----
4233
5561
6391

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 * + ( + + col1 ) col1 FROM tab2 AS cor0
----
237160
260362
59823

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 74 + + col2 + + - col0 * col2 * - - col2 col0 FROM tab0 AS cor0
----
-33162
-8764
-950672

onlyif mysql # DIV for integer division: 
query I rowsort label-6519
SELECT + + 77 DIV - col0 + + - 27 AS col0 FROM tab2 AS cor0
----
-28
-28
-28

skipif mysql # not compatible
query I rowsort label-6519
SELECT + + 77 / - col0 + + - 27 AS col0 FROM tab2 AS cor0
----
-28
-28
-28

query III rowsort
SELECT * FROM tab1 cor0 WHERE 68 / - col2 NOT IN ( + 79 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

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

query I rowsort
SELECT ALL col0 * + + 7 AS col0 FROM tab2
----
322
448
525

query I rowsort
SELECT 47 * + col1 * - - 37 FROM tab1
----
24346
81733
8695

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6528
SELECT DISTINCT - col0 + + col1 + - CAST( - + col1 AS SIGNED ) AS col0 FROM tab0
----
-45
-95
147

skipif mysql # not compatible
query I rowsort label-6528
SELECT DISTINCT - col0 + + col1 + - CAST ( - + col1 AS INTEGER ) AS col0 FROM tab0
----
-45
-95
147

query I rowsort
SELECT col2 - + ( 69 ) FROM tab1
----
-1
-10
27

onlyif mysql # DIV for integer division: 
query I rowsort label-6530
SELECT ALL - col0 DIV - - 10 col1 FROM tab2 AS cor0
----
-4
-6
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6530
SELECT ALL - col0 / - - 10 col1 FROM tab2 AS cor0
----
-4
-6
-7

query II rowsort
SELECT ALL + 38 AS col0, col0 AS col1 FROM tab2 AS cor0
----
38
46
38
64
38
75

query I rowsort
SELECT ALL col1 * 21 AS col2 FROM tab1 AS cor0
----
105
294
987

query I rowsort
SELECT DISTINCT + + 59 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
59

query I rowsort
SELECT ALL - ( + + 18 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

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

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

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

query I rowsort
SELECT ALL - 51 * col1 - + col0 - - - col2 - + col2 * + - col0 AS col1 FROM tab1 AS cor0
----
3632
4035
4616

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT ALL - SUM( DISTINCT + - col1 ) + COUNT( * ) FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-6539
SELECT ALL - SUM ( DISTINCT + - col1 ) + COUNT ( * ) FROM tab0
----
106

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6541
SELECT 92 * - CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6541
SELECT 92 * - CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL BETWEEN - col1 AND - + col1 * + 98 )
----

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6547
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE + CAST( NULL AS DECIMAL ) <= col1
----

skipif mysql # not compatible
query I rowsort label-6547
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE + CAST ( NULL AS REAL ) <= col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6548
SELECT 6 AS col2, SUM( col1 ) * 10 FROM tab0 cor0
----
6
1030

skipif mysql # not compatible
query II rowsort label-6548
SELECT 6 AS col2, SUM ( col1 ) * 10 FROM tab0 cor0
----
6
1030

query I rowsort
SELECT + - 37 - + ( col2 ) * + col0 FROM tab0 AS cor0
----
-742
-907
-9640

query I rowsort
SELECT ALL - col2 - col1 + - col2 FROM tab2 AS cor0
----
-157
-183
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6551
SELECT ALL col1 DIV col0 * - col2 AS col2 FROM tab0 cor0 WHERE NOT col1 IS NULL
----
-235
0
0

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL col1 / col0 * - col2 AS col2 FROM tab0 cor0 WHERE NOT col1 IS NULL
----
-235
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT - MIN( - 29 ) - + SUM( col2 ) FROM tab0 cor0
----
-127

skipif mysql # not compatible
query I rowsort label-6552
SELECT - MIN ( - 29 ) - + SUM ( col2 ) FROM tab0 cor0
----
-127

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 - + + col1 col2 FROM tab1
----
22
55
64

query I rowsort
SELECT + col1 * + 67 - - 78 AS col1 FROM tab1
----
1016
3227
413

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 99 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * + 23 < - 95
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 92 + + + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 18 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 68 NOT BETWEEN 62 AND NULL
----

query II rowsort
SELECT ALL col0 * - - 39 * + + 75, + 93 AS col0 FROM tab2
----
134550
93
187200
93
219375
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT COUNT( * ) * 21 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-6563
SELECT COUNT ( * ) * 21 FROM tab0
----
63

query I rowsort
SELECT ALL 12 * - 72 AS col2 FROM tab0 AS cor0
----
-864
-864
-864

query I rowsort
SELECT ALL - ( - - col1 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col1 * 27 AS col1 FROM tab1 AS cor0
----
1269
135
378

query I rowsort
SELECT ALL col1 * - 83 FROM tab0 AS cor0
----
-1743
-6723
-83

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6569
SELECT DISTINCT + MIN( DISTINCT + col2 ) / + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT - - 93 * - SUM( DISTINCT - + col2 ) * - - 52 FROM tab0 AS cor0
----
754416

skipif mysql # not compatible
query I rowsort label-6570
SELECT - - 93 * - SUM ( DISTINCT - + col2 ) * - - 52 FROM tab0 AS cor0
----
754416

onlyif mysql # DIV for integer division: 
query I rowsort label-6571
SELECT - + 64 DIV + + col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6571
SELECT - + 64 / + + col2 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6572
SELECT ALL col0 DIV + 97 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL col0 / + 97 AS col1 FROM tab2 AS cor0
----
0
0
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6576
SELECT ALL - CAST( + col2 AS SIGNED ) + + col0 DIV + - col0 AS col2 FROM tab2 AS cor0
----
-24
-41
-59

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL - CAST ( + col2 AS INTEGER ) + + col0 / + - col0 AS col2 FROM tab2 AS cor0
----
-24
-41
-59

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * + col1 col2, - col1 FROM tab1
----
196
-14
2209
-47
25
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT + COUNT( * ) + - COUNT( * ) AS col0 FROM tab1
----
0

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

query I rowsort
SELECT + 77 + + 73 + 66 AS col0 FROM tab2
----
216
216
216

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN + 76 AND + - 16
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT ALL SUM( 44 ) FROM tab0 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL SUM ( 44 ) FROM tab0 AS cor0
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-6585
SELECT - COUNT( * ) AS col1, 99 FROM tab1 cor0
----
-3
99

skipif mysql # not compatible
query II rowsort label-6585
SELECT - COUNT ( * ) AS col1, 99 FROM tab1 cor0
----
-3
99

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

query I rowsort
SELECT 70 - - col1 AS col2 FROM tab1
----
117
75
84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT + - 29 + COUNT( + - 70 ) FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-6589
SELECT + - 29 + COUNT ( + - 70 ) FROM tab0 AS cor0
----
-26

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

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

query II rowsort
SELECT + col1 + - 86, col0 * - 73 * + 5 + col1 AS col0 FROM tab2 AS cor0
----
-19
-27308
-35
-16739
-9
-23283

onlyif mysql # DIV for integer division: 
query II rowsort label-6592
SELECT ALL + - col1, col2 DIV - - col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-14
1
-47
1
-5
1

skipif mysql # not compatible
query II rowsort label-6592
SELECT ALL + - col1, col2 / - - col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-14
1
-47
1
-5
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT DISTINCT 17 * - COUNT( * ) - COUNT( * ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-6593
SELECT DISTINCT 17 * - COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0
----
-54

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 70 * - col0 col0 FROM tab0 AS cor0
----
15750
529830
658630

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT DISTINCT MIN( ALL - col0 ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-6597
SELECT DISTINCT MIN ( ALL - col0 ) AS col2 FROM tab2
----
-75

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

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

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

skipif mysql # not compatible
query III rowsort label-6599
SELECT ALL * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) = - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6600
SELECT col0 DIV 83 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6600
SELECT col0 / 83 AS col0 FROM tab1
----
0
1
1

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

query I rowsort
SELECT DISTINCT + 58 * 82 * - col2 * + col0 AS col1 FROM tab1
----
-23285376
-23851340
-29430128

query I rowsort
SELECT DISTINCT 20 * + 5 AS col2 FROM tab2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT COUNT( * ) * - ( 86 ) AS col2 FROM tab1
----
-258

skipif mysql # not compatible
query I rowsort label-6604
SELECT COUNT ( * ) * - ( 86 ) AS col2 FROM tab1
----
-258

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 51 >= ( - + col0 ) + + 16
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( - + 2 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

onlyif mysql # aggregate syntax: 
query II rowsort label-6607
SELECT MIN( + + 33 ) AS col2, ( COUNT( * ) ) FROM tab2
----
33
3

skipif mysql # not compatible
query II rowsort label-6607
SELECT MIN ( + + 33 ) AS col2, ( COUNT ( * ) ) FROM tab2
----
33
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT DISTINCT - MAX( ALL - 68 ) * 30 * 58 FROM tab0
----
118320

skipif mysql # not compatible
query I rowsort label-6608
SELECT DISTINCT - MAX ( ALL - 68 ) * 30 * 58 FROM tab0
----
118320

query II rowsort
SELECT ALL - col2 * + 13 AS col1, col2 AS col1 FROM tab2
----
-299
23
-520
40
-754
58

query I rowsort
SELECT + 12 + + col2 FROM tab1 AS cor0
----
108
71
80

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

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 52 IS NOT NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 * - col2 * - col2 col2, ( - - 83 ) FROM tab0
----
33135
83
8700
83
950697
83

onlyif mysql # DIV for integer division: 
query I rowsort label-6616
SELECT DISTINCT col0 + - - 26 DIV - - col2 FROM tab0
----
15
89
97

skipif mysql # not compatible
query I rowsort label-6616
SELECT DISTINCT col0 + - - 26 / - - col2 FROM tab0
----
15
89
97

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6619
SELECT CAST( - 38 AS SIGNED ) FROM tab1
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-6619
SELECT CAST ( - 38 AS INTEGER ) FROM tab1
----
-38
-38
-38

query I rowsort
SELECT ALL - 9 AS col1 FROM tab1 AS cor0 WHERE - 17 * - col0 * + col1 - - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col1 - - + col1 + + + col1 * - + col2 AS col2 FROM tab1 AS cor0
----
-1316
-285
-3102

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

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

query I rowsort
SELECT - + col0 + - 78 + - + col1 AS col0 FROM tab2 AS cor0
----
-175
-219
-220

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col1 = - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6627
SELECT DISTINCT 54 + + col2 * col2 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

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

query I rowsort
SELECT ALL 82 + - + col0 FROM tab1 AS cor0
----
-3
-9
31

query I rowsort
SELECT - - 66 * col0 - - col2 FROM tab1 AS cor0
----
3462
5669
6074

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

query II rowsort
SELECT DISTINCT - col2 AS col2, - 63 + - + ( + col2 ) AS col1 FROM tab2 cor0
----
-23
-86
-40
-103
-58
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, - col1 * + col0 FROM tab1 AS cor0
----
-14
-714
-47
-4277
-5
-425

query II rowsort
SELECT col2 AS col0, ( - col0 ) + + + ( - col2 ) FROM tab2 AS cor0
----
23
-69
40
-104
58
-133

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

skipif mysql # not compatible
query I rowsort label-6635
SELECT DISTINCT MIN ( - - 34 ) AS col0 FROM tab2 AS cor0
----
34

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6638
SELECT MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6642
SELECT + ( - + COUNT ( * ) ) FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT SUM( DISTINCT - 44 ) col1 FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6643
SELECT SUM ( DISTINCT - 44 ) col1 FROM tab2 AS cor0
----
-44

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

query I rowsort
SELECT 48 * - col1 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6646
SELECT DISTINCT * FROM tab2 WHERE + + 12 <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6646
SELECT DISTINCT * FROM tab2 WHERE + + 12 <= - CAST ( NULL AS INTEGER )
----

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

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

query I rowsort
SELECT ( - 39 ) * - 95 FROM tab2 AS cor0
----
3705
3705
3705

onlyif mysql # aggregate syntax: 
query II rowsort label-6649
SELECT ALL + 56 AS col2, + MIN( + + col1 ) AS col0 FROM tab2 AS cor0
----
56
51

skipif mysql # not compatible
query II rowsort label-6649
SELECT ALL + 56 AS col2, + MIN ( + + col1 ) AS col0 FROM tab2 AS cor0
----
56
51

query I rowsort
SELECT - col0 * + - col1 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6651
SELECT DISTINCT + - CAST( - 34 AS SIGNED ) + - COUNT( * ) * + 15 AS col2 FROM tab2 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-6651
SELECT DISTINCT + - CAST ( - 34 AS INTEGER ) + - COUNT ( * ) * + 15 AS col2 FROM tab2 AS cor0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT + COUNT( * ) * + MAX( - - 98 ) FROM tab0 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-6652
SELECT + COUNT ( * ) * + MAX ( - - 98 ) FROM tab0 AS cor0
----
294

query II rowsort
SELECT DISTINCT - col2 AS col1, 1 FROM tab1 AS cor0
----
-59
1
-68
1
-96
1

query I rowsort
SELECT + col1 + + + 40 FROM tab1 AS cor0
----
45
54
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT - + SUM( DISTINCT - col2 ) * - COUNT( * ) * 37 + + ( 91 ) FROM tab2 cor0
----
-13340

skipif mysql # not compatible
query I rowsort label-6655
SELECT - + SUM ( DISTINCT - col2 ) * - COUNT ( * ) * 37 + + ( 91 ) FROM tab2 cor0
----
-13340

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

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

query I rowsort
SELECT + + col1 AS col2 FROM tab1 AS cor0 WHERE col1 = + col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = + col0
----

query I rowsort
SELECT DISTINCT col2 + 57 AS col0 FROM tab0
----
104
156
67

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

skipif mysql # not compatible
query I rowsort label-6660
SELECT DISTINCT COUNT ( - + CAST ( NULL AS INTEGER ) ) FROM tab2, tab0 AS cor0
----
0

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

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

query I rowsort
SELECT ALL + 62 * - col2 FROM tab0
----
-2914
-6138
-620

query I rowsort
SELECT DISTINCT - 50 AS col2 FROM tab1 cor0
----
-50

query I rowsort
SELECT ALL + + col1 FROM tab1 AS cor0 WHERE NOT + col2 + - 71 * col2 >= col0 + + - ( - col2 )
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 1 col1, col1 FROM tab0 cor0
----
-1
1
-1
21
-1
81

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

query I rowsort
SELECT DISTINCT + + 46 AS col1 FROM tab2 AS cor0 WHERE - 7 IS NOT NULL
----
46

query I rowsort
SELECT ALL ( - - 79 ) AS col2 FROM tab0
----
79
79
79

query I rowsort
SELECT + ( col2 ) * - col1 + - 97 + col1 AS col1 FROM tab0
----
-195
-286
-3823

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6672
SELECT 36 DIV col1 AS col1 FROM tab1
----
0
2
7

skipif mysql # not compatible
query I rowsort label-6672
SELECT 36 / col1 AS col1 FROM tab1
----
0
2
7

query I rowsort
SELECT DISTINCT - + col1 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
-51
-67
-77

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6675
SELECT + AVG ( ALL + col1 ) / CAST( NULL AS SIGNED ) / - 98 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6675
SELECT + AVG ( ALL + col1 ) / CAST ( NULL AS INTEGER ) / - 98 FROM tab1 cor0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6677
SELECT ALL - + COUNT( * ) DIV COUNT( * ) + - - 40 col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6677
SELECT ALL - + COUNT ( * ) / COUNT ( * ) + - - 40 col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
39

query II rowsort
SELECT col1 * + col1 + - - col0, col2 FROM tab0
----
528
10
6576
47
98
99

query II rowsort
SELECT ALL - col0 + - 62 * col0 AS col0, + col0 * col0 FROM tab1 cor0
----
-3213
2601
-5355
7225
-5733
8281

query I rowsort
SELECT DISTINCT - 96 + 5 * ( + ( + + 90 ) ) FROM tab1 AS cor0
----
354

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 91 BETWEEN - - 19 AND + col2 * ( - 65 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6685
SELECT DISTINCT + 79 * + col0 DIV col0 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-6685
SELECT DISTINCT + 79 * + col0 / col0 FROM tab1 AS cor0
----
79

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6687
SELECT + 55 / col2 - 66 * - + col2 * CAST( NULL AS SIGNED ) + 90 * 46 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6687
SELECT + 55 / col2 - 66 * - + col2 * CAST ( NULL AS INTEGER ) + 90 * 46 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - 92 FROM tab0
----
-45
-82
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6689
SELECT DISTINCT + 24 + - col0 + - col2 * - CAST( - 32 AS SIGNED ) AS col0 FROM tab1
----
-1949
-2243
-3099

skipif mysql # not compatible
query I rowsort label-6689
SELECT DISTINCT + 24 + - col0 + - col2 * - CAST ( - 32 AS INTEGER ) AS col0 FROM tab1
----
-1949
-2243
-3099

query I rowsort
SELECT col0 + + + ( col2 ) AS col0 FROM tab1
----
144
147
159

query I rowsort
SELECT ALL - - col2 - 76 FROM tab0 AS cor0
----
-29
-66
23

query I rowsort
SELECT - 81 + + col1 AS col2 FROM tab2 cor0
----
-14
-30
-4

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 WHERE NOT - - ( - ( - + 1 ) ) IS NULL
----
23
40
58

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 INNER JOIN tab1 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6698
SELECT + col1, - col0 + + 38 col1 FROM tab1 AS cor0 WHERE NOT NULL <> 6 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6698
SELECT + col1, - col0 + + 38 col1 FROM tab1 AS cor0 WHERE NOT NULL <> 6 + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6699
SELECT DISTINCT col2 DIV - col2 + + col1 AS col2 FROM tab1 AS cor0
----
13
4
46

skipif mysql # not compatible
query I rowsort label-6699
SELECT DISTINCT col2 / - col2 + + col1 AS col2 FROM tab1 AS cor0
----
13
4
46

query I rowsort
SELECT ALL + col0 + + col2 FROM tab2 AS cor0 WHERE + col2 + 66 <> - col2
----
104
133
69

query I rowsort
SELECT ALL - 44 * - col2 * - - col1 FROM tab1 AS cor0
----
12980
140624
59136

query I rowsort
SELECT 64 FROM tab0 cor0
----
64
64
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6703
SELECT DISTINCT + ( + 50 ) / - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6703
SELECT DISTINCT + ( + 50 ) / - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6704
SELECT col2 * col2 DIV - col1 AS col2, - col1 FROM tab0
----
-27
-81
-4
-21
-9801
-1

skipif mysql # not compatible
query II rowsort label-6704
SELECT col2 * col2 / - col1 AS col2, - col1 FROM tab0
----
-27
-81
-4
-21
-9801
-1

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 32 col2, + 80 AS col0 FROM tab0
----
32
80

query I rowsort
SELECT DISTINCT + 97 * + col0 AS col2 FROM tab2
----
4462
6208
7275

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6711
SELECT 43 DIV - MAX( DISTINCT + ( col2 ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6711
SELECT 43 / - MAX ( DISTINCT + ( col2 ) ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6712
SELECT DISTINCT - COUNT( * ) DIV - MAX( DISTINCT col1 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6712
SELECT DISTINCT - COUNT ( * ) / - MAX ( DISTINCT col1 ) FROM tab1 AS cor0
----
0

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6714
SELECT ALL MIN ( DISTINCT - - col1 ) + + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

query I rowsort
SELECT - col0 + 75 AS col0 FROM tab2
----
0
11
29

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6717
SELECT MAX( DISTINCT - CAST( col1 AS SIGNED ) ) + + CAST( NULL AS SIGNED ) AS col1, 60 AS col0 FROM tab2 AS cor0
----
NULL
60

skipif mysql # not compatible
query II rowsort label-6717
SELECT MAX ( DISTINCT - CAST ( col1 AS INTEGER ) ) + + CAST ( NULL AS INTEGER ) AS col1, 60 AS col0 FROM tab2 AS cor0
----
NULL
60

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6719
SELECT DISTINCT + col1 DIV + col0 + - 86 + + col2, col1 FROM tab1 AS cor0
----
-18
47
-27
5
10
14

skipif mysql # not compatible
query II rowsort label-6719
SELECT DISTINCT + col1 / + col0 + - 86 + + col2, col1 FROM tab1 AS cor0
----
-18
47
-27
5
10
14

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

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

query I rowsort
SELECT DISTINCT - ( - 77 ) AS col2 FROM tab2 AS cor0
----
77

query I rowsort
SELECT + - col2 + + 5 FROM tab1 AS cor0
----
-54
-63
-91

query I rowsort
SELECT DISTINCT + + col0 * + - 33 AS col1 FROM tab0 AS cor0
----
-2871
-3201
-495

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 24 NOT IN ( + - col1 * + 49 * - col0, + 51 + + 77, col0 * - + col0 + - 12, + - col0, - col2 / col0 / + 58, 40 / col1 + + + 53 * + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6728
SELECT DISTINCT + SUM ( DISTINCT - + col2 ) col1 FROM tab1
----
-223

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

query II rowsort
SELECT 7 * + 36 AS col2, - col0 AS col1 FROM tab1
----
252
-51
252
-85
252
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6731
SELECT SUM( DISTINCT 13 ) DIV + + 7 col0 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6731
SELECT SUM ( DISTINCT 13 ) / + + 7 col0 FROM tab0
----
1

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

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

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

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

query II rowsort
SELECT DISTINCT + - ( col1 ) - - col0, ( - - col1 ) * + col0 AS col0 FROM tab2 AS cor0
----
-13
4928
-5
2346
8
5025

query I rowsort
SELECT 87 - + 90 AS col1 FROM tab0 AS cor0
----
-3
-3
-3

query III rowsort
SELECT ALL - 86, ( col1 ) + - - col0 AS col0, col1 FROM tab1
----
9 values hashing to b527fb5c26d4b611ab80128daca748ba

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6737
SELECT + ( + COUNT ( * ) ) col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

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

query I rowsort
SELECT col2 * 98 FROM tab0 AS cor0
----
4606
9702
980

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6744
SELECT DISTINCT 0 DIV + + 57 * + col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6744
SELECT DISTINCT 0 / + + 57 * + col0 FROM tab2 cor0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE + col1 BETWEEN - 80 AND - 84
----
0

skipif mysql # not compatible
query I rowsort label-6746
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE + col1 BETWEEN - 80 AND - 84
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT 28 * - COUNT( - col0 ) AS col2 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-6748
SELECT 28 * - COUNT ( - col0 ) AS col2 FROM tab1
----
-84

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

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

query I rowsort
SELECT DISTINCT + ( + + col2 ) * + col2 * 44 + + col1 * - col0 AS col0 FROM tab1 AS cor0
----
152739
199179
404790

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6754
SELECT + 33 DIV col0 + + - col2 * + - col1 col1 FROM tab0 AS cor0
----
210
3809
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6754
SELECT + 33 / col0 + + - col2 * + - col1 col1 FROM tab0 AS cor0
----
210
3809
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6755
SELECT - + 79 DIV ( - + col0 ) + - 6 AS col2 FROM tab2 AS cor0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-6755
SELECT - + 79 / ( - + col0 ) + - 6 AS col2 FROM tab2 AS cor0
----
-5
-5
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-6756
SELECT ALL - ( - col0 ) DIV col0 + col0 FROM tab2
----
47
65
76

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL - ( - col0 ) / col0 + col0 FROM tab2
----
47
65
76

query I rowsort
SELECT - col0 * 18 FROM tab1
----
-1530
-1638
-918

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6758
SELECT - + COUNT ( * ) col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT ALL - + COUNT( * ) + - 59 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-68

skipif mysql # not compatible
query I rowsort label-6760
SELECT ALL - + COUNT ( * ) + - 59 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-68

query I rowsort
SELECT ALL - col0 - 25 AS col0 FROM tab2 cor0
----
-100
-71
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT - MIN( DISTINCT + col2 ) + + 1 * - COUNT( * ) + + 8 + - 15 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-69

skipif mysql # not compatible
query I rowsort label-6762
SELECT - MIN ( DISTINCT + col2 ) + + 1 * - COUNT ( * ) + + 8 + - 15 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-69

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 12 / + 56 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6766
SELECT ALL 79 * + ( - 8 ) * + 9 + - + CAST( + 80 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-5768
-5768
-5768

skipif mysql # not compatible
query I rowsort label-6766
SELECT ALL 79 * + ( - 8 ) * + 9 + - + CAST ( + 80 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-5768
-5768
-5768

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6768
SELECT ALL 76 FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND ( NOT col0 - - col2 + + - CAST( NULL AS SIGNED ) + - 24 - + 69 * - ( + + col2 ) < - - col1 )
----

skipif mysql # not compatible
query I rowsort label-6768
SELECT ALL 76 FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND ( NOT col0 - - col2 + + - CAST ( NULL AS INTEGER ) + - 24 - + 69 * - ( + + col2 ) < - - col1 )
----

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

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

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

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

query I rowsort
SELECT col0 - 62 FROM tab1
----
-11
23
29

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

skipif mysql # not compatible
query I rowsort label-6773
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + col1 * + 34 * 18 FROM tab1 WHERE 88 * + col0 IS NULL
----

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

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

query II rowsort
SELECT + ( ( col1 ) ) AS col0, 76 FROM tab2 AS cor0 WHERE NOT ( + - col2 ) + - 84 + - col2 * - - col1 IS NULL
----
51
76
67
76
77
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT ALL MIN( DISTINCT + - 23 ) AS col0 FROM tab0 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6778
SELECT ALL MIN ( DISTINCT + - 23 ) AS col0 FROM tab0 cor0
----
-23

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6783
SELECT ALL + + col0 * - col1 FROM tab1 WHERE + + ( CAST ( NULL AS INTEGER ) ) > NULL
----

query II rowsort
SELECT col2, - 24 * - col0 AS col1 FROM tab2
----
23
1104
40
1536
58
1800

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6786
SELECT 73 DIV col0 + + 62 AS col2, - ( 0 ) FROM tab0
----
62
0
62
0
66
0

skipif mysql # not compatible
query II rowsort label-6786
SELECT 73 / col0 + + 62 AS col2, - ( 0 ) FROM tab0
----
62
0
62
0
66
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT ALL - COUNT( * ) + 86 col2 FROM tab1
----
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6787
SELECT ALL - COUNT ( * ) + 86 col2 FROM tab1
----
83

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

query I rowsort
SELECT DISTINCT col2 + - ( + - 13 ) AS col1 FROM tab2
----
36
53
71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT - 93 + + + COUNT( * ) * - + 49 * 23 AS col1 FROM tab1
----
-3474

skipif mysql # not compatible
query I rowsort label-6791
SELECT - 93 + + + COUNT ( * ) * - + 49 * 23 AS col1 FROM tab1
----
-3474

query I rowsort
SELECT DISTINCT 41 + + col1 AS col0 FROM tab0 AS cor0
----
122
42
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6793
SELECT + + MIN( DISTINCT - - col2 ) DIV COUNT( * ) * - 34 FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-6793
SELECT + + MIN ( DISTINCT - - col2 ) / COUNT ( * ) * - 34 FROM tab0 AS cor0
----
-102

query I rowsort
SELECT ALL + + col1 * - col1 AS col0 FROM tab0 cor0
----
-1
-441
-6561

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6795
SELECT + COUNT ( * ) + - - COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 91 + - col0 col1 FROM tab0
----
-106
-178
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT + COUNT( * ) * + + COUNT( * ) + + - 78 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
3

skipif mysql # not compatible
query I rowsort label-6797
SELECT + COUNT ( * ) * + + COUNT ( * ) + + - 78 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT COUNT( * ) + - - COUNT( * ) + 74 * + - 39 FROM tab1
----
-2880

skipif mysql # not compatible
query I rowsort label-6798
SELECT COUNT ( * ) + - - COUNT ( * ) + 74 * + - 39 FROM tab1
----
-2880

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

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

skipif mysql # not compatible
query I rowsort label-6800
SELECT DISTINCT - + COUNT ( * ) - SUM ( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
-106

onlyif mysql # DIV for integer division: 
query I rowsort label-6801
SELECT DISTINCT 48 DIV - col1 FROM tab0 AS cor0
----
-2
-48
0

skipif mysql # not compatible
query I rowsort label-6801
SELECT DISTINCT 48 / - col1 FROM tab0 AS cor0
----
-2
-48
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6802
SELECT ALL col2 FROM tab1 WHERE NOT col0 * + col0 * CAST( - col0 AS SIGNED ) + - + 94 / - - CAST( NULL AS SIGNED ) / + 1 - - col1 = - + col1
----

skipif mysql # not compatible
query I rowsort label-6802
SELECT ALL col2 FROM tab1 WHERE NOT col0 * + col0 * CAST ( - col0 AS INTEGER ) + - + 94 / - - CAST ( NULL AS INTEGER ) / + 1 - - col1 = - + col1
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT - MIN( + - col0 ) col0 FROM tab2
----
75

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6809
SELECT DISTINCT - MIN( col1 ) FROM tab1 AS cor0 WHERE + col2 + + - CAST( - 79 AS SIGNED ) / - col0 BETWEEN + col0 * + 80 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6809
SELECT DISTINCT - MIN ( col1 ) FROM tab1 AS cor0 WHERE + col2 + + - CAST ( - 79 AS INTEGER ) / - col0 BETWEEN + col0 * + 80 AND NULL
----
NULL

query I rowsort
SELECT ALL + 93 * + 79 FROM tab1 AS cor0
----
7347
7347
7347

query I rowsort
SELECT + ( col2 ) - + + 91 FROM tab2 WHERE NOT + 31 + 26 - - + col0 IS NULL
----
-33
-51
-68

query I rowsort
SELECT ALL + 12 * - 15 * + + 33 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-5940
-5940
-5940

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = 56 + + 13
----

query II rowsort
SELECT - ( + col0 ), + col2 + + ( col0 ) AS col1 FROM tab2 AS cor0
----
-46
69
-64
104
-75
133

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 54 + + - 97 - + 87, col1 col1 FROM tab2
----
-238
51
-238
67
-238
77

query II rowsort
SELECT ALL + col2 * - 30, + 12 + + col1 AS col1 FROM tab1
----
-1770
17
-2040
59
-2880
26

query I rowsort
SELECT DISTINCT col2 * col0 + + 14 FROM tab0
----
719
884
9617

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

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

query I rowsort
SELECT DISTINCT - 77 + + + 6 * col0 FROM tab2 AS cor0
----
199
307
373

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6825
SELECT col2 / - CAST( + + col2 AS SIGNED ) * - col0 + + col0 * - - 77 AS col2 FROM tab1 AS cor0 WHERE NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-6825
SELECT col2 / - CAST ( + + col2 AS INTEGER ) * - col0 + + col0 * - - 77 AS col2 FROM tab1 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL col0 * - 39 FROM tab2 AS cor0
----
-1794
-2496
-2925

query I rowsort
SELECT DISTINCT + col1 + col0 * - 22 FROM tab0
----
-1893
-2133
-249

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab2 cor1 ON NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT + - 73 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-73

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 AND - col0 * - 92
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6832
SELECT col2 + - col2 FROM tab1 AS cor0 WHERE CAST( - col1 AS SIGNED ) > + - 21
----
0
0

skipif mysql # not compatible
query I rowsort label-6832
SELECT col2 + - col2 FROM tab1 AS cor0 WHERE CAST ( - col1 AS INTEGER ) > + - 21
----
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6833
SELECT ALL SUM( 95 ) + - COUNT( * ), 89 + + - COUNT( * ) AS col1 FROM tab2 cor0
----
282
86

skipif mysql # not compatible
query II rowsort label-6833
SELECT ALL SUM ( 95 ) + - COUNT ( * ), 89 + + - COUNT ( * ) AS col1 FROM tab2 cor0
----
282
86

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

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

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

query I rowsort
SELECT - 32 - - col0 AS col0 FROM tab1 cor0
----
19
53
59

query I rowsort
SELECT ALL + col0 - + 73 AS col2 FROM tab0 cor0
----
-58
14
24

query I rowsort
SELECT DISTINCT + col0 - - - 16 AS col0 FROM tab0 AS cor0
----
-1
71
81

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

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

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

query I rowsort
SELECT DISTINCT - 35 * + col2 AS col0 FROM tab0 AS cor0
----
-1645
-3465
-350

query I rowsort
SELECT DISTINCT 24 AS col0 FROM tab1
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-6843
SELECT + ( + - 37 ), COUNT( * ) AS col1 FROM tab1
----
-37
3

skipif mysql # not compatible
query II rowsort label-6843
SELECT + ( + - 37 ), COUNT ( * ) AS col1 FROM tab1
----
-37
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT DISTINCT - MIN( ALL - 60 ) FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-6844
SELECT DISTINCT - MIN ( ALL - 60 ) FROM tab1
----
60

query I rowsort
SELECT ( + + 18 ) * + col1 * + - col1 FROM tab2
----
-106722
-46818
-80802

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 = - 81
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( - col0 ) <= - 58
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT ALL - 25 * - COUNT( * ) AS col2 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-6848
SELECT ALL - 25 * - COUNT ( * ) AS col2 FROM tab1
----
75

query I rowsort
SELECT ( - 41 ) * - - 29 * + + col1 + + col0 FROM tab0 cor0
----
-1092
-24882
-96294

query I rowsort
SELECT DISTINCT - 75 * - + ( + col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT - 64 IN ( 79 )
----
1125
6525
7275

query I rowsort
SELECT DISTINCT + 90 * + col1 AS col2 FROM tab1 AS cor0
----
1260
4230
450

onlyif mysql # DIV for integer division: 
query I rowsort label-6852
SELECT ALL 92 DIV + col1 + + 68 FROM tab0 AS cor0
----
160
69
72

skipif mysql # not compatible
query I rowsort label-6852
SELECT ALL 92 / + col1 + + 68 FROM tab0 AS cor0
----
160
69
72

query I rowsort
SELECT - col1 * + + 4 * col0 + - + 66 * - - 50 * 11 + - + 59 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT ALL - 32 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT - MIN( - - col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-6856
SELECT - MIN ( - - col0 ) FROM tab0
----
-15

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

skipif mysql # not compatible
query I rowsort label-6857
SELECT - 0 / - - COUNT ( * ) AS col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col2 * - col0 * - col1 AS col0 FROM tab1 AS cor0
----
25075
290836
68544

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT + ( + - COUNT( * ) ) * + 13 AS col2 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-6859
SELECT + ( + - COUNT ( * ) ) * + 13 AS col2 FROM tab2 AS cor0
----
-39

query II rowsort
SELECT - col2 AS col2, col1 + col1 FROM tab1 AS cor0
----
-59
10
-68
94
-96
28

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6862
SELECT - - MIN( ALL + col1 ) + CAST( + 11 AS SIGNED ) FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-6862
SELECT - - MIN ( ALL + col1 ) + CAST ( + 11 AS INTEGER ) FROM tab2 AS cor0
----
62

query I rowsort
SELECT ALL + + 0 + 68 FROM tab1 AS cor0
----
68
68
68

onlyif mysql # DIV for integer division: 
query I rowsort label-6864
SELECT + 2 * - - 5 DIV 96 + + col1 + + 13 + col1 AS col0 FROM tab1 AS cor0
----
107
23
41

skipif mysql # not compatible
query I rowsort label-6864
SELECT + 2 * - - 5 / 96 + + col1 + + 13 + col1 AS col0 FROM tab1 AS cor0
----
107
23
41

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

query I rowsort
SELECT ALL 18 + col0 + + 94 FROM tab1
----
163
197
203

query II rowsort
SELECT + col2, - col0 AS col1 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

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

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

query I rowsort
SELECT + 90 FROM tab0 WHERE col2 IS NULL
----

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

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

query I rowsort
SELECT - col1 + + 72 AS col0 FROM tab1 AS cor0
----
25
58
67

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

query I rowsort
SELECT DISTINCT ( - + 14 ) * col2 AS col2 FROM tab0 AS cor0
----
-1386
-140
-658

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT MIN( ALL + + 49 ) FROM tab0 cor0 WHERE NOT col1 - - col0 IS NULL
----
49

skipif mysql # not compatible
query I rowsort label-6876
SELECT MIN ( ALL + + 49 ) FROM tab0 cor0 WHERE NOT col1 - - col0 IS NULL
----
49

query I rowsort
SELECT 97 * - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6878
SELECT ALL - col2 DIV - - 96, ( - col0 ) AS col0 FROM tab1 cor0
----
-1
-51
0
-85
0
-91

skipif mysql # not compatible
query II rowsort label-6878
SELECT ALL - col2 / - - 96, ( - col0 ) AS col0 FROM tab1 cor0
----
-1
-51
0
-85
0
-91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT DISTINCT SUM( ALL 51 ) AS col1 FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-6880
SELECT DISTINCT SUM ( ALL 51 ) AS col1 FROM tab2
----
153

query II rowsort
SELECT - col1 AS col1, + col0 * - 28 + - col2 FROM tab2
----
-51
-1311
-67
-2158
-77
-1832

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

query I rowsort
SELECT ( - 4 ) * - - 37 - col1 * + + col0 FROM tab0
----
-1363
-1975
-245

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 63 col1, - 64 AS col2 FROM tab1
----
-63
-64

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6886
SELECT ALL - col0 * + 0 DIV - - 12 * + col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6886
SELECT ALL - col0 * + 0 / - - 12 * + col1 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT col1 * - + col1 * + col2 AS col0 FROM tab1
----
-1475
-150212
-18816

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT ( NOT - col0 <= - col0 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT MAX( + col0 ) * - COUNT( * ) col1 FROM tab1 cor0
----
-273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6889
SELECT MAX ( + col0 ) * - COUNT ( * ) col1 FROM tab1 cor0
----
-273

query I rowsort
SELECT DISTINCT 41 * - col2 AS col2 FROM tab1 cor0
----
-2419
-2788
-3936

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT DISTINCT 54 * - SUM( + - col1 ) AS col0 FROM tab2 AS cor0
----
10530

skipif mysql # not compatible
query I rowsort label-6891
SELECT DISTINCT 54 * - SUM ( + - col1 ) AS col0 FROM tab2 AS cor0
----
10530

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT COUNT( * ) FROM tab1 WHERE + ( col2 ) <> ( col2 + 25 )
----
3

skipif mysql # not compatible
query I rowsort label-6895
SELECT COUNT ( * ) FROM tab1 WHERE + ( col2 ) <> ( col2 + 25 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT - COUNT( * ) * - COUNT( * ) AS col2 FROM tab2
----
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT - MAX( DISTINCT col1 ) FROM tab2 WHERE ( NULL ) = ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6897
SELECT - MAX ( DISTINCT col1 ) FROM tab2 WHERE ( NULL ) = ( - col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT + COUNT( * ) + 75 AS col0 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-6898
SELECT + COUNT ( * ) + 75 AS col0 FROM tab2
----
78

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6900
SELECT DISTINCT - CAST( - AVG ( col2 ) AS SIGNED ) * 92 AS col2 FROM tab2 WHERE 65 < 30
----
NULL

skipif mysql # not compatible
query I rowsort label-6900
SELECT DISTINCT - CAST ( - AVG ( col2 ) AS INTEGER ) * 92 AS col2 FROM tab2 WHERE 65 < 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT - COUNT( * ) * COUNT( * ) col2 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6901
SELECT - COUNT ( * ) * COUNT ( * ) col2 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT ALL - COUNT( 23 ) + ( COUNT( * ) ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6902
SELECT ALL - COUNT ( 23 ) + ( COUNT ( * ) ) AS col0 FROM tab1
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6904
SELECT CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT - col2 IN ( CAST( - col1 AS DECIMAL ) )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6904
SELECT CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT - col2 IN ( CAST ( - col1 AS REAL ) )
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT ALL col1 * col2 + - col1 AS col0 FROM tab1
----
1330
290
3149

query I rowsort
SELECT DISTINCT - col2 + - col0 * - 51 AS col2 FROM tab1 WHERE NULL IS NULL
----
2505
4276
4573

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

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

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT + 80 + col1 * 66 IN ( + col0 * 19 )
----
51
85
91

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6911
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < 23 + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6911
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < 23 + CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL - 96 AS col0 FROM tab1 WHERE NOT NULL <> 88
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < - col0 * col1
----

query I rowsort
SELECT col1 - col0 * col0 FROM tab1 WHERE NOT ( NULL ) < ( - col0 * col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6915
SELECT ( + 51 ) DIV + col0 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6915
SELECT ( + 51 ) / + col0 AS col1 FROM tab1
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 ) NOT BETWEEN 45 * 11 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT 97 + MAX( ALL - col1 + - col2 ) AS col1 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-6918
SELECT 97 + MAX ( ALL - col1 + - col2 ) AS col1 FROM tab0
----
66

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

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

query I rowsort
SELECT col1 + - 16 FROM tab0
----
-15
5
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT 61 + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
64

skipif mysql # not compatible
query I rowsort label-6921
SELECT 61 + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
64

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6923
SELECT col2 * col2 + 46 DIV + col2 FROM tab2 cor0
----
1601
3364
531

skipif mysql # not compatible
query I rowsort label-6923
SELECT col2 * col2 + 46 / + col2 FROM tab2 cor0
----
1601
3364
531

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT - COUNT( * ) * 19 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-6925
SELECT - COUNT ( * ) * 19 FROM tab1
----
-57

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

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

query I rowsort
SELECT + col1 * - ( col0 * col0 ) FROM tab2
----
-107916
-315392
-376875

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT NULL > ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6934
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT NULL > ( col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT DISTINCT MAX( + + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-6935
SELECT DISTINCT MAX ( + + col0 ) FROM tab0
----
97

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6938
SELECT ALL COUNT ( * ) * COUNT ( ALL col2 ) AS col2 FROM tab1
----
9

query I rowsort
SELECT col2 * col2 * 7 AS col2 FROM tab2 AS cor0
----
11200
23548
3703

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

skipif mysql # not compatible
query I rowsort label-6940
SELECT DISTINCT 62 * - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----
0

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

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

query I rowsort
SELECT - 90 AS col1 FROM tab0 cor0
----
-90
-90
-90

query I rowsort
SELECT 62 * - 6 AS col1 FROM tab0 AS cor0
----
-372
-372
-372

query I rowsort
SELECT DISTINCT + col0 + - - 80 + col1 + 39 FROM tab0
----
215
217
227

query I rowsort
SELECT ( + + 89 ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

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

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

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

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

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

query I rowsort
SELECT - 96 + + 68 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 <= ( - 80 )
----

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

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

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

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

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

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

query I rowsort
SELECT + 84 + - - col2 FROM tab1 AS cor0
----
143
152
180

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

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

query I rowsort
SELECT - ( - col2 ) + - col1 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT ALL + col1 * + - col1 + - 47 AS col0 FROM tab1 AS cor0
----
-2256
-243
-72

query I rowsort
SELECT - 35 * col2 * - 68 + ( - col1 ) * + col1 FROM tab2 AS cor0
----
133551
52139
89271

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

query I rowsort
SELECT DISTINCT + 73 FROM tab2 cor0 WHERE NOT - 65 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT - 87 * 58 + + - MIN( col1 ) col0 FROM tab0 AS cor0
----
-5047

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6961
SELECT - 87 * 58 + + - MIN ( col1 ) col0 FROM tab0 AS cor0
----
-5047

query I rowsort
SELECT - col0 + + 44 + - col0 FROM tab1 AS cor0
----
-126
-138
-58

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 AS cor0 WHERE NOT + 87 NOT IN ( - + 41 * col1 )
----

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

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

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

query I rowsort
SELECT DISTINCT 50 * - col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( + 21 + - col1 * col0 ) IS NULL
----
-2550
-4250
-4550

query I rowsort
SELECT ALL ( 24 ) * - - col0 AS col1 FROM tab0 AS cor0
----
2088
2328
360

query I rowsort
SELECT DISTINCT - ( + + col2 ) FROM tab1 AS cor0
----
-59
-68
-96

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

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 * - col2 + col0 ) <= ( - col0 * + col2 )
----
15
81
47
97
1
99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6973
SELECT ( col0 ) + CAST( NULL AS SIGNED ) FROM tab0 WHERE ( 4 ) BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-6973
SELECT ( col0 ) + CAST ( NULL AS INTEGER ) FROM tab0 WHERE ( 4 ) BETWEEN NULL AND ( NULL )
----

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

query I rowsort
SELECT + col2 * 74 AS col1 FROM tab1
----
4366
5032
7104

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

query I rowsort
SELECT ALL 38 + ( + - 23 ) FROM tab2
----
15
15
15

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 76 IS NULL
----

query I rowsort
SELECT DISTINCT + + 77 * - col1 + 39 FROM tab0 AS cor0 WHERE col0 <> NULL
----

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

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

query I rowsort
SELECT DISTINCT - 73 - - col0 AS col1 FROM tab2 cor0
----
-27
-9
2

query I rowsort
SELECT ALL + - 7 - - col0 FROM tab2 AS cor0
----
39
57
68

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

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

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

query I rowsort
SELECT DISTINCT + 1 * + col2 + - 50 FROM tab0 cor0
----
-3
-40
49

query I rowsort
SELECT - col0 + 47 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT - + COUNT( 93 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6988
SELECT - + COUNT ( 93 ) AS col0 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT ALL + 44 AS col0, - col2 + - + col2 FROM tab1 AS cor0
----
44
-118
44
-136
44
-192

query I rowsort
SELECT DISTINCT - 13 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

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

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

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

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= + col2 + - - col0
----

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

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

query I rowsort
SELECT ALL + 49 * - + col0 * + 64 FROM tab0
----
-272832
-304192
-47040

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6997
SELECT COUNT( * ) DIV - COUNT( * ) FROM tab2 WHERE NOT col2 + + col0 - + + col0 > - - col1
----
-1

skipif mysql # not compatible
query I rowsort label-6997
SELECT COUNT ( * ) / - COUNT ( * ) FROM tab2 WHERE NOT col2 + + col0 - + + col0 > - - col1
----
-1

query I rowsort
SELECT ALL 97 * + col0 * col2 FROM tab0
----
68385
84390
931491

query I rowsort
SELECT DISTINCT - 20 + - col0 + - col2 * - + col2 + 94 AS col1 FROM tab1
----
3470
4607
9239

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7001
SELECT CAST( col0 AS SIGNED ) + - 93 col2 FROM tab2
----
-18
-29
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7001
SELECT CAST ( col0 AS INTEGER ) + - 93 col2 FROM tab2
----
-18
-29
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT DISTINCT + COUNT( DISTINCT col0 ) * - + COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-7002
SELECT DISTINCT + COUNT ( DISTINCT col0 ) * - + COUNT ( * ) FROM tab1
----
-9

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( - - col2 + + + 6 + - 78 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT ALL + + 16 * + + ( - COUNT( * ) ) FROM tab2 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL + + 16 * + + ( - COUNT ( * ) ) FROM tab2 cor0
----
-48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7007
SELECT + + col2 * - CAST( NULL AS SIGNED ) AS col2, 48 DIV + 69 FROM tab1 AS cor0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-7007
SELECT + + col2 * - CAST ( NULL AS INTEGER ) AS col2, 48 / + 69 FROM tab1 AS cor0
----
NULL
0
NULL
0
NULL
0

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

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

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

query I rowsort
SELECT + col1 - col2 + - + 42 AS col1 FROM tab0
----
-140
-31
-8

query II rowsort
SELECT 85 - + - col2 * + col2, + col0 FROM tab0
----
185
87
2294
15
9886
97

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

skipif mysql # not compatible
query I rowsort label-7012
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) FROM tab1
----
-9

query I rowsort
SELECT + 83 - - - col0 AS col0 FROM tab1
----
-2
-8
32

query I rowsort
SELECT - col1 * col1 - + col2 + - - col0 FROM tab0
----
-3
-364
-6593

query III rowsort
SELECT ALL * FROM tab0 WHERE - 19 = ( + col1 )
----

query I rowsort
SELECT DISTINCT - + 13 + - - col1 AS col1 FROM tab0 cor0
----
-12
68
8

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

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

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

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

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT + col0 * - col0 <= ( + - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query II rowsort
SELECT + + col2 * - 12, col0 AS col1 FROM tab0 AS cor0
----
-1188
97
-120
87
-564
15

query I rowsort
SELECT 67 + + + col1 + - col0 * col1 FROM tab0 AS cor0 WHERE NOT + col1 * + 98 * + col2 <> ( - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7023
SELECT ALL + MIN( + col0 ) AS col0, ( + + 24 ) FROM tab0 AS cor0
----
15
24

skipif mysql # not compatible
query II rowsort label-7023
SELECT ALL + MIN ( + col0 ) AS col0, ( + + 24 ) FROM tab0 AS cor0
----
15
24

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

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

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

query I rowsort
SELECT + col0 + + 26 FROM tab1
----
111
117
77

query II rowsort
SELECT ALL + col1 AS col1, - col0 * col2 AS col0 FROM tab0
----
1
-9603
21
-870
81
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT - MIN( - col0 ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7028
SELECT - MIN ( - col0 ) AS col1 FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT 55 AS col1 FROM tab0 AS cor0 WHERE NOT - 21 / col0 IS NULL
----
55

query I rowsort
SELECT + 83 * + + 17 AS col2 FROM tab0 cor0
----
1411
1411
1411

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT DISTINCT + - SUM( + - 24 ) FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-7031
SELECT DISTINCT + - SUM ( + - 24 ) FROM tab0 AS cor0
----
72

query I rowsort
SELECT ALL + 69 * 69 FROM tab2 cor0 WHERE NOT + ( - 38 ) IS NOT NULL
----

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

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

query III rowsort
SELECT * FROM tab1 WHERE col0 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7036
SELECT DISTINCT ( + 13 ) * CAST( NULL AS SIGNED ) + - 46, + col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-7036
SELECT DISTINCT ( + 13 ) * CAST ( NULL AS INTEGER ) + - 46, + col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7037
SELECT - col0 * + col2 + - col1 DIV col0 - + 14 + + - col1 + ( + 23 ) FROM tab1 cor0
----
-4901
-5011
-6226

skipif mysql # not compatible
query I rowsort label-7037
SELECT - col0 * + col2 + - col1 / col0 - + 14 + + - col1 + ( + 23 ) FROM tab1 cor0
----
-4901
-5011
-6226

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7038
SELECT + SUM( - - ( + col0 ) ) * + 52 + + - 4 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7038
SELECT + SUM ( - - ( + col0 ) ) * + 52 + + - 4 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT - 29 + + - col0 FROM tab1 cor0
----
-114
-120
-80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7040
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( + - col0 AS SIGNED ) >= col2
----

skipif mysql # not compatible
query III rowsort label-7040
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( + - col0 AS INTEGER ) >= col2
----

query I rowsort
SELECT - - 17 + col0 FROM tab0 AS cor0
----
104
114
32

query I rowsort
SELECT ALL - - 45 - 17 - + - col2 FROM tab0 AS cor0
----
127
38
75

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * + ( + - 42 ) FROM tab1
----
-2478
-2856
-4032

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT - 5 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7047
SELECT + CAST( NULL AS SIGNED ) - + - SUM( DISTINCT col1 ) AS col1 FROM tab1
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT - + col1 * - - col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT col0 * + col1 * col2 AS col2 FROM tab1 AS cor0
----
25075
290836
68544

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7052
SELECT COUNT( * ) AS col0, COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-7052
SELECT COUNT ( * ) AS col0, COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT ( ( - 77 ) ) * 99 * - 62 + - - COUNT( * ) FROM tab1
----
472629

skipif mysql # not compatible
query I rowsort label-7054
SELECT ( ( - 77 ) ) * 99 * - 62 + - - COUNT ( * ) FROM tab1
----
472629

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

query I rowsort
SELECT ALL + - 13 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7057
SELECT DISTINCT + 32 * - MAX( DISTINCT - + ( - 45 ) ) * + 8 - COUNT( * ) DIV - MAX( ALL 46 ) AS col1 FROM tab2 AS cor0
----
-11520

skipif mysql # not compatible
query I rowsort label-7057
SELECT DISTINCT + 32 * - MAX ( DISTINCT - + ( - 45 ) ) * + 8 - COUNT ( * ) / - MAX ( ALL 46 ) AS col1 FROM tab2 AS cor0
----
-11520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7058
SELECT ALL + + col2 * - - 38 - CAST( - 78 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
2320
2662
3726

skipif mysql # not compatible
query I rowsort label-7058
SELECT ALL + + col2 * - - 38 - CAST ( - 78 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
2320
2662
3726

onlyif mysql # DIV for integer division: 
query II rowsort label-7059
SELECT ALL col1 DIV + - col2 + + col1, + 59 AS col2 FROM tab0 AS cor0
----
1
59
19
59
80
59

skipif mysql # not compatible
query II rowsort label-7059
SELECT ALL col1 / + - col2 + + col1, + 59 AS col2 FROM tab0 AS cor0
----
1
59
19
59
80
59

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT - MAX( DISTINCT + ( + col0 ) ) FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
-91

skipif mysql # not compatible
query I rowsort label-7064
SELECT - MAX ( DISTINCT + ( + col0 ) ) FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
-91

query I rowsort
SELECT ALL + - 11 AS col1 FROM tab2 AS cor0
----
-11
-11
-11

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT ( + 10 < ( + 96 ) )
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7068
SELECT ALL + MAX( ALL col1 ) DIV - 65 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7068
SELECT ALL + MAX ( ALL col1 ) / - 65 FROM tab1
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7070
SELECT + 57 DIV 46 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7070
SELECT + 57 / 46 FROM tab0
----
1
1
1

query I rowsort
SELECT col1 * 73 FROM tab0
----
1533
5913
73

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

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

query I rowsort
SELECT ALL - col0 + + - 38 FROM tab1
----
-123
-129
-89

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( + - 76 ) * col0 * + col2 * + 31 NOT IN ( + col1, 22 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT DISTINCT - - 51 + + + 73 + + - 64 AS col0 FROM tab1 AS cor0
----
60

query I rowsort
SELECT ALL col1 + - 92 + - - col2 FROM tab1 AS cor0
----
-28
18
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT ALL 22 * + COUNT( * ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7080
SELECT ALL 22 * + COUNT ( * ) FROM tab0 AS cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 56 * - 86 + - 52 + + col1 - col0 col0 FROM tab0 cor0
----
4668
4698
4830

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT ALL 50 * MIN( DISTINCT + 82 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
4100

skipif mysql # not compatible
query I rowsort label-7084
SELECT ALL 50 * MIN ( DISTINCT + 82 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
4100

query I rowsort
SELECT - + col0 - + col0 AS col1 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-7086
SELECT + col0 DIV + col1 - col1 FROM tab2 AS cor0
----
-51
-66
-77

skipif mysql # not compatible
query I rowsort label-7086
SELECT + col0 / + col1 - col1 FROM tab2 AS cor0
----
-51
-66
-77

query II rowsort
SELECT DISTINCT 24, + col1 AS col2 FROM tab0
----
24
1
24
21
24
81

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7092
SELECT 19 / - col1 AS col1 FROM tab0 AS cor0
----
-19
0
0

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

query I rowsort
SELECT ALL + col0 * col0 * + 6 + + col2 FROM tab1 AS cor0
----
15702
43409
49754

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7096
SELECT DISTINCT - MAX( ALL + col1 ) DIV COUNT( ALL - - col0 ) FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-7096
SELECT DISTINCT - MAX ( ALL + col1 ) / COUNT ( ALL - - col0 ) FROM tab2 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-7097
SELECT + + 52 * - + 54 + - COUNT( * ) AS col2, - COUNT( * ) + - - 31 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-2817
22

skipif mysql # not compatible
query II rowsort label-7097
SELECT + + 52 * - + 54 + - COUNT ( * ) AS col2, - COUNT ( * ) + - - 31 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-2817
22

query I rowsort
SELECT ALL col2 * - + col1 * - ( - + col2 ) AS col1 FROM tab1
----
-129024
-17405
-217328

onlyif mysql # DIV for integer division: 
query I rowsort label-7099
SELECT DISTINCT + 55 DIV col1 DIV col2 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7099
SELECT DISTINCT + 55 / col1 / col2 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7100
SELECT ALL - 6 * CAST( + 20 AS SIGNED ) FROM tab0 AS cor0
----
-120
-120
-120

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL - 6 * CAST ( + 20 AS INTEGER ) FROM tab0 AS cor0
----
-120
-120
-120

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

query I rowsort
SELECT - 54 + 59 + - col2 AS col0 FROM tab2 AS cor0
----
-18
-35
-53

query I rowsort
SELECT 75 + + - col2 + + col2 * col1 FROM tab1
----
1323
311
3203

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

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

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

query I rowsort
SELECT col0 * + col2 * - 72 AS col1 FROM tab2
----
-184320
-313200
-76176

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

query I rowsort
SELECT ALL + ( + 29 ) * 8 * + 55 * - col1 + - 81 AS col2 FROM tab1 AS cor0
----
-178721
-599801
-63881

query I rowsort
SELECT col2 * + col2 + - 42 + + col2 FROM tab0 AS cor0 WHERE - 5 IS NOT NULL
----
2214
68
9858

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

query I rowsort
SELECT + 53 + - 16 - - col1 + + + col0 * + col2 + + col2 FROM tab0
----
870
938
9740

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( - - 96 )
----

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

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

query I rowsort
SELECT DISTINCT - col1 + + + 51 AS col1 FROM tab2 AS cor0
----
-16
-26
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT SUM( + col2 ) * - - 81 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
9801

skipif mysql # not compatible
query I rowsort label-7116
SELECT SUM ( + col2 ) * - - 81 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
9801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7117
SELECT ALL - + SUM( + col1 ) DIV COUNT( * ) - ( + COUNT( * ) ) FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-7117
SELECT ALL - + SUM ( + col1 ) / COUNT ( * ) - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7118
SELECT + CAST( col1 AS SIGNED ) DIV + 9 - + + col2 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-38
-8
-99

skipif mysql # not compatible
query I rowsort label-7118
SELECT + CAST ( col1 AS INTEGER ) / + 9 - + + col2 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-38
-8
-99

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 * - col1 <= ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col2 * - + col1 * col2 AS col1, - 54 AS col2 FROM tab2
----
-123200
-54
-225388
-54
-26979
-54

query I rowsort
SELECT + col1 * 92 * - 95 FROM tab2
----
-445740
-585580
-672980

query II rowsort
SELECT DISTINCT 39 * + ( col2 ), col1 AS col1 FROM tab2
----
1560
77
2262
67
897
51

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

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

query I rowsort
SELECT DISTINCT - + col1 * + + col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT ALL + col1 * + - col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT - col0 + 83 FROM tab1
----
-2
-8
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7130
SELECT CAST( + 2 AS SIGNED ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7130
SELECT CAST ( + 2 AS INTEGER ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT ALL + - COUNT( * ) + + + COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7132
SELECT ALL + - COUNT ( * ) + + + COUNT ( * ) FROM tab1 cor0
----
0

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

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

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

query II rowsort
SELECT ALL + 27 AS col2, 4 * - - 59 AS col2 FROM tab0 AS cor0
----
27
236
27
236
27
236

query I rowsort
SELECT DISTINCT + col1 * 65 AS col0 FROM tab0 AS cor0
----
1365
5265
65

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

query I rowsort
SELECT ALL col0 * 12 AS col1 FROM tab0
----
1044
1164
180

onlyif mysql # DIV for integer division: 
query I rowsort label-7140
SELECT col2 DIV - - 83 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7140
SELECT col2 / - - 83 FROM tab0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7141
SELECT 37 DIV - - 92 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7141
SELECT 37 / - - 92 FROM tab0
----
0
0
0

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE 96 * - - col0 < ( NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT + MAX( ALL + 37 ) FROM tab1 WHERE NULL IN ( - + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7144
SELECT + MAX ( ALL + 37 ) FROM tab1 WHERE NULL IN ( - + col0 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 AS col1, - 32 / - - 17 + 55 col0 FROM tab1 WHERE NULL <> NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT DISTINCT MIN( 99 ) * + 87 AS col1 FROM tab0 AS cor0
----
8613

skipif mysql # not compatible
query I rowsort label-7147
SELECT DISTINCT MIN ( 99 ) * + 87 AS col1 FROM tab0 AS cor0
----
8613

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 68 > NULL
----

query I rowsort
SELECT + col2 FROM tab0 WHERE NULL < col1
----

query II rowsort
SELECT + 88 AS col2, + 91 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
18 values hashing to 3d78e62f37fea15d54aedcf5821b169e

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

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

query II rowsort
SELECT - col0 * + col1, + 89 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1215
89
-1827
89
-97
89

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7155
SELECT + COUNT ( DISTINCT col0 ) col0 FROM tab0 AS cor0
----
3

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

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

query II rowsort
SELECT + col0 AS col2, col0 * - col0 * - ( + + 16 ) FROM tab2 AS cor0
----
46
33856
64
65536
75
90000

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT ALL - COUNT( - - 51 ) col2 FROM tab1
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT ALL + MIN( + col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7162
SELECT ALL + MIN ( + col0 ) AS col1 FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL + - col2 * + - 21 - + col0 AS col2 FROM tab1 AS cor0
----
1154
1337
1965

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT - + 42 * - + COUNT( * ) FROM tab2 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-7164
SELECT - + 42 * - + COUNT ( * ) FROM tab2 AS cor0
----
126

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT ( 36 ) * - COUNT( * ) FROM tab1
----
-108

skipif mysql # not compatible
query I rowsort label-7166
SELECT ( 36 ) * - COUNT ( * ) FROM tab1
----
-108

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 < + col0
----

query I rowsort
SELECT DISTINCT - col0 * col1 * - + 19 * 74 AS col0 FROM tab2 AS cor0
----
3298476
6928768
7065150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 9 * - col2 + + 1 col1 FROM tab1 AS cor0
----
-530
-611
-863

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

query I rowsort
SELECT DISTINCT - 16 * - - ( - ( + col2 ) ) * - col1 AS col0 FROM tab1
----
-21504
-4720
-51136

query I rowsort
SELECT col0 + - 5 * - + ( + ( 92 ) ) FROM tab0
----
475
547
557

query I rowsort
SELECT ALL ( 32 ) * 86 + + - col1 + - col0 AS col0 FROM tab0
----
2644
2654
2656

query I rowsort
SELECT ALL + 48 + + - col1 FROM tab0
----
-33
27
47

query I rowsort
SELECT + col1 * - col0 * - col1 AS col2 FROM tab0
----
38367
97
98415

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT col2 BETWEEN - col0 / + col1 AND col0
----

query I rowsort
SELECT ALL - 21 + ( + + col0 ) FROM tab1
----
30
64
70

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

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

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

query I rowsort
SELECT 4 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # DIV for integer division: 
query I rowsort label-7182
SELECT col0 DIV - col0 + 21 FROM tab0 AS cor0
----
20
20
20

skipif mysql # not compatible
query I rowsort label-7182
SELECT col0 / - col0 + 21 FROM tab0 AS cor0
----
20
20
20

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 <> + + 58 / - col1
----

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

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

query II rowsort
SELECT DISTINCT + col1, + col1 + col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
14
28
47
94
5
10

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7189
SELECT ALL col0 DIV + - col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL col0 / + - col0 FROM tab0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-7190
SELECT DISTINCT ( 56 ) DIV + col2, + col1 FROM tab2
----
0
67
1
77
2
51

skipif mysql # not compatible
query II rowsort label-7190
SELECT DISTINCT ( 56 ) / + col2, + col1 FROM tab2
----
0
67
1
77
2
51

query II rowsort
SELECT - 56, + 69 AS col0 FROM tab0
----
-56
69
-56
69
-56
69

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 + col1 AS col1 FROM tab1 WHERE NOT NULL IN ( 7 * - col2, + 35, - - col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7197
SELECT - 63 col0, + COUNT( * ) * - - 35 * + MAX( DISTINCT col0 ) FROM tab1
----
-63
9555

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7197
SELECT - 63 col0, + COUNT ( * ) * - - 35 * + MAX ( DISTINCT col0 ) FROM tab1
----
-63
9555

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

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

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

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

query II rowsort
SELECT ALL - - 52 AS col0, - col2 FROM tab1 AS cor0
----
52
-59
52
-68
52
-96

query I rowsort
SELECT col0 * + + col0 AS col2 FROM tab0
----
225
7569
9409

query II rowsort
SELECT ALL - 19 + - + col2 + + col2 + + 71 AS col0, - ( col1 ) FROM tab0 cor0
----
52
-1
52
-21
52
-81

query I rowsort
SELECT DISTINCT + - 44 + + ( - - col2 ) + ( + col1 ) * + + 87 AS col0 FROM tab0 AS cor0
----
142
1793
7050

query I rowsort
SELECT DISTINCT col1 * + - col2 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT + ( COUNT( * ) ) FROM tab2 AS cor0 WHERE NULL > col0
----
0

skipif mysql # not compatible
query I rowsort label-7206
SELECT + ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE NULL > col0
----
0

query I rowsort
SELECT DISTINCT - 21 * - - 0 * + - 56 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT IN ( col1, + 27, + 84 + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7209
SELECT ALL + CAST( + 85 AS SIGNED ) * + 36 + - col0 FROM tab0 AS cor0
----
2963
2973
3045

skipif mysql # not compatible
query I rowsort label-7209
SELECT ALL + CAST ( + 85 AS INTEGER ) * + 36 + - col0 FROM tab0 AS cor0
----
2963
2973
3045

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - col0 - + col0 col0, col1 AS col0 FROM tab0
----
-720
81
-957
21
-9700
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 / + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7212
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - 17 + + col2 AS col0 FROM tab2
----
23
41
6

query I rowsort
SELECT ALL col2 * - 48 AS col0 FROM tab1
----
-2832
-3264
-4608

query I rowsort
SELECT col2 * col0 + - 21 FROM tab2
----
1037
2539
4329

query III rowsort
SELECT * FROM tab0 WHERE NULL = ( + col1 * - ( + 60 ) + + + 4 )
----

query III rowsort
SELECT * FROM tab0 WHERE + - col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 59 col1 FROM tab1
----
2773
295
826

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT ALL + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7219
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT ( + col0 NOT BETWEEN NULL AND ( 81 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7221
SELECT ALL - CAST( + + col2 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-7221
SELECT ALL - CAST ( + + col2 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 AS cor0 WHERE ( NOT NULL BETWEEN col2 AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7223
SELECT + col2 AS col0, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-7223
SELECT + col2 AS col0, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT MIN( DISTINCT - col2 ) col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7224
SELECT MIN ( DISTINCT - col2 ) col0 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT + col0 * + + 42 AS col1 FROM tab2 AS cor0
----
1932
2688
3150

query I rowsort
SELECT col0 + col0 + + col0 * col0 * + col1 - col1 + + col2 * 51 FROM tab0 AS cor0 WHERE NOT + col2 * - 39 - col2 IS NULL
----
14651
159612
20571

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT - ( COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7227
SELECT - ( COUNT ( * ) ) FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - ( - - 55 ) ) col2 FROM tab1 cor0
----
55

query I rowsort
SELECT DISTINCT - 32 + + - col1 / - + col0 + col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND + 24 + - col0
----

query I rowsort
SELECT ALL col1 * + col2 * + col0 FROM tab0
----
18270
57105
9603

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 46 BETWEEN col1 + + col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 >= - 45
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT - - col2 * col0 * col0 + + col2 - 5 AS col1 FROM tab1 WHERE NOT col1 * - 89 IS NULL
----
249787
426329
563171

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT DISTINCT COUNT( + col0 ) + - 19 * 62 FROM tab2
----
-1175

skipif mysql # not compatible
query I rowsort label-7234
SELECT DISTINCT COUNT ( + col0 ) + - 19 * 62 FROM tab2
----
-1175

query II rowsort
SELECT + ( + - col0 ) * + 11 AS col0, col0 * ( col0 ) FROM tab1 AS cor0
----
-1001
8281
-561
2601
-935
7225

query I rowsort
SELECT + 44 * col0 * - ( 31 ) AS col2 FROM tab1 AS cor0
----
-115940
-124124
-69564

onlyif mysql # DIV for integer division: 
query II rowsort label-7237
SELECT ALL + col1 DIV - col1 col2, col1 FROM tab2 AS cor0
----
-1
51
-1
67
-1
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7237
SELECT ALL + col1 / - col1 col2, col1 FROM tab2 AS cor0
----
-1
51
-1
67
-1
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 13 * col1 - 41 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7239
SELECT CAST( col2 AS SIGNED ) * + col2 FROM tab0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-7239
SELECT CAST ( col2 AS INTEGER ) * + col2 FROM tab0
----
100
2209
9801

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7241
SELECT ALL + 42 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL + 42 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 0 - + - col0 AS col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT ALL COUNT( + col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL COUNT ( + col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 78 + + - col0 AS col2 FROM tab2 AS cor0
----
-124
-142
-153

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - - 77
----

query I rowsort
SELECT DISTINCT col1 * - 2 + - - col2 + - col0 + - col1 FROM tab0 WHERE NOT + + col1 BETWEEN + col1 + col1 * - 29 - - + 64 AND col2
----
-1
-140
-211

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) col2 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT DISTINCT 3 FROM tab1 WHERE ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7250
SELECT + 68 - COUNT( * ) AS col1, + 84 FROM tab2
----
65
84

skipif mysql # not compatible
query II rowsort label-7250
SELECT + 68 - COUNT ( * ) AS col1, + 84 FROM tab2
----
65
84

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 68 <> + - 66
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 - 82 * + col0 <> - + 11 + - - 80
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 81 AS col0 FROM tab2 cor0
----
81
81
81

query I rowsort
SELECT + 78 + - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
3
32

query II rowsort
SELECT - col1, + col1 FROM tab0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT + 68 * 18 AS col2 FROM tab2
----
1224
1224
1224

query I rowsort
SELECT - col0 * + 72 FROM tab0
----
-1080
-6264
-6984

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT DISTINCT COUNT( * ) * - 0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7258
SELECT DISTINCT COUNT ( * ) * - 0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - 85 AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT DISTINCT - COUNT( * ) * COUNT( * ) AS col0 FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7261
SELECT ALL + 99 DIV 92 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7261
SELECT ALL + 99 / 92 AS col1 FROM tab0 AS cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 * col2 = + 30
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 68 col1 FROM tab2 cor0
----
-68

query I rowsort
SELECT DISTINCT col0 * + 18 FROM tab1 AS cor0
----
1530
1638
918

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE ( ( - col0 ) ) > + 57 * + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7266
SELECT - SUM( col0 ) * + ( - + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7266
SELECT - SUM ( col0 ) * + ( - + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT + MAX( DISTINCT + 31 ) FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-7267
SELECT + MAX ( DISTINCT + 31 ) FROM tab1
----
31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7268
SELECT DISTINCT - COUNT( * ) + + CAST( NULL AS DECIMAL ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7268
SELECT DISTINCT - COUNT ( * ) + + CAST ( NULL AS REAL ) col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7269
SELECT 10 AS col1, COUNT( + 69 ) AS col0 FROM tab1
----
10
3

skipif mysql # not compatible
query II rowsort label-7269
SELECT 10 AS col1, COUNT ( + 69 ) AS col0 FROM tab1
----
10
3

query I rowsort
SELECT - 6 * + + col0 FROM tab0
----
-522
-582
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7271
SELECT ALL - CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7271
SELECT ALL - CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT ALL + 26 + - MAX( ALL col1 ) AS col0 FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-7272
SELECT ALL + 26 + - MAX ( ALL col1 ) AS col0 FROM tab0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT DISTINCT COUNT( + 91 ) * - COUNT( col2 ) + - + COUNT( * ) AS col1 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-7273
SELECT DISTINCT COUNT ( + 91 ) * - COUNT ( col2 ) + - + COUNT ( * ) AS col1 FROM tab2
----
-12

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7275
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 15 BETWEEN - + 57 AND ( - CAST( - 43 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7275
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 15 BETWEEN - + 57 AND ( - CAST ( - 43 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT COUNT( * ) + - + COUNT( * ) + 28 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-7276
SELECT COUNT ( * ) + - + COUNT ( * ) + 28 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT SUM( + col2 ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-7277
SELECT SUM ( + col2 ) AS col0 FROM tab0
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7278
SELECT - + SUM( ALL - - CAST( - col1 AS SIGNED ) ) AS col0 FROM tab1 AS cor0 WHERE 81 * + col1 IS NOT NULL
----
66

skipif mysql # not compatible
query I rowsort label-7278
SELECT - + SUM ( ALL - - CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab1 AS cor0 WHERE 81 * + col1 IS NOT NULL
----
66

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7280
SELECT - col1 DIV 51 - - col2 + + col2 FROM tab2 AS cor0
----
115
45
79

skipif mysql # not compatible
query I rowsort label-7280
SELECT - col1 / 51 - - col2 + + col2 FROM tab2 AS cor0
----
115
45
79

query I rowsort
SELECT ALL 72 AS col1 FROM tab2 AS cor0
----
72
72
72

query I rowsort
SELECT DISTINCT - + col1 - - col1 * - col2 - + 27 * + - ( - + col1 ) FROM tab0 AS cor0
----
-127
-6075
-798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7283
SELECT - 35 * + 30 + 74 / - + col2 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7283
SELECT - 35 * + 30 + 74 / - + col2 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 78 + col0 * + + col2 * 10 AS col2 FROM tab2
----
10658
25678
43578

query III rowsort
SELECT * FROM tab0 WHERE - col0 BETWEEN col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab1 WHERE + col2 * + col0 + - - 25 = - col2
----

query I rowsort
SELECT ALL 97 * + 46 * + + col2 FROM tab0
----
209714
441738
44620

query I rowsort
SELECT col1 + - + 43 FROM tab2
----
24
34
8

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * ( + col2 ) * col2 / + 25 BETWEEN NULL AND - 82
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + - 50 ) FROM tab1 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT ALL + COUNT( * ) * 34 AS col0 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-7293
SELECT ALL + COUNT ( * ) * 34 AS col0 FROM tab0
----
102

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query II rowsort
SELECT col2 * + col0, - col1 + ( - col1 ) AS col0 FROM tab1 AS cor0
----
4896
-28
5015
-10
6188
-94

query II rowsort
SELECT DISTINCT + col2 * col0 AS col1, col0 AS col1 FROM tab2 AS cor0
----
1058
46
2560
64
4350
75

query I rowsort
SELECT + + col0 * - - 37 + + 69 AS col2 FROM tab1 AS cor0
----
1956
3214
3436

query I rowsort
SELECT + col1 + + - col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7299
SELECT - 59 DIV - col1 + col2 + - col2 AS col0, col0 FROM tab0 cor0
----
0
15
2
87
59
97

skipif mysql # not compatible
query II rowsort label-7299
SELECT - 59 / - col1 + col2 + - col2 AS col0, col0 FROM tab0 cor0
----
0
15
2
87
59
97

query I rowsort
SELECT - 63 * - - col2 * - + 56 + + col0 + + col1 * - col0 FROM tab2 cor0
----
136256
199674
78844

query I rowsort
SELECT ALL - ( + - col2 ) - - col1 * + + col0 FROM tab0 AS cor0 WHERE NOT - 29 + + - col1 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL - + 43 AS col1 FROM tab2 AS cor0
----
-43
-43
-43

query I rowsort
SELECT ALL 88 * - col0 + - 89 AS col0 FROM tab2
----
-4137
-5721
-6689

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 22 col1, col1 AS col1 FROM tab1 WHERE + 44 + - + col2 <= + + 18
----
-22
14
-22
47
-22
5

query I rowsort
SELECT 66 + + col2 AS col2 FROM tab1
----
125
134
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7306
SELECT + + CAST( NULL AS SIGNED ) * - - col2 + - + 91 AS col2 FROM tab2 WHERE + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7306
SELECT + + CAST ( NULL AS INTEGER ) * - - col2 + - + 91 AS col2 FROM tab2 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT ALL - 83 + + - SUM( + col0 ) FROM tab1
----
-310

skipif mysql # not compatible
query I rowsort label-7307
SELECT ALL - 83 + + - SUM ( + col0 ) FROM tab1
----
-310

query I rowsort
SELECT + col1 * + - col1 * col2 FROM tab2 AS cor0
----
-237160
-260362
-59823

query II rowsort
SELECT - 24 AS col2, col0 + 55 - + + 80 + - + col1 * - 12 * + - col0 FROM tab2 AS cor0
----
-24
-28131
-24
-59097
-24
-60250

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT ALL + - 20 * - - COUNT( * ) FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-7310
SELECT ALL + - 20 * - - COUNT ( * ) FROM tab0 AS cor0
----
-60

query I rowsort
SELECT + 89 * - ( + 95 ) AS col2 FROM tab1 cor0
----
-8455
-8455
-8455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 col2 FROM tab0 AS cor0 WHERE + 89 <> NULL
----

query I rowsort
SELECT ALL col2 * + 60 FROM tab1
----
3540
4080
5760

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT DISTINCT - MAX( ALL - col0 ) + - 82 * - COUNT( * ) - - 46 * - - COUNT( * ) FROM tab2
----
430

skipif mysql # not compatible
query I rowsort label-7314
SELECT DISTINCT - MAX ( ALL - col0 ) + - 82 * - COUNT ( * ) - - 46 * - - COUNT ( * ) FROM tab2
----
430

query I rowsort
SELECT + 54 + col1 AS col0 FROM tab0 AS cor0
----
135
55
75

query I rowsort
SELECT ALL + 3 + + + 66 FROM tab0 AS cor0
----
69
69
69

query I rowsort
SELECT DISTINCT ( col1 ) - - - col2 AS col0 FROM tab0 AS cor0
----
-98
11
34

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7319
SELECT + col1 AS col0, + CAST( NULL AS SIGNED ) * 64 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-7319
SELECT + col1 AS col0, + CAST ( NULL AS INTEGER ) * 64 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7320
SELECT - + col1 / - - col2 - - - 55 - - + col0 * - ( - CAST( NULL AS SIGNED ) ) * - col2, col0 FROM tab1 AS cor0 WHERE NULL BETWEEN + 51 / + col0 AND + col2
----

skipif mysql # not compatible
query II rowsort label-7320
SELECT - + col1 / - - col2 - - - 55 - - + col0 * - ( - CAST ( NULL AS INTEGER ) ) * - col2, col0 FROM tab1 AS cor0 WHERE NULL BETWEEN + 51 / + col0 AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 72 col0 FROM tab1
----
72

query I rowsort
SELECT ALL + ( + + col1 ) AS col2 FROM tab0
----
1
21
81

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
23
40
58

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL > ( NULL )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * col0 + - + col1 FROM tab2 AS cor0
----
-1109
-2637
-4417

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT col2 * - col1 + + + col1 FROM tab0 AS cor0
----
-189
-3726
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT DISTINCT - COUNT( ALL + - col2 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7330
SELECT DISTINCT - COUNT ( ALL + - col2 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT ALL - SUM( + col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-7331
SELECT ALL - SUM ( + col0 ) AS col1 FROM tab1 AS cor0
----
-227

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT - + col2 FROM tab2 cor0 WHERE NOT ( col2 + - 83 * col0 IS NULL )
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7334
SELECT DISTINCT - col0 * col0 * + CAST( + - col2 AS SIGNED ) * - col2 + + col1 FROM tab0 cor0
----
-496944
-756879
-92217608

skipif mysql # not compatible
query I rowsort label-7334
SELECT DISTINCT - col0 * col0 * + CAST ( + - col2 AS INTEGER ) * - col2 + + col1 FROM tab0 cor0
----
-496944
-756879
-92217608

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7335
SELECT ( + AVG ( 96 ) ) * - + ( + CAST( NULL AS DECIMAL ) ) col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7335
SELECT ( + AVG ( 96 ) ) * - + ( + CAST ( NULL AS REAL ) ) col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT 22 + - - col2 * col1 FROM tab1 AS cor0
----
1366
317
3218

query I rowsort
SELECT ALL - col0 + - ( - 8 ) * + 59 AS col0 FROM tab0
----
375
385
457

query I rowsort
SELECT DISTINCT 28 * - col2 AS col0 FROM tab0
----
-1316
-2772
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT DISTINCT SUM( - 11 ) + + 35 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-7339
SELECT DISTINCT SUM ( - 11 ) + + 35 FROM tab2
----
2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 21 < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7341
SELECT ALL col2 + ( col0 ) DIV + 24, col1 FROM tab1
----
62
5
71
47
98
14

skipif mysql # not compatible
query II rowsort label-7341
SELECT ALL col2 + ( col0 ) / + 24, col1 FROM tab1
----
62
5
71
47
98
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7342
SELECT ALL - + CAST( NULL AS SIGNED ) AS col2, - AVG ( DISTINCT + ( - + col0 ) ) FROM tab1 AS cor0 WHERE NOT col1 - + col1 * ( + + col2 ) * - col0 NOT BETWEEN + 23 / col1 AND NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7342
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col2, - AVG ( DISTINCT + ( - + col0 ) ) FROM tab1 AS cor0 WHERE NOT col1 - + col1 * ( + + col2 ) * - col0 NOT BETWEEN + 23 / col1 AND NULL
----
NULL
NULL

query I rowsort
SELECT - 63 + - col2 FROM tab2 cor0
----
-103
-121
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7344
SELECT + 67 / - - col1 * - col1 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7344
SELECT + 67 / - - col1 * - col1 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - ( - 75 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7346
SELECT + col1 DIV - 31 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-7346
SELECT + col1 / - 31 FROM tab0
----
-2
0
0

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 * - ( - col0 ) col1 FROM tab2
----
2070
2880
3375

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7350
SELECT - 97 DIV + col0 - - + col2 + - col2 * - CAST( 44 AS SIGNED ) + - + col1 FROM tab0 AS cor0
----
2028
428
4453

skipif mysql # not compatible
query I rowsort label-7350
SELECT - 97 / + col0 - - + col2 + - col2 * - CAST ( 44 AS INTEGER ) + - + col1 FROM tab0 AS cor0
----
2028
428
4453

query I rowsort
SELECT DISTINCT - - col0 * - 38 FROM tab0 AS cor0
----
-3306
-3686
-570

onlyif mysql # DIV for integer division: 
query I rowsort label-7352
SELECT DISTINCT - col2 DIV col2 * + col1 + - + col0 AS col1 FROM tab2 AS cor0
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-7352
SELECT DISTINCT - col2 / col2 * + col1 + - + col0 AS col1 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT - col0 * - 47 * + col2 * + col2 NOT BETWEEN - col0 * - col0 AND col1 - - 47
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, + col2 col2 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-7355
SELECT ALL ( - col1 ) DIV col0 * 33 col2 FROM tab0
----
-165
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7355
SELECT ALL ( - col1 ) / col0 * 33 col2 FROM tab0
----
-165
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 / - 54 BETWEEN NULL AND - col1
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT - COUNT( * ) * - - 78 AS col0 FROM tab0
----
-234

skipif mysql # not compatible
query I rowsort label-7357
SELECT - COUNT ( * ) * - - 78 AS col0 FROM tab0
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT DISTINCT + MIN( ALL + col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-7358
SELECT DISTINCT + MIN ( ALL + col1 ) AS col2 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT DISTINCT MIN( ALL + 48 ) AS col1 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-7359
SELECT DISTINCT MIN ( ALL + 48 ) AS col1 FROM tab0
----
48

query I rowsort
SELECT + col0 * - - col0 FROM tab1 AS cor0
----
2601
7225
8281

query I rowsort
SELECT DISTINCT + col2 * - + 37 AS col2 FROM tab1 AS cor0
----
-2183
-2516
-3552

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT col1 = + col2 + + ( + col2 ) - 27
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT ALL + MIN( + + col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-7363
SELECT ALL + MIN ( + + col0 ) FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT ALL + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT 7 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
7

query II rowsort
SELECT + col1 * - - col2 AS col2, - col1 FROM tab0 AS cor0
----
210
-21
3807
-81
99
-1

query II rowsort
SELECT - ( - 43 ), col2 * + col2 AS col2 FROM tab2 AS cor0
----
43
1600
43
3364
43
529

query II rowsort
SELECT ALL + ( - - col0 ) AS col1, + 15 FROM tab0 AS cor0
----
15
15
87
15
97
15

query II rowsort
SELECT + - col2 + ( + - col1 ) AS col2, col0 * col1 + + 29 + + col1 FROM tab0 AS cor0
----
-100
127
-128
1325
-31
1877

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT ALL - SUM( - - ( + col2 ) ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7370
SELECT ALL - SUM ( - - ( + col2 ) ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT + ( + + 78 ) AS col1 FROM tab2 AS cor0
----
78

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT + col1 + - + ( + + 53 ) FROM tab0 AS cor0
----
-32
-52
28

query I rowsort
SELECT - col0 * - col1 + + + col2 AS col0 FROM tab0 AS cor0
----
1262
1837
196

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT COUNT( * ) AS col0 FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7375
SELECT COUNT ( * ) AS col0 FROM tab0, tab1 AS cor0
----
9

query II rowsort
SELECT DISTINCT col0, - col1 AS col0 FROM tab0
----
15
-81
87
-21
97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT ALL + COUNT( * ) * - COUNT( * ) * + - 64 * - COUNT( * ) + - + COUNT( * ) + MAX( ( - col0 ) ) + - COUNT( * ) AS col2 FROM tab2 WHERE - col2 IS NOT NULL
----
-1780

skipif mysql # not compatible
query I rowsort label-7377
SELECT ALL + COUNT ( * ) * - COUNT ( * ) * + - 64 * - COUNT ( * ) + - + COUNT ( * ) + MAX ( ( - col0 ) ) + - COUNT ( * ) AS col2 FROM tab2 WHERE - col2 IS NOT NULL
----
-1780

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE col1 > - 1
----
51
85
91

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NULL = - 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT - ( MAX( - col0 ) ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7380
SELECT - ( MAX ( - col0 ) ) AS col1 FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7381
SELECT DISTINCT col1 + + + CAST( - + ( 1 ) AS SIGNED ) AS col1 FROM tab2
----
50
66
76

skipif mysql # not compatible
query I rowsort label-7381
SELECT DISTINCT col1 + + + CAST ( - + ( 1 ) AS INTEGER ) AS col1 FROM tab2
----
50
66
76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT MAX( DISTINCT + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7383
SELECT MAX ( DISTINCT + col1 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT - + col0 - 63 + - + col1 FROM tab0 AS cor0
----
-159
-161
-171

query I rowsort
SELECT DISTINCT ( 95 ) * + 23 AS col0 FROM tab0
----
2185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 - col2 col2 FROM tab1
----
-51
-60
-88

query I rowsort
SELECT - col1 * + 37 AS col2 FROM tab0
----
-2997
-37
-777

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 * col1 col0 FROM tab1
----
-3102
-330
-924

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7389
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( CAST( - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7389
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( CAST ( - col0 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - col1 * - 72 + 32 FROM tab1
----
1040
3416
392

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT - COUNT( * ) * - 59 AS col1 FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-7391
SELECT - COUNT ( * ) * - 59 AS col1 FROM tab0
----
177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7392
SELECT + CAST( - col2 AS SIGNED ) * + col1 FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-7392
SELECT + CAST ( - col2 AS INTEGER ) * + col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7393
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7393
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 WHERE NOT ( col2 - col1 ) IS NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 col2 FROM tab0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT ALL COUNT( ALL + 35 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7396
SELECT ALL COUNT ( ALL + 35 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 13 ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT DISTINCT + MIN( DISTINCT col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7398
SELECT DISTINCT + MIN ( DISTINCT col2 ) AS col0 FROM tab2
----
23

query I rowsort
SELECT col1 + - 60 AS col2 FROM tab1
----
-13
-46
-55

query I rowsort
SELECT DISTINCT ( + ( - 95 ) ) FROM tab1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT - 38 * + SUM( DISTINCT + col2 ) FROM tab1 WHERE 73 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7401
SELECT - 38 * + SUM ( DISTINCT + col2 ) FROM tab1 WHERE 73 IS NULL
----
NULL

query I rowsort
SELECT 5 FROM tab2 WHERE - col1 NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col1 * col1 IN ( + col2 + + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7404
SELECT + MAX( DISTINCT CAST( 69 AS SIGNED ) ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-7404
SELECT + MAX ( DISTINCT CAST ( 69 AS INTEGER ) ) FROM tab2
----
69

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN ( + col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT - COUNT( * ) + - 44 * COUNT( * ) FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-7406
SELECT - COUNT ( * ) + - 44 * COUNT ( * ) FROM tab0
----
-135

query I rowsort
SELECT + 10 FROM tab1 WHERE NOT NULL NOT IN ( + col0 )
----

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE ( NULL ) BETWEEN NULL AND 66
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7410
SELECT DISTINCT CAST( col1 AS SIGNED ) + + 35 FROM tab1
----
40
49
82

skipif mysql # not compatible
query I rowsort label-7410
SELECT DISTINCT CAST ( col1 AS INTEGER ) + + 35 FROM tab1
----
40
49
82

query I rowsort
SELECT 21 + 82 AS col0 FROM tab2
----
103
103
103

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT ALL ( + 76 ) FROM tab1 WHERE NOT ( - 65 ) IS NULL
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT - COUNT( * ) * 2 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7414
SELECT - COUNT ( * ) * 2 FROM tab0 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 * - col0 col2 FROM tab1 cor0
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT DISTINCT SUM( DISTINCT + col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-7416
SELECT DISTINCT SUM ( DISTINCT + col1 ) FROM tab1 cor0
----
66

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 83 IN ( 94 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT 44 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 + 53 AS col2 FROM tab1
----
104
138
144

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT ( + MAX( DISTINCT + 8 ) ) col2 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7420
SELECT ( + MAX ( DISTINCT + 8 ) ) col2 FROM tab0 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT ALL COUNT( * ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7421
SELECT ALL COUNT ( * ) AS col2 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7422
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7423
SELECT * FROM tab2 AS cor0 WHERE + ( CAST( - col1 AS SIGNED ) ) + col2 <> ( 21 - + 37 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7423
SELECT * FROM tab2 AS cor0 WHERE + ( CAST ( - col1 AS INTEGER ) ) + col2 <> ( 21 - + 37 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 32 AS col2 FROM tab1 AS cor0 WHERE NOT - 25 NOT IN ( + col1 )
----

query I rowsort
SELECT ALL - + 34 + col2 AS col1 FROM tab1 AS cor0
----
25
34
62

query I rowsort
SELECT ALL + 54 FROM tab0 cor0
----
54
54
54

onlyif mysql # DIV for integer division: 
query I rowsort label-7427
SELECT DISTINCT col1 DIV - 21 AS col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-7427
SELECT DISTINCT col1 / - 21 AS col0 FROM tab0 AS cor0
----
-1
-3
0

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT MAX( - col2 ) * + 37 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col1 * - col0 AND - ( ( col2 ) ) * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-7429
SELECT MAX ( - col2 ) * + 37 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col1 * - col0 AND - ( ( col2 ) ) * 76
----
NULL

query I rowsort
SELECT + 78 * + 40 FROM tab0 AS cor0
----
3120
3120
3120

query I rowsort
SELECT col1 * - ( - col2 * col1 ) FROM tab1 AS cor0 WHERE ( col2 ) IS NOT NULL
----
1475
150212
18816

query I rowsort
SELECT + ( 0 ) FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + - - 21 AS col0 FROM tab0
----
108
118
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT + MAX( - col2 ) - + COUNT( * ) FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-7434
SELECT + MAX ( - col2 ) - + COUNT ( * ) FROM tab1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT 20 + ( MAX( + col1 ) ) FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-7435
SELECT 20 + ( MAX ( + col1 ) ) FROM tab1
----
67

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE 63 < ( - col0 / col1 )
----

query I rowsort
SELECT + col2 + 53 + 88 AS col0 FROM tab0
----
151
188
240

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col2 * col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT DISTINCT COUNT( * ) + 92 AS col2 FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-7439
SELECT DISTINCT COUNT ( * ) + 92 AS col2 FROM tab0
----
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 21 + + + 88 col0 FROM tab1
----
67
67
67

query I rowsort
SELECT 50 + + col0 - col2 AS col0 FROM tab1
----
5
73
76

query I rowsort
SELECT DISTINCT - - col1 * + - col0 - - col2 AS col0 FROM tab2 AS cor0
----
-2323
-4888
-4967

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( + 71 * + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7444
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + CAST( 16 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7444
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + CAST ( 16 AS INTEGER ) ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 61 / 80 + - 50 <> ( 88 )
----

query I rowsort
SELECT DISTINCT + - col1 - + 47 + - col2 AS col1 FROM tab2 cor0
----
-121
-164
-172

query I rowsort
SELECT DISTINCT 32 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
32

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT DISTINCT 68 AS col0 FROM tab1 WHERE NOT + col0 NOT IN ( ( - 94 ) + col0 )
----

query I rowsort
SELECT - 40 FROM tab0 cor0 WHERE NOT - col0 * col1 * col0 IS NULL
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE - col1 IN ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE - col1 IN ( + col1 )
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 98 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7453
SELECT DISTINCT + CAST( ( - - SUM( col1 ) ) AS SIGNED ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-7453
SELECT DISTINCT + CAST ( ( - - SUM ( col1 ) ) AS INTEGER ) FROM tab0 AS cor0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 68 col0 FROM tab2 AS cor0
----
-68

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + 67 * + 70 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7456
SELECT + - COUNT( * ) DIV ( COUNT( * ) ) + 71 AS col0 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-7456
SELECT + - COUNT ( * ) / ( COUNT ( * ) ) + 71 AS col0 FROM tab1 AS cor0
----
70

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7457
SELECT + 75 AS col1, + col1 + - CAST( NULL AS DECIMAL ) * + 49 FROM tab2 AS cor0
----
75
NULL
75
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-7457
SELECT + 75 AS col1, + col1 + - CAST ( NULL AS REAL ) * + 49 FROM tab2 AS cor0
----
75
NULL
75
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT - SUM( + - col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-7458
SELECT - SUM ( + - col0 ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT DISTINCT - ( - ( col0 ) ) * col0 AS col0 FROM tab1 AS cor0 WHERE col2 + 56 BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT ALL COUNT( - - 72 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7460
SELECT ALL COUNT ( - - 72 ) FROM tab0
----
3

query I rowsort
SELECT 57 FROM tab0 WHERE NOT NULL <= ( - col0 )
----

query I rowsort
SELECT DISTINCT col1 * - col2 * - - col0 AS col0 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT DISTINCT - + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT ALL + col1 * - 14 AS col1 FROM tab1
----
-196
-658
-70

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN ( 7 - + - col2 ) AND col0 * 72
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT col0 <> - + 25
----

query I rowsort
SELECT ( col1 ) FROM tab1 WHERE - col0 <> ( + + col2 - + col1 * col0 ) AND NOT ( - col0 ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - 89 IS NOT NULL
----

query I rowsort
SELECT - + col2 * + - col0 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT DISTINCT + col0 * - + 33 * - col0 AS col1 FROM tab1 AS cor0
----
238425
273273
85833

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 NOT BETWEEN NULL AND ( + + col0 + - - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 < - + col1
----

query II rowsort
SELECT ALL 37 AS col2, 84 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 1ff4520b28a26776be1cd5f5960dd391

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT DISTINCT - 13 * 17 * + COUNT( * ) * 11 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-21879

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7475
SELECT DISTINCT - 13 * 17 * + COUNT ( * ) * 11 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-21879

onlyif mysql # DIV for integer division: 
query I rowsort label-7476
SELECT ALL col2 - 77 DIV + col1 AS col0 FROM tab2 WHERE ( - 54 ) <> col2 * - + col1 * - col0
----
22
39
57

skipif mysql # not compatible
query I rowsort label-7476
SELECT ALL col2 - 77 / + col1 AS col0 FROM tab2 WHERE ( - 54 ) <> col2 * - + col1 * - col0
----
22
39
57

query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab1 WHERE + col2 + + 32 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL + + col1 + - col1 * - 18 AS col1 FROM tab0 AS cor0
----
1539
19
399

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( - 84 ) * + - 22 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7481
SELECT 30 DIV + 93 + - col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7481
SELECT 30 / + 93 + - col0 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + - col0 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - ( - 10 ) - - 47 col2 FROM tab0 AS cor0
----
104
156
67

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col1 ) >= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7485
SELECT DISTINCT AVG ( col2 ) + COUNT( * ) AS col1 FROM tab2 WHERE NOT - ( + CAST( NULL AS SIGNED ) ) / - - col1 * - col1 NOT IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7485
SELECT DISTINCT AVG ( col2 ) + COUNT ( * ) AS col1 FROM tab2 WHERE NOT - ( + CAST ( NULL AS INTEGER ) ) / - - col1 * - col1 NOT IN ( col2 )
----
NULL

query I rowsort
SELECT + 43 - + col1 * - col1 AS col2 FROM tab1 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT ALL COUNT( * ) * COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-7487
SELECT ALL COUNT ( * ) * COUNT ( * ) FROM tab1
----
9

query II rowsort
SELECT 46 AS col1, 87 FROM tab0
----
46
87
46
87
46
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7489
SELECT col1 DIV - 38 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7489
SELECT col1 / - 38 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT ( + col1 * + 57 NOT BETWEEN ( NULL ) AND col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7490
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT ( + col1 * + 57 NOT BETWEEN ( NULL ) AND col2 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT ALL col2 * - col1 + + 21 AS col1 FROM tab0
----
-189
-3786
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7493
SELECT CAST( + - col0 AS SIGNED ) FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7493
SELECT CAST ( + - col0 AS INTEGER ) FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT col0 + - col1 FROM tab1 cor0 WHERE NULL IS NULL
----
37
44
80

query II rowsort
SELECT + 5 - - + col0, col1 FROM tab2 AS cor0
----
51
51
69
77
80
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7496
SELECT - + COUNT( * ) - - COUNT( - CAST( NULL AS SIGNED ) ) + - - 88 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-7496
SELECT - + COUNT ( * ) - - COUNT ( - CAST ( NULL AS INTEGER ) ) + - - 88 FROM tab1 AS cor0
----
85

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 11 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7498
SELECT ALL + CAST( - col1 AS SIGNED ) AS col2, col0 AS col0 FROM tab1
----
-14
51
-47
91
-5
85

skipif mysql # not compatible
query II rowsort label-7498
SELECT ALL + CAST ( - col1 AS INTEGER ) AS col2, col0 AS col0 FROM tab1
----
-14
51
-47
91
-5
85

query I rowsort
SELECT ALL + 22 - + col1 FROM tab2 WHERE col0 + + col2 + + col0 + + 37 + - - col1 - col0 IS NOT NULL
----
-29
-45
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7500
SELECT 61 AS col2 FROM tab2 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) * + ( col1 ) ) IS NOT NULL
----
61
61
61

skipif mysql # not compatible
query I rowsort label-7500
SELECT 61 AS col2 FROM tab2 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) * + ( col1 ) ) IS NOT NULL
----
61
61
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 col0 FROM tab1 AS cor0
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT + SUM( ALL + 63 ) FROM tab0 cor0
----
189

skipif mysql # not compatible
query I rowsort label-7502
SELECT + SUM ( ALL + 63 ) FROM tab0 cor0
----
189

query I rowsort
SELECT + ( + - 86 ) AS col1 FROM tab2
----
-86
-86
-86

query I rowsort
SELECT DISTINCT + + 96 FROM tab0 WHERE NULL NOT IN ( + col1, col2 )
----

query II rowsort
SELECT ALL + col0 AS col2, 67 + + + col1 AS col0 FROM tab0
----
15
148
87
88
97
68

query II rowsort
SELECT col0 AS col1, col2 AS col1 FROM tab0
----
15
47
87
10
97
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( 35 ) FROM tab1
----
35

query I rowsort
SELECT ALL col0 * - col1 * + col0 * - - col1 FROM tab1
----
-180625
-18292729
-509796

query I rowsort
SELECT + + 35 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
35
35
35

query II rowsort
SELECT col1, 92 * - - col1 + - + col1 FROM tab2
----
51
4641
67
6097
77
7007

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT DISTINCT + - MIN( - col1 ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-7513
SELECT DISTINCT + - MIN ( - col1 ) FROM tab2 cor0
----
77

query I rowsort
SELECT - 14 + + - 83 AS col0 FROM tab0 AS cor0 WHERE - 24 * + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7515
SELECT DISTINCT 49 + + col0 AS col1 FROM tab1 AS cor0 WHERE NOT + ( - col1 ) - col0 + + col2 * - ( - + col1 ) + CAST( NULL AS SIGNED ) IS NOT NULL
----
100
134
140

skipif mysql # not compatible
query I rowsort label-7515
SELECT DISTINCT 49 + + col0 AS col1 FROM tab1 AS cor0 WHERE NOT + ( - col1 ) - col0 + + col2 * - ( - + col1 ) + CAST ( NULL AS INTEGER ) IS NOT NULL
----
100
134
140

query II rowsort
SELECT DISTINCT col1, - col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7518
SELECT ALL CAST( NULL AS SIGNED ) + MAX( 89 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7518
SELECT ALL CAST ( NULL AS INTEGER ) + MAX ( 89 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7520
SELECT DISTINCT * FROM tab0 WHERE ( NOT ( + col1 >= - + ( CAST( + col2 AS DECIMAL ) ) * 81 ) )
----

skipif mysql # not compatible
query III rowsort label-7520
SELECT DISTINCT * FROM tab0 WHERE ( NOT ( + col1 >= - + ( CAST ( + col2 AS REAL ) ) * 81 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 73 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT ALL COUNT( * ) + + - 88 * + 88 FROM tab1 cor0
----
-7741

skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL COUNT ( * ) + + - 88 * + 88 FROM tab1 cor0
----
-7741

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT DISTINCT + COUNT( DISTINCT + + col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7524
SELECT DISTINCT + COUNT ( DISTINCT + + col2 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 18 - + - 93 * + col2 FROM tab0 AS cor0
----
4353
912
9189

query I rowsort
SELECT 61 - - - col0 * + + col1 FROM tab1
----
-364
-4216
-653

query I rowsort
SELECT col0 + + 99 AS col0 FROM tab1
----
150
184
190

query I rowsort
SELECT ALL + + col1 * ( + - 11 ) + + - col2 AS col1 FROM tab0 AS cor0
----
-110
-241
-938

query II rowsort
SELECT - - ( ( + + 36 ) ) AS col2, 91 FROM tab0 AS cor0
----
36
91
36
91
36
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT - COUNT( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7530
SELECT - COUNT ( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7531
SELECT + + CAST( - + col2 AS SIGNED ) * - 4 AS col0 FROM tab2 AS cor0
----
160
232
92

skipif mysql # not compatible
query I rowsort label-7531
SELECT + + CAST ( - + col2 AS INTEGER ) * - 4 AS col0 FROM tab2 AS cor0
----
160
232
92

query I rowsort
SELECT - - ( 54 ) FROM tab1 AS cor0
----
54
54
54

query I rowsort
SELECT ALL + - col1 / - col2 AS col1 FROM tab1 WHERE NULL > - 94
----

query I rowsort
SELECT ALL - ( 18 ) AS col1 FROM tab1
----
-18
-18
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 21 col1 FROM tab2
----
21

query I rowsort
SELECT DISTINCT 59 FROM tab1 WHERE NOT col0 + - + col2 IS NOT NULL
----

query I rowsort
SELECT - 73 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT COUNT( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-7538
SELECT COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - - col1 AS col1, col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7541
SELECT - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - 84 <= NULL
----

skipif mysql # not compatible
query I rowsort label-7541
SELECT - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - 84 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7542
SELECT - - CAST( + AVG ( DISTINCT - + 51 ) AS SIGNED ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7542
SELECT - - CAST ( + AVG ( DISTINCT - + 51 ) AS INTEGER ) FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7543
SELECT CAST( + col0 AS SIGNED ) DIV + col0 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7543
SELECT CAST ( + col0 AS INTEGER ) / + col0 AS col2 FROM tab1 AS cor0
----
1
1
1

query II rowsort
SELECT - col0, col0 + + ( + 49 ) + + col0 AS col1 FROM tab2 AS cor0
----
-46
141
-64
177
-75
199

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT ALL - MIN( DISTINCT + col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-7545
SELECT ALL - MIN ( DISTINCT + col2 ) FROM tab1 AS cor0
----
-59

query II rowsort
SELECT - col2, + col0 AS col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

onlyif mysql # aggregate syntax: 
query II rowsort label-7547
SELECT MIN( DISTINCT - 76 ), + MIN( DISTINCT + + 68 ) AS col2 FROM tab1 AS cor0
----
-76
68

skipif mysql # not compatible
query II rowsort label-7547
SELECT MIN ( DISTINCT - 76 ), + MIN ( DISTINCT + + 68 ) AS col2 FROM tab1 AS cor0
----
-76
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT ALL + + 58 * + SUM( + 49 ) AS col1 FROM tab0 AS cor0
----
8526

skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL + + 58 * + SUM ( + 49 ) AS col1 FROM tab0 AS cor0
----
8526

query I rowsort
SELECT ALL - col1 + + 17 * - 74 FROM tab1
----
-1263
-1272
-1305

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT DISTINCT + COUNT( * ) + - 37 AS col2 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-7550
SELECT DISTINCT + COUNT ( * ) + - 37 AS col2 FROM tab0
----
-34

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7552
SELECT COUNT( * ) + - 62 * - + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT - 1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7552
SELECT COUNT ( * ) + - 62 * - + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT - 1 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 + col0 + - + col0 + + 91 * - col0 FROM tab2
----
-4140
-5760
-6750

query I rowsort
SELECT ALL - col2 * ( + 17 ) AS col2 FROM tab2 WHERE - 78 <> + ( + col1 )
----
-391
-680
-986

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7555
SELECT - col0 * + CAST( NULL AS SIGNED ) * + - col2 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7555
SELECT - col0 * + CAST ( NULL AS INTEGER ) * + - col2 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT ALL - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7556
SELECT ALL - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 67 + - col2 * 15 * - 39 FROM tab0
----
27562
57982
5917

query I rowsort
SELECT + 56 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 69 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7559
SELECT - col2 + + ( + 3 ) - + ( col2 ) DIV - 24, col2 FROM tab1
----
-54
59
-63
68
-89
96

skipif mysql # not compatible
query II rowsort label-7559
SELECT - col2 + + ( + 3 ) - + ( col2 ) / - 24, col2 FROM tab1
----
-54
59
-63
68
-89
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7560
SELECT + 21 + + col1 DIV - col2 AS col1 FROM tab1 AS cor0
----
21
21
21

skipif mysql # not compatible
query I rowsort label-7560
SELECT + 21 + + col1 / - col2 AS col1 FROM tab1 AS cor0
----
21
21
21

query I rowsort
SELECT ALL col2 + - + 28 + 71 FROM tab2 AS cor0
----
101
66
83

query II rowsort
SELECT ALL + ( + 23 ) * + - col1 AS col0, + col2 + + col1 AS col1 FROM tab1 AS cor0
----
-1081
115
-115
64
-322
110

query I rowsort
SELECT + 28 + + 9 AS col2 FROM tab2 AS cor0
----
37
37
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7564
SELECT col2 + - col0 + col0 - col0 * + CAST( NULL AS SIGNED ) / + ( + 34 ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7564
SELECT col2 + - col0 + col0 - col0 * + CAST ( NULL AS INTEGER ) / + ( + 34 ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7565
SELECT ALL 11 DIV - COUNT( * ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7565
SELECT ALL 11 / - COUNT ( * ) col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 AND + 20 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT ALL + COUNT( * ) * + MAX( - 89 ) AS col1 FROM tab2
----
-267

skipif mysql # not compatible
query I rowsort label-7567
SELECT ALL + COUNT ( * ) * + MAX ( - 89 ) AS col1 FROM tab2
----
-267

onlyif mysql # DIV for integer division: 
query I rowsort label-7568
SELECT ALL 91 DIV - + col1 AS col2 FROM tab0
----
-1
-4
-91

skipif mysql # not compatible
query I rowsort label-7568
SELECT ALL 91 / - + col1 AS col2 FROM tab0
----
-1
-4
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7569
SELECT 71 - - COUNT( * ) * + MIN( ALL + CAST( + col2 AS SIGNED ) ) AS col1 FROM tab2
----
140

skipif mysql # not compatible
query I rowsort label-7569
SELECT 71 - - COUNT ( * ) * + MIN ( ALL + CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab2
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7570
SELECT - col0 / + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7570
SELECT - col0 / + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - 84 FROM tab2
----
-4284
-5628
-6468

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT MAX( - col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-7573
SELECT MAX ( - col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 28 col0 FROM tab1 AS cor0 WHERE col1 - - - col1 / - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 71 * + + 13 col0 FROM tab1 AS cor0
----
-923
-923
-923

query I rowsort
SELECT + + col1 AS col2 FROM tab2 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT + ( col2 ) FROM tab1 WHERE NOT col1 IS NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7578
SELECT DISTINCT col2 DIV - 47 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-7578
SELECT DISTINCT col2 / - 47 FROM tab2
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT + COUNT( * ) * - COUNT( * ) col1 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7579
SELECT + COUNT ( * ) * - COUNT ( * ) col1 FROM tab1
----
-9

query II rowsort
SELECT + col1 AS col0, + col1 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT DISTINCT - + ( + SUM( col0 ) ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-7581
SELECT DISTINCT - + ( + SUM ( col0 ) ) AS col2 FROM tab2 AS cor0
----
-185

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + 36 = - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7583
SELECT DISTINCT - - col0 DIV - + 64 + + col1 AS col0 FROM tab2 AS cor0
----
51
66
76

skipif mysql # not compatible
query I rowsort label-7583
SELECT DISTINCT - - col0 / - + 64 + + col1 AS col0 FROM tab2 AS cor0
----
51
66
76

onlyif mysql # DIV for integer division: 
query II rowsort label-7584
SELECT col2 DIV - + 81 * - - col1, - col1 AS col0 FROM tab2 AS cor0
----
0
-51
0
-67
0
-77

skipif mysql # not compatible
query II rowsort label-7584
SELECT col2 / - + 81 * - - col1, - col1 AS col0 FROM tab2 AS cor0
----
0
-51
0
-67
0
-77

query I rowsort
SELECT DISTINCT col0 + + - col0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 84 col2, 47 FROM tab0
----
84
47

query I rowsort
SELECT ALL 42 + - 80 * col0 AS col0 FROM tab2
----
-3638
-5078
-5958

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT + COUNT( DISTINCT + 61 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7588
SELECT + COUNT ( DISTINCT + 61 ) AS col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7589
SELECT + ( + COUNT( * ) ), ( COUNT( * ) ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-7589
SELECT + ( + COUNT ( * ) ), ( COUNT ( * ) ) FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT - COUNT( - col1 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7590
SELECT - COUNT ( - col1 ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT 55 * - + 50 + + + ( col2 ) AS col2 FROM tab2
----
-2692
-2710
-2727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - + 89 col0 FROM tab0
----
-42
-79
10

query II rowsort
SELECT DISTINCT 26 AS col0, col0 * - + 46 AS col1 FROM tab2 AS cor0
----
26
-2116
26
-2944
26
-3450

query I rowsort
SELECT ALL ( + 87 ) FROM tab1 AS cor0
----
87
87
87

query I rowsort
SELECT + - 82 + - col2 FROM tab0 AS cor0
----
-129
-181
-92

query I rowsort
SELECT DISTINCT 17 + 17 FROM tab0 AS cor0
----
34

query I rowsort
SELECT ALL - 92 - + + col1 FROM tab0 cor0
----
-113
-173
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + 14 BETWEEN - col0 AND + col0 / col0
----
0

skipif mysql # not compatible
query I rowsort label-7598
SELECT - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + 14 BETWEEN - col0 AND + col0 / col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT ALL + COUNT( * ) + 64 + 45 + + 11 + + ( - SUM( ALL + col2 ) ) * + MIN( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
-1437

skipif mysql # not compatible
query I rowsort label-7599
SELECT ALL + COUNT ( * ) + 64 + 45 + + 11 + + ( - SUM ( ALL + col2 ) ) * + MIN ( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
-1437

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7600
SELECT 76 - + + col2 + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
76
76
76

skipif mysql # not compatible
query I rowsort label-7600
SELECT 76 - + + col2 + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
76
76
76

query I rowsort
SELECT + col1 + + col0 * - ( col0 ) AS col1 FROM tab1 cor0
----
-2587
-7220
-8234

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT ALL MIN( DISTINCT + col0 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7602
SELECT ALL MIN ( DISTINCT + col0 ) AS col2 FROM tab2
----
46

query II rowsort
SELECT DISTINCT - col1, col2 FROM tab0
----
-1
99
-21
10
-81
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 12 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 BETWEEN NULL AND - 71 * + col0 + + 81
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7606
SELECT * FROM tab2 WHERE NOT - CAST( col0 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7606
SELECT * FROM tab2 WHERE NOT - CAST ( col0 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7607
SELECT DISTINCT COUNT( ALL + CAST( NULL AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7607
SELECT DISTINCT COUNT ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7608
SELECT CAST( NULL AS DECIMAL ) * col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7608
SELECT CAST ( NULL AS REAL ) * col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + - 53 ) AS col1 FROM tab2
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT ALL MAX( ALL 50 ) AS col2 FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-7610
SELECT ALL MAX ( ALL 50 ) AS col2 FROM tab0
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-7611
SELECT - 15 DIV - col1 AS col2 FROM tab0
----
0
0
15

skipif mysql # not compatible
query I rowsort label-7611
SELECT - 15 / - col1 AS col2 FROM tab0
----
0
0
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7612
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-7612
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT + + COUNT( 19 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7613
SELECT + + COUNT ( 19 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + - ( + + col1 ) FROM tab1 AS cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL + 73 * - 85 * col2 FROM tab0
----
-291635
-614295
-62050

query II rowsort
SELECT ALL - + col2 + - col0, 98 AS col0 FROM tab0 AS cor0
----
-196
98
-62
98
-97
98

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( + - col2 ) * - col1 * + - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 52 AS col2 FROM tab2 cor0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7621
SELECT ALL + 64 * 55 AS col1, col0 - + ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
3520
NULL
3520
NULL
3520
NULL

skipif mysql # not compatible
query II rowsort label-7621
SELECT ALL + 64 * 55 AS col1, col0 - + ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
3520
NULL
3520
NULL
3520
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT - + COUNT( * ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7622
SELECT - + COUNT ( * ) AS col1 FROM tab0 cor0
----
-3

query I rowsort
SELECT - col2 * 77 * - + col2 + + col0 AS col0 FROM tab1 AS cor0
----
268122
356139
709683

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT ALL - MIN( + - col1 ) * 16 FROM tab1 AS cor0
----
752

skipif mysql # not compatible
query I rowsort label-7624
SELECT ALL - MIN ( + - col1 ) * 16 FROM tab1 AS cor0
----
752

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7625
SELECT DISTINCT - ( - COUNT( * ) ) DIV - 80 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7625
SELECT DISTINCT - ( - COUNT ( * ) ) / - 80 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col0 + + + 11 AS col0 FROM tab0 AS cor0
----
-4
-76
-86

query I rowsort
SELECT 54 * col0 + col2 FROM tab2
----
2507
3496
4108

query I rowsort
SELECT ALL col0 + + 89 FROM tab2
----
135
153
164

onlyif mysql # DIV for integer division: 
query I rowsort label-7629
SELECT ALL + col1 DIV ( + 57 ) + + + col2 FROM tab2
----
23
41
59

skipif mysql # not compatible
query I rowsort label-7629
SELECT ALL + col1 / ( + 57 ) + + + col2 FROM tab2
----
23
41
59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = col1
----

query I rowsort
SELECT - 77 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-77
-77
-77

query I rowsort
SELECT ALL + + 20 FROM tab1 AS cor0
----
20
20
20

onlyif mysql # DIV for integer division: 
query II rowsort label-7633
SELECT DISTINCT + col2, - 66 DIV + col0 AS col0 FROM tab1 AS cor0
----
59
0
68
0
96
-1

skipif mysql # not compatible
query II rowsort label-7633
SELECT DISTINCT + col2, - 66 / + col0 AS col0 FROM tab1 AS cor0
----
59
0
68
0
96
-1

query II rowsort
SELECT ALL - col1 AS col0, col1 FROM tab1 cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT ALL + 83 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT ALL COUNT( * ) - - + MIN( + col2 ) AS col2 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-7637
SELECT ALL COUNT ( * ) - - + MIN ( + col2 ) AS col2 FROM tab1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT COUNT( * ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7638
SELECT COUNT ( * ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col1 AS col0, - col0 * + col2 AS col1 FROM tab2 AS cor0
----
51
-1058
67
-4350
77
-2560

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT + MAX( ALL - + col0 ) AS col0 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7641
SELECT + MAX ( ALL - + col0 ) AS col0 FROM tab0 cor0
----
-15

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col0 AND - + col1 * + col1 * - col0 + 57
----

query I rowsort
SELECT - + col2 * + + col0 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT + COUNT( * ) * - ( SUM( 86 ) ) FROM tab1
----
-774

skipif mysql # not compatible
query I rowsort label-7644
SELECT + COUNT ( * ) * - ( SUM ( 86 ) ) FROM tab1
----
-774

query I rowsort
SELECT DISTINCT + 35 FROM tab2 WHERE NOT - 39 IS NOT NULL
----

query I rowsort
SELECT col0 * + 33 FROM tab2
----
1518
2112
2475

onlyif mysql # aggregate syntax: 
query II rowsort label-7647
SELECT COUNT( - col2 ) AS col0, 40 FROM tab2
----
3
40

skipif mysql # not compatible
query II rowsort label-7647
SELECT COUNT ( - col2 ) AS col0, 40 FROM tab2
----
3
40

query I rowsort
SELECT DISTINCT + 32 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT - + MIN( col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-7649
SELECT - + MIN ( col0 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT + 50 + + 89 FROM tab2
----
139
139
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7651
SELECT ALL ( + ( + col1 ) ) * - 12 / CAST( NULL AS SIGNED ) + + ( - col2 ) * 52 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL ( + ( + col1 ) ) * - 12 / CAST ( NULL AS INTEGER ) + + ( - col2 ) * 52 AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 19 BETWEEN + col2 AND col1
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7653
SELECT ALL - 63 DIV - MIN( + 48 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7653
SELECT ALL - 63 / - MIN ( + 48 ) FROM tab2
----
1

query I rowsort
SELECT DISTINCT 4 + + col0 FROM tab0
----
101
19
91

query I rowsort
SELECT DISTINCT - - col1 * + 27 FROM tab1 AS cor0
----
1269
135
378

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 AND col0
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 * col1 IN ( - 73 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 7 * ( - 72 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col1 AS col2, + col1 AS col0 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7660
SELECT - col2 DIV + col0 AS col0 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7660
SELECT - col2 / + col0 AS col0 FROM tab1 cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT ( COUNT( * ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7661
SELECT ( COUNT ( * ) ) FROM tab2
----
3

query I rowsort
SELECT ALL - col1 + - col1 - - 69 AS col2 FROM tab0
----
-93
27
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT DISTINCT + ( + 0 ) + - COUNT( * ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7663
SELECT DISTINCT + ( + 0 ) + - COUNT ( * ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + 40 + 58 AS col0 FROM tab2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT ALL - ( - - COUNT( * ) ) * - COUNT( * ) * - 53 FROM tab1
----
-477

skipif mysql # not compatible
query I rowsort label-7665
SELECT ALL - ( - - COUNT ( * ) ) * - COUNT ( * ) * - 53 FROM tab1
----
-477

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, - col0 AS col1 FROM tab0
----
10
-87
47
-15
99
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7667
SELECT DISTINCT 27 * - - CAST( NULL AS SIGNED ) * + col1 * col1 / - col1 * + + 5 + col0 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7667
SELECT DISTINCT 27 * - - CAST ( NULL AS INTEGER ) * + col1 * col1 / - col1 * + + 5 + col0 AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7668
SELECT + + CAST( + ( - MIN( DISTINCT + - col1 ) ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7668
SELECT + + CAST ( + ( - MIN ( DISTINCT + - col1 ) ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
47

query I rowsort
SELECT - + 99 AS col0 FROM tab0 AS cor0
----
-99
-99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7670
SELECT CAST( - + 76 AS SIGNED ) FROM tab2 AS cor0
----
-76
-76
-76

skipif mysql # not compatible
query I rowsort label-7670
SELECT CAST ( - + 76 AS INTEGER ) FROM tab2 AS cor0
----
-76
-76
-76

query I rowsort
SELECT - + ( - + 6 ) FROM tab0 AS cor0
----
6
6
6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 <> + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 col1 FROM tab1 cor0
----
85
85
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7674
SELECT - SUM( DISTINCT + - ( ( + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) ) ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7674
SELECT - SUM ( DISTINCT + - ( ( + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) ) ) ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT - - 9 * + - 69 FROM tab2 AS cor0
----
-621
-621
-621

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT - ( - COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7676
SELECT - ( - COUNT ( * ) ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT 24, 52 AS col2 FROM tab2
----
24
52

query II rowsort
SELECT col2 AS col0, col2 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT DISTINCT - 35 AS col0 FROM tab1
----
-35

query II rowsort
SELECT DISTINCT + col2, col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7681
SELECT DISTINCT + ( - ( CAST( NULL AS SIGNED ) ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7681
SELECT DISTINCT + ( - ( CAST ( NULL AS INTEGER ) ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7682
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) * - COUNT( * ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) * - COUNT ( * ) AS col2 FROM tab2
----
-9

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT 41 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7684
SELECT - - col2 * col2 * CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7684
SELECT - - col2 * col2 * CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col2, - 2 + 6 + + - col2 AS col0 FROM tab2 AS cor0
----
-23
-19
-40
-36
-58
-54

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT + - 70 * - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-630

skipif mysql # not compatible
query I rowsort label-7687
SELECT + - 70 * - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-630

query II rowsort
SELECT 44 + - col1 AS col1, 48 AS col2 FROM tab2 cor0
----
-23
48
-33
48
-7
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7689
SELECT COUNT( * ) DIV - COUNT( DISTINCT col1 ) + - COUNT( DISTINCT + + 37 ) AS col0 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-7689
SELECT COUNT ( * ) / - COUNT ( DISTINCT col1 ) + - COUNT ( DISTINCT + + 37 ) AS col0 FROM tab0 AS cor0
----
-2

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - - col0 ) <= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 59 + + 15 FROM tab1 AS cor0
----
74
74
74

query I rowsort
SELECT 61 + - - col1 FROM tab1 AS cor0
----
108
66
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7694
SELECT 55 DIV - + 25 + + col1 + 49 AS col0 FROM tab2 AS cor0
----
114
124
98

skipif mysql # not compatible
query I rowsort label-7694
SELECT 55 / - + 25 + + col1 + 49 AS col0 FROM tab2 AS cor0
----
114
124
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 3 * col1 + + 4 AS col2, 32 col1 FROM tab1 AS cor0
----
145
32
19
32
46
32

query I rowsort
SELECT + 15 + - + 74 + col0 * + + col0 * - 30 * + 41 FROM tab0 AS cor0
----
-11573129
-276809
-9309929

query II rowsort
SELECT DISTINCT + 1 * col0 AS col2, + 40 FROM tab1 AS cor0
----
51
40
85
40
91
40

query I rowsort
SELECT + ( - col0 ) + 38 * - col1 FROM tab1 AS cor0
----
-1877
-275
-583

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col2 * - - 3 * - ( - - col0 ) AND - 82
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7700
SELECT CAST( 94 AS SIGNED ) * col1 AS col1, - col0 DIV + col1 - 25 AS col2 FROM tab1
----
1316
-28
4418
-26
470
-42

skipif mysql # not compatible
query II rowsort label-7700
SELECT CAST ( 94 AS INTEGER ) * col1 AS col1, - col0 / + col1 - 25 AS col2 FROM tab1
----
1316
-28
4418
-26
470
-42

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE - ( ( col0 ) ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 * - col2 * - col2 * - - col2 AS col0 FROM tab2
----
14633400
4096000
559682

query I rowsort
SELECT DISTINCT col0 + 85 AS col2 FROM tab1
----
136
170
176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 79 + + - 37 - - 72 col2, + 17 * + 13 col1 FROM tab2
----
114
221
114
221
114
221

onlyif mysql # DIV for integer division: 
query I rowsort label-7705
SELECT ALL - ( + 35 ) DIV + - col2 - - col0 FROM tab0
----
15
90
97

skipif mysql # not compatible
query I rowsort label-7705
SELECT ALL - ( + 35 ) / + - col2 - - col0 FROM tab0
----
15
90
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 col1 FROM tab0
----
-33
-33
-33

query I rowsort
SELECT DISTINCT - col1 + + - 13 * - + col2 FROM tab1
----
1234
762
837

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT - COUNT( * ) - - 85 FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-7708
SELECT - COUNT ( * ) - - 85 FROM tab1 AS cor0
----
82

query III rowsort
SELECT * FROM tab2 WHERE - col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 + - col0 IS NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # DIV for integer division: 
query I rowsort label-7712
SELECT 10 * col1 DIV - 38 AS col2 FROM tab2
----
-13
-17
-20

skipif mysql # not compatible
query I rowsort label-7712
SELECT 10 * col1 / - 38 AS col2 FROM tab2
----
-13
-17
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-7713
SELECT - col2 DIV col1 AS col1 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-7713
SELECT - col2 / col1 AS col1 FROM tab0
----
-99
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7714
SELECT + col1 DIV + 76 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7714
SELECT + col1 / + 76 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT ALL - MAX( ALL + - 97 ) FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7715
SELECT ALL - MAX ( ALL + - 97 ) FROM tab1 AS cor0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7716
SELECT DISTINCT + MAX( + CAST( - + 30 AS SIGNED ) ) FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-7716
SELECT DISTINCT + MAX ( + CAST ( - + 30 AS INTEGER ) ) FROM tab0 AS cor0
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 col1 FROM tab2 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT + MIN( - + 71 ) * + COUNT( * ) FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-7718
SELECT + MIN ( - + 71 ) * + COUNT ( * ) FROM tab2 AS cor0
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT ALL ( + + COUNT( * ) ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7719
SELECT ALL ( + + COUNT ( * ) ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7720
SELECT 33 * - col0 + - col0 * + - col1 + + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT - col2 < NULL
----

skipif mysql # not compatible
query I rowsort label-7720
SELECT 33 * - col0 + - col0 * + - col1 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT - col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7721
SELECT DISTINCT - - col0 * CAST( - - col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-7721
SELECT DISTINCT - - col0 * CAST ( - - col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
2601
7225
8281

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7723
SELECT DISTINCT + COUNT( - CAST( + col2 AS SIGNED ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7723
SELECT DISTINCT + COUNT ( - CAST ( + col2 AS INTEGER ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT ALL COUNT( ALL - 65 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7724
SELECT ALL COUNT ( ALL - 65 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( + - col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL + ( 97 ) AS col0 FROM tab1
----
97
97
97

query I rowsort
SELECT - 51 * 39 AS col0 FROM tab2
----
-1989
-1989
-1989

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 >= col2 * - 95
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7729
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) <> + - col2
----

skipif mysql # not compatible
query III rowsort label-7729
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) <> + - col2
----

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN col2 + - - col2 AND col2
----
59
68
96

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + + 37 / + - col0 + col0 + + 39 / + + col1 * + col1 AND + - 21
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7732
SELECT DISTINCT - col1 DIV - ( - + col1 ) + - col1 + 90 + - + col0 AS col2 FROM tab0
----
-19
-7
-9

skipif mysql # not compatible
query I rowsort label-7732
SELECT DISTINCT - col1 / - ( - + col1 ) + - col1 + 90 + - + col0 AS col2 FROM tab0
----
-19
-7
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT ALL - COUNT( * ) + MIN( DISTINCT - - col2 ) FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-7733
SELECT ALL - COUNT ( * ) + MIN ( DISTINCT - - col2 ) FROM tab2
----
20

query I rowsort
SELECT ALL - - col0 * - 83 + - + 1 AS col1 FROM tab0 AS cor0
----
-1246
-7222
-8052

query II rowsort
SELECT + col2 AS col0, + col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 = - col2
----

query II rowsort
SELECT col0, - col0 AS col0 FROM tab2 AS cor0 WHERE NULL < ( - col2 + + col0 )
----

query I rowsort
SELECT ALL + col0 - + - ( - col2 ) AS col2 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT DISTINCT - 29 * - col0 - - - col2 AS col0 FROM tab2 AS cor0
----
1311
1816
2117

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( ( 96 ), - 49 / - col1 / + col2, - 21 + + col0, col2 * 76 * + + 84 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT - COUNT( * ) + - ( + COUNT( * ) ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-7741
SELECT - COUNT ( * ) + - ( + COUNT ( * ) ) FROM tab0
----
-6

query I rowsort
SELECT DISTINCT 96 * - + col2 AS col1 FROM tab1
----
-5664
-6528
-9216

query II rowsort
SELECT ALL col0 + + col2 AS col2, + col0 FROM tab0
----
196
97
62
15
97
87

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 98 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7746
SELECT ALL 33 DIV + ( - 55 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7746
SELECT ALL 33 / + ( - 55 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT - COUNT( * ) * 3 + - + 93 FROM tab2 cor0
----
-102

skipif mysql # not compatible
query I rowsort label-7747
SELECT - COUNT ( * ) * 3 + - + 93 FROM tab2 cor0
----
-102

query I rowsort
SELECT DISTINCT + 45 AS col0 FROM tab2, tab2 cor0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7749
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 * col0 >= NULL
----

skipif mysql # not compatible
query I rowsort label-7749
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 * col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7750
SELECT ALL - COUNT( * ) col2, - 36 AS col0 FROM tab1 AS cor0
----
-3
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7750
SELECT ALL - COUNT ( * ) col2, - 36 AS col0 FROM tab1 AS cor0
----
-3
-36

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 78 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT - - MIN( ALL - 83 ) FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-7753
SELECT - - MIN ( ALL - 83 ) FROM tab0 AS cor0
----
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col1 * + - col2 col0 FROM tab2 AS cor0
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query II rowsort label-7755
SELECT - 72, COUNT( DISTINCT col2 ) col2 FROM tab1 AS cor0
----
-72
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7755
SELECT - 72, COUNT ( DISTINCT col2 ) col2 FROM tab1 AS cor0
----
-72
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT MAX( DISTINCT + + col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7756
SELECT MAX ( DISTINCT + + col2 ) AS col1 FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7757
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN CAST( ( + - 45 ) AS SIGNED ) + 79 + col1 AND - 62
----

skipif mysql # not compatible
query III rowsort label-7757
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN CAST ( ( + - 45 ) AS INTEGER ) + 79 + col1 AND - 62
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7758
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT + 90 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7758
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT + 90 IS NOT NULL
----

query I rowsort
SELECT 65 * + 68 AS col1 FROM tab2
----
4420
4420
4420

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT ALL + COUNT( * ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7760
SELECT ALL + COUNT ( * ) col2 FROM tab1
----
3

query I rowsort
SELECT + 80 + + 16 AS col2 FROM tab1
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT DISTINCT + MIN( ALL + 93 ) AS col2 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-7762
SELECT DISTINCT + MIN ( ALL + 93 ) AS col2 FROM tab0
----
93

query I rowsort
SELECT ALL - 11 * + col1 FROM tab1
----
-154
-517
-55

query I rowsort
SELECT - col0 * - - col2 * - + 40 FROM tab2 AS cor0
----
102400
174000
42320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 31 col2 FROM tab0
----
118
128
46

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 BETWEEN NULL AND - 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT ALL COUNT( * ) + + 77 AS col2 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-7767
SELECT ALL COUNT ( * ) + + 77 AS col2 FROM tab2
----
80

query I rowsort
SELECT col1 + + col2 + col1 * + col0 + - col2 AS col0 FROM tab0
----
1296
1848
98

query I rowsort
SELECT DISTINCT col0 * - - col2 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT DISTINCT + + col2 * - 42 + - 52 - - - col2 * - 4 * + col2 AS col2 FROM tab1 AS cor0
----
11394
15588
32780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7771
SELECT DISTINCT - - 99 / col2 - + + ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7771
SELECT DISTINCT - - 99 / col2 - + + ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) + - col0 * col1 col2 FROM tab2 AS cor0
----
-2392
-4992
-5100

query I rowsort
SELECT + col2 + + col1 * ( + 62 ) FROM tab0 AS cor0
----
1312
161
5069

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col1 + col0 - - 85 col0 FROM tab2 AS cor0
----
-1042
-2931
-3726

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 22 col1 FROM tab1 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT + - MIN( ALL col2 ) FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7776
SELECT + - MIN ( ALL col2 ) FROM tab2 cor0
----
-23

query I rowsort
SELECT ALL + ( - 70 ) AS col0 FROM tab1 cor0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT - MAX( ALL col2 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7778
SELECT - MAX ( ALL col2 ) AS col2 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7779
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7779
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7781
SELECT ALL - CAST( + + col2 AS SIGNED ) AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7781
SELECT ALL - CAST ( + + col2 AS INTEGER ) AS col2 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 - - + col1 col2 FROM tab1
----
-11
-20
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT ALL MIN( + - col1 ) col1 FROM tab1
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7784
SELECT ALL MIN ( + - col1 ) col1 FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT - MIN( DISTINCT + - col1 ) - + + COUNT( * ) FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-7785
SELECT - MIN ( DISTINCT + - col1 ) - + + COUNT ( * ) FROM tab2
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-7786
SELECT ALL 92 DIV - col2 FROM tab0 AS cor0
----
-1
-9
0

skipif mysql # not compatible
query I rowsort label-7786
SELECT ALL 92 / - col2 FROM tab0 AS cor0
----
-1
-9
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 * + - col1 + + - col0 ) NOT IN ( 53 )
----

query I rowsort
SELECT ALL 24 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT - 52 - + - 66 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7790
SELECT CAST( 32 AS SIGNED ), col2 FROM tab2
----
32
23
32
40
32
58

skipif mysql # not compatible
query II rowsort label-7790
SELECT CAST ( 32 AS INTEGER ), col2 FROM tab2
----
32
23
32
40
32
58

query I rowsort
SELECT + 86 * - 25 + - 74 * - col1 AS col0 FROM tab1 cor0
----
-1114
-1780
1328

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT + - COUNT( * ) * - 75 FROM tab0 cor0
----
225

skipif mysql # not compatible
query I rowsort label-7792
SELECT + - COUNT ( * ) * - 75 FROM tab0 cor0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT ALL - COUNT( * ) * - + COUNT( * ) * MAX( DISTINCT + col0 ) FROM tab2 AS cor0
----
675

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL - COUNT ( * ) * - + COUNT ( * ) * MAX ( DISTINCT + col0 ) FROM tab2 AS cor0
----
675

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT ALL + - COUNT( * ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7794
SELECT ALL + - COUNT ( * ) AS col2 FROM tab1 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7796
SELECT DISTINCT - + CAST( + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7796
SELECT DISTINCT - + CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query II rowsort
SELECT ALL 16, + 12 AS col1 FROM tab2 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT + ( - + COUNT( * ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7798
SELECT + ( - + COUNT ( * ) ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT + ( + 32 ) AS col0 FROM tab2
----
32
32
32

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > + col1 - - col1 + col0
----

query I rowsort
SELECT ALL 58 + - col2 AS col1 FROM tab0
----
-41
11
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7802
SELECT col1 * - - CAST( - - col2 AS SIGNED ), - col0 AS col0 FROM tab1
----
1344
-51
295
-85
3196
-91

skipif mysql # not compatible
query II rowsort label-7802
SELECT col1 * - - CAST ( - - col2 AS INTEGER ), - col0 AS col0 FROM tab1
----
1344
-51
295
-85
3196
-91

query I rowsort
SELECT DISTINCT - + col1 AS col2 FROM tab0 WHERE NULL BETWEEN NULL AND col1 * - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7804
SELECT + - col0 + - col1 + + - col0 AS col1, + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
-111
NULL
-195
NULL
-195
NULL

skipif mysql # not compatible
query II rowsort label-7804
SELECT + - col0 + - col1 + + - col0 AS col1, + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
-111
NULL
-195
NULL
-195
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7805
SELECT ALL - col0 * CAST( NULL AS SIGNED ) + col2 + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) + col2 + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT DISTINCT MAX( + + col0 ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-7806
SELECT DISTINCT MAX ( + + col0 ) FROM tab2 cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7807
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT + 89 * - + 90 >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7807
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT + 89 * - + 90 >= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + + 85 * + + 1 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT - - col2 FROM tab2 WHERE - col1 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7810
SELECT DISTINCT ( - 76 ), SUM( ALL - 0 ) + MIN( DISTINCT + 81 ) AS col0 FROM tab1 cor0
----
-76
81

skipif mysql # not compatible
query II rowsort label-7810
SELECT DISTINCT ( - 76 ), SUM ( ALL - 0 ) + MIN ( DISTINCT + 81 ) AS col0 FROM tab1 cor0
----
-76
81

query III rowsort
SELECT * FROM tab1 cor0 WHERE 14 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 - + - 80 AS col0 FROM tab1 AS cor0
----
127
85
94

query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= 51 * + ( + 97 ) + col0 + col0 / - ( - 15 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * col1 IS NULL
----

query I rowsort
SELECT - + col1 - 61 + + 4 FROM tab0 AS cor0
----
-138
-58
-78

query I rowsort
SELECT ALL + + 53 AS col0 FROM tab1 AS cor0
----
53
53
53

query II rowsort
SELECT - col0 * - col1 + + col2 + col2 AS col2, - col0 AS col0 FROM tab2 AS cor0
----
2392
-46
5008
-64
5141
-75

query III rowsort
SELECT * FROM tab2 WHERE NULL >= + - 53
----

query I rowsort
SELECT - 48 + - - col2 FROM tab0
----
-1
-38
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT DISTINCT - ( COUNT( * ) ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7820
SELECT DISTINCT - ( COUNT ( * ) ) col1 FROM tab0
----
-3

query I rowsort
SELECT - 15 + - col0 * - 68 AS col0 FROM tab0
----
1005
5901
6581

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7822
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 * 73 BETWEEN + + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7822
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 * 73 BETWEEN + + CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT + col2 * + + 99 AS col0 FROM tab0
----
4653
9801
990

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7824
SELECT ALL * FROM tab1 WHERE NOT - + col1 * - CAST( - col2 AS SIGNED ) + - 18 * col0 * + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7824
SELECT ALL * FROM tab1 WHERE NOT - + col1 * - CAST ( - col2 AS INTEGER ) + - 18 * col0 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( + - col1 ) AS col0 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT ALL - - MIN( DISTINCT - 19 ) AS col2 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-7826
SELECT ALL - - MIN ( DISTINCT - 19 ) AS col2 FROM tab1 AS cor0
----
-19

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 56 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
56

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 86 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT DISTINCT - + MIN( - col2 ) * + + 74 AS col1 FROM tab1 AS cor0
----
7104

skipif mysql # not compatible
query I rowsort label-7830
SELECT DISTINCT - + MIN ( - col2 ) * + + 74 AS col1 FROM tab1 AS cor0
----
7104

query I rowsort
SELECT + - col0 * + 14 * col0 AS col1 FROM tab0 AS cor0
----
-105966
-131726
-3150

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( + + 48 ) <> NULL
----

query I rowsort
SELECT + + ( - col2 ) * - 69 FROM tab0 AS cor0
----
3243
6831
690

query I rowsort
SELECT DISTINCT - 70 * + col0 FROM tab1 AS cor0
----
-3570
-5950
-6370

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT ALL + + COUNT( * ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7835
SELECT ALL + + COUNT ( * ) col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + + ( - 57 ) AS col1 FROM tab2 AS cor0
----
-57
-57
-57

query I rowsort
SELECT - col2 + + col0 AS col0 FROM tab1 cor0
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7838
SELECT DISTINCT CAST( + - 77 AS SIGNED ) * col1 FROM tab1 AS cor0
----
-1078
-3619
-385

skipif mysql # not compatible
query I rowsort label-7838
SELECT DISTINCT CAST ( + - 77 AS INTEGER ) * col1 FROM tab1 AS cor0
----
-1078
-3619
-385

query I rowsort
SELECT + 88 + col2 FROM tab0
----
135
187
98

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 - + 89 + + + col1 / + - 52 - - - col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7841
SELECT * FROM tab2 WHERE - 11 BETWEEN + CAST( - col1 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7841
SELECT * FROM tab2 WHERE - 11 BETWEEN + CAST ( - col1 AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7842
SELECT ALL + COUNT( * ) DIV + ( + SUM( DISTINCT + + 63 ) ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL + COUNT ( * ) / + ( + SUM ( DISTINCT + + 63 ) ) AS col0 FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE - 4 / - col1 - - ( + ( - col2 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7844
SELECT ALL ( - CAST( + - SUM( - col1 ) AS SIGNED ) ) + COUNT( * ), - COUNT( * ) AS col0 FROM tab0
----
-100
-3

skipif mysql # not compatible
query II rowsort label-7844
SELECT ALL ( - CAST ( + - SUM ( - col1 ) AS INTEGER ) ) + COUNT ( * ), - COUNT ( * ) AS col0 FROM tab0
----
-100
-3

query I rowsort
SELECT DISTINCT 74 * - + ( col1 ) + + - col2 + - 23 FROM tab2 AS cor0
----
-3820
-5039
-5761

query I rowsort
SELECT - col1 * - 33 * + + col0 * + 63 - 84 FROM tab0 AS cor0
----
201579
2525901
3798249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 80 col2 FROM tab1 AS cor0
----
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 + col1 + col2 col0 FROM tab1
----
128
133
82

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IS NULL AND NOT + col2 * 21 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 + col2 + + 54 col2 FROM tab2
----
144
161
179

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT ALL + SUM( ALL - col1 ) * + - SUM( col1 ) + + - COUNT( * ) - ( + - 35 ) AS col0 FROM tab0 AS cor0
----
10641

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL + SUM ( ALL - col1 ) * + - SUM ( col1 ) + + - COUNT ( * ) - ( + - 35 ) AS col0 FROM tab0 AS cor0
----
10641

query I rowsort
SELECT - - col1 * col1 + 85 AS col2 FROM tab0 cor0
----
526
6646
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7853
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT DISTINCT - - COUNT( * ) - + COUNT( ALL + col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7854
SELECT DISTINCT - - COUNT ( * ) - + COUNT ( ALL + col0 ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7855
SELECT CAST( NULL AS SIGNED ) + - COUNT( * ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7855
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( * ) col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 45 * - 74 + + col2 + + col2 AS col0 FROM tab2 AS cor0
----
-3214
-3250
-3284

query I rowsort
SELECT DISTINCT col1 * + col2 - + col2 AS col2 FROM tab2 AS cor0
----
1150
3040
3828

query II rowsort
SELECT + col1 AS col2, - col0 AS col2 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

query II rowsort
SELECT col0 AS col0, - col0 AS col1 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

query II rowsort
SELECT ALL - col1 * - col2 - + 12, col1 FROM tab1 AS cor0
----
1332
14
283
5
3184
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT ALL - SUM( - col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-7861
SELECT ALL - SUM ( - col0 ) AS col1 FROM tab0
----
199

query II rowsort
SELECT ALL + ( 62 ), ( col1 ) AS col1 FROM tab2
----
62
51
62
67
62
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7863
SELECT 46 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7863
SELECT 46 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7864
SELECT - COUNT( * ) DIV + 59 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7864
SELECT - COUNT ( * ) / + 59 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7866
SELECT + CAST( + - col0 AS SIGNED ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-7866
SELECT + CAST ( + - col0 AS INTEGER ) FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7867
SELECT ALL - CAST( - col0 AS SIGNED ) + - 11 AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-7867
SELECT ALL - CAST ( - col0 AS INTEGER ) + - 11 AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - ( - col0 ) * + 47 AS col1 FROM tab2 AS cor0
----
2162
3008
3525

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 0 * + - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT AVG ( DISTINCT - 28 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 95 + - col1 + + - col1 < + col1
----
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT ALL COUNT( DISTINCT + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7872
SELECT ALL COUNT ( DISTINCT + col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 19 FROM tab0 cor0 WHERE NOT ( NULL ) >= - 73
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN NULL AND - col1 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 12 <= - 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT MIN( + 26 ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-7878
SELECT MIN ( + 26 ) FROM tab2 AS cor0
----
26

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 < - col1
----

query I rowsort
SELECT + col0 * + col0 * 99 FROM tab2
----
209484
405504
556875

query I rowsort
SELECT col0 + - - col1 FROM tab2 WHERE NULL NOT BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT MAX( col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-7882
SELECT MAX ( col2 ) AS col1 FROM tab0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 75 col0 FROM tab0
----
162
172
90

query III rowsort
SELECT * FROM tab0 WHERE + ( + 91 ) - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 * - col0 * col1 col0 FROM tab0
----
-100845
-151641
-8051

query I rowsort
SELECT ( col1 ) + - col0 FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT ALL COUNT( * ) + 78 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-7887
SELECT ALL COUNT ( * ) + 78 FROM tab2
----
81

query I rowsort
SELECT + 70 + + col1 * + 99 FROM tab2
----
5119
6703
7693

query II rowsort
SELECT DISTINCT - col2 + - + 69 AS col1, + col0 * - + col0 FROM tab2
----
-109
-4096
-127
-5625
-92
-2116

query I rowsort
SELECT DISTINCT - + 99 + col2 AS col0 FROM tab1 AS cor0
----
-3
-31
-40

query I rowsort
SELECT DISTINCT + col0 * - - col2 AS col1 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7892
SELECT + COUNT( * ) DIV + 44 + COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7892
SELECT + COUNT ( * ) / + 44 + COUNT ( * ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7893
SELECT * FROM tab0 AS cor0 WHERE ( + + col1 ) + + + CAST( 86 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-7893
SELECT * FROM tab0 AS cor0 WHERE ( + + col1 ) + + + CAST ( 86 AS INTEGER ) <= NULL
----

query II rowsort
SELECT ALL col0 * + col1 AS col2, col0 * - col1 + - - col0 FROM tab2 AS cor0
----
2346
-2300
4928
-4864
5025
-4950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7895
SELECT COUNT( * ) DIV - COUNT( * ) col0 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7895
SELECT COUNT ( * ) / - COUNT ( * ) col0 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7896
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT + 28 - + col2 + - col2 + + col2 * col0 + - col1 FROM tab1 AS cor0
----
4718
4920
6033

query I rowsort
SELECT ALL - col2 * - + 41 * + - 58 - 36 AS col0 FROM tab0 AS cor0
----
-111802
-235458
-23816

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT DISTINCT - + MIN( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT - + MIN ( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
-10

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT + MIN( - - col1 ) FROM tab1 AS cor0 WHERE NOT col2 >= - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7901
SELECT + MIN ( - - col1 ) FROM tab1 AS cor0 WHERE NOT col2 >= - col2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7903
SELECT * FROM tab1 AS cor0 WHERE NOT 15 / - - col1 > + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7903
SELECT * FROM tab1 AS cor0 WHERE NOT 15 / - - col1 > + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - + col0 * + col0 - + 98 AS col0 FROM tab2 AS cor0
----
-2214
-4194
-5723

onlyif mysql # DIV for integer division: 
query I rowsort label-7905
SELECT DISTINCT + - ( - col0 ) DIV col2 FROM tab0 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-7905
SELECT DISTINCT + - ( - col0 ) / col2 FROM tab0 AS cor0
----
0
8

query I rowsort
SELECT ( - - col0 ) AS col0 FROM tab0
----
15
87
97

query I rowsort
SELECT col0 * + 1 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT COUNT( * ) * + 23 AS col2 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-7908
SELECT COUNT ( * ) * + 23 AS col2 FROM tab0
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-7909
SELECT DISTINCT 52 AS col2, MAX( ALL + col2 ) AS col2 FROM tab2
----
52
58

skipif mysql # not compatible
query II rowsort label-7909
SELECT DISTINCT 52 AS col2, MAX ( ALL + col2 ) AS col2 FROM tab2
----
52
58

query I rowsort
SELECT 41 * - - col2 * col2 AS col2 FROM tab0 AS cor0
----
401841
4100
90569

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 68 >= 24 + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT DISTINCT + MAX( ALL + 32 ) FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-7913
SELECT DISTINCT + MAX ( ALL + 32 ) FROM tab1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7914
SELECT + CAST( - 12 AS SIGNED ) FROM tab0
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-7914
SELECT + CAST ( - 12 AS INTEGER ) FROM tab0
----
-12
-12
-12

query I rowsort
SELECT DISTINCT + 40 * col1 FROM tab2 WHERE NOT 23 = col1
----
2040
2680
3080

query I rowsort
SELECT - col0 + 79 AS col0 FROM tab0
----
-18
-8
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT - 53 + - MAX( DISTINCT ( - col0 ) ) AS col2 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-7917
SELECT - 53 + - MAX ( DISTINCT ( - col0 ) ) AS col2 FROM tab1
----
-2

query I rowsort
SELECT DISTINCT ( 68 ) * + col0 FROM tab2
----
3128
4352
5100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7919
SELECT - col2 * + col1 + - col1 AS col1 FROM tab2 WHERE NOT - 93 BETWEEN + CAST( - col2 AS SIGNED ) AND ( NULL )
----
-1224
-3157
-3953

skipif mysql # not compatible
query I rowsort label-7919
SELECT - col2 * + col1 + - col1 AS col1 FROM tab2 WHERE NOT - 93 BETWEEN + CAST ( - col2 AS INTEGER ) AND ( NULL )
----
-1224
-3157
-3953

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7920
SELECT - CAST( + col0 AS SIGNED ) col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7920
SELECT - CAST ( + col0 AS INTEGER ) col0 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT + 43 + 78 * + COUNT( * ) FROM tab1
----
277

skipif mysql # not compatible
query I rowsort label-7921
SELECT + 43 + 78 * + COUNT ( * ) FROM tab1
----
277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 col0 FROM tab0
----
45
45
45

query I rowsort
SELECT ALL + col2 + + col2 FROM tab1 WHERE NOT col1 IN ( + ( - col2 ) )
----
118
136
192

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 24 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 + 92 AS col1 FROM tab2
----
115
132
150

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( - col1 / + ( 38 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7927
SELECT 29 * + CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7927
SELECT 29 * + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 <= col0 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * - col2 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 66 * col2 AS col1 FROM tab2
----
1518
2640
3828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7931
SELECT DISTINCT - 50 - - col1 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7931
SELECT DISTINCT - 50 - - col1 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE 43 + - 7 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= + col0 * - col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col0 * - col0 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 92 + + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7936
SELECT CAST( - col1 AS SIGNED ) * + col0 FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-7936
SELECT CAST ( - col1 AS INTEGER ) * + col0 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT ALL COUNT( col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7937
SELECT ALL COUNT ( col2 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT ALL + 99 * + col2 + + 82 AS col2 FROM tab1
----
5923
6814
9586

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 >= - ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT + COUNT( 90 ) + 81 AS col0 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-7940
SELECT + COUNT ( 90 ) + 81 AS col0 FROM tab2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT ALL ( COUNT( * ) ) * COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL ( COUNT ( * ) ) * COUNT ( * ) FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT ( MAX( ALL - col0 ) ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-7942
SELECT ( MAX ( ALL - col0 ) ) AS col1 FROM tab1
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7943
SELECT DISTINCT - col2 * - col1 + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 WHERE NOT col0 > NULL
----

skipif mysql # not compatible
query I rowsort label-7943
SELECT DISTINCT - col2 * - col1 + CAST ( NULL AS REAL ) AS col1 FROM tab1 WHERE NOT col0 > NULL
----

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT col2 + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - 56 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7946
SELECT DISTINCT 68 * + CAST( - 89 AS SIGNED ) AS col2 FROM tab0 WHERE NOT NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-7946
SELECT DISTINCT 68 * + CAST ( - 89 AS INTEGER ) AS col2 FROM tab0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 + - col2 ) < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 39 <= ( col2 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT ALL - SUM( ALL - col1 ) * 71 FROM tab2 WHERE NOT col1 NOT BETWEEN NULL AND 37 + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7950
SELECT ALL - SUM ( ALL - col1 ) * 71 FROM tab2 WHERE NOT col1 NOT BETWEEN NULL AND 37 + col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT MIN( 10 ) AS col0 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-7951
SELECT MIN ( 10 ) AS col0 FROM tab1
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * ( col1 ) col2 FROM tab2
----
-2601
-4489
-5929

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 ) NOT IN ( ( - col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 14 ) < + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - ( col0 ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7955
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - ( col0 ) = NULL
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT COUNT( * ) - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7957
SELECT COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 * col2 - - col0 * 32 AS col2 FROM tab0 AS cor0
----
-3327
2574
3005

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT + MIN( col2 ) - 29 AS col2 FROM tab0 cor0
----
-19

skipif mysql # not compatible
query I rowsort label-7960
SELECT + MIN ( col2 ) - 29 AS col2 FROM tab0 cor0
----
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) * - 55 col1 FROM tab2 AS cor0
----
-2530
-3520
-4125

query I rowsort
SELECT DISTINCT + col2 FROM tab1 cor0 WHERE + 94 IN ( - col0 )
----

query I rowsort
SELECT DISTINCT 21 * 53 FROM tab0 AS cor0 WHERE ( col2 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7964
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 - 53 * 66 NOT BETWEEN + col1 + CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7964
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 - 53 * 66 NOT BETWEEN + col1 + CAST ( NULL AS INTEGER ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT ALL + + 51 * COUNT( * ) AS col1 FROM tab2 cor0
----
153

skipif mysql # not compatible
query I rowsort label-7965
SELECT ALL + + 51 * COUNT ( * ) AS col1 FROM tab2 cor0
----
153

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 * ( + col2 ) AS col0 FROM tab2
----
1600
3364
529

query I rowsort
SELECT DISTINCT col1 * col1 FROM tab0 WHERE NOT col0 IS NULL
----
1
441
6561

query I rowsort
SELECT - col0 * + 92 FROM tab1
----
-4692
-7820
-8372

query I rowsort
SELECT + col2 * 42 AS col2 FROM tab1
----
2478
2856
4032

query I rowsort
SELECT DISTINCT col1 * + ( + 73 ) FROM tab1
----
1022
3431
365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7972
SELECT DISTINCT - col0 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7972
SELECT DISTINCT - col0 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7973
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - 36 + ( - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-7973
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - 36 + ( - CAST ( NULL AS INTEGER ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 col1 FROM tab2 AS cor0
----
-54
-54
-54

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 48 ) IN ( + col0 / 30 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - 42 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

query I rowsort
SELECT DISTINCT 41 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT DISTINCT - ( - COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7978
SELECT DISTINCT - ( - COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT - COUNT( * ) FROM tab1 WHERE ( 25 * col1 - - col1 ) < ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7979
SELECT - COUNT ( * ) FROM tab1 WHERE ( 25 * col1 - - col1 ) < ( col1 )
----
0

query I rowsort
SELECT ALL - col1 * col0 + col2 FROM tab0 WHERE 87 * 12 + 99 IS NOT NULL
----
-1168
-1817
2

query III rowsort
SELECT * FROM tab0 WHERE + - col2 * - col2 >= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * - 99 FROM tab1
----
-5049
-8415
-9009

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT ALL - - MAX( 72 ) AS col0 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL - - MAX ( 72 ) AS col0 FROM tab1 AS cor0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7984
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE + 83 * + - col0 / + col1 > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7984
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE + 83 * + - col0 / + col1 > - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7985
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN ( CAST( NULL AS DECIMAL ) ) AND 20 + - col2
----

skipif mysql # not compatible
query III rowsort label-7985
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN ( CAST ( NULL AS REAL ) ) AND 20 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7986
SELECT ALL CAST( - col2 AS SIGNED ) * + + col1 + 20 AS col0 FROM tab1 AS cor0
----
-1324
-275
-3176

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL CAST ( - col2 AS INTEGER ) * + + col1 + 20 AS col0 FROM tab1 AS cor0
----
-1324
-275
-3176

onlyif mysql # DIV for integer division: 
query I rowsort label-7987
SELECT ALL - - col2 DIV - 16 FROM tab0 AS cor0
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL - - col2 / - 16 FROM tab0 AS cor0
----
-2
-6
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col0 ) < col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7989
SELECT DISTINCT - ( 36 ) DIV + + col2 * - col1 - + col0 AS col2 FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-7989
SELECT DISTINCT - ( 36 ) / + + col2 * - col1 - + col0 AS col2 FROM tab1 cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 IN ( col0 * col1 + - 15 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7992
SELECT ALL + + 16 + - col1 DIV - col0 * + 99 FROM tab1 AS cor0
----
16
16
16

skipif mysql # not compatible
query I rowsort label-7992
SELECT ALL + + 16 + - col1 / - col0 * + 99 FROM tab1 AS cor0
----
16
16
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7993
SELECT CAST( - COUNT( * ) AS SIGNED ) + 16 AS col0 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-7993
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + 16 AS col0 FROM tab2
----
13

query I rowsort
SELECT + col1 * - col1 + - - col0 * - ( + 0 ) + + ( 96 ) FROM tab1
----
-100
-2113
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7995
SELECT DISTINCT - CAST( col1 AS SIGNED ) / - 43 + + + ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7995
SELECT DISTINCT - CAST ( col1 AS INTEGER ) / - 43 + + + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT DISTINCT + COUNT( * ) + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-7996
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7997
SELECT + 59 + 75 col2, - COUNT( * ) FROM tab2
----
134
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7997
SELECT + 59 + 75 col2, - COUNT ( * ) FROM tab2
----
134
-3

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( - 6 )
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col1 FROM tab0 AS cor0 WHERE - 71 * - 0 BETWEEN ( + col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8001
SELECT ALL - 34 - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8001
SELECT ALL - 34 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 * 33 - - 52 + + - 32 AS col0 FROM tab1 AS cor0
----
1967
2264
3188

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + 24 IN ( + - 80 * 62 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8004
SELECT MAX( ALL - 29 ) AS col2, + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-29
3

skipif mysql # not compatible
query II rowsort label-8004
SELECT MAX ( ALL - 29 ) AS col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-29
3

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT ( - col1 ) NOT IN ( - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8006
SELECT + 48 * - + COUNT( * ) + - CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8006
SELECT + 48 * - + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT + 81 * - 62 AS col1 FROM tab2
----
-5022

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + + col1 * + ( 64 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8009
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 NOT IN ( ( CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) ) * 87 + - col0 )
----

skipif mysql # not compatible
query III rowsort label-8009
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 NOT IN ( ( CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) ) * 87 + - col0 )
----

query I rowsort
SELECT ALL col1 * + col2 * + col0 + - - col1 AS col0 FROM tab2 AS cor0
----
197197
291517
54009

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8011
SELECT ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT col1 + 61 AS col2 FROM tab1 AS cor0 WHERE NOT col0 + + 15 NOT IN ( - 66 )
----

query I rowsort
SELECT ALL + - col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 + col2 IS NOT NULL
----

query I rowsort
SELECT col1 + - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col2 + col2 * col1 AS col0 FROM tab1 AS cor0 WHERE col0 < ( col2 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT + COUNT( ALL + 62 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8016
SELECT + COUNT ( ALL + 62 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT ALL - - MAX( DISTINCT col2 ) * + 10 FROM tab0 AS cor0 WHERE 72 <= col0 + + 33
----
990

skipif mysql # not compatible
query I rowsort label-8017
SELECT ALL - - MAX ( DISTINCT col2 ) * + 10 FROM tab0 AS cor0 WHERE 72 <= col0 + + 33
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT - - COUNT( - 27 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8018
SELECT - - COUNT ( - 27 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8019
SELECT + + COUNT( * ) AS col0, + 82 FROM tab2 cor0
----
3
82

skipif mysql # not compatible
query II rowsort label-8019
SELECT + + COUNT ( * ) AS col0, + 82 FROM tab2 cor0
----
3
82

query I rowsort
SELECT ALL 15 * + + col1 AS col2 FROM tab0
----
1215
15
315

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT DISTINCT COUNT( * ) * 52 AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8021
SELECT DISTINCT COUNT ( * ) * 52 AS col2 FROM tab0
----
156

query I rowsort
SELECT ALL + 29 * - + col1 - - + 59 FROM tab2 cor0
----
-1420
-1884
-2174

query I rowsort
SELECT - + col1 * + + col0 AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-8024
SELECT DISTINCT - - col1 DIV - - ( col0 ) - + ( - col0 ) AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8024
SELECT DISTINCT - - col1 / - - ( col0 ) - + ( - col0 ) AS col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT + col0 * 41 FROM tab2 AS cor0
----
1886
2624
3075

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8026
SELECT DISTINCT MIN( ALL + col0 ) DIV + COUNT( * ) AS col1 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-8026
SELECT DISTINCT MIN ( ALL + col0 ) / + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
17

query I rowsort
SELECT - col0 * - - col2 AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query II rowsort
SELECT + col2 AS col1, + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT DISTINCT + + 17 + + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-8029
SELECT DISTINCT + + 17 + + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
20

query I rowsort
SELECT + 20 * 39 + + 60 - - + col1 * col2 AS col0 FROM tab1 AS cor0
----
1135
2184
4036

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT ALL + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8031
SELECT ALL + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT MAX( ( + col0 ) ) * COUNT( * ) + + + 89 col2 FROM tab2 AS cor0
----
314

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8032
SELECT MAX ( ( + col0 ) ) * COUNT ( * ) + + + 89 col2 FROM tab2 AS cor0
----
314

query I rowsort
SELECT 76 + col1 AS col0 FROM tab1 AS cor0 WHERE - col2 + - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8034
SELECT ALL + COUNT( * ) + + COUNT( * ) + + + COUNT( * ) AS col1, - COUNT( * ) FROM tab2 AS cor0
----
9
-3

skipif mysql # not compatible
query II rowsort label-8034
SELECT ALL + COUNT ( * ) + + COUNT ( * ) + + + COUNT ( * ) AS col1, - COUNT ( * ) FROM tab2 AS cor0
----
9
-3

query I rowsort
SELECT ALL ( + col0 ) * col1 + - 15 * - - col1 - + 5 + ( col1 ) AS col2 FROM tab1 AS cor0
----
350
3614
513

query I rowsort
SELECT col1 * col2 + + col2 * col1 FROM tab1 cor0
----
2688
590
6392

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT ALL + 69 * COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col2 * - + ( - col1 ) * + col2 - + + 53 + col2 * - col0 >= col1
----
0

skipif mysql # not compatible
query I rowsort label-8037
SELECT ALL + 69 * COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col2 * - + ( - col1 ) * + col2 - + + 53 + col2 * - col0 >= col1
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col0 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8039
SELECT - - 13 DIV col1 + col2 * + + col2 AS col2 FROM tab0 AS cor0
----
100
2209
9814

skipif mysql # not compatible
query I rowsort label-8039
SELECT - - 13 / col1 + col2 * + + col2 AS col2 FROM tab0 AS cor0
----
100
2209
9814

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8040
SELECT + CAST( NULL AS DECIMAL ) + - 24 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8040
SELECT + CAST ( NULL AS REAL ) + - 24 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - + 11 col0 FROM tab1
----
-154
-517
-55

query III rowsort
SELECT * FROM tab0 WHERE - col2 >= NULL
----

query II rowsort
SELECT ALL col1, - 0 + + 73 FROM tab0
----
1
73
21
73
81
73

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 23 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 51 * + - 58 - col2 AS col1 FROM tab1
----
-3017
-3026
-3054

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col1 + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 + + + ( - ( - 67 ) ) FROM tab1
----
126
135
163

onlyif mysql # DIV for integer division: 
query I rowsort label-8048
SELECT DISTINCT + 16 + col2 - - - col0 * col1 DIV ( col2 ) FROM tab1 AS cor0
----
105
22
68

skipif mysql # not compatible
query I rowsort label-8048
SELECT DISTINCT + 16 + col2 - - - col0 * col1 / ( col2 ) FROM tab1 AS cor0
----
105
22
68

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT ALL + MIN( col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL + MIN ( col2 ) AS col1 FROM tab1 AS cor0
----
59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - col2 + 53
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8052
SELECT DISTINCT - 80, + col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
-80
1

skipif mysql # not compatible
query II rowsort label-8052
SELECT DISTINCT - 80, + col2 / + col2 AS col1 FROM tab0 AS cor0
----
-80
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT 34 * - MAX( DISTINCT - col0 ) AS col1 FROM tab0
----
510

skipif mysql # not compatible
query I rowsort label-8053
SELECT 34 * - MAX ( DISTINCT - col0 ) AS col1 FROM tab0
----
510

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT DISTINCT COUNT( * ) * - 95 col2 FROM tab1
----
-285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8054
SELECT DISTINCT COUNT ( * ) * - 95 col2 FROM tab1
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT DISTINCT COUNT( ALL col0 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8055
SELECT DISTINCT COUNT ( ALL col0 ) col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT + MIN( - - 67 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
67

skipif mysql # not compatible
query I rowsort label-8056
SELECT + MIN ( - - 67 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-8057
SELECT - 55 DIV - - col1 AS col2 FROM tab1 AS cor0
----
-1
-11
-3

skipif mysql # not compatible
query I rowsort label-8057
SELECT - 55 / - - col1 AS col2 FROM tab1 AS cor0
----
-1
-11
-3

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col2 - + - 61 - - col0 + - - col1 * 92 AND - col1 * 56
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * + + 22 = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT + ( - MIN( - + col1 ) ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8060
SELECT + ( - MIN ( - + col1 ) ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT - ( + + 11 ) * - col1 + + col0 AS col0 FROM tab0
----
108
318
906

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 >= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8063
SELECT col2 * + ( - CAST( col0 AS SIGNED ) ) FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-8063
SELECT col2 * + ( - CAST ( col0 AS INTEGER ) ) FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT + 45 * + + 6 FROM tab1
----
270
270
270

query II rowsort
SELECT col1, + 51 FROM tab2
----
51
51
67
51
77
51

query I rowsort
SELECT - 12 * + 58 FROM tab1
----
-696
-696
-696

onlyif mysql # DIV for integer division: 
query I rowsort label-8067
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE col2 DIV - ( 97 ) * + col1 * - col0 + 57 NOT BETWEEN - - col1 AND NULL
----
-15

skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE col2 / - ( 97 ) * + col1 * - col0 + 57 NOT BETWEEN - - col1 AND NULL
----
-15

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + + 74 ) + - 45 + 93 * - col1 * + col1 FROM tab1
----
-18347
-205556
-2444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 44 col2, ( - 0 ) + 96 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT 69, ( + + 69 ) * 39 * - col1 AS col0 FROM tab2
----
69
-137241
69
-180297
69
-207207

query I rowsort
SELECT ALL - 65 + ( + col2 ) AS col0 FROM tab1
----
-6
3
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8073
SELECT - col1 * - CAST( + - 75 AS SIGNED ) FROM tab0
----
-1575
-6075
-75

skipif mysql # not compatible
query I rowsort label-8073
SELECT - col1 * - CAST ( + - 75 AS INTEGER ) FROM tab0
----
-1575
-6075
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8074
SELECT ALL COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) + COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8074
SELECT ALL COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT ALL COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8076
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col0 + col0 - - col2 * - 2 - CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8076
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col0 + col0 - - col2 * - 2 - CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 98 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8078
SELECT DISTINCT - 39 - - - 80 * + CAST( NULL AS SIGNED ) / - 49 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8078
SELECT DISTINCT - 39 - - - 80 * + CAST ( NULL AS INTEGER ) / - 49 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8079
SELECT - 10 - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8079
SELECT - 10 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT - SUM( + col2 ) - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-220

skipif mysql # not compatible
query I rowsort label-8080
SELECT - SUM ( + col2 ) - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-220

query I rowsort
SELECT DISTINCT - col2 * - col2 - + - 5 AS col2 FROM tab0 cor0
----
105
2214
9806

onlyif mysql # aggregate syntax: 
query II rowsort label-8082
SELECT ALL + + COUNT( * ) * - COUNT( * ) AS col0, + 95 * - ( + 71 ) * SUM( ALL + col0 ) FROM tab0 AS cor0
----
-9
-1342255

skipif mysql # not compatible
query II rowsort label-8082
SELECT ALL + + COUNT ( * ) * - COUNT ( * ) AS col0, + 95 * - ( + 71 ) * SUM ( ALL + col0 ) FROM tab0 AS cor0
----
-9
-1342255

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT 42 + COUNT( - + col2 ) FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8083
SELECT 42 + COUNT ( - + col2 ) FROM tab1 AS cor0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-8084
SELECT DISTINCT 85 + - 89 DIV 45 AS col1 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-8084
SELECT DISTINCT 85 + - 89 / 45 AS col1 FROM tab2
----
84

query III rowsort
SELECT * FROM tab0 WHERE ( NOT - 19 * + col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE ( ( NULL ) BETWEEN NULL AND ( NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8087
SELECT col1 + + col1 * - CAST( NULL AS SIGNED ) AS col2, + col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-8087
SELECT col1 + + col1 * - CAST ( NULL AS INTEGER ) AS col2, + col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8088
SELECT DISTINCT AVG ( - CAST( NULL AS SIGNED ) ) FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8088
SELECT DISTINCT AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab0, tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 + + 48 AS col1 FROM tab0
----
135
145
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 col1 FROM tab0 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

query I rowsort
SELECT ALL - - 80 FROM tab0 WHERE NOT - + ( - col2 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8092
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query III rowsort label-8093
SELECT ( COUNT( * ) ) * - - COUNT( * ) AS col1, - 27 AS col0, - COUNT( * ) FROM tab2
----
9
-27
-3

skipif mysql # not compatible
query III rowsort label-8093
SELECT ( COUNT ( * ) ) * - - COUNT ( * ) AS col1, - 27 AS col0, - COUNT ( * ) FROM tab2
----
9
-27
-3

query I rowsort
SELECT ALL - 92 AS col1 FROM tab0 AS cor0
----
-92
-92
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 / + - 87 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8096
SELECT - - 80 DIV - + col0 AS col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8096
SELECT - - 80 / - + col0 AS col0 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT DISTINCT COUNT( - col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8097
SELECT DISTINCT COUNT ( - col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 87 col2 FROM tab1 cor0
----
-87
-87
-87

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 39 BETWEEN 64 AND - 51 - - col0 / - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 91, + col0 FROM tab0 AS cor0
----
-91
15
-91
87
-91
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 66 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT DISTINCT + MIN( DISTINCT 10 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8103
SELECT DISTINCT + MIN ( DISTINCT 10 ) AS col0 FROM tab0 AS cor0
----
10

query II rowsort
SELECT DISTINCT - + col0, - 85 AS col0 FROM tab2 AS cor0
----
-46
-85
-64
-85
-75
-85

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 > NULL
----

query II rowsort
SELECT ALL col0, - col1 AS col0 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

query I rowsort
SELECT ALL col0 + 19 FROM tab1 cor0
----
104
110
70

query I rowsort
SELECT DISTINCT 97 + - + ( - col1 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
102
111
144

query I rowsort
SELECT 41 + + col1 FROM tab2
----
108
118
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8110
SELECT + col0 * + - CAST( + + col0 AS SIGNED ) + 43 AS col1 FROM tab0
----
-182
-7526
-9366

skipif mysql # not compatible
query I rowsort label-8110
SELECT + col0 * + - CAST ( + + col0 AS INTEGER ) + 43 AS col1 FROM tab0
----
-182
-7526
-9366

query I rowsort
SELECT DISTINCT + 9 + col2 * col0 + - ( + + ( col2 ) ) + - col2 - + col0 AS col1 FROM tab0
----
605
772
9317

query I rowsort
SELECT ALL - col2 + + 50 FROM tab2
----
-8
10
27

query III rowsort
SELECT * FROM tab1 WHERE + 90 IS NULL
----

query I rowsort
SELECT ALL - col1 - 96 + + 74 AS col1 FROM tab1 AS cor0 WHERE NOT - 76 IS NULL
----
-27
-36
-69

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE NOT ( NOT ( + 63 IS NOT NULL ) )
----
-15
-87
-97

query II rowsort
SELECT - 69 AS col2, 79 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
18 values hashing to 81cd2d7d07b61b829769a656534ce72b

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 IN ( ( ( - + col2 ) ), + 85 / - - 67 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab1 WHERE 94 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT col0 + + 53 - col0 * + - 33 + - - ( - col1 ) FROM tab0 AS cor0
----
2990
3350
482

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT + + COUNT( * ) + + COUNT( * ) AS col1 FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-8120
SELECT + + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 cor0
----
6

query I rowsort
SELECT - col2 + 14 AS col2 FROM tab2 cor0
----
-26
-44
-9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * + - col1 > NULL
----

query II rowsort
SELECT - - 32, - 67 - col0 AS col0 FROM tab0 AS cor0
----
32
-154
32
-164
32
-82

query I rowsort
SELECT DISTINCT - col0 * 84 AS col1 FROM tab2 AS cor0
----
-3864
-5376
-6300

query I rowsort
SELECT ALL + col2 - - 40 FROM tab0 AS cor0
----
139
50
87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8126
SELECT ALL - - CAST( NULL AS DECIMAL ) * 68 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8126
SELECT ALL - - CAST ( NULL AS REAL ) * 68 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8127
SELECT + - CAST( NULL AS SIGNED ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8127
SELECT + - CAST ( NULL AS INTEGER ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8129
SELECT ALL + ( - - col0 ) - - + CAST( NULL AS SIGNED ) / + + col0 - - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8129
SELECT ALL + ( - - col0 ) - - + CAST ( NULL AS INTEGER ) / + + col0 - - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8130
SELECT ALL 1 DIV col2 * - col2 * 74 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL 1 / col2 * - col2 * 74 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8131
SELECT COUNT( * ) DIV COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8131
SELECT COUNT ( * ) / COUNT ( * ) FROM tab2
----
1

query II rowsort
SELECT DISTINCT col0, + 42 AS col0 FROM tab2
----
46
42
64
42
75
42

onlyif mysql # aggregate syntax: 
query II rowsort label-8133
SELECT ALL COUNT( * ) AS col2, - 79 FROM tab0
----
3
-79

skipif mysql # not compatible
query II rowsort label-8133
SELECT ALL COUNT ( * ) AS col2, - 79 FROM tab0
----
3
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8134
SELECT CAST( NULL AS SIGNED ) * + - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8134
SELECT CAST ( NULL AS INTEGER ) * + - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + + 1 ) AS col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8136
SELECT DISTINCT 51 DIV MAX( - + 54 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8136
SELECT DISTINCT 51 / MAX ( - + 54 ) FROM tab1 AS cor0
----
0

query II rowsort
SELECT + col2 AS col1, col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 IN ( - col2 * + + 20 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT ALL MAX( DISTINCT + col0 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8139
SELECT ALL MAX ( DISTINCT + col0 ) AS col1 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT + SUM( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-8140
SELECT + SUM ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-223

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 - - col0 >= NULL
----

query I rowsort
SELECT ALL col1 * + + 96 * + + 43 FROM tab0 AS cor0
----
334368
4128
86688

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8143
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8143
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL + 44 * - col1 - + - ( - 92 ) AS col0 FROM tab0 AS cor0
----
-1016
-136
-3656

onlyif mysql # DIV for integer division: 
query II rowsort label-8145
SELECT ALL - col2 DIV + - 57 AS col2, 25 FROM tab2 cor0
----
0
25
0
25
1
25

skipif mysql # not compatible
query II rowsort label-8145
SELECT ALL - col2 / + - 57 AS col2, 25 FROM tab2 cor0
----
0
25
0
25
1
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 col2 FROM tab0
----
-55
-55
-55

query I rowsort
SELECT ( - - 80 ) AS col0 FROM tab0
----
80
80
80

query II rowsort
SELECT + col0, + col1 AS col2 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8149
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + SUM( DISTINCT - - 21 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8149
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + SUM ( DISTINCT - - 21 ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8151
SELECT - col1 + + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8151
SELECT - col1 + + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - col0 ) + - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT - - MAX( DISTINCT - - col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8153
SELECT - - MAX ( DISTINCT - - col0 ) AS col1 FROM tab2 AS cor0
----
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN ( col2 - + col0 ) AND ( 13 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 70 * - 12 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT MAX( - - col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-8156
SELECT MAX ( - - col0 ) FROM tab0
----
97

query II rowsort
SELECT ALL - col1 * - col1 + col1 * - - col0 + col2 AS col1, 30 * + - col2 * ( - + 13 ) AS col1 FROM tab0 WHERE NOT col2 + col2 IS NOT NULL
----

query I rowsort
SELECT + ( + 23 ) * + col1 FROM tab1
----
1081
115
322

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT - MIN( - col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-8159
SELECT - MIN ( - col1 ) AS col0 FROM tab2
----
77

query I rowsort
SELECT DISTINCT 92 + + + ( + col2 ) FROM tab1
----
151
160
188

query II rowsort
SELECT + 71 * + - 87, 13 AS col0 FROM tab0
----
-6177
13
-6177
13
-6177
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8162
SELECT ALL - COUNT( - + ( - CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8162
SELECT ALL - COUNT ( - + ( - CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT ALL + 54 + + col2 FROM tab1 cor0
----
113
122
150

query II rowsort
SELECT ALL - col2, - 26 FROM tab2 AS cor0 WHERE NULL > + 2 + - + ( - - 80 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8165
SELECT ALL + 0 - + 50 - - ( - col2 ) DIV + + col1 AS col2 FROM tab2 cor0
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-8165
SELECT ALL + 0 - + 50 - - ( - col2 ) / + + col1 AS col2 FROM tab2 cor0
----
-50
-50
-50

query I rowsort
SELECT ALL + col1 * - + col2 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

query II rowsort
SELECT col0 + + col2 + - - ( + col1 ) AS col2, 89 AS col2 FROM tab2 cor0
----
120
89
181
89
200
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8168
SELECT ALL + - CAST( + 29 AS SIGNED ) - col0 AS col2 FROM tab0 AS cor0
----
-116
-126
-44

skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL + - CAST ( + 29 AS INTEGER ) - col0 AS col2 FROM tab0 AS cor0
----
-116
-126
-44

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * + 24 IS NOT NULL
----

query I rowsort
SELECT + + col1 * - - 20 FROM tab1 AS cor0
----
100
280
940

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT NULL NOT IN ( col1, - col1, - - col1 ) )
----

query I rowsort
SELECT - col2 * - + col2 FROM tab0
----
100
2209
9801

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NOT + - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8174
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT + - col1 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8175
SELECT ALL col0 DIV + 79 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL col0 / + 79 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT ALL - COUNT( * ) FROM tab2 WHERE 89 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL - COUNT ( * ) FROM tab2 WHERE 89 IS NOT NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 77 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT DISTINCT + SUM( col1 ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-8178
SELECT DISTINCT + SUM ( col1 ) AS col1 FROM tab0
----
103

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 77 * 91 * + col0 + + + col1 * col1 = 60
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 21 * - col0 AS col0 FROM tab0 AS cor0
----
-1827
-2037
-315

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT - ( 21 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8183
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT 79 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8185
SELECT ALL + + CAST( NULL AS SIGNED ) * + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8185
SELECT ALL + + CAST ( NULL AS INTEGER ) * + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( + + col2, + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 86 AS col0, - ( - 65 ) col0 FROM tab0 cor0
----
86
65
86
65
86
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT - 70 + - COUNT( * ) FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-8188
SELECT - 70 + - COUNT ( * ) FROM tab1 AS cor0
----
-73

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT - col2 * - col0 + + col1 * + - col0 FROM tab1 AS cor0
----
1911
4182
4590

query I rowsort
SELECT 96 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT + + SUM( ALL + - col1 ) + 46 AS col1 FROM tab2 cor0
----
-149

skipif mysql # not compatible
query I rowsort label-8192
SELECT + + SUM ( ALL + - col1 ) + 46 AS col1 FROM tab2 cor0
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT 79 * + 81 + COUNT( * ) AS col2 FROM tab0
----
6402

skipif mysql # not compatible
query I rowsort label-8193
SELECT 79 * + 81 + COUNT ( * ) AS col2 FROM tab0
----
6402

query I rowsort
SELECT DISTINCT + col0 + - 41 FROM tab0
----
-26
46
56

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE - col0 IS NULL
----

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE col1 / - col2 + - + 97 NOT IN ( - col0, col1 * - - col2 * - 86, - col2 * - + 23 )
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + 16 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col1 * 33 + + col2 * - col1 * + col0 + 63 + col0 FROM tab2
----
-199534
-293523
-55532

query I rowsort
SELECT ALL + 32 - + - ( - col2 ) FROM tab1 AS cor0
----
-27
-36
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-8200
SELECT DISTINCT + - col2 - col2 - - 3 - col1 + - col1 + - - 6 DIV + col0 * + + col0 FROM tab0 AS cor0
----
-197
-253
-59

skipif mysql # not compatible
query I rowsort label-8200
SELECT DISTINCT + - col2 - col2 - - 3 - col1 + - col1 + - - 6 / + col0 * + + col0 FROM tab0 AS cor0
----
-197
-253
-59

query II rowsort
SELECT ALL - + 60, 23 AS col2 FROM tab0 AS cor0
----
-60
23
-60
23
-60
23

query I rowsort
SELECT + ( + col1 ) AS col0 FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT ALL + 24 AS col2 FROM tab0 AS cor0
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 col2 FROM tab2 AS cor0
----
-99
-99
-99

query II rowsort
SELECT + - col1 AS col1, 12 + - 8 FROM tab0 AS cor0
----
-1
4
-21
4
-81
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8206
SELECT ALL + + CAST( - + COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL + + CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 60 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT ALL COUNT( * ) * + 91 AS col2 FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL COUNT ( * ) * + 91 AS col2 FROM tab0
----
273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8209
SELECT + 87 * COUNT( + CAST( + - col0 AS SIGNED ) ) AS col1 FROM tab0
----
261

skipif mysql # not compatible
query I rowsort label-8209
SELECT + 87 * COUNT ( + CAST ( + - col0 AS INTEGER ) ) AS col1 FROM tab0
----
261

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8210
SELECT ALL COUNT( * ) * - CAST( NULL AS DECIMAL ) * COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8210
SELECT ALL COUNT ( * ) * - CAST ( NULL AS REAL ) * COUNT ( * ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT col1 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8212
SELECT DISTINCT + 49 * 3 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8212
SELECT DISTINCT + 49 * 3 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT col0 BETWEEN NULL AND col1 ) OR NOT + 33 - - - col1 * - 38 + + 1 + + col1 + - col2 * col1 + + 23 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 10 AS col1, 39 FROM tab1
----
10
39
10
39
10
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT DISTINCT + - 29 * MAX( - col1 ) AS col2 FROM tab0 cor0
----
29

skipif mysql # not compatible
query I rowsort label-8215
SELECT DISTINCT + - 29 * MAX ( - col1 ) AS col2 FROM tab0 cor0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8216
SELECT - - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8216
SELECT - - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 49 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8218
SELECT - CAST( + - 25 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
25
25
25

skipif mysql # not compatible
query I rowsort label-8218
SELECT - CAST ( + - 25 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
25
25
25

onlyif mysql # DIV for integer division: 
query I rowsort label-8219
SELECT DISTINCT col1 DIV - + col1 + + col0 FROM tab2
----
45
63
74

skipif mysql # not compatible
query I rowsort label-8219
SELECT DISTINCT col1 / - + col1 + + col0 FROM tab2
----
45
63
74

query I rowsort
SELECT 69 * + - col2 FROM tab1
----
-4071
-4692
-6624

query I rowsort
SELECT DISTINCT + col2 * - 90 FROM tab2
----
-2070
-3600
-5220

query I rowsort
SELECT DISTINCT + 92 + col0 * - col0 * - col0 - + col1 AS col0 FROM tab0
----
3386
658574
912764

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8225
SELECT + 60 + - + CAST( + - col1 AS SIGNED ) AS col1 FROM tab0
----
141
61
81

skipif mysql # not compatible
query I rowsort label-8225
SELECT + 60 + - + CAST ( + - col1 AS INTEGER ) AS col1 FROM tab0
----
141
61
81

query I rowsort
SELECT ALL + 98 + + col0 AS col2 FROM tab0
----
113
185
195

query I rowsort
SELECT - 26 + 3 FROM tab0
----
-23
-23
-23

query I rowsort
SELECT DISTINCT 14 + + col0 AS col1 FROM tab2
----
60
78
89

query I rowsort
SELECT DISTINCT - + col1 + col0 FROM tab1 cor0
----
37
44
80

query I rowsort
SELECT + + col0 + - + 44 FROM tab0 AS cor0
----
-29
43
53

query II rowsort
SELECT - col1, 12 AS col1 FROM tab1 AS cor0
----
-14
12
-47
12
-5
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT + - COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8232
SELECT + - COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8234
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + CAST( col2 AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8234
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + CAST ( col2 AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT ALL - MAX( + + ( - 49 ) ) AS col0 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL - MAX ( + + ( - 49 ) ) AS col0 FROM tab0 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT ALL + SUM( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL + SUM ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
103

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) > + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 51 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT DISTINCT ( + COUNT( * ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8239
SELECT DISTINCT ( + COUNT ( * ) ) AS col2 FROM tab1
----
3

query I rowsort
SELECT 90 * 69 * - col2 FROM tab1
----
-366390
-422280
-596160

query II rowsort
SELECT col2 AS col0, col0 AS col1 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT MAX( - col0 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-8242
SELECT MAX ( - col0 ) AS col0 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT ALL - 37 * - COUNT( * ) FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-8243
SELECT ALL - 37 * - COUNT ( * ) FROM tab2
----
111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab2 WHERE NOT + 30 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT DISTINCT ( - - 55 ) * - COUNT( * ) FROM tab1
----
-165

skipif mysql # not compatible
query I rowsort label-8245
SELECT DISTINCT ( - - 55 ) * - COUNT ( * ) FROM tab1
----
-165

query II rowsort
SELECT + + col0 AS col2, + col1 * col2 AS col1 FROM tab0 AS cor0
----
15
3807
87
210
97
99

query I rowsort
SELECT ALL + - 52 AS col2 FROM tab2 AS cor0
----
-52
-52
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8248
SELECT DISTINCT + CAST( + - col1 AS SIGNED ) + - col0, col2 AS col0 FROM tab2 AS cor0
----
-141
40
-142
58
-97
23

skipif mysql # not compatible
query II rowsort label-8248
SELECT DISTINCT + CAST ( + - col1 AS INTEGER ) + - col0, col2 AS col0 FROM tab2 AS cor0
----
-141
40
-142
58
-97
23

query I rowsort
SELECT ALL + - 53 + col1 + - col2 AS col0 FROM tab2 cor0
----
-16
-25
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT ALL MAX( ALL + col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL MAX ( ALL + col1 ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT + col1 + + - col1 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col0 NOT BETWEEN + col0 AND - 41
----

query I rowsort
SELECT DISTINCT - 72 + - + col2 FROM tab1 AS cor0
----
-131
-140
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8254
SELECT + col0 FROM tab0 AS cor0 WHERE - CAST( - - 55 AS SIGNED ) + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8254
SELECT + col0 FROM tab0 AS cor0 WHERE - CAST ( - - 55 AS INTEGER ) + col2 IS NULL
----

query I rowsort
SELECT 22 * - 31 + + - col1 FROM tab2 AS cor0
----
-733
-749
-759

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT + SUM( + col1 ) AS col1 FROM tab0 AS cor0 WHERE + - 44 IS NOT NULL AND NOT ( - - col0 ) * - col0 - - + 61 <= col2 + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-8256
SELECT + SUM ( + col1 ) AS col1 FROM tab0 AS cor0 WHERE + - 44 IS NOT NULL AND NOT ( - - col0 ) * - col0 - - + 61 <= col2 + 46
----
NULL

query I rowsort
SELECT + + col1 + - 30 + - - col1 AS col0 FROM tab2 AS cor0
----
104
124
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT SUM( DISTINCT - col1 ) + 68 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-8258
SELECT SUM ( DISTINCT - col1 ) + 68 FROM tab1 AS cor0
----
2

query I rowsort
SELECT ALL - + col2 * + 13 AS col1 FROM tab2 AS cor0
----
-299
-520
-754

query I rowsort
SELECT ALL + 95 AS col1 FROM tab0 AS cor0
----
95
95
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8261
SELECT ALL + ( - + col1 ) AS col1, + col2 - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-8261
SELECT ALL + ( - + col1 ) AS col1, + col2 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 84 NOT IN ( - ( + ( col2 ) ) * 63, - col1 * 37 )
----

query I rowsort
SELECT DISTINCT + col2 + ( + - col0 ) + col1 FROM tab1 AS cor0
----
-21
24
59

query I rowsort
SELECT - - 98 + col0 AS col1 FROM tab0 AS cor0
----
113
185
195

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8266
SELECT ALL + 31 + - + col1 * col0 * - - ( CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8266
SELECT ALL + 31 + - + col1 * col0 * - - ( CAST ( NULL AS REAL ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8267
SELECT DISTINCT - COUNT( * ) DIV 70 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8267
SELECT DISTINCT - COUNT ( * ) / 70 AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL - 56 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT ALL - COUNT( * ) col1 FROM tab0 WHERE - - col0 + col1 + + col1 + + col2 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8269
SELECT ALL - COUNT ( * ) col1 FROM tab0 WHERE - - col0 + col1 + + col1 + + col2 IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8270
SELECT - col0 DIV 33 * col1 - + 41 FROM tab2 AS cor0
----
-118
-175
-92

skipif mysql # not compatible
query I rowsort label-8270
SELECT - col0 / 33 * col1 - + 41 FROM tab2 AS cor0
----
-118
-175
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-8271
SELECT ALL + col2 DIV ( col1 ) + - col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8271
SELECT ALL + col2 / ( col1 ) + - col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + col1 - + col2 + - col0 AS col1 FROM tab2 AS cor0
----
-18
-27
-66

query I rowsort
SELECT + 47 - + - col2 AS col1 FROM tab1 cor0
----
106
115
143

query I rowsort
SELECT ALL col0 - - 28 AS col1 FROM tab1 AS cor0
----
113
119
79

query I rowsort
SELECT DISTINCT + col0 - + + ( + + col1 ) FROM tab1 AS cor0
----
37
44
80

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 33 IS NULL
----

query II rowsort
SELECT DISTINCT col1, - 80 + - - col2 FROM tab2 AS cor0
----
51
-57
67
-22
77
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT COUNT( * ) AS col2 FROM tab2 WHERE NOT ( + - 24 ) NOT BETWEEN ( + - col1 ) AND + col0
----
3

skipif mysql # not compatible
query I rowsort label-8278
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( + - 24 ) NOT BETWEEN ( + - col1 ) AND + col0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > - + col2
----

query I rowsort
SELECT - 71 FROM tab0 WHERE NOT - - col0 IS NULL
----
-71
-71
-71

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT ALL + + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL + + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

query II rowsort
SELECT - col1 AS col0, col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14
96
-47
68
-5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT DISTINCT - MAX( ALL - col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8284
SELECT DISTINCT - MAX ( ALL - col1 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT DISTINCT 2 * + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8285
SELECT DISTINCT 2 * + COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL + col0 * - - col0 AS col0 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8287
SELECT ALL + + col2 DIV - 97 AS col0, - col1 * - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-8287
SELECT ALL + + col2 / - 97 AS col0, - col1 * - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
0
NULL
0
NULL
0
NULL

query I rowsort
SELECT - 41 FROM tab1 AS cor0 WHERE NOT + ( - 91 ) > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 21 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8290
SELECT ALL - + COUNT( * ) AS col2, COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-8290
SELECT ALL - + COUNT ( * ) AS col2, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8291
SELECT + CAST( 52 AS SIGNED ) * + 43 FROM tab2
----
2236
2236
2236

skipif mysql # not compatible
query I rowsort label-8291
SELECT + CAST ( 52 AS INTEGER ) * + 43 FROM tab2
----
2236
2236
2236

query I rowsort
SELECT - ( + + col1 ) FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8293
SELECT + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8293
SELECT + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT DISTINCT - SUM( DISTINCT - col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8294
SELECT DISTINCT - SUM ( DISTINCT - col2 ) AS col2 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT ALL MIN( DISTINCT + + col2 ) * 19 AS col0 FROM tab1
----
1121

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL MIN ( DISTINCT + + col2 ) * 19 AS col0 FROM tab1
----
1121

query I rowsort
SELECT - ( col0 ) + - - col2 + + 67 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
43
44
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8297
SELECT - ( + + CAST( NULL AS SIGNED ) ), col1 AS col0, + - col2 AS col0 FROM tab1
----
9 values hashing to 490883e33c1f779fd794a6617b2a4219

skipif mysql # not compatible
query III rowsort label-8297
SELECT - ( + + CAST ( NULL AS INTEGER ) ), col1 AS col0, + - col2 AS col0 FROM tab1
----
9 values hashing to 490883e33c1f779fd794a6617b2a4219

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT DISTINCT + 36 + + COUNT( * ) + 44 + COUNT( * ) FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-8298
SELECT DISTINCT + 36 + + COUNT ( * ) + 44 + COUNT ( * ) FROM tab0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT - MAX( - - col0 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-75

skipif mysql # not compatible
query I rowsort label-8299
SELECT - MAX ( - - col0 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 62 ) * - col2 col0 FROM tab1
----
3658
4216
5952

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 35 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT - - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8302
SELECT - - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT + 4 * - COUNT( * ) col0 FROM tab2 WHERE - col2 IS NOT NULL
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8303
SELECT + 4 * - COUNT ( * ) col0 FROM tab2 WHERE - col2 IS NOT NULL
----
-12

query I rowsort
SELECT DISTINCT 15 + + col0 * col0 * 26 AS col2 FROM tab1
----
187865
215321
67641

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT DISTINCT - COUNT( * ) + + 1 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-8305
SELECT DISTINCT - COUNT ( * ) + + 1 FROM tab0 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT DISTINCT + 64 * + + COUNT( * ) FROM tab1 cor0
----
192

skipif mysql # not compatible
query I rowsort label-8306
SELECT DISTINCT + 64 * + + COUNT ( * ) FROM tab1 cor0
----
192

query I rowsort
SELECT ALL - + col1 - + 4 FROM tab1 AS cor0
----
-18
-51
-9

query I rowsort
SELECT DISTINCT col1 - - - col2 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT DISTINCT + col2 * - + ( + + 85 ) - - 49 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3946
-801
-8366

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT DISTINCT - MIN( - + col0 ) * - MAX( ALL + 93 ) FROM tab2 AS cor0
----
-6975

skipif mysql # not compatible
query I rowsort label-8310
SELECT DISTINCT - MIN ( - + col0 ) * - MAX ( ALL + 93 ) FROM tab2 AS cor0
----
-6975

query I rowsort
SELECT DISTINCT 33 + - 75 FROM tab0
----
-42

query I rowsort
SELECT - ( col2 ) + - 16 FROM tab1
----
-112
-75
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-8313
SELECT DISTINCT 72 DIV + col1 FROM tab1
----
1
14
5

skipif mysql # not compatible
query I rowsort label-8313
SELECT DISTINCT 72 / + col1 FROM tab1
----
1
14
5

query III rowsort
SELECT * FROM tab0 WHERE ( - + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT COUNT( * ) + - 0 AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8315
SELECT COUNT ( * ) + - 0 AS col0 FROM tab0
----
3

query I rowsort
SELECT DISTINCT + 3 + - + col1 FROM tab2
----
-48
-64
-74

query I rowsort
SELECT - col0 + ( - col0 ) + + + col1 + + + 58 FROM tab2
----
-25
17
7

query I rowsort
SELECT DISTINCT ( - + col0 ) + col0 * col0 AS col1 FROM tab2
----
2070
4032
5550

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + - 34 NOT BETWEEN + col0 * + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 29 * + col0 * + col2 FROM tab1 AS cor0
----
141984
145435
179452

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8321
SELECT DISTINCT - 55, ( col2 ), - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
9 values hashing to 83afada157f66677e8479129d1009255

skipif mysql # not compatible
query III rowsort label-8321
SELECT DISTINCT - 55, ( col2 ), - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
9 values hashing to 83afada157f66677e8479129d1009255

onlyif mysql # DIV for integer division: 
query I rowsort label-8322
SELECT DISTINCT + 98 DIV + + col1 AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8322
SELECT DISTINCT + 98 / + + col1 AS col2 FROM tab2
----
1

query I rowsort
SELECT - 19 * + col1 FROM tab1
----
-266
-893
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT ALL - COUNT( ALL 64 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8324
SELECT ALL - COUNT ( ALL 64 ) FROM tab1
----
-3

query I rowsort
SELECT ALL - + col1 FROM tab1 AS cor0 WHERE NOT col2 * - 33 - + col0 - 27 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT - + 86 * + + COUNT( * ) FROM tab1 cor0
----
-258

skipif mysql # not compatible
query I rowsort label-8326
SELECT - + 86 * + + COUNT ( * ) FROM tab1 cor0
----
-258

query I rowsort
SELECT DISTINCT + - 99 * - col0 AS col0 FROM tab0 AS cor0
----
1485
8613
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8328
SELECT ALL + col2 * - CAST( - - col1 AS SIGNED ) FROM tab0 AS cor0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL + col2 * - CAST ( - - col1 AS INTEGER ) FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8329
SELECT ALL - COUNT( * ) / + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8329
SELECT ALL - COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT MIN( ALL col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8330
SELECT MIN ( ALL col1 ) FROM tab1 AS cor0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8331
SELECT ALL + + col0 DIV - 98 * col2 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8331
SELECT ALL + + col0 / - 98 * col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8333
SELECT ALL CAST( NULL AS DECIMAL ) + COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL CAST ( NULL AS REAL ) + COUNT ( * ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT + SUM( DISTINCT - - ( 34 ) ) FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-8334
SELECT + SUM ( DISTINCT - - ( 34 ) ) FROM tab2
----
34

query I rowsort
SELECT DISTINCT col2 + + col1 - + col1 AS col1 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL col0 * - - col1 * + 35 FROM tab1
----
14875
149695
24990

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT ALL + MIN( ALL col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8337
SELECT ALL + MIN ( ALL col0 ) FROM tab2
----
46

query II rowsort
SELECT - col0 * + col2, - col2 AS col0 FROM tab2 AS cor0
----
-1058
-23
-2560
-40
-4350
-58

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + col1 - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8340
SELECT COUNT( * ) DIV + 60 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8340
SELECT COUNT ( * ) / + 60 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8341
SELECT ALL 96 / + CAST( NULL AS DECIMAL ) + + - 62 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8341
SELECT ALL 96 / + CAST ( NULL AS REAL ) + + - 62 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 65 * + col0 * 26 FROM tab2 cor0
----
108160
126750
77740

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT - MAX( + col2 ) * + + COUNT( * ) FROM tab0 cor0
----
-297

skipif mysql # not compatible
query I rowsort label-8343
SELECT - MAX ( + col2 ) * + + COUNT ( * ) FROM tab0 cor0
----
-297

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 * col1 * - 18 AND - ( - col0 )
----

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8346
SELECT + 30 + - COUNT( * ) + - COUNT( * ) DIV COUNT( * ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-8346
SELECT + 30 + - COUNT ( * ) + - COUNT ( * ) / COUNT ( * ) FROM tab2
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + + + 53 col2, col0 col0 FROM tab1 AS cor0
----
112
85
121
91
149
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 - + col2 AS col2, col1 + 77 col0 FROM tab0 AS cor0
----
-196
78
-62
158
-97
98

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + 53 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT COUNT( + + col2 ) + - SUM( col1 ) - - COUNT( - col0 ) AS col2 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-8350
SELECT COUNT ( + + col2 ) + - SUM ( col1 ) - - COUNT ( - col0 ) AS col2 FROM tab1 AS cor0
----
-60

query II rowsort
SELECT - + col0 + col2 AS col1, 23 FROM tab0 AS cor0
----
-77
23
2
23
32
23

query I rowsort
SELECT ALL 72 - - + 53 AS col0 FROM tab2 AS cor0
----
125
125
125

query I rowsort
SELECT DISTINCT - 94 * + + col2 * - 69 AS col0 FROM tab1 AS cor0
----
382674
441048
622656

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT ALL - MAX( + 72 ) AS col0 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-8354
SELECT ALL - MAX ( + 72 ) AS col0 FROM tab1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT 53 - + COUNT( * ) FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-8355
SELECT 53 - + COUNT ( * ) FROM tab2
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8356
SELECT * FROM tab2 cor0 WHERE NOT ( col0 * - - col1 ) BETWEEN - col0 AND + 46 - + + ( - + CAST( NULL AS SIGNED ) ) + + - 22
----

skipif mysql # not compatible
query III rowsort label-8356
SELECT * FROM tab2 cor0 WHERE NOT ( col0 * - - col1 ) BETWEEN - col0 AND + 46 - + + ( - + CAST ( NULL AS INTEGER ) ) + + - 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT ALL + 14 * - - COUNT( * ) + 5 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL + 14 * - - COUNT ( * ) + 5 FROM tab0 AS cor0
----
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * ( - col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 19 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT DISTINCT - SUM( col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-8360
SELECT DISTINCT - SUM ( col2 ) AS col0 FROM tab1 AS cor0
----
-223

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8361
SELECT - CAST( + 37 AS SIGNED ) DIV - 59 AS col2, + 9 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 1f4b72ddf81e25286a82e0a184dbab47

skipif mysql # not compatible
query II rowsort label-8361
SELECT - CAST ( + 37 AS INTEGER ) / - 59 AS col2, + 9 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 1f4b72ddf81e25286a82e0a184dbab47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8362
SELECT col2 * - col0 * + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8362
SELECT col2 * - col0 * + - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT ALL - COUNT( * ) * - MAX( DISTINCT + + 40 ) col2 FROM tab1
----
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8363
SELECT ALL - COUNT ( * ) * - MAX ( DISTINCT + + 40 ) col2 FROM tab1
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8364
SELECT - ( CAST( - col0 AS SIGNED ) ) FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8364
SELECT - ( CAST ( - col0 AS INTEGER ) ) FROM tab2
----
46
64
75

query I rowsort
SELECT + + 8 * + col1 AS col2 FROM tab0 AS cor0
----
168
648
8

query II rowsort
SELECT ALL + + col0 * - 37 * - 70 - - 39 AS col0, 45 * 71 FROM tab2 AS cor0
----
119179
3195
165799
3195
194289
3195

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - ( + - 43 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 76 col0 FROM tab1 AS cor0 WHERE - 58 + 60 > NULL
----

query I rowsort
SELECT DISTINCT - + 27 * - 83 AS col2 FROM tab1 cor0
----
2241

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + - col1 >= NULL
----

query I rowsort
SELECT - 82 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 28 AS col1 FROM tab0 AS cor0
----
28
28
28

onlyif mysql # aggregate syntax: 
query II rowsort label-8373
SELECT 24 * - COUNT( * ) AS col1, 82 * + 63 FROM tab0 WHERE NOT - col0 - ( - + col0 ) * - 47 IS NOT NULL
----
0
5166

skipif mysql # not compatible
query II rowsort label-8373
SELECT 24 * - COUNT ( * ) AS col1, 82 * + 63 FROM tab0 WHERE NOT - col0 - ( - + col0 ) * - 47 IS NOT NULL
----
0
5166

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8374
SELECT ALL CAST( + col2 AS SIGNED ) + - col0 AS col0, 63 FROM tab1
----
-23
63
-26
63
45
63

skipif mysql # not compatible
query II rowsort label-8374
SELECT ALL CAST ( + col2 AS INTEGER ) + - col0 AS col0, 63 FROM tab1
----
-23
63
-26
63
45
63

query I rowsort
SELECT DISTINCT + 53 + + col1 AS col0 FROM tab0
----
134
54
74

query I rowsort
SELECT ALL - + col1 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * - - col0 AS col0 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8378
SELECT ALL COUNT( * ) + - + COUNT( ALL + + col1 ) DIV 91 * - COUNT( * ) + - 87 col2 FROM tab2
----
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8378
SELECT ALL COUNT ( * ) + - + COUNT ( ALL + + col1 ) / 91 * - COUNT ( * ) + - 87 col2 FROM tab2
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, + 73 col0 FROM tab1
----
59
73
68
73
96
73

query II rowsort
SELECT + 67 + - col0 * + col1 * - + 17 + 32 AS col0, + col2 AS col0 FROM tab0
----
1748
99
20754
47
31158
10

query I rowsort
SELECT ALL - + col0 + - 66 AS col0 FROM tab1 AS cor0
----
-117
-151
-157

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 27 >= + col1
----
91
47
68

onlyif mysql # aggregate syntax: 
query II rowsort label-8383
SELECT ALL + - 70, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-70
-3

skipif mysql # not compatible
query II rowsort label-8383
SELECT ALL + - 70, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-70
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT DISTINCT + SUM( + 6 ) col0 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8384
SELECT DISTINCT + SUM ( + 6 ) col0 FROM tab0 AS cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8385
SELECT col0, col0 * - col0 * + CAST( + + col1 AS SIGNED ) * - col2 * - - 40 FROM tab0
----
15
34263000
87
63579600
97
37259640

skipif mysql # not compatible
query II rowsort label-8385
SELECT col0, col0 * - col0 * + CAST ( + + col1 AS INTEGER ) * - col2 * - - 40 FROM tab0
----
15
34263000
87
63579600
97
37259640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8386
SELECT DISTINCT - - 92 - - col0 * + CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
2438
5020
5117

skipif mysql # not compatible
query I rowsort label-8386
SELECT DISTINCT - - 92 - - col0 * + CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
2438
5020
5117

query I rowsort
SELECT col2 + - + 73 - col2 AS col0 FROM tab2 AS cor0
----
-73
-73
-73

query I rowsort
SELECT - col2 * col0 + ( - - col1 ) + - col2 AS col2 FROM tab1 AS cor0
----
-4978
-5069
-6209

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT ALL - - ( + - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8389
SELECT ALL - - ( + - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE ( 93 IS NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8391
SELECT DISTINCT 67 * - SUM( DISTINCT - col2 ) AS col1, + COUNT( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
8107
3

skipif mysql # not compatible
query II rowsort label-8391
SELECT DISTINCT 67 * - SUM ( DISTINCT - col2 ) AS col1, + COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
8107
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT ALL + + MAX( col2 ) FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL + + MAX ( col2 ) FROM tab2 cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT ALL MAX( col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8393
SELECT ALL MAX ( col1 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT DISTINCT - col0 * + ( col2 ) AS col2 FROM tab2
----
-1058
-2560
-4350

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 72 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8396
SELECT DISTINCT + COUNT( * ) AS col0, CAST( NULL AS SIGNED ) + - + AVG ( - 10 ) FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8396
SELECT DISTINCT + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) + - + AVG ( - 10 ) FROM tab2 AS cor0
----
3
NULL

query II rowsort
SELECT + col0 * col0 + + col2 AS col1, col2 * - 99 + + 42 AS col2 FROM tab1 AS cor0
----
2697
-9462
7284
-5799
8349
-6690

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8398
SELECT ALL MIN( - + col1 ) DIV + + 41 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8398
SELECT ALL MIN ( - + col1 ) / + + 41 FROM tab0 AS cor0
----
-1

query II rowsort
SELECT ALL - - col1 AS col1, 3 FROM tab2 AS cor0
----
51
3
67
3
77
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8400
SELECT ALL + - ( - + 84 ) * + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8400
SELECT ALL + - ( - + 84 ) * + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT 78 * + 34 + - - col1 + - col1 AS col2 FROM tab2 AS cor0
----
2652
2652
2652

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT DISTINCT ( COUNT( ALL + 90 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8402
SELECT DISTINCT ( COUNT ( ALL + 90 ) ) AS col1 FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT - col1 AS col2, col0 AS col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 >= - 35
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 + + 2 FROM tab0
----
-45
-8
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT + SUM( DISTINCT col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-8406
SELECT + SUM ( DISTINCT col0 ) AS col1 FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
0

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 56 * - col1 AS col1 FROM tab2 AS cor0
----
2856
3752
4312

query I rowsort
SELECT DISTINCT - + ( 82 ) * - col1 FROM tab2 AS cor0
----
4182
5494
6314

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 62 + col1 > NULL AND NOT NULL = ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE 64 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8414
SELECT ALL CAST( NULL AS DECIMAL ) * - 70 + - 53 * ( col2 ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL CAST ( NULL AS REAL ) * - 70 + - 53 * ( col2 ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 78 - + 15 - col1 * col0 + col1 - + 7 AS col2 FROM tab2 AS cor0
----
-2239
-4795
-4902

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT SUM( - - col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-8416
SELECT SUM ( - - col0 ) AS col0 FROM tab1 AS cor0
----
227

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT ALL - - col0 + + + col0 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT ALL - 69 - + + col2 FROM tab1 AS cor0
----
-128
-137
-165

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT BETWEEN ( + - ( + col2 ) ) AND - - col2 + + col1
----

query I rowsort
SELECT + - 26 FROM tab0 AS cor0
----
-26
-26
-26

query I rowsort
SELECT + 45 AS col0 FROM tab1 cor0
----
45
45
45

query II rowsort
SELECT DISTINCT - - col0 AS col0, col2 AS col0 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT ALL + ( + + COUNT( * ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL + ( + + COUNT ( * ) ) AS col2 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 / - 33 * col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT ALL - - MIN( - col0 ) + + MIN( - col0 ) * COUNT( * ) * + 5 FROM tab0 WHERE NOT - 94 > col1
----
-1552

skipif mysql # not compatible
query I rowsort label-8426
SELECT ALL - - MIN ( - col0 ) + + MIN ( - col0 ) * COUNT ( * ) * + 5 FROM tab0 WHERE NOT - 94 > col1
----
-1552

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT - COUNT( * ) * + 87 AS col2 FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-8427
SELECT - COUNT ( * ) * + 87 AS col2 FROM tab0
----
-261

query II rowsort
SELECT ALL - col0 AS col0, - ( + 3 ) - - col1 AS col0 FROM tab2
----
-46
48
-64
74
-75
64

query I rowsort
SELECT - 89 * 0 * - - 8 AS col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 42 col1 FROM tab1 AS cor0
----
42

query I rowsort
SELECT ALL col1 * - col1 + + - col1 + col0 FROM tab1
----
-159
-2165
55

query I rowsort
SELECT DISTINCT + + 25 * + col1 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT - 93 * + ( - 2 ) AS col2 FROM tab1 AS cor0
----
186
186
186

query I rowsort
SELECT 70 * + 15 FROM tab0 cor0
----
1050
1050
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT DISTINCT - SUM( DISTINCT - 49 ) AS col1 FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-8435
SELECT DISTINCT - SUM ( DISTINCT - 49 ) AS col1 FROM tab1 AS cor0
----
49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) < col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8437
SELECT ALL - - ( CAST( 70 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL - - ( CAST ( 70 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT COUNT( - col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8438
SELECT COUNT ( - col0 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT + - MIN( ALL col0 ) + - COUNT( * ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8439
SELECT + - MIN ( ALL col0 ) + - COUNT ( * ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - ( + + col0 ) + + - col2 * - col1 + + col1 AS col1 FROM tab2
----
1178
3093
3878

query I rowsort
SELECT + col1 + - col0 * - + 8 FROM tab0
----
201
717
777

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT ALL COUNT( * ) * - 35 * - - 43 FROM tab0
----
-4515

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL COUNT ( * ) * - 35 * - - 43 FROM tab0
----
-4515

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8443
SELECT + col1 + - col0 + col1 * col2 * - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8443
SELECT + col1 + - col0 + col1 * col2 * - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 AS col2 FROM tab1 WHERE 15 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT ALL COUNT( * ) + + COUNT( * ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2
----
6

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN col2 AND - 97 * col1 + - 44
----

query I rowsort
SELECT + 94 + + 53 AS col0 FROM tab1
----
147
147
147

query I rowsort
SELECT ALL + 20 + + 4 - - 46 AS col0 FROM tab1 AS cor0
----
70
70
70

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 AS cor0 WHERE NOT + 50 + - col1 NOT BETWEEN NULL AND + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8450
SELECT + + CAST( NULL AS SIGNED ) + - 87 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8450
SELECT + + CAST ( NULL AS INTEGER ) + - 87 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 42 * + col2 + + col1 col2, 1 AS col2 FROM tab0 AS cor0
----
2055
1
4159
1
441
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT ALL ( COUNT( * ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8453
SELECT ALL ( COUNT ( * ) ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8454
SELECT DISTINCT * FROM tab0 WHERE - 14 * CAST( NULL AS SIGNED ) NOT BETWEEN ( - ( - 68 ) ) AND ( col0 ) + col2
----

skipif mysql # not compatible
query III rowsort label-8454
SELECT DISTINCT * FROM tab0 WHERE - 14 * CAST ( NULL AS INTEGER ) NOT BETWEEN ( - ( - 68 ) ) AND ( col0 ) + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT ALL MIN( col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL MIN ( col1 ) FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8456
SELECT - 40 DIV ( col1 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8456
SELECT - 40 / ( col1 ) FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8457
SELECT 41 DIV 38 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8457
SELECT 41 / 38 AS col1 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8458
SELECT - MAX( + col2 ) DIV 69 AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8458
SELECT - MAX ( + col2 ) / 69 AS col2 FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8459
SELECT - 30 DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8459
SELECT - 30 / + col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) > 43 * 46 + - col0
----

query I rowsort
SELECT ALL 20 + 60 AS col1 FROM tab0
----
80
80
80

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < + col0
----

query I rowsort
SELECT - col0 FROM tab2 WHERE ( NULL ) < 52 - - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8464
SELECT + ( COUNT( * ) ) + - 38 FROM tab0 WHERE NOT ( + 45 ) * CAST( NULL AS SIGNED ) <= 13 / col1 + 15
----
-38

skipif mysql # not compatible
query I rowsort label-8464
SELECT + ( COUNT ( * ) ) + - 38 FROM tab0 WHERE NOT ( + 45 ) * CAST ( NULL AS INTEGER ) <= 13 / col1 + 15
----
-38

query I rowsort
SELECT 15 + col2 * 50 FROM tab1
----
2965
3415
4815

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8466
SELECT ALL col0 + col1 FROM tab2 WHERE col0 BETWEEN NULL AND ( col0 * + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL col0 + col1 FROM tab2 WHERE col0 BETWEEN NULL AND ( col0 * + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 + col0 col1 FROM tab0
----
139
149
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT ALL COUNT( * ) + - 72 AS col2 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-8468
SELECT ALL COUNT ( * ) + - 72 AS col2 FROM tab0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT ALL - MIN( DISTINCT ( 89 ) ) AS col2 FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-8469
SELECT ALL - MIN ( DISTINCT ( 89 ) ) AS col2 FROM tab2
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8470
SELECT + CAST( NULL AS SIGNED ) * - ( col1 * + 32 ) + + CAST( col2 AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8470
SELECT + CAST ( NULL AS INTEGER ) * - ( col1 * + 32 ) + + CAST ( col2 AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT + COUNT( * ) + COUNT( * ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8471
SELECT + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8472
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab1 WHERE NOT col0 BETWEEN ( + 3 ) AND ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8472
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab1 WHERE NOT col0 BETWEEN ( + 3 ) AND ( col1 )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - 92 + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT DISTINCT - MIN( DISTINCT ( col1 ) ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8474
SELECT DISTINCT - MIN ( DISTINCT ( col1 ) ) AS col0 FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8475
SELECT DISTINCT 72 * - col1 - + CAST( - col1 AS SIGNED ) FROM tab2
----
-3621
-4757
-5467

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT 72 * - col1 - + CAST ( - col1 AS INTEGER ) FROM tab2
----
-3621
-4757
-5467

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT ALL COUNT( * ) col2 FROM tab0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8476
SELECT ALL COUNT ( * ) col2 FROM tab0 WHERE col2 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 48 / + col2 <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8479
SELECT * FROM tab1 AS cor0 WHERE NOT col0 < - CAST( col2 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8479
SELECT * FROM tab1 AS cor0 WHERE NOT col0 < - CAST ( col2 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8480
SELECT DISTINCT ( 13 ) DIV + col2 FROM tab0 WHERE - col0 NOT BETWEEN ( NULL ) AND ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8480
SELECT DISTINCT ( 13 ) / + col2 FROM tab0 WHERE - col0 NOT BETWEEN ( NULL ) AND ( - col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8481
SELECT col1 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) * CAST( ( 10 ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8481
SELECT col1 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) * CAST ( ( 10 ) AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col0 ) BETWEEN ( col2 * - col0 - - col1 * col2 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT ALL - MIN( DISTINCT col2 ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL - MIN ( DISTINCT col2 ) AS col0 FROM tab1
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8484
SELECT ALL - + CAST( 39 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-8484
SELECT ALL - + CAST ( 39 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-39
-39
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-8485
SELECT + + col2 DIV + col1 + col1 * - ( + col1 ) AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-8485
SELECT + + col2 / + col1 + col1 * - ( + col1 ) AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT 79 + - col0 AS col1 FROM tab1 AS cor0
----
-12
-6
28

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 < + col2 + + col1 / + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 + col1 * col0 col2 FROM tab0 AS cor0
----
1286
168
1898

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT DISTINCT SUM( col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-8489
SELECT DISTINCT SUM ( col0 ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT + + col2 + + col1 * col0 FROM tab0 AS cor0
----
1262
1837
196

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( - col1 ) AND + 44
----

query I rowsort
SELECT + - 4 + col1 * + col0 AS col0 FROM tab0 cor0
----
1211
1823
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT DISTINCT - - SUM( col2 ) * 75 AS col0 FROM tab2 AS cor0
----
9075

skipif mysql # not compatible
query I rowsort label-8493
SELECT DISTINCT - - SUM ( col2 ) * 75 AS col0 FROM tab2 AS cor0
----
9075

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT ALL - 15 * + COUNT( * ) FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL - 15 * + COUNT ( * ) FROM tab0 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT SUM( col2 ) col0 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8495
SELECT SUM ( col2 ) col0 FROM tab1
----
223

query I rowsort
SELECT col1 FROM tab2 WHERE NULL IN ( 15 * + col2 + - col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8498
SELECT CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL NOT IN ( col1 * - 0 )
----

skipif mysql # not compatible
query I rowsort label-8498
SELECT CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL NOT IN ( col1 * - 0 )
----

query I rowsort
SELECT DISTINCT col2 * + col1 + + 73 * 86 AS col0 FROM tab0
----
10085
6377
6488

query I rowsort
SELECT DISTINCT col1 + + col2 FROM tab0 WHERE ( 22 * + 11 ) IS NOT NULL
----
100
128
31

query III rowsort
SELECT * FROM tab1 WHERE ( + 3 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT SUM( + 16 ) + - MAX( - col0 ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8502
SELECT SUM ( + 16 ) + - MAX ( - col0 ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 + + ( + col2 ) * col0 FROM tab0
----
752
880
9702

query I rowsort
SELECT ALL + col1 * 93 * - col2 + - col2 AS col1 FROM tab2
----
-109112
-286480
-361456

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE - col2 >= - ( + ( col2 ) ) * col1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT DISTINCT + COUNT( * ) - 68 AS col2 FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-8506
SELECT DISTINCT + COUNT ( * ) - 68 AS col2 FROM tab1 AS cor0
----
-65

query I rowsort
SELECT ALL - col2 - 50 * col0 FROM tab0 AS cor0
----
-4360
-4949
-797

onlyif mysql # DIV for integer division: 
query I rowsort label-8508
SELECT - col1 DIV + col1 - col0 FROM tab2 AS cor0
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-8508
SELECT - col1 / + col1 - col0 FROM tab2 AS cor0
----
-47
-65
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT ALL - 14 - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL - 14 - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-17

query I rowsort
SELECT col1 - + - col0 * + 74 FROM tab2 AS cor0
----
3455
4813
5617

query I rowsort
SELECT DISTINCT 57 * - 88 - + 89 FROM tab2 AS cor0
----
-5105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 18 * - 27 + - col2 * - col1 - + 22 * - 90 col0 FROM tab1 AS cor0
----
1789
2838
4690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8513
SELECT ALL + 74 * + CAST( + COUNT( * ) AS SIGNED ) + COUNT( * ) FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL + 74 * + CAST ( + COUNT ( * ) AS INTEGER ) + COUNT ( * ) FROM tab2 AS cor0
----
225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8514
SELECT COUNT( * ) col2 FROM tab1 WHERE CAST( NULL AS SIGNED ) - col0 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8514
SELECT COUNT ( * ) col2 FROM tab1 WHERE CAST ( NULL AS INTEGER ) - col0 IS NULL
----
3

query I rowsort
SELECT ALL - 22 * 0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8516
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT NULL <> + col1 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8516
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT NULL <> + col1 * + CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 32 col2, - col1 FROM tab1
----
32
-14
32
-47
32
-5

query II rowsort
SELECT DISTINCT - 17 AS col1, col2 FROM tab0
----
-17
10
-17
47
-17
99

query I rowsort
SELECT ( - ( - ( - ( 85 ) ) ) ) FROM tab0
----
-85
-85
-85

query I rowsort
SELECT DISTINCT 9 FROM tab2 AS cor0 WHERE NOT - col2 NOT IN ( + - ( - 79 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8521
SELECT DISTINCT * FROM tab1 cor0 WHERE ( + + col0 ) BETWEEN + CAST( + ( ( + col1 ) ) AS SIGNED ) / col0 AND ( col1 * col0 ) OR NOT col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8521
SELECT DISTINCT * FROM tab1 cor0 WHERE ( + + col0 ) BETWEEN + CAST ( + ( ( + col1 ) ) AS INTEGER ) / col0 AND ( col1 * col0 ) OR NOT col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8522
SELECT DISTINCT - AVG ( ( - col2 ) ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8522
SELECT DISTINCT - AVG ( ( - col2 ) ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT + COUNT( DISTINCT ( + col1 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 + + 96 NOT IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8523
SELECT + COUNT ( DISTINCT ( + col1 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 + + 96 NOT IN ( + col2 )
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col2 ) NOT BETWEEN ( - col2 ) AND - 96
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + - col1 - - col0 * 6 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 34 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----

query I rowsort
SELECT col1 * 25 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 27 FROM tab1 WHERE NULL NOT BETWEEN - - col2 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 WHERE NOT ( 39 + + col2 * - col1 ) IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT 35 * + - MAX( ALL - - col0 ) * 60 AS col1 FROM tab2
----
-157500

skipif mysql # not compatible
query I rowsort label-8532
SELECT 35 * + - MAX ( ALL - - col0 ) * 60 AS col1 FROM tab2
----
-157500

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( 19 ) < - 22 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * + - 71 FROM tab2
----
-3621
-4757
-5467

query I rowsort
SELECT ALL ( col2 ) * - 66 * + col2 AS col1 FROM tab1
----
-229746
-305184
-608256

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT DISTINCT + - COUNT( + - 36 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8536
SELECT DISTINCT + - COUNT ( + - 36 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT ALL + SUM( DISTINCT col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
227

skipif mysql # not compatible
query I rowsort label-8537
SELECT ALL + SUM ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
227

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > + col2 * - 21
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8540
SELECT ALL + 47 DIV - 51 col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8540
SELECT ALL + 47 / - 51 col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT DISTINCT + - COUNT( * ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8541
SELECT DISTINCT + - COUNT ( * ) FROM tab2 cor0
----
-3

query I rowsort
SELECT DISTINCT col0 + + - col1 + + col1 * col2 * col0 * 17 AS col1 FROM tab0
----
163347
310656
970719

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8543
SELECT DISTINCT + col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8543
SELECT DISTINCT + col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT - COUNT( * ) * - + 98 FROM tab2
----
294

skipif mysql # not compatible
query I rowsort label-8544
SELECT - COUNT ( * ) * - + 98 FROM tab2
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT ALL + 73 + - COUNT( * ) AS col1 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL + 73 + - COUNT ( * ) AS col1 FROM tab0
----
70

query I rowsort
SELECT ALL col0 * - + col2 FROM tab1
----
-4896
-5015
-6188

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 36 NOT BETWEEN col1 + - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 60 col1 FROM tab0 cor0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8549
SELECT col0 FROM tab2 cor0 WHERE + 95 + - + ( + ( - 51 ) ) < CAST( - 99 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8549
SELECT col0 FROM tab2 cor0 WHERE + 95 + - + ( + ( - 51 ) ) < CAST ( - 99 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) + col1 col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( ( - + ( - col0 ) ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 49 ) IS NOT NULL
----

query II rowsort
SELECT ALL + col2, col0 AS col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 82 NOT IN ( + col0, 25 / + col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8554
SELECT + 50 - + col1 + + col2 / col0 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8554
SELECT + 50 - + col1 + + col2 / col0 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8555
SELECT ALL + 49, ( - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0 AS cor0
----
49
NULL
49
NULL
49
NULL

skipif mysql # not compatible
query II rowsort label-8555
SELECT ALL + 49, ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab0 AS cor0
----
49
NULL
49
NULL
49
NULL

query I rowsort
SELECT + col1 + - + 11 * + 96 + - - 80 + - 92 FROM tab0
----
-1047
-1067
-987

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col1 + - ( + col0 ) + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT ALL ( + COUNT( DISTINCT + col1 ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8558
SELECT ALL ( + COUNT ( DISTINCT + col1 ) ) AS col1 FROM tab0
----
3

query I rowsort
SELECT ALL col0 + - 5 FROM tab1
----
46
80
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT - 2 + - - ( - SUM( - ( + col0 ) ) ) AS col1 FROM tab2
----
183

skipif mysql # not compatible
query I rowsort label-8560
SELECT - 2 + - - ( - SUM ( - ( + col0 ) ) ) AS col1 FROM tab2
----
183

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - - col0 ) > - 79
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 + + 77 FROM tab2 WHERE ( - col2 IS NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT - - col1 * - 93 - - col2 + ( - + col1 ) * - 47 * + col2 FROM tab0 cor0
----
171443
4659
7927

onlyif mysql # aggregate syntax: 
query II rowsort label-8565
SELECT 35 AS col1, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
35
3

skipif mysql # not compatible
query II rowsort label-8565
SELECT 35 AS col1, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
35
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT DISTINCT COUNT( * ) * + 19 * - SUM( + + col1 ) AS col1 FROM tab2 AS cor0
----
-11115

skipif mysql # not compatible
query I rowsort label-8566
SELECT DISTINCT COUNT ( * ) * + 19 * - SUM ( + + col1 ) AS col1 FROM tab2 AS cor0
----
-11115

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT + COUNT( * ) FROM tab1 WHERE NOT - 66 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8567
SELECT + COUNT ( * ) FROM tab1 WHERE NOT - 66 IS NULL
----
3

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT + 38 * - + col0 <= + - 60
----

query I rowsort
SELECT DISTINCT + col0 * 10 FROM tab0 AS cor0
----
150
870
970

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( 88 NOT BETWEEN + col2 * 77 AND ( col0 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT ALL + 32 * - ( COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8571
SELECT ALL + 32 * - ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-8572
SELECT + - 43 DIV - col1 AS col0 FROM tab1 AS cor0
----
0
3
8

skipif mysql # not compatible
query I rowsort label-8572
SELECT + - 43 / - col1 AS col0 FROM tab1 AS cor0
----
0
3
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT - 15 * - 9 * - COUNT( * ) FROM tab0 AS cor0
----
-405

skipif mysql # not compatible
query I rowsort label-8573
SELECT - 15 * - 9 * - COUNT ( * ) FROM tab0 AS cor0
----
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT + + COUNT( * ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8574
SELECT + + COUNT ( * ) AS col2 FROM tab0 cor0
----
3

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NOT + col2 * + 5 IS NULL
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( 89 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = - col2
----

query I rowsort
SELECT ALL 79 FROM tab2 WHERE NOT ( - col1 ) IS NULL
----
79
79
79

query I rowsort
SELECT col1 * + 99 FROM tab1
----
1386
4653
495

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8580
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - - COUNT( * ) + COUNT( * ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8580
SELECT DISTINCT - CAST ( NULL AS REAL ) * - - COUNT ( * ) + COUNT ( * ) col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN + col0 * 82 AND ( + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8582
SELECT DISTINCT + col0 DIV - - 4 FROM tab2
----
11
16
18

skipif mysql # not compatible
query I rowsort label-8582
SELECT DISTINCT + col0 / - - 4 FROM tab2
----
11
16
18

query I rowsort
SELECT ALL - + col2 * + + col2 AS col2 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT - ( - + col1 ) * - col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT - SUM( 62 ) FROM tab0 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-8585
SELECT - SUM ( 62 ) FROM tab0 AS cor0
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 * + ( + 48 ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8586
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 * + ( + 48 ) >= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - 82 ) col0 FROM tab1 AS cor0
----
-82
-82
-82

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 NOT IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8589
SELECT DISTINCT - + 98 DIV - COUNT( * ) col0 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8589
SELECT DISTINCT - + 98 / - COUNT ( * ) col0 FROM tab2 AS cor0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-8590
SELECT + + col2 DIV 19 FROM tab1 AS cor0
----
3
3
5

skipif mysql # not compatible
query I rowsort label-8590
SELECT + + col2 / 19 FROM tab1 AS cor0
----
3
3
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8591
SELECT DISTINCT * FROM tab0 WHERE ( - CAST( NULL AS SIGNED ) * + col0 * - 23 ) IN ( 36 * + + col0 - + ( 51 ) )
----

skipif mysql # not compatible
query III rowsort label-8591
SELECT DISTINCT * FROM tab0 WHERE ( - CAST ( NULL AS INTEGER ) * + col0 * - 23 ) IN ( 36 * + + col0 - + ( 51 ) )
----

query I rowsort
SELECT col2 + + 78 FROM tab2 WHERE + 11 * + + 46 >= ( NULL )
----

query I rowsort
SELECT + - col1 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 62 <= 80
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 31 AS col2 FROM tab1 AS cor0
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8596
SELECT + 2 + COUNT( * ) + - ( + SUM( + CAST( col2 AS SIGNED ) ) ) AS col0 FROM tab2 cor0
----
-116

skipif mysql # not compatible
query I rowsort label-8596
SELECT + 2 + COUNT ( * ) + - ( + SUM ( + CAST ( col2 AS INTEGER ) ) ) AS col0 FROM tab2 cor0
----
-116

query I rowsort
SELECT DISTINCT - col0 + + + 2 AS col1 FROM tab1 AS cor0
----
-49
-83
-89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8598
SELECT + - CAST( - - col0 AS SIGNED ) AS col1, col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

skipif mysql # not compatible
query II rowsort label-8598
SELECT + - CAST ( - - col0 AS INTEGER ) AS col1, col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8599
SELECT DISTINCT - + SUM( DISTINCT col0 ) AS col1, + 0 FROM tab2 AS cor0
----
-185
0

skipif mysql # not compatible
query II rowsort label-8599
SELECT DISTINCT - + SUM ( DISTINCT col0 ) AS col1, + 0 FROM tab2 AS cor0
----
-185
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT ALL - - MIN( DISTINCT - col0 ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL - - MIN ( DISTINCT - col0 ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-273

onlyif mysql # aggregate syntax: 
query II rowsort label-8601
SELECT ALL 81, COUNT( * ) + + MIN( + col2 ) AS col2 FROM tab0
----
81
13

skipif mysql # not compatible
query II rowsort label-8601
SELECT ALL 81, COUNT ( * ) + + MIN ( + col2 ) AS col2 FROM tab0
----
81
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8602
SELECT ALL - 28 + + col0 * - CAST( NULL AS SIGNED ) - + 40 + + + 81 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL - 28 + + col0 * - CAST ( NULL AS INTEGER ) - + 40 + + + 81 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + - - col1 AS col1 FROM tab1
----
138
65
90

query I rowsort
SELECT 4 - - - 55 FROM tab2 AS cor0
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT + COUNT( DISTINCT + col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8605
SELECT + COUNT ( DISTINCT + col2 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + - col0 FROM tab1 AS cor0 WHERE NULL BETWEEN col1 + - col2 * col1 * + + col0 AND NULL
----

query I rowsort
SELECT DISTINCT - 70 FROM tab2 cor0 WHERE NOT - col2 <= + + col2
----

query I rowsort
SELECT - 3 * ( + - ( - + col0 ) ) AS col2 FROM tab2
----
-138
-192
-225

query I rowsort
SELECT DISTINCT + ( + 8 ) * + 30 AS col2 FROM tab1 AS cor0
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT + SUM( ALL + - col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-8610
SELECT + SUM ( ALL + - col0 ) AS col1 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT DISTINCT + + col1 FROM tab0 cor0 WHERE - col0 = col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) col2 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-8613
SELECT ( + 62 ) DIV - col1 AS col1 FROM tab0 AS cor0
----
-2
-62
0

skipif mysql # not compatible
query I rowsort label-8613
SELECT ( + 62 ) / - col1 AS col1 FROM tab0 AS cor0
----
-2
-62
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 49 / col1 - - + 85 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + ( + col0 ) BETWEEN 56 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8616
SELECT * FROM tab0 WHERE NOT col0 + col0 = + CAST( - col0 AS SIGNED ) * col1 * 5
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8616
SELECT * FROM tab0 WHERE NOT col0 + col0 = + CAST ( - col0 AS INTEGER ) * col1 * 5
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-8617
SELECT col1 * 47 AS col0, + 60 DIV + col2 + + 82 AS col1 FROM tab2
----
2397
84
3149
83
3619
83

skipif mysql # not compatible
query II rowsort label-8617
SELECT col1 * 47 AS col0, + 60 / + col2 + + 82 AS col1 FROM tab2
----
2397
84
3149
83
3619
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT COUNT( DISTINCT - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8618
SELECT COUNT ( DISTINCT - col1 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8619
SELECT DISTINCT - 95 DIV COUNT( * ) AS col0 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-8619
SELECT DISTINCT - 95 / COUNT ( * ) AS col0 FROM tab1
----
-31

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( - col2 ) = ( - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8621
SELECT DISTINCT COUNT( * ) DIV - 85 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8621
SELECT DISTINCT COUNT ( * ) / - 85 FROM tab0
----
0

query I rowsort
SELECT ALL + ( 71 ) + col0 AS col0 FROM tab1
----
122
156
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8623
SELECT ( - CAST( NULL AS SIGNED ) ) * + COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8623
SELECT ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT ( + 23 ) AS col1 FROM tab1 AS cor0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8625
SELECT ALL - MAX( ALL + col2 ) + + 77 + - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8625
SELECT ALL - MAX ( ALL + col2 ) + + 77 + - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT SUM( DISTINCT + col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8626
SELECT SUM ( DISTINCT + col2 ) FROM tab0
----
156

query I rowsort
SELECT - + 2 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT DISTINCT col1 - 73 FROM tab0 AS cor0
----
-52
-72
8

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 20 * - + ( - col1 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - ( col2 ) + col2 + - ( + ( - - col1 ) ) * + col2 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT ALL ( + - col2 ) FROM tab2 AS cor0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT col2 * + + col0, - col0 AS col2, - col0 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 8cbce7baa3a57ed2380acfb4b65c192b

query II rowsort
SELECT DISTINCT - - col1 AS col1, 66 FROM tab2 cor0
----
51
66
67
66
77
66

query II rowsort
SELECT DISTINCT col0 AS col2, col1 FROM tab1 cor0
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT 71 - + COUNT( + - 57 ) - COUNT( * ) AS col1 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-8635
SELECT 71 - + COUNT ( + - 57 ) - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
65

query I rowsort
SELECT ALL - - col2 * - + col1 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8637
SELECT + CAST( 74 AS SIGNED ) * - col0 + - 76 + col0 AS col1 FROM tab0 cor0 WHERE ( NULL IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-8637
SELECT + CAST ( 74 AS INTEGER ) * - col0 + - 76 + col0 AS col1 FROM tab0 cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8638
SELECT DISTINCT - 94 * + - MIN( - + col0 ) DIV COUNT( * ) * + + 50 FROM tab2
----
-117500

skipif mysql # not compatible
query I rowsort label-8638
SELECT DISTINCT - 94 * + - MIN ( - + col0 ) / COUNT ( * ) * + + 50 FROM tab2
----
-117500

query III rowsort
SELECT * FROM tab0 WHERE - col0 - - col0 BETWEEN col0 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 + - col1 AS col2 FROM tab1 WHERE NOT + - col2 IN ( col1 )
----
-110
-115
-64

query I rowsort
SELECT + col0 + + 85 FROM tab1
----
136
170
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8642
SELECT DISTINCT - ( - + ( CAST( NULL AS SIGNED ) ) ) * + col2 * col0 + + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8642
SELECT DISTINCT - ( - + ( CAST ( NULL AS INTEGER ) ) ) * + col2 * col0 + + col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8643
SELECT DISTINCT + ( - 47 ) col1, - COUNT( * ) AS col1 FROM tab1
----
-47
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8643
SELECT DISTINCT + ( - 47 ) col1, - COUNT ( * ) AS col1 FROM tab1
----
-47
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8644
SELECT 82 DIV - COUNT( * ) AS col1 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-8644
SELECT 82 / - COUNT ( * ) AS col1 FROM tab0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8645
SELECT ALL 46 FROM tab1 WHERE NULL BETWEEN - CAST( NULL AS SIGNED ) * + 45 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8645
SELECT ALL 46 FROM tab1 WHERE NULL BETWEEN - CAST ( NULL AS INTEGER ) * + 45 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 28 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE 44 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8647
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE 44 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT DISTINCT + - MIN( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8648
SELECT DISTINCT + - MIN ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8649
SELECT + + CAST( NULL AS SIGNED ) * + ( - + col2 ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8649
SELECT + + CAST ( NULL AS INTEGER ) * + ( - + col2 ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8650
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT ALL + MIN( col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8651
SELECT ALL + MIN ( col1 ) AS col1 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT - SUM( col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-8652
SELECT - SUM ( col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, col2 + col2 AS col0 FROM tab0 cor0
----
-15
94
-87
20
-97
198

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT - COUNT( - col1 ) col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8654
SELECT - COUNT ( - col1 ) col1 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT MIN( DISTINCT col1 ) + + - COUNT( * ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-8655
SELECT MIN ( DISTINCT col1 ) + + - COUNT ( * ) FROM tab0 AS cor0
----
-2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > + + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= + col2 / - col1
----

query I rowsort
SELECT - col1 + - + col2 + 7 FROM tab2 AS cor0
----
-110
-118
-67

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE NULL IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT ALL - COUNT( + - col1 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8660
SELECT ALL - COUNT ( + - col1 ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT col2 * - + col2 + + + col1 AS col2 FROM tab0
----
-2128
-79
-9800

onlyif mysql # DIV for integer division: 
query I rowsort label-8662
SELECT col2 + - + 44 + + 83 - + ( - 42 ) DIV ( + col0 ) DIV + col1 + - 5 col0 FROM tab2
----
57
74
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8662
SELECT col2 + - + 44 + + 83 - + ( - 42 ) / ( + col0 ) / + col1 + - 5 col0 FROM tab2
----
57
74
92

query I rowsort
SELECT ALL 1 * + 91 AS col1 FROM tab1
----
91
91
91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 0 <> - 71
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 * col1 + col2 * + - col0 * + - 15 FROM tab2
----
18471
44329
69739

query III rowsort
SELECT * FROM tab2 WHERE + col0 + + 32 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 42 * - col2 + - + 89 * + 47 + + 65 FROM tab1
----
-6596
-6974
-8150

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8668
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT ALL 91 * - - ( MAX( ALL col0 ) ) + - COUNT( * ) AS col2 FROM tab1
----
8278

skipif mysql # not compatible
query I rowsort label-8669
SELECT ALL 91 * - - ( MAX ( ALL col0 ) ) + - COUNT ( * ) AS col2 FROM tab1
----
8278

query I rowsort
SELECT + + col0 * + col2 * col1 AS col0 FROM tab0 cor0
----
18270
57105
9603

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 / - + 53 ) BETWEEN - col0 AND - 68
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT ALL + COUNT( ALL - 42 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL + COUNT ( ALL - 42 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + 52 * - 7 + 68 * + + col2 FROM tab1
----
3648
4260
6164

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col0 + + col0 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE ( + + col1 + + col0 * + + col2 ) IS NULL
----

query I rowsort
SELECT ALL ( - 64 ) + col2 AS col1 FROM tab1
----
-5
32
4

query I rowsort
SELECT DISTINCT col0 + - - col0 FROM tab0
----
174
194
30

query I rowsort
SELECT ALL - col1 - - + col0 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT - - COUNT( * ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8679
SELECT - - COUNT ( * ) col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8680
SELECT ALL - 36 + - - 17 AS col1, COUNT( * ) AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
-19
0

skipif mysql # not compatible
query II rowsort label-8680
SELECT ALL - 36 + - - 17 AS col1, COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
-19
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8681
SELECT + col0 * CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8681
SELECT + col0 * CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8682
SELECT DISTINCT + col2 * 29 + 43 + - col1 DIV + ( + col1 ) - - ( - col0 ) FROM tab1 AS cor0
----
1668
1923
2775

skipif mysql # not compatible
query I rowsort label-8682
SELECT DISTINCT + col2 * 29 + 43 + - col1 / + ( + col1 ) - - ( - col0 ) FROM tab1 AS cor0
----
1668
1923
2775

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT + MAX( ALL + col0 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8683
SELECT + MAX ( ALL + col0 ) AS col0 FROM tab2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8684
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8684
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= CAST ( - col2 AS INTEGER )
----

query II rowsort
SELECT - col0, + ( + col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51
51
-85
85
-91
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8686
SELECT DISTINCT COUNT( ALL + 2 ) * CAST( NULL AS SIGNED ), MAX( DISTINCT - + 27 ) AS col2 FROM tab2
----
NULL
-27

skipif mysql # not compatible
query II rowsort label-8686
SELECT DISTINCT COUNT ( ALL + 2 ) * CAST ( NULL AS INTEGER ), MAX ( DISTINCT - + 27 ) AS col2 FROM tab2
----
NULL
-27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8687
SELECT ALL * FROM tab1 WHERE + 13 NOT IN ( col2 * + + 88 + - col0 + - - ( - CAST( NULL AS SIGNED ) ) / - - col1 * col1 / col1, + col2 )
----

skipif mysql # not compatible
query III rowsort label-8687
SELECT ALL * FROM tab1 WHERE + 13 NOT IN ( col2 * + + 88 + - col0 + - - ( - CAST ( NULL AS INTEGER ) ) / - - col1 * col1 / col1, + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8688
SELECT - 39 DIV - + ( col2 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8688
SELECT - 39 / - + ( col2 ) FROM tab1
----
0
0
0

query II rowsort
SELECT ALL col1 AS col0, + ( ( + col2 ) ) AS col0 FROM tab1
----
14
96
47
68
5
59

query II rowsort
SELECT DISTINCT col0, - col0 * + 28 AS col1 FROM tab0
----
15
-420
87
-2436
97
-2716

query II rowsort
SELECT col0 AS col2, col1 FROM tab0
----
15
81
87
21
97
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 + + 45 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( + 97 ) FROM tab2 AS cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT ALL MAX( DISTINCT - 56 ) AS col0 FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL MAX ( DISTINCT - 56 ) AS col0 FROM tab1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT ALL 5 + - COUNT( * ) + - + SUM( ALL - 87 ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
779

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL 5 + - COUNT ( * ) + - + SUM ( ALL - 87 ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
779

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT MIN( DISTINCT + + 84 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
84

skipif mysql # not compatible
query I rowsort label-8698
SELECT MIN ( DISTINCT + + 84 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT ALL - COUNT( * ) * - - COUNT( * ) FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8699
SELECT ALL - COUNT ( * ) * - - COUNT ( * ) FROM tab0 cor0
----
-9

query I rowsort
SELECT - - 55 AS col2 FROM tab1 AS cor0
----
55
55
55

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT NULL > 52 * - 3
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 <= - col1 + col2 + - 39
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col2 + 4 + + + 72 AS col2 FROM tab2 AS cor0 WHERE - 43 * - - col1 IS NOT NULL
----
18
36
53

query I rowsort
SELECT ALL col1 * - - 18 FROM tab0
----
1458
18
378

query I rowsort
SELECT DISTINCT + col0 + - - 17 FROM tab1
----
102
108
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT ALL COUNT( * ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8706
SELECT ALL COUNT ( * ) col0 FROM tab2
----
3

query I rowsort
SELECT - col1 * + + 19 + + 2 AS col1 FROM tab1
----
-264
-891
-93

query I rowsort
SELECT col1 * col1 + - 74 + 30 AS col0 FROM tab2
----
2557
4445
5885

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT + 30 + COUNT( * ) AS col2 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-8709
SELECT + 30 + COUNT ( * ) AS col2 FROM tab0
----
33

query I rowsort
SELECT ALL ( + - 82 ) + - - col2 - col2 AS col1 FROM tab0
----
-82
-82
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8711
SELECT ALL + CAST( NULL AS SIGNED ) + + + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8711
SELECT ALL + CAST ( NULL AS INTEGER ) + + + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT ALL MAX( ALL + col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8712
SELECT ALL MAX ( ALL + col1 ) FROM tab1
----
47

query I rowsort
SELECT - 79 * col2 / - - 63 AS col2 FROM tab1 cor0 WHERE NULL = + 78
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 <> - col0 * - col2
----

query I rowsort
SELECT ALL - - 66 * - col1 AS col2 FROM tab2 AS cor0
----
-3366
-4422
-5082

query I rowsort
SELECT DISTINCT - + 28 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT MIN( ALL + 20 ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
20

skipif mysql # not compatible
query I rowsort label-8717
SELECT MIN ( ALL + 20 ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
20

query I rowsort
SELECT ALL 32 + + - 47 AS col2 FROM tab2 cor0
----
-15
-15
-15

query I rowsort
SELECT ALL + + col0 * - col0 AS col0 FROM tab0 cor0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT DISTINCT + COUNT( + col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8720
SELECT DISTINCT + COUNT ( + col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT ALL - 3 - + + ( - + 72 ) AS col1 FROM tab1 AS cor0
----
69
69
69

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT col1 * - 88 AS col2 FROM tab1 AS cor0
----
-1232
-4136
-440

query I rowsort
SELECT + 22 * - 16 + + col0 FROM tab0 AS cor0
----
-255
-265
-337

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8725
SELECT DISTINCT + COUNT( * ) DIV MAX( ALL - + col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8725
SELECT DISTINCT + COUNT ( * ) / MAX ( ALL - + col1 ) FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL + 35 AS col2, + col0 * - - col2 * + 10 FROM tab1 AS cor0
----
35
48960
35
50150
35
61880

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 45 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8728
SELECT DISTINCT + CAST( - 3 AS SIGNED ) * + col1 * + - 18 * + col1 * - 73 AS col0 FROM tab1
----
-772632
-8707878
-98550

skipif mysql # not compatible
query I rowsort label-8728
SELECT DISTINCT + CAST ( - 3 AS INTEGER ) * + col1 * + - 18 * + col1 * - 73 AS col0 FROM tab1
----
-772632
-8707878
-98550

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + - ( + col0 ) < ( + col2 * col0 )
----

query I rowsort
SELECT DISTINCT + col2 * + ( + - col2 ) FROM tab2 AS cor0
----
-1600
-3364
-529

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT DISTINCT - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-8732
SELECT DISTINCT - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT ALL + COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8733
SELECT ALL + COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col2 + - + col0 AS col1 FROM tab0 cor0
----
-196
-62
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 col1 FROM tab1 AS cor0
----
-8
-8
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8737
SELECT - 33 + col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8737
SELECT - 33 + col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab0 AS cor0 WHERE NOT - 90 * - col1 IN ( 33, 88 * - - 74 )
----
10
47
99

query I rowsort
SELECT - 36 + + col2 FROM tab1 AS cor0
----
23
32
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT COUNT( * ) * - COUNT( * ) + + + 31 AS col0 FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-8740
SELECT COUNT ( * ) * - COUNT ( * ) + + + 31 AS col0 FROM tab1 AS cor0
----
22

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 15 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8742
SELECT - col2 + ( + col1 ) + + 51 DIV - - ( - col2 ) FROM tab2 cor0
----
26
36
9

skipif mysql # not compatible
query I rowsort label-8742
SELECT - col2 + ( + col1 ) + + 51 / - - ( - col2 ) FROM tab2 cor0
----
26
36
9

query I rowsort
SELECT col0 + + - col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT + MIN( DISTINCT - col1 ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-8744
SELECT + MIN ( DISTINCT - col1 ) AS col0 FROM tab1
----
-47

query I rowsort
SELECT ALL 21 + - 61 FROM tab2
----
-40
-40
-40

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 * - 56 col1 FROM tab0
----
-123704
-548856
-5600

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 / 0 BETWEEN col0 AND NULL
----

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE + col2 <= - - col0
----
-10

query I rowsort
SELECT ALL 93 - + ( + + col2 ) FROM tab0
----
-6
46
83

query I rowsort
SELECT ( + + col2 ) AS col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT - 62 + - 53 + - col2 AS col0 FROM tab0 AS cor0
----
-125
-162
-214

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 20 * - + 32 * + + 90 * + + ( + col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 79 + + - col1 * col1 AS col2 FROM tab0
----
-520
-6640
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab1 AS cor0 WHERE ( NOT NULL NOT IN ( - 65 + 44 + - + col2, col2 * + ( + col2 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8756
SELECT ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8757
SELECT - 25 DIV + + MIN( col2 ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8757
SELECT - 25 / + + MIN ( col2 ) AS col1 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT - MIN( - col1 ) AS col2 FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-8758
SELECT - MIN ( - col1 ) AS col2 FROM tab2 cor0
----
77

query II rowsort
SELECT - 22 AS col1, col1 FROM tab2 AS cor0
----
-22
51
-22
67
-22
77

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8761
SELECT ALL - 25 * CAST( NULL AS SIGNED ) - + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8761
SELECT ALL - 25 * CAST ( NULL AS INTEGER ) - + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT SUM( + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8762
SELECT SUM ( + col1 ) FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT DISTINCT + SUM( + - ( + + 51 ) ) FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-8763
SELECT DISTINCT + SUM ( + - ( + + 51 ) ) FROM tab1 AS cor0
----
-153

query I rowsort
SELECT ALL - col1 * + + col1 AS col2 FROM tab2 AS cor0
----
-2601
-4489
-5929

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * - col1 - - 63 + - col0 - col1 / - - 99 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT DISTINCT + COUNT( DISTINCT col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8766
SELECT DISTINCT + COUNT ( DISTINCT col0 ) AS col2 FROM tab2
----
3

query II rowsort
SELECT DISTINCT col0 AS col1, col0 FROM tab1
----
51
51
85
85
91
91

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 BETWEEN NULL AND ( - 14 )
----

query I rowsort
SELECT col2 * 30 * - col1 AS col2 FROM tab2
----
-116580
-35190
-92400

query I rowsort
SELECT DISTINCT col0 * - 48 FROM tab0
----
-4176
-4656
-720

onlyif mysql # DIV for integer division: 
query I rowsort label-8771
SELECT DISTINCT 84 DIV - 66 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8771
SELECT DISTINCT 84 / - 66 FROM tab2
----
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT + 51 * + col2 + col2 + - 54 * ( - - col2 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8773
SELECT DISTINCT + col2 DIV + col0 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8773
SELECT DISTINCT + col2 / + col0 AS col2 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8774
SELECT ( 50 ) DIV + + col0 + col0 col0, 21 * - col2 FROM tab1
----
51
-2016
85
-1239
91
-1428

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8774
SELECT ( 50 ) / + + col0 + col0 col0, 21 * - col2 FROM tab1
----
51
-2016
85
-1239
91
-1428

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT ALL - MIN( + 81 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL - MIN ( + 81 ) FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8776
SELECT CAST( + col0 AS SIGNED ) * 61 - + col1 + + + col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( - 98 * 28 * - col2 * - col2 * 26 - - col2 + + col0 + - ( + col0 ) - - col1 + - col0 + + - ( + col1 ) * - 12 )
----

skipif mysql # not compatible
query I rowsort label-8776
SELECT CAST ( + col0 AS INTEGER ) * 61 - + col1 + + + col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( - 98 * 28 * - col2 * - col2 * 26 - - col2 + + col0 + - ( + col0 ) - - col1 + - col0 + + - ( + col1 ) * - 12 )
----

query II rowsort
SELECT DISTINCT + - col1 AS col2, - 60 * + col0 * - 36 FROM tab0 AS cor0
----
-1
209520
-21
187920
-81
32400

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT DISTINCT - COUNT( + col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8778
SELECT DISTINCT - COUNT ( + col1 ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + - ( - - col1 ) - + - col0 + - + col0 * ( + ( - - col0 ) ) col2 FROM tab2
----
-2075
-4045
-5542

query I rowsort
SELECT DISTINCT + 77 * - col1 FROM tab0
----
-1617
-6237
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT + COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8781
SELECT + COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL + + 23 FROM tab0 AS cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT ALL + 38 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL + 38 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8784
SELECT + col0 FROM tab2 WHERE NULL < + CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8784
SELECT + col0 FROM tab2 WHERE NULL < + CAST ( + col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT DISTINCT COUNT( * ) + - 77 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-8785
SELECT DISTINCT COUNT ( * ) + - 77 FROM tab1
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8786
SELECT ALL + CAST( NULL AS SIGNED ) / + ( - - 19 ) + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL + CAST ( NULL AS INTEGER ) / + ( - - 19 ) + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8788
SELECT 16 + - COUNT( * ) * ( - COUNT( * ) ) DIV + COUNT( * ) FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-8788
SELECT 16 + - COUNT ( * ) * ( - COUNT ( * ) ) / + COUNT ( * ) FROM tab2
----
19

query I rowsort
SELECT - ( + 25 ) * col2 + + 10 + + + col1 / + - 64 FROM tab0 WHERE + + col0 + + col1 IS NULL
----

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 - + - 88 col2 FROM tab1 AS cor0
----
147
156
184

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT - 22 - - MAX( - - 49 ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-8792
SELECT - 22 - - MAX ( - - 49 ) FROM tab1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8793
SELECT COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT DISTINCT col0 * - 80 * col2 AS col0 FROM tab2 AS cor0
----
-204800
-348000
-84640

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8795
SELECT ALL - + CAST( NULL AS DECIMAL ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8795
SELECT ALL - + CAST ( NULL AS REAL ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8796
SELECT - - CAST( NULL AS SIGNED ) * + COUNT( * ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8796
SELECT - - CAST ( NULL AS INTEGER ) * + COUNT ( * ) col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - col0 * 92 FROM tab0 cor0 WHERE NOT - 89 IS NOT NULL
----

query I rowsort
SELECT ALL - + 86 AS col0 FROM tab2 AS cor0
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-8799
SELECT + MAX( DISTINCT - col1 ) AS col0, + 14 FROM tab2 AS cor0
----
-51
14

skipif mysql # not compatible
query II rowsort label-8799
SELECT + MAX ( DISTINCT - col1 ) AS col0, + 14 FROM tab2 AS cor0
----
-51
14

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col2 > 79
----
51
14
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 * - + col0 AS col0, col0 * + + col1 + - col1 col0 FROM tab2 cor0
----
-2116
2295
-4096
4851
-5625
4958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8802
SELECT + AVG ( ALL - col1 ) * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8802
SELECT + AVG ( ALL - col1 ) * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 95 * col0 AS col2 FROM tab0
----
1425
8265
9215

query I rowsort
SELECT ALL - + 24 FROM tab0 WHERE NOT NULL BETWEEN + col0 AND NULL
----

query II rowsort
SELECT - 64 AS col2, col1 FROM tab2 AS cor0
----
-64
51
-64
67
-64
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8806
SELECT ALL + - CAST( + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL + - CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8807
SELECT - 32 * - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8807
SELECT - 32 * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT + col1 * + col0 * - + col2 + + + 13 * - 98 - - col2 AS col1, + 32, - col0 + - + col0 AS col1 FROM tab1
----
9 values hashing to e6d47d47d8929c3a3e0aa75bfe0d9e70

query I rowsort
SELECT - + 86 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query II rowsort
SELECT ALL + col2 AS col2, - col2 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8811
SELECT col0 * col0 / - + CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8811
SELECT col0 * col0 / - + CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT DISTINCT + ( COUNT( ALL - col0 ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8812
SELECT DISTINCT + ( COUNT ( ALL - col0 ) ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT col1 * + 3 + + - col2 AS col2 FROM tab1 AS cor0
----
-44
-54
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT DISTINCT + + 82 + - + COUNT( + col0 ) FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-8814
SELECT DISTINCT + + 82 + - + COUNT ( + col0 ) FROM tab0 AS cor0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT ALL + MAX( DISTINCT - col1 ) col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8815
SELECT ALL + MAX ( DISTINCT - col1 ) col2 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT + - ( + col2 ) + + col1 * + - 1 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT DISTINCT + COUNT( * ) * - + SUM( ( col0 ) ) + - SUM( + 13 ) FROM tab1 AS cor0
----
-720

skipif mysql # not compatible
query I rowsort label-8817
SELECT DISTINCT + COUNT ( * ) * - + SUM ( ( col0 ) ) + - SUM ( + 13 ) FROM tab1 AS cor0
----
-720

query I rowsort
SELECT 19 * col0 * + 43 + + ( col0 ) FROM tab2 AS cor0
----
37628
52352
61350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8819
SELECT DISTINCT + - SUM( ALL + col1 ) + CAST( NULL AS SIGNED ) + 42 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8819
SELECT DISTINCT + - SUM ( ALL + col1 ) + CAST ( NULL AS INTEGER ) + 42 AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + + col1 > - 68 * col2 / - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT - COUNT( * ) FROM tab2 WHERE col1 NOT BETWEEN ( + + col2 ) AND + col2 / col0 * col1 - + 13
----
-3

skipif mysql # not compatible
query I rowsort label-8821
SELECT - COUNT ( * ) FROM tab2 WHERE col1 NOT BETWEEN ( + + col2 ) AND + col2 / col0 * col1 - + 13
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + col0 * + + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 72 * col1 + col2 col1 FROM tab1
----
-301
-3316
-912

query I rowsort
SELECT ALL 1 + col1 FROM tab0
----
2
22
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - 20 ) * col2 - - 17 col1 FROM tab1
----
1197
1377
1937

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT + - COUNT( * ) FROM tab1 AS cor0 WHERE col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8826
SELECT + - COUNT ( * ) FROM tab1 AS cor0 WHERE col1 >= NULL
----
0

query I rowsort
SELECT ALL 13 * - - 35 FROM tab1
----
455
455
455

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8828
SELECT + CAST( NULL AS DECIMAL ) * + - 75 + + 21 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8828
SELECT + CAST ( NULL AS REAL ) * + - 75 + + 21 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT 47 * + 74 + - + COUNT( * ) FROM tab0 AS cor0
----
3475

skipif mysql # not compatible
query I rowsort label-8829
SELECT 47 * + 74 + - + COUNT ( * ) FROM tab0 AS cor0
----
3475

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT + + MAX( - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8830
SELECT + + MAX ( - col0 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT ( col2 ) + - + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-23
-26
45

query II rowsort
SELECT col1 AS col2, col1 FROM tab0 cor0
----
1
1
21
21
81
81

query II rowsort
SELECT + - col2 AS col2, col2 FROM tab1 cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT - 77 FROM tab1 AS cor0 WHERE NOT + col1 = NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col2, col2 + - + ( - 80 ) + + 65 FROM tab0 AS cor0
----
-1
244
-21
155
-81
192

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * - col1 / + + ( col1 ) NOT IN ( + 95 + col2 + - - col2, col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 96 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * + 0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT + ( - MIN( ALL - ( + 28 ) ) ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-8839
SELECT + ( - MIN ( ALL - ( + 28 ) ) ) FROM tab0
----
28

query I rowsort
SELECT ( + 19 ) * + 85 FROM tab2
----
1615
1615
1615

onlyif mysql # aggregate syntax: 
query II rowsort label-8841
SELECT ALL COUNT( * ), COUNT( * ) FROM tab2 WHERE NOT NULL > - - col2
----
0
0

skipif mysql # not compatible
query II rowsort label-8841
SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab2 WHERE NOT NULL > - - col2
----
0
0

query I rowsort
SELECT DISTINCT col0 + col2 + col1 FROM tab2
----
120
181
200

query I rowsort
SELECT + col0 * + col0 + col1 AS col0 FROM tab2 AS cor0
----
2167
4173
5692

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8844
SELECT DISTINCT + + col2 + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8844
SELECT DISTINCT + + col2 + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col1 + + + col2 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT 62 + + - ( + - col1 ) + + col1 * - col1 * + + col1 - - + col1 AS col1 FROM tab2 AS cor0
----
-132487
-300567
-456317

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT 7 >= NULL )
----

query II rowsort
SELECT ALL 25 + + 90 AS col1, + 3 + - 84 AS col1 FROM tab0
----
115
-81
115
-81
115
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-8849
SELECT 98 + - + col1 - - col2 * - + ( - + 26 ) - - col1 DIV col2 FROM tab2
----
1062
1540
647

skipif mysql # not compatible
query I rowsort label-8849
SELECT 98 + - + col1 - - col2 * - + ( - + 26 ) - - col1 / col2 FROM tab2
----
1062
1540
647

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 8 col2 FROM tab0
----
105
23
95

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 68 * + 65 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-8852
SELECT + col2 + - 43 + + + col0 DIV - - col1, col1 col1 FROM tab1
----
26
47
33
5
56
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8852
SELECT + col2 + - 43 + + + col0 / - - col1, col1 col1 FROM tab1
----
26
47
33
5
56
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8853
SELECT + CAST( col2 AS SIGNED ) + col1 FROM tab0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-8853
SELECT + CAST ( col2 AS INTEGER ) + col1 FROM tab0
----
100
128
31

query II rowsort
SELECT - col2 AS col1, + 30 * - col0 AS col2 FROM tab1
----
-59
-2550
-68
-2730
-96
-1530

onlyif mysql # DIV for integer division: 
query I rowsort label-8855
SELECT DISTINCT ( - 8 ) DIV 30 * - col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8855
SELECT DISTINCT ( - 8 ) / 30 * - col0 FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8856
SELECT + + CAST( NULL AS SIGNED ), + ( ( col2 ) ) AS col0 FROM tab1 cor0 WHERE NOT + 81 * + col2 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query II rowsort label-8856
SELECT + + CAST ( NULL AS INTEGER ), + ( ( col2 ) ) AS col0 FROM tab1 cor0 WHERE NOT + 81 * + col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8857
SELECT + 65 DIV 17 DIV - SUM( + 35 ) DIV - - COUNT( * ) col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8857
SELECT + 65 / 17 / - SUM ( + 35 ) / - - COUNT ( * ) col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8858
SELECT + COUNT( * ) * CAST( + 32 AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
288

skipif mysql # not compatible
query I rowsort label-8858
SELECT + COUNT ( * ) * CAST ( + 32 AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
288

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT DISTINCT - COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8860
SELECT DISTINCT - COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8861
SELECT ALL + + col1 * - CAST( NULL AS SIGNED ) col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8861
SELECT ALL + + col1 * - CAST ( NULL AS INTEGER ) col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( 24 ) FROM tab1 AS cor0
----
24

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND col2 + - col0 - + + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 77 + + ( - - 67 ) NOT BETWEEN + 61 * + 96 * 5 / + col0 AND + + 41
----

query I rowsort
SELECT ALL + 18 AS col2 FROM tab1 cor0
----
18
18
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8866
SELECT col2, + 50 + + CAST( NULL AS SIGNED ) + 64 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-8866
SELECT col2, + 50 + + CAST ( NULL AS INTEGER ) + 64 FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8867
SELECT - 14, + 11 * CAST( - col2 AS SIGNED ) * - + col0 * + + col0 AS col0 FROM tab0 WHERE NOT - - col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-8867
SELECT - 14, + 11 * CAST ( - col2 AS INTEGER ) * - + col0 * + + col0 AS col0 FROM tab0 WHERE NOT - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8868
SELECT DISTINCT - COUNT( * ) DIV + 33 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8868
SELECT DISTINCT - COUNT ( * ) / + 33 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT - COUNT( DISTINCT + + 35 ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8869
SELECT - COUNT ( DISTINCT + + 35 ) AS col0 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT ALL MIN( ALL + col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8870
SELECT ALL MIN ( ALL + col2 ) FROM tab2
----
23

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 > - + col2 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT - + ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8872
SELECT - + ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT + + COUNT( * ) * - - 55 AS col0 FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-8873
SELECT + + COUNT ( * ) * - - 55 AS col0 FROM tab0 AS cor0
----
165

query I rowsort
SELECT - col1 + + 50 FROM tab2 AS cor0
----
-1
-17
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT + + COUNT( DISTINCT + - col1 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8875
SELECT + + COUNT ( DISTINCT + - col1 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT MIN( ALL + + col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8876
SELECT MIN ( ALL + + col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT - ( - + COUNT( * ) ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8877
SELECT - ( - + COUNT ( * ) ) col2 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8878
SELECT DISTINCT + 16 DIV + + 5 + col0 * - - col2 + - + col2 FROM tab2 AS cor0
----
1038
2523
4295

skipif mysql # not compatible
query I rowsort label-8878
SELECT DISTINCT + 16 / + + 5 + col0 * - - col2 + - + col2 FROM tab2 AS cor0
----
1038
2523
4295

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT ALL - - COUNT( * ) * + 87 AS col0 FROM tab0 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-8879
SELECT ALL - - COUNT ( * ) * + 87 AS col0 FROM tab0 AS cor0
----
261

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= + 51
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 - 32 IS NOT NULL
----

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 - - col0 * - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT ALL + - COUNT( DISTINCT col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL + - COUNT ( DISTINCT col1 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8885
SELECT COUNT( col2 ) DIV - 25 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8885
SELECT COUNT ( col2 ) / - 25 AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL 8 * col0 AS col1 FROM tab2
----
368
512
600

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT + ( COUNT( * ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8887
SELECT + ( COUNT ( * ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8888
SELECT DISTINCT CAST( + col0 AS SIGNED ) AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8888
SELECT DISTINCT CAST ( + col0 AS INTEGER ) AS col1 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8889
SELECT DISTINCT + col0 * + col2 * CAST( col2 AS SIGNED ) FROM tab1
----
295885
420784
470016

skipif mysql # not compatible
query I rowsort label-8889
SELECT DISTINCT + col0 * + col2 * CAST ( col2 AS INTEGER ) FROM tab1
----
295885
420784
470016

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 <> col0 * + col0 + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8891
SELECT col2 DIV - + 77 col0 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8891
SELECT col2 / - + 77 col0 FROM tab1 cor0
----
-1
0
0

query I rowsort
SELECT + col2 * - col0 AS col1 FROM tab2 WHERE NOT + + col0 * - - col0 IS NOT NULL
----

query II rowsort
SELECT ALL 60, + col0 FROM tab1
----
60
51
60
85
60
91

onlyif mysql # aggregate syntax: 
query II rowsort label-8894
SELECT COUNT( * ) AS col1, COUNT( * ) * + + 23 col1 FROM tab2
----
3
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8894
SELECT COUNT ( * ) AS col1, COUNT ( * ) * + + 23 col1 FROM tab2
----
3
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8895
SELECT 85 DIV col1 - + col2 FROM tab0 AS cor0
----
-14
-46
-6

skipif mysql # not compatible
query I rowsort label-8895
SELECT 85 / col1 - + col2 FROM tab0 AS cor0
----
-14
-46
-6

query I rowsort
SELECT col0 * - - ( col1 ) FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8897
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 / col1 - - CAST( NULL AS DECIMAL ) + - - 63 + col2 * + col1 * + 33 = NULL
----

skipif mysql # not compatible
query III rowsort label-8897
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 / col1 - - CAST ( NULL AS REAL ) + - - 63 + col2 * + col1 * + 33 = NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT COUNT( * ) * 74 AS col2 FROM tab0 cor0
----
222

skipif mysql # not compatible
query I rowsort label-8899
SELECT COUNT ( * ) * 74 AS col2 FROM tab0 cor0
----
222

query I rowsort
SELECT ALL ( - - col2 ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT DISTINCT - COUNT( * ) + 75 * 97 + - + 45 AS col0 FROM tab1
----
7227

skipif mysql # not compatible
query I rowsort label-8901
SELECT DISTINCT - COUNT ( * ) + 75 * 97 + - + 45 AS col0 FROM tab1
----
7227

query I rowsort
SELECT ALL + col2 + + ( col0 ) * + col1 * ( + + 25 ) FROM tab1 WHERE - col1 IS NOT NULL
----
10684
106993
17946

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8903
SELECT - col2 FROM tab1 WHERE NOT 82 >= + + CAST( + - 73 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8903
SELECT - col2 FROM tab1 WHERE NOT 82 >= + + CAST ( + - 73 AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 63 + - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8905
SELECT ALL - 50 DIV + - col0 + + ( + + 53 ) FROM tab2
----
53
53
54

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL - 50 / + - col0 + + ( + + 53 ) FROM tab2
----
53
53
54

query I rowsort
SELECT ALL + 25 AS col2 FROM tab1
----
25
25
25

query I rowsort
SELECT + 52 FROM tab0 WHERE NULL <= + + col1 * - ( 69 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * + - 31 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 + + + 4 FROM tab1
----
100
63
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 66 col0 FROM tab0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-8911
SELECT - 85 DIV - col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8911
SELECT - 85 / - col0 FROM tab1
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT COUNT( * ) * - + 1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8912
SELECT COUNT ( * ) * - + 1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8913
SELECT - 12 DIV - COUNT( DISTINCT 11 ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-8913
SELECT - 12 / - COUNT ( DISTINCT 11 ) FROM tab2
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 4 col0 FROM tab1
----
-4
-4
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 - col0 + 76 col0 FROM tab1
----
48
54
88

query I rowsort
SELECT + - 82 AS col2 FROM tab2 AS cor0 WHERE col0 BETWEEN + + 23 * - - col1 / 67 * - + ( + col2 ) * - + 85 AND 26 - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 84 / - - col2 + 96 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT DISTINCT MIN( + 75 ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8918
SELECT DISTINCT MIN ( + 75 ) FROM tab1 AS cor0
----
75

query I rowsort
SELECT DISTINCT - 92 * + - 37 FROM tab0 cor0 WHERE NOT col2 + - col2 <> col2 * + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8920
SELECT + col1 DIV - - col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8920
SELECT + col1 / - - col1 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8921
SELECT 90 * CAST( NULL AS SIGNED ) * col1 * + - 87 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8921
SELECT 90 * CAST ( NULL AS INTEGER ) * col1 * + - 87 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT DISTINCT MAX( DISTINCT 75 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8922
SELECT DISTINCT MAX ( DISTINCT 75 ) AS col0 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT DISTINCT SUM( DISTINCT - 6 ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT SUM ( DISTINCT - 6 ) FROM tab1
----
-6

query I rowsort
SELECT ALL + + 95 AS col2 FROM tab1 WHERE + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= + col2 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 99 * + col1 col1, 45 * col0 FROM tab1
----
1386
2295
4653
4095
495
3825

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT DISTINCT COUNT( col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8927
SELECT DISTINCT COUNT ( col2 ) AS col2 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 / + 75 * col1 * - + col1 IS NULL
----

query I rowsort
SELECT - ( + 96 ) FROM tab2 AS cor0
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT DISTINCT ( + COUNT( * ) ) AS col2 FROM tab1 cor0 WHERE NOT col0 + - + 84 * - + col1 NOT BETWEEN - + col2 / + col1 AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-8930
SELECT DISTINCT ( + COUNT ( * ) ) AS col2 FROM tab1 cor0 WHERE NOT col0 + - + 84 * - + col1 NOT BETWEEN - + col2 / + col1 AND + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT DISTINCT ( - COUNT( * ) ) FROM tab2 AS cor0 WHERE col2 <= - 27
----
0

skipif mysql # not compatible
query I rowsort label-8931
SELECT DISTINCT ( - COUNT ( * ) ) FROM tab2 AS cor0 WHERE col2 <= - 27
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8932
SELECT - + ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8932
SELECT - + ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT COUNT( * ) * - 31 FROM tab0, tab2 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-8933
SELECT COUNT ( * ) * - 31 FROM tab0, tab2 AS cor0
----
-279

onlyif mysql # DIV for integer division: 
query I rowsort label-8934
SELECT DISTINCT - col1 DIV ( - col2 ) DIV + col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8934
SELECT DISTINCT - col1 / ( - col2 ) / + col1 FROM tab0 cor0
----
0

query I rowsort
SELECT - + col2 * + 87 FROM tab0 AS cor0
----
-4089
-8613
-870

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * col2 + + ( - 35 ) + + col2 * - 50 + - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8937
SELECT ALL - - 12 DIV - - 36 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8937
SELECT ALL - - 12 / - - 36 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 27 * - - 63 FROM tab2 AS cor0
----
-1701
-1701
-1701

query I rowsort
SELECT DISTINCT - 95 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT + 16 * - COUNT( * ) + - 96 AS col0 FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-8940
SELECT + 16 * - COUNT ( * ) + - 96 AS col0 FROM tab2 AS cor0
----
-144

query I rowsort
SELECT col0 * + col2 + - - col1 FROM tab0 AS cor0
----
786
891
9604

query I rowsort
SELECT col1 + - - 90 AS col0 FROM tab0 cor0
----
111
171
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 / + col1 IN ( - col2 * - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + + col0, col1 + + col0 - - col0 FROM tab1 AS cor0
----
51
116
85
175
91
229

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT 58 * SUM( col0 ) + - 94 * - + COUNT( * ) FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
11012

skipif mysql # not compatible
query I rowsort label-8945
SELECT 58 * SUM ( col0 ) + - 94 * - + COUNT ( * ) FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
11012

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8946
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) > col2 / + + col2 + - 59 * + col2 + + ( col2 )
----

skipif mysql # not compatible
query III rowsort label-8946
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) > col2 / + + col2 + - 59 * + col2 + + ( col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8947
SELECT - - COUNT( CAST( NULL AS SIGNED ) ) + - 25 AS col2 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-8947
SELECT - - COUNT ( CAST ( NULL AS INTEGER ) ) + - 25 AS col2 FROM tab0 AS cor0
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8948
SELECT ALL + CAST( - + COUNT( * ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8948
SELECT ALL + CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab2
----
-3

query I rowsort
SELECT + col0 FROM tab0 WHERE col1 = NULL
----

query I rowsort
SELECT ALL ( + - col2 ) + + col2 + col2 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8951
SELECT ALL col0 + - + col1 * col0 * - CAST( ( - - 33 ) AS SIGNED ) + + 31 FROM tab0
----
3329
40141
60409

skipif mysql # not compatible
query I rowsort label-8951
SELECT ALL col0 + - + col1 * col0 * - CAST ( ( - - 33 ) AS INTEGER ) + + 31 FROM tab0
----
3329
40141
60409

query I rowsort
SELECT ALL - 55 + col1 FROM tab0
----
-34
-54
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT ALL ( COUNT( * ) ) + - 3 + - MAX( DISTINCT + 83 ) * 83 AS col2 FROM tab2
----
-6889

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL ( COUNT ( * ) ) + - 3 + - MAX ( DISTINCT + 83 ) * 83 AS col2 FROM tab2
----
-6889

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT ( + MIN( - col2 ) ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8954
SELECT ( + MIN ( - col2 ) ) AS col0 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE ( - col0 IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-8955
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE ( - col0 IS NOT NULL )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
40
58

query I rowsort
SELECT 67 - + - 81 FROM tab2 AS cor0
----
148
148
148

onlyif mysql # DIV for integer division: 
query I rowsort label-8958
SELECT + 84 DIV + - col1 + - col1 + - 13 FROM tab2 AS cor0
----
-65
-81
-91

skipif mysql # not compatible
query I rowsort label-8958
SELECT + 84 / + - col1 + - col1 + - 13 FROM tab2 AS cor0
----
-65
-81
-91

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NULL IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT + + col1 + + col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8961
SELECT DISTINCT * FROM tab1 WHERE NOT 11 NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8961
SELECT DISTINCT * FROM tab1 WHERE NOT 11 NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8962
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT DISTINCT - COUNT( * ) * COUNT( * ) - + COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-12

skipif mysql # not compatible
query I rowsort label-8963
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) - + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT ALL + + ( - - 65 ) * - + COUNT( * ) * - - 26 + + COUNT( * ) - + SUM( ALL + - col1 ) FROM tab2 AS cor0
----
-4872

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL + + ( - - 65 ) * - + COUNT ( * ) * - - 26 + + COUNT ( * ) - + SUM ( ALL + - col1 ) FROM tab2 AS cor0
----
-4872

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT ALL + + 75 - SUM( ALL - ( - col2 ) ) FROM tab1 AS cor0
----
-148

skipif mysql # not compatible
query I rowsort label-8965
SELECT ALL + + 75 - SUM ( ALL - ( - col2 ) ) FROM tab1 AS cor0
----
-148

query I rowsort
SELECT + 71 AS col0 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
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-8967
SELECT + COUNT ( * ) col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8968
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( - 10 AS SIGNED ) - + - col0 > + - 76
----

skipif mysql # not compatible
query III rowsort label-8968
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( - 10 AS INTEGER ) - + - col0 > + - 76
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8969
SELECT ALL SUM( - col1 ) FROM tab1 WHERE NOT - col0 <> + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8969
SELECT ALL SUM ( - col1 ) FROM tab1 WHERE NOT - col0 <> + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8970
SELECT - col2 DIV + col1 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8970
SELECT - col2 / + col1 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT 60 * - ( + col0 ) FROM tab1
----
-3060
-5100
-5460

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT DISTINCT - ( - SUM( + col0 ) ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT - ( - SUM ( + col0 ) ) AS col1 FROM tab2
----
185

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col1 AS col1, 17 AS col1 FROM tab0
----
-1
17
-21
17
-81
17

query II rowsort
SELECT DISTINCT + col2, + col1 AS col1 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8976
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8976
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1
----
-3

query I rowsort
SELECT - 1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab1 cor0 WHERE NOT col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT DISTINCT + MIN( + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8979
SELECT DISTINCT + MIN ( + col1 ) FROM tab1 AS cor0
----
5

query II rowsort
SELECT DISTINCT - col0, ( + col2 ) AS col1 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8981
SELECT - CAST( NULL AS SIGNED ), + col2 * 11 * col2 AS col2 FROM tab2 AS cor0
----
NULL
17600
NULL
37004
NULL
5819

skipif mysql # not compatible
query II rowsort label-8981
SELECT - CAST ( NULL AS INTEGER ), + col2 * 11 * col2 AS col2 FROM tab2 AS cor0
----
NULL
17600
NULL
37004
NULL
5819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8982
SELECT + CAST( 75 AS SIGNED ) + - 92 col2 FROM tab1 WHERE ( NULL ) <> col1 * - col2 + + ( col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8982
SELECT + CAST ( 75 AS INTEGER ) + - 92 col2 FROM tab1 WHERE ( NULL ) <> col1 * - col2 + + ( col1 )
----

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NOT - col2 = + col0 + + col0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT COUNT( + ( col1 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8984
SELECT COUNT ( + ( col1 ) ) FROM tab0
----
3

query I rowsort
SELECT ALL col2 * 69 AS col0 FROM tab1
----
4071
4692
6624

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT COUNT( * ) FROM tab1 WHERE NOT col0 * col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8987
SELECT COUNT ( * ) FROM tab1 WHERE NOT col0 * col0 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 + - col0 col1 FROM tab0
----
-60
-70
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT + MAX( DISTINCT 65 ) FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-8989
SELECT + MAX ( DISTINCT 65 ) FROM tab1
----
65

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE + col1 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT + SUM( - 48 ) AS col2 FROM tab0
----
-144

skipif mysql # not compatible
query I rowsort label-8991
SELECT + SUM ( - 48 ) AS col2 FROM tab0
----
-144

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col0 ) NOT BETWEEN col2 * col2 AND col2 * col0 - col1 * col1
----

query I rowsort
SELECT + 51 - + col1 AS col1 FROM tab1
----
37
4
46

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8995
SELECT * FROM tab0 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8995
SELECT * FROM tab0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8996
SELECT DISTINCT col0 * - col0 FROM tab2 WHERE NOT + 59 + CAST( col1 + - col2 AS SIGNED ) <= col2
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-8996
SELECT DISTINCT col0 * - col0 FROM tab2 WHERE NOT + 59 + CAST ( col1 + - col2 AS INTEGER ) <= col2
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8997
SELECT ALL - COUNT( - col0 ) AS col1 FROM tab1 WHERE NOT col2 + CAST( NULL AS DECIMAL ) * col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8997
SELECT ALL - COUNT ( - col0 ) AS col1 FROM tab1 WHERE NOT col2 + CAST ( NULL AS REAL ) * col0 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT DISTINCT COUNT( + 13 ) FROM tab0 WHERE ( + col1 ) BETWEEN NULL AND ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8998
SELECT DISTINCT COUNT ( + 13 ) FROM tab0 WHERE ( + col1 ) BETWEEN NULL AND ( - col0 )
----
0

query I rowsort
SELECT ALL + col1 + + 70 AS col1 FROM tab1
----
117
75
84

query I rowsort
SELECT ALL - col0 - col1 * - col0 FROM tab2
----
2300
4864
4950

query I rowsort
SELECT ( col2 ) + 49 AS col1 FROM tab2
----
107
72
89

query I rowsort
SELECT col0 + col2 * 16 AS col1 FROM tab0
----
1681
247
767

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 col2 FROM tab1
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-9004
SELECT col0 + - 36 DIV ( col2 ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9004
SELECT col0 + - 36 / ( col2 ) FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT DISTINCT - COUNT( * ) + 54 AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-9005
SELECT DISTINCT - COUNT ( * ) + 54 AS col2 FROM tab1
----
51

query I rowsort
SELECT ( col0 ) * 18 FROM tab1
----
1530
1638
918

query I rowsort
SELECT col0 + col0 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( col1 * + col1 )
----

query I rowsort
SELECT DISTINCT + col2 * col2 FROM tab1 WHERE ( col0 ) IS NOT NULL
----
3481
4624
9216

query III rowsort
SELECT * FROM tab1 WHERE ( - 92 ) NOT BETWEEN NULL AND 60 * + col0
----

query I rowsort
SELECT ALL + 74 * col1 AS col2 FROM tab1
----
1036
3478
370

query I rowsort
SELECT ALL ( + col2 ) FROM tab2 WHERE NULL BETWEEN - col1 + - col2 AND ( col2 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT DISTINCT MIN( 61 ) + + COUNT( * ) FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-9012
SELECT DISTINCT MIN ( 61 ) + + COUNT ( * ) FROM tab1 AS cor0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9013
SELECT + CAST( NULL AS SIGNED ) * - col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9013
SELECT + CAST ( NULL AS INTEGER ) * - col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9015
SELECT ALL + col2 DIV ( 9 ) + - 83 FROM tab1
----
-73
-76
-77

skipif mysql # not compatible
query I rowsort label-9015
SELECT ALL + col2 / ( 9 ) + - 83 FROM tab1
----
-73
-76
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT 96 - COUNT( DISTINCT + col1 ) FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-9016
SELECT 96 - COUNT ( DISTINCT + col1 ) FROM tab1
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-9017
SELECT ALL ( col0 ) DIV 78 AS col2 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL ( col0 ) / 78 AS col2 FROM tab0
----
0
1
1

query I rowsort
SELECT ALL 46 FROM tab1 cor0 CROSS JOIN tab2
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT DISTINCT - col1 * + col0 + - col1 AS col0 FROM tab2
----
-2397
-5005
-5092

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT DISTINCT + ( COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9020
SELECT DISTINCT + ( COUNT ( * ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL ( + col2 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
59
68
96

query I rowsort
SELECT ALL + ( + 59 ) FROM tab2 cor0
----
59
59
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9023
SELECT ALL - col2 DIV - col1 AS col1 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-9023
SELECT ALL - col2 / - col1 AS col1 FROM tab1 AS cor0
----
1
11
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
51
85
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( col1 ) ) NOT BETWEEN ( - 75 ) AND ( - 88 )
----

query I rowsort
SELECT DISTINCT + - 55 AS col2 FROM tab0 cor0
----
-55

query I rowsort
SELECT 49 * 42 FROM tab2
----
2058
2058
2058

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT ALL MAX( - col0 ) AS col1 FROM tab2 WHERE + col1 - 89 IN ( 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9028
SELECT ALL MAX ( - col0 ) AS col1 FROM tab2 WHERE + col1 - 89 IN ( 39 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 8 col1 FROM tab2
----
368
512
600

onlyif mysql # DIV for integer division: 
query I rowsort label-9030
SELECT col2 DIV + 11 FROM tab1
----
5
6
8

skipif mysql # not compatible
query I rowsort label-9030
SELECT col2 / + 11 FROM tab1
----
5
6
8

query I rowsort
SELECT 90 * 96 * 88 AS col1 FROM tab2
----
760320
760320
760320

onlyif mysql # DIV for integer division: 
query I rowsort label-9032
SELECT ALL + 61 DIV 15 FROM tab1
----
4
4
4

skipif mysql # not compatible
query I rowsort label-9032
SELECT ALL + 61 / 15 FROM tab1
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9033
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-9033
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 * + 40 col2 FROM tab1
----
3920
3920
3920

query III rowsort
SELECT * FROM tab0 WHERE NOT 0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE ( + col2 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT ALL - ( - - MIN( DISTINCT 90 ) ) FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL - ( - - MIN ( DISTINCT 90 ) ) FROM tab1 AS cor0
----
-90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 / - 52 IS NULL
----

query I rowsort
SELECT ( - 97 ) FROM tab2
----
-97
-97
-97

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 16 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9042
SELECT - col2 / CAST( NULL AS SIGNED ) + - - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9042
SELECT - col2 / CAST ( NULL AS INTEGER ) + - - col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 + col1 * - col2 ) < + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9044
SELECT + + 0 + - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9044
SELECT + + 0 + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT ALL COUNT( + 32 ) FROM tab2 AS cor0 WHERE NOT ( + col2 * - col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9045
SELECT ALL COUNT ( + 32 ) FROM tab2 AS cor0 WHERE NOT ( + col2 * - col0 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT - COUNT( * ) + + + COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9046
SELECT - COUNT ( * ) + + + COUNT ( * ) FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9047
SELECT + + CAST( NULL AS SIGNED ) + + col0 col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9047
SELECT + + CAST ( NULL AS INTEGER ) + + col0 col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - col2 ) + - col1 + col1 FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9049
SELECT CAST( + col2 AS SIGNED ) col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9049
SELECT CAST ( + col2 AS INTEGER ) col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT + 37 FROM tab2 AS cor0 WHERE ( - col2 - col1 ) < NULL OR - col1 IS NOT NULL
----
37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9051
SELECT ALL + CAST( 16 AS SIGNED ) * col1 DIV + ( col0 ) FROM tab2
----
14
17
19

skipif mysql # not compatible
query I rowsort label-9051
SELECT ALL + CAST ( 16 AS INTEGER ) * col1 / + ( col0 ) FROM tab2
----
14
17
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9052
SELECT DISTINCT + col2 + + CAST( NULL AS SIGNED ) + + - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9052
SELECT DISTINCT + col2 + + CAST ( NULL AS INTEGER ) + + - col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9053
SELECT DISTINCT * FROM tab0 WHERE ( + CAST( NULL AS DECIMAL ) * - - col2 * col1 ) > NULL
----

skipif mysql # not compatible
query III rowsort label-9053
SELECT DISTINCT * FROM tab0 WHERE ( + CAST ( NULL AS REAL ) * - - col2 * col1 ) > NULL
----

query I rowsort
SELECT ALL + col2 * col0 FROM tab2 WHERE col0 NOT IN ( col0 - col1 )
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9055
SELECT ALL - CAST( NULL AS SIGNED ) - 84 * col0 AS col1 FROM tab2 WHERE NOT + - 81 <= 44 * + col0 + - col1
----

skipif mysql # not compatible
query I rowsort label-9055
SELECT ALL - CAST ( NULL AS INTEGER ) - 84 * col0 AS col1 FROM tab2 WHERE NOT + - 81 <= 44 * + col0 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT DISTINCT + ( - - COUNT( * ) ) + - + COUNT( ALL ( col0 ) ) * MAX( DISTINCT col2 * + col2 ) AS col1 FROM tab2
----
-10089

skipif mysql # not compatible
query I rowsort label-9056
SELECT DISTINCT + ( - - COUNT ( * ) ) + - + COUNT ( ALL ( col0 ) ) * MAX ( DISTINCT col2 * + col2 ) AS col1 FROM tab2
----
-10089

query I rowsort
SELECT col2 - - 97 AS col1 FROM tab0
----
107
144
196

onlyif mysql # DIV for integer division: 
query I rowsort label-9058
SELECT ALL + col1 * col1 - - ( - col2 ) + + col0 DIV col2 FROM tab0 AS cor0
----
-98
439
6514

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL + col1 * col1 - - ( - col2 ) + + col0 / col2 FROM tab0 AS cor0
----
-98
439
6514

query I rowsort
SELECT + + col2 - - 57 FROM tab0 AS cor0
----
104
156
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 26 col1 FROM tab1 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT - COUNT( * ) * - COUNT( * ) * 83 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9061
SELECT - COUNT ( * ) * - COUNT ( * ) * 83 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 - 0 col2, 10 FROM tab1 AS cor0
----
51
10
85
10
91
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT + + COUNT( + + ( + 49 ) ) + COUNT( * ) FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-9063
SELECT + + COUNT ( + + ( + 49 ) ) + COUNT ( * ) FROM tab1 cor0
----
6

query I rowsort
SELECT ALL + 83 * + + ( + col2 ) AS col0 FROM tab1 AS cor0
----
4897
5644
7968

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col0 ) AND ( + ( - col0 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 64 * - col2 BETWEEN 28 AND col1 * 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT + - MAX( 50 ) AS col0 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-9067
SELECT + - MAX ( 50 ) AS col0 FROM tab0 AS cor0
----
-50

query I rowsort
SELECT ALL - col0 * - col2 - col0 * 36 * - 74 * ( + ( 47 ) ) AS col0 FROM tab1 AS cor0
----
10647695
11400116
6390504

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * - 40 FROM tab0 cor0
----
-360

skipif mysql # not compatible
query I rowsort label-9070
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * - 40 FROM tab0 cor0
----
-360

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 * - 76 + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT DISTINCT 23 * - + ( + 13 ) * - MAX( DISTINCT + ( - col0 ) ) + MIN( DISTINCT col1 ) AS col1 FROM tab1
----
-15244

skipif mysql # not compatible
query I rowsort label-9072
SELECT DISTINCT 23 * - + ( + 13 ) * - MAX ( DISTINCT + ( - col0 ) ) + MIN ( DISTINCT col1 ) AS col1 FROM tab1
----
-15244

onlyif mysql # DIV for integer division: 
query II rowsort label-9073
SELECT col2 AS col1, col2 DIV col2 AS col0 FROM tab2
----
23
1
40
1
58
1

skipif mysql # not compatible
query II rowsort label-9073
SELECT col2 AS col1, col2 / col2 AS col0 FROM tab2
----
23
1
40
1
58
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 19 + 42 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT ALL MIN( ALL + + col1 ) col0 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9075
SELECT ALL MIN ( ALL + + col1 ) col0 FROM tab2
----
51

query I rowsort
SELECT ALL + + col2 * - col1 * col2 FROM tab2 WHERE - 57 / + col1 IS NOT NULL
----
-123200
-225388
-26979

query I rowsort
SELECT ALL + - 7 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-7
-7
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9078
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9079
SELECT DISTINCT - CAST( - 50 AS DECIMAL ) * - 64 / - CAST( NULL AS SIGNED ) * 74 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9079
SELECT DISTINCT - CAST ( - 50 AS REAL ) * - 64 / - CAST ( NULL AS INTEGER ) * 74 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT DISTINCT - MIN( - col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9080
SELECT DISTINCT - MIN ( - col1 ) AS col0 FROM tab0 AS cor0
----
81

query I rowsort
SELECT DISTINCT - 51 * col1 AS col1 FROM tab2 AS cor0 WHERE col1 IN ( col2 / + - col0, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT 55 + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
46

skipif mysql # not compatible
query I rowsort label-9082
SELECT 55 + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT 43 * COUNT( * ) FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-9083
SELECT 43 * COUNT ( * ) FROM tab2
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-9084
SELECT DISTINCT + - ( col2 ) + 96 + col0 DIV + col0 FROM tab1 cor0
----
1
29
38

skipif mysql # not compatible
query I rowsort label-9084
SELECT DISTINCT + - ( col2 ) + 96 + col0 / + col0 FROM tab1 cor0
----
1
29
38

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - - col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9086
SELECT 5 * + CAST( NULL AS SIGNED ) + - - MAX( ALL col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9086
SELECT 5 * + CAST ( NULL AS INTEGER ) + - - MAX ( ALL col2 ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT - 92 + + col0 - 95, col0 FROM tab1
----
-102
85
-136
51
-96
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9088
SELECT SUM( col1 ) + - COUNT( * ) AS col0, - 70 FROM tab2
----
192
-70

skipif mysql # not compatible
query II rowsort label-9088
SELECT SUM ( col1 ) + - COUNT ( * ) AS col0, - 70 FROM tab2
----
192
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9089
SELECT ALL 14 * + COUNT( col1 ) + - - CAST( - 97 AS SIGNED ) FROM tab1
----
-55

skipif mysql # not compatible
query I rowsort label-9089
SELECT ALL 14 * + COUNT ( col1 ) + - - CAST ( - 97 AS INTEGER ) FROM tab1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT COUNT( * ) + - MIN( DISTINCT - col0 ) AS col2 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-9090
SELECT COUNT ( * ) + - MIN ( DISTINCT - col0 ) AS col2 FROM tab2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9091
SELECT DISTINCT 72 * CAST( + COUNT( * ) AS SIGNED ) + - 63 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-9091
SELECT DISTINCT 72 * CAST ( + COUNT ( * ) AS INTEGER ) + - 63 FROM tab1
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-9092
SELECT - col1 + + + col1 DIV - col1 + - - col1 - + - col2 * + ( ( - 63 ) ) AS col2 FROM tab0
----
-2962
-6238
-631

skipif mysql # not compatible
query I rowsort label-9092
SELECT - col1 + + + col1 / - col1 + - - col1 - + - col2 * + ( ( - 63 ) ) AS col2 FROM tab0
----
-2962
-6238
-631

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 ) >= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9094
SELECT * FROM tab2 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9094
SELECT * FROM tab2 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT ALL 57 - + + 69 FROM tab2 cor0
----
-12
-12
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 col0 FROM tab2 AS cor0
----
35

query I rowsort
SELECT ALL + + col2 FROM tab0 AS cor0 WHERE + col1 NOT IN ( + col2, col2 )
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9098
SELECT col2 * CAST( + 65 AS SIGNED ) FROM tab0
----
3055
6435
650

skipif mysql # not compatible
query I rowsort label-9098
SELECT col2 * CAST ( + 65 AS INTEGER ) FROM tab0
----
3055
6435
650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9099
SELECT ALL + CAST( - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) <> col2 - - - col1
----

skipif mysql # not compatible
query I rowsort label-9099
SELECT ALL + CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) <> col2 - - - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 / col1 NOT IN ( + 34 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9101
SELECT ALL col1 DIV col0 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9101
SELECT ALL col1 / col0 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL - - 63 * - + col1 AS col2 FROM tab0 AS cor0
----
-1323
-5103
-63

query I rowsort
SELECT - - ( - + 24 ) AS col2 FROM tab2 AS cor0
----
-24
-24
-24

query I rowsort
SELECT + col1 * + - 19 AS col1 FROM tab2
----
-1273
-1463
-969

query I rowsort
SELECT ALL + col0 * + 22 AS col2 FROM tab1
----
1122
1870
2002

onlyif mysql # DIV for integer division: 
query II rowsort label-9106
SELECT DISTINCT 51, + 20 DIV 47 * 57 AS col0 FROM tab1
----
51
0

skipif mysql # not compatible
query II rowsort label-9106
SELECT DISTINCT 51, + 20 / 47 * 57 AS col0 FROM tab1
----
51
0

query I rowsort
SELECT - col1 * - + col0 * + col1 * - col0 FROM tab2
----
-24285184
-25250625
-5503716

query I rowsort
SELECT - col0 * - - 31 FROM tab0
----
-2697
-3007
-465

query II rowsort
SELECT col1 AS col1, + col0 FROM tab2 WHERE NOT + + col1 / - col0 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9110
SELECT DISTINCT + 78 * - - col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9110
SELECT DISTINCT + 78 * - - col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT + COUNT( * ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9111
SELECT + COUNT ( * ) AS col0 FROM tab0 cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL BETWEEN NULL AND - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9113
SELECT ALL - COUNT( * ) DIV + 59 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9113
SELECT ALL - COUNT ( * ) / + 59 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9114
SELECT CAST( NULL AS SIGNED ) * col0 * + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9114
SELECT CAST ( NULL AS INTEGER ) * col0 * + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + 48 FROM tab0
----
147
58
95

query I rowsort
SELECT DISTINCT - col0 - - 67 FROM tab1 cor0
----
-18
-24
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT DISTINCT + 76 + - + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + col0 > NULL
----
76

skipif mysql # not compatible
query I rowsort label-9117
SELECT DISTINCT + 76 + - + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + col0 > NULL
----
76

query I rowsort
SELECT DISTINCT - 77 * - ( col0 ) + + col0 * col0 FROM tab1 AS cor0
----
13770
15288
6528

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2, col0, - 7 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT - SUM( + - col2 ) * - - 75 col0 FROM tab2 AS cor0
----
9075

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9120
SELECT - SUM ( + - col2 ) * - - 75 col0 FROM tab2 AS cor0
----
9075

query I rowsort
SELECT - + 62 AS col1 FROM tab1 AS cor0
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-9122
SELECT 85 AS col0, 56 * COUNT( * ) FROM tab2 AS cor0
----
85
168

skipif mysql # not compatible
query II rowsort label-9122
SELECT 85 AS col0, 56 * COUNT ( * ) FROM tab2 AS cor0
----
85
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9123
SELECT - - CAST( NULL AS SIGNED ) * - + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9123
SELECT - - CAST ( NULL AS INTEGER ) * - + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9124
SELECT - - col1, 20 DIV col1 * - col2 AS col1 FROM tab1 AS cor0
----
14
-96
47
0
5
-236

skipif mysql # not compatible
query II rowsort label-9124
SELECT - - col1, 20 / col1 * - col2 AS col1 FROM tab1 AS cor0
----
14
-96
47
0
5
-236

query I rowsort
SELECT 32 * - 58 + - 44 AS col1 FROM tab0 AS cor0
----
-1900
-1900
-1900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9126
SELECT + + 73 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9126
SELECT + + 73 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 55 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT DISTINCT + 79 + + + SUM( - + col2 ) + + 33 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-9128
SELECT DISTINCT + 79 + + + SUM ( - + col2 ) + + 33 FROM tab0
----
-44

query I rowsort
SELECT ALL - 53 AS col1 FROM tab0
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT COUNT( ALL - col0 ) AS col0 FROM tab1 WHERE - col1 <> + col2 + - 86 / + col0 + - + 22
----
3

skipif mysql # not compatible
query I rowsort label-9130
SELECT COUNT ( ALL - col0 ) AS col0 FROM tab1 WHERE - col1 <> + col2 + - 86 / + col0 + - + 22
----
3

query I rowsort
SELECT - 9 - + + ( + 63 ) AS col0 FROM tab2
----
-72
-72
-72

query II rowsort
SELECT DISTINCT col0 + - + 31, 33 AS col2 FROM tab0
----
-16
33
56
33
66
33

query I rowsort
SELECT + ( - 24 ) * + col0 - - col1 FROM tab2
----
-1053
-1459
-1733

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9134
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT - + 18 AS col0 FROM tab1 AS cor0
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-9136
SELECT COUNT( * ) col2, + 33 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9136
SELECT COUNT ( * ) col2, + 33 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
33

query I rowsort
SELECT 88 * - col2 FROM tab0
----
-4136
-8712
-880

query I rowsort
SELECT DISTINCT 8 * - col0 FROM tab2
----
-368
-512
-600

query III rowsort
SELECT * FROM tab0 WHERE NOT 69 / + + 10 * col0 <= NULL
----

query I rowsort
SELECT 37 * - col2 FROM tab1
----
-2183
-2516
-3552

query I rowsort
SELECT DISTINCT - col2 * 3 AS col0 FROM tab2
----
-120
-174
-69

query I rowsort
SELECT ALL + + col0 * - + col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT ALL - ( - + 59 ) AS col1 FROM tab0 AS cor0
----
59
59
59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9145
SELECT - col0 DIV - - col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9145
SELECT - col0 / - - col0 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT DISTINCT + COUNT( DISTINCT - - 70 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9146
SELECT DISTINCT + COUNT ( DISTINCT - - 70 ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL 62 * - - 48 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
2976
2976
2976

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9148
SELECT - + 68 DIV + COUNT( * ) FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-9148
SELECT - + 68 / + COUNT ( * ) FROM tab1 AS cor0
----
-22

query I rowsort
SELECT ALL - ( - 95 ) AS col1 FROM tab1 cor0
----
95
95
95

query I rowsort
SELECT ALL + 58 * col1 AS col1 FROM tab2
----
2958
3886
4466

query I rowsort
SELECT col1 * - 32 * - - col2 FROM tab0
----
-121824
-3168
-6720

onlyif mysql # DIV for integer division: 
query I rowsort label-9152
SELECT ALL 16 DIV - 25 * - ( - + col0 ) + - col1 AS col2 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-9152
SELECT ALL 16 / - 25 * - ( - + col0 ) + - col1 AS col2 FROM tab0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + + col2 col2 FROM tab0
----
705
870
9603

query III rowsort
SELECT * FROM tab1 WHERE NOT + 81 - col1 NOT BETWEEN NULL AND ( col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL - ( - + col0 ) FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT DISTINCT + + SUM( ( - ( col0 ) ) ) * - COUNT( * ) + + + 28 + + COUNT( * ) FROM tab2 AS cor0
----
586

skipif mysql # not compatible
query I rowsort label-9157
SELECT DISTINCT + + SUM ( ( - ( col0 ) ) ) * - COUNT ( * ) + + + 28 + + COUNT ( * ) FROM tab2 AS cor0
----
586

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT - - SUM( DISTINCT + + ( col0 ) ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9158
SELECT - - SUM ( DISTINCT + + ( col0 ) ) FROM tab2 AS cor0
----
185

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col2, + 69 - + col2, col0 * - 37 / - col2 * + 79 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT - MIN( 20 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-20

skipif mysql # not compatible
query I rowsort label-9160
SELECT - MIN ( 20 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT - COUNT( * ) + - AVG ( + - col2 ) / + + 58 - + 2 FROM tab0 WHERE NULL NOT IN ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9161
SELECT - COUNT ( * ) + - AVG ( + - col2 ) / + + 58 - + 2 FROM tab0 WHERE NULL NOT IN ( - col1 )
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col0 >= NULL
----

query I rowsort
SELECT + - col2 - + col1 - - col1 * - - col0 FROM tab1 AS cor0
----
361
4162
604

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( + - col1, 60 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT DISTINCT - ( - - MIN( - col0 ) ) * COUNT( * ) AS col0 FROM tab1 cor0
----
273

skipif mysql # not compatible
query I rowsort label-9165
SELECT DISTINCT - ( - - MIN ( - col0 ) ) * COUNT ( * ) AS col0 FROM tab1 cor0
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT DISTINCT + - COUNT( * ) * - COUNT( - ( col0 ) ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9166
SELECT DISTINCT + - COUNT ( * ) * - COUNT ( - ( col0 ) ) AS col2 FROM tab0 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9167
SELECT + col1 + 41 DIV 22 * + ( + col0 ) FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-9167
SELECT + col1 + 41 / 22 * + ( + col0 ) FROM tab1 AS cor0
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 66 + - - col1 col1 FROM tab1 AS cor0
----
-19
-52
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT COUNT( * ) + + + 26 FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-9169
SELECT COUNT ( * ) + + + 26 FROM tab0 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT ( - - 8 ) + + COUNT( - col0 ) + + - ( + - COUNT( * ) ) FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-9170
SELECT ( - - 8 ) + + COUNT ( - col0 ) + + - ( + - COUNT ( * ) ) FROM tab1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT DISTINCT SUM( + col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9171
SELECT DISTINCT SUM ( + col2 ) FROM tab1
----
223

query I rowsort
SELECT DISTINCT - col1 * col0 * + 85 AS col1 FROM tab1
----
-36125
-363545
-60690

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9174
SELECT CAST( NULL AS SIGNED ) / - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9174
SELECT CAST ( NULL AS INTEGER ) / - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9175
SELECT ALL - 57 DIV + 10 AS col0 FROM tab0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL - 57 / + 10 AS col0 FROM tab0
----
-5
-5
-5

query II rowsort
SELECT - col0, - col2 AS col2 FROM tab0
----
-15
-47
-87
-10
-97
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 71 col2 FROM tab1
----
-71
-71
-71

query I rowsort
SELECT ALL - 75 - + col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-126
-142
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT DISTINCT + 7 + + + COUNT( * ) FROM tab2 AS cor0 WHERE - col1 IS NULL
----
7

skipif mysql # not compatible
query I rowsort label-9179
SELECT DISTINCT + 7 + + + COUNT ( * ) FROM tab2 AS cor0 WHERE - col1 IS NULL
----
7

query II rowsort
SELECT + - col2 AS col1, + col2 AS col1 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT MAX( DISTINCT + col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9183
SELECT MAX ( DISTINCT + col1 ) FROM tab0
----
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * - col2 + - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9186
SELECT + 26 DIV + col2 - col1 AS col1 FROM tab2 AS cor0 WHERE NOT col0 + ( - - 99 ) IS NULL
----
-50
-67
-77

skipif mysql # not compatible
query I rowsort label-9186
SELECT + 26 / + col2 - col1 AS col1 FROM tab2 AS cor0 WHERE NOT col0 + ( - - 99 ) IS NULL
----
-50
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9187
SELECT - - ( - CAST( + col1 AS SIGNED ) ) * + + ( - 97 ) + - + col1 + col1 AS col1 FROM tab1 AS cor0
----
1358
4559
485

skipif mysql # not compatible
query I rowsort label-9187
SELECT - - ( - CAST ( + col1 AS INTEGER ) ) * + + ( - 97 ) + - + col1 + col1 AS col1 FROM tab1 AS cor0
----
1358
4559
485

query I rowsort
SELECT + 52 + - 50 AS col1 FROM tab0 AS cor0
----
2
2
2

query II rowsort
SELECT ALL + ( - 26 ), col1 + - - col2 AS col0 FROM tab2 AS cor0
----
-26
117
-26
125
-26
74

query II rowsort
SELECT - col1 + + + col1 AS col2, 37 AS col2 FROM tab0 AS cor0
----
0
37
0
37
0
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9191
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NOT ( col2 ) > col1
----
51
67
77

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col1 + + col1 * + col0 / col0 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT ALL MAX( DISTINCT + 95 ) FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL MAX ( DISTINCT + 95 ) FROM tab0
----
95

query I rowsort
SELECT ALL + 23 + 45 - + 71 * + col2 FROM tab2
----
-1565
-2772
-4050

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col0 NOT BETWEEN - 88 * - col2 + 26 + col2 AND - 80
----

query I rowsort
SELECT DISTINCT + col2 + 94 AS col0 FROM tab1
----
153
162
190

query I rowsort
SELECT DISTINCT + + 8 AS col1 FROM tab2 AS cor0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-9199
SELECT - col2 DIV 48 AS col0 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9199
SELECT - col2 / 48 AS col0 FROM tab2 cor0
----
-1
0
0

query III rowsort
SELECT * FROM tab2 WHERE - 98 - - 86 + 27 + 30 = ( + 64 )
----

query I rowsort
SELECT DISTINCT - col2 * + col2 + col2 FROM tab0
----
-2162
-90
-9702

query II rowsort
SELECT DISTINCT 9 + - 47, - 9 + + - col2 AS col2 FROM tab2
----
-38
-32
-38
-49
-38
-67

query I rowsort
SELECT ALL + col0 + + 39 FROM tab1 AS cor0
----
124
130
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9204
SELECT + 63 * CAST( + 0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9204
SELECT + 63 * CAST ( + 0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT + COUNT( * ) * + 8 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-9205
SELECT + COUNT ( * ) * + 8 FROM tab0 AS cor0
----
24

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 67 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2, col2 AS col1 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9208
SELECT DISTINCT * FROM tab0 WHERE ( CAST( 19 AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9208
SELECT DISTINCT * FROM tab0 WHERE ( CAST ( 19 AS REAL ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9209
SELECT ( 7 ) DIV - 98 * 69 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9209
SELECT ( 7 ) / - 98 * 69 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9210
SELECT CAST( NULL AS SIGNED ), - col1 + - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9210
SELECT CAST ( NULL AS INTEGER ), - col1 + - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT DISTINCT + COUNT( - + 10 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9211
SELECT DISTINCT + COUNT ( - + 10 ) FROM tab0
----
3

query I rowsort
SELECT + col1 * - 24 AS col2 FROM tab1
----
-1128
-120
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT - ( COUNT( * ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9213
SELECT - ( COUNT ( * ) ) AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9214
SELECT COUNT( * ) DIV + COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9214
SELECT COUNT ( * ) / + COUNT ( * ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 74 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 62 AS col1 FROM tab1 cor0
----
62

query I rowsort
SELECT DISTINCT + - ( 7 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT ALL + COUNT( ALL - col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL + COUNT ( ALL - col0 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT - - SUM( DISTINCT col0 ) * - + 17 FROM tab1 AS cor0
----
-3859

skipif mysql # not compatible
query I rowsort label-9219
SELECT - - SUM ( DISTINCT col0 ) * - + 17 FROM tab1 AS cor0
----
-3859

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 41 * + col0 / col0 IS NOT NULL OR NOT NULL <= + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT + MIN( - 90 ) AS col0 FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-9221
SELECT + MIN ( - 90 ) AS col0 FROM tab1 AS cor0
----
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, 90 + col2 col0 FROM tab1 AS cor0
----
-14
186
-47
158
-5
149

onlyif mysql # DIV for integer division: 
query I rowsort label-9223
SELECT col0 DIV - - 32 AS col2 FROM tab1 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-9223
SELECT col0 / - - 32 AS col2 FROM tab1 AS cor0
----
1
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT DISTINCT - - MAX( DISTINCT ( col1 ) ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-9224
SELECT DISTINCT - - MAX ( DISTINCT ( col1 ) ) FROM tab0 cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT MAX( DISTINCT - - col1 ) * - COUNT( DISTINCT - 69 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-9225
SELECT MAX ( DISTINCT - - col1 ) * - COUNT ( DISTINCT - 69 ) AS col1 FROM tab1
----
-47

query I rowsort
SELECT DISTINCT - 69 * ( - col0 ) + - 62 AS col2 FROM tab0
----
5941
6631
973

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9227
SELECT DISTINCT col1 * CAST( 49 AS SIGNED ) + + col1 AS col0 FROM tab0
----
1050
4050
50

skipif mysql # not compatible
query I rowsort label-9227
SELECT DISTINCT col1 * CAST ( 49 AS INTEGER ) + + col1 AS col0 FROM tab0
----
1050
4050
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9228
SELECT DISTINCT CAST( NULL AS SIGNED ) + 16 col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9228
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 16 col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9229
SELECT * FROM tab0 WHERE - + col0 / + CAST( + col2 AS DECIMAL ) * - col0 * + - 43 <> - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9229
SELECT * FROM tab0 WHERE - + col0 / + CAST ( + col2 AS REAL ) * - col0 * + - 43 <> - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 + + 55 FROM tab2 AS cor0
----
-12
-22
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT - 34 + + - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL < NULL
----
-34

skipif mysql # not compatible
query I rowsort label-9231
SELECT - 34 + + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL < NULL
----
-34

query I rowsort
SELECT ALL - col2 * + - 19 FROM tab1 AS cor0
----
1121
1292
1824

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9233
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> - CAST( NULL AS SIGNED ) * - col2
----

skipif mysql # not compatible
query III rowsort label-9233
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> - CAST ( NULL AS INTEGER ) * - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9234
SELECT DISTINCT - 64, - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
-64
0

skipif mysql # not compatible
query II rowsort label-9234
SELECT DISTINCT - 64, - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
-64
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT ( + COUNT( * ) ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9235
SELECT ( + COUNT ( * ) ) col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9236
SELECT DISTINCT COUNT( * ) DIV - 83 + + 95 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9236
SELECT DISTINCT COUNT ( * ) / - 83 + + 95 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT COUNT( ALL + col1 ) - 59 FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-9237
SELECT COUNT ( ALL + col1 ) - 59 FROM tab0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT ALL 37 * - 63 + - MIN( ALL + 34 ) col2 FROM tab0
----
-2365

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9238
SELECT ALL 37 * - 63 + - MIN ( ALL + 34 ) col2 FROM tab0
----
-2365

onlyif mysql # aggregate syntax: 
query II rowsort label-9239
SELECT - COUNT( * ) + + - 78 + - COUNT( * ), 69 col0 FROM tab1 AS cor0
----
-84
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9239
SELECT - COUNT ( * ) + + - 78 + - COUNT ( * ), 69 col0 FROM tab1 AS cor0
----
-84
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT ALL - 11 * - + COUNT( * ) - COUNT( * ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-9240
SELECT ALL - 11 * - + COUNT ( * ) - COUNT ( * ) FROM tab0 AS cor0
----
30

query I rowsort
SELECT - 94 * - + col1 FROM tab1
----
1316
4418
470

query I rowsort
SELECT ALL col0 * + - col0 FROM tab1
----
-2601
-7225
-8281

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + 90 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * + 11 AS col2 FROM tab1
----
154
517
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL col2 * col1 * - col1 / - - ( + + 49 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 43, 63 * + col0 * + col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + - 17 <= - col2 + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 * - - 13 FROM tab1 AS cor0
----
1248
767
884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 col0 FROM tab0 AS cor0
----
-37
-37
-37

query I rowsort
SELECT DISTINCT + 89 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT ALL COUNT( * ) * + 44 + + 71 AS col1 FROM tab1 AS cor0
----
203

skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL COUNT ( * ) * + 44 + + 71 AS col1 FROM tab1 AS cor0
----
203

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT ALL - 51 + + - COUNT( * ) FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-9252
SELECT ALL - 51 + + - COUNT ( * ) FROM tab1
----
-54

query I rowsort
SELECT DISTINCT - 57 + + 44 AS col1 FROM tab0
----
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 24 + ( + 67 ) col0 FROM tab2
----
43

query I rowsort
SELECT ( + - col2 ) + - - col0 AS col2 FROM tab1 AS cor0
----
-45
23
26

query II rowsort
SELECT ALL - 89, + col1 FROM tab0 AS cor0
----
-89
1
-89
21
-89
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT ALL 9 * - - SUM( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
1665

skipif mysql # not compatible
query I rowsort label-9257
SELECT ALL 9 * - - SUM ( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
1665

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9258
SELECT DISTINCT 17 DIV - ( + 84 ) * + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9258
SELECT DISTINCT 17 / - ( + 84 ) * + COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - + 4 AS col2 FROM tab2 cor0
----
-4
-4
-4

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN - - col2 / col1 / - + ( - 16 ) AND - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9261
SELECT DISTINCT + 41 + - - 45 + col0 * 5 - + col0 DIV + col0 AS col1 FROM tab2
----
315
405
460

skipif mysql # not compatible
query I rowsort label-9261
SELECT DISTINCT + 41 + - - 45 + col0 * 5 - + col0 / + col0 AS col1 FROM tab2
----
315
405
460

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT COUNT( * ) * - + 74 AS col0 FROM tab0
----
-222

skipif mysql # not compatible
query I rowsort label-9262
SELECT COUNT ( * ) * - + 74 AS col0 FROM tab0
----
-222

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT ALL COUNT( * ) + - 8 * - COUNT( * ) AS col1 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-9264
SELECT ALL COUNT ( * ) + - 8 * - COUNT ( * ) AS col1 FROM tab1
----
27

query I rowsort
SELECT ALL col2 + + col0 * - 68 * col2 AS col1 FROM tab0
----
-47893
-59150
-652905

query I rowsort
SELECT ALL col1 + + + 26 FROM tab0
----
107
27
47

query II rowsort
SELECT col0, col2 * - col2 FROM tab1
----
51
-9216
85
-3481
91
-4624

query I rowsort
SELECT DISTINCT + + col2 FROM tab0 WHERE NULL NOT IN ( - + col2, 67 * - 83 * - - ( col2 ) )
----

query I rowsort
SELECT + + col1 + - 4 AS col2 FROM tab1 cor0
----
1
10
43

query I rowsort
SELECT + 63 + col2 AS col1 FROM tab2 AS cor0
----
103
121
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT ALL - - COUNT( * ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL AND NOT 94 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9271
SELECT ALL - - COUNT ( * ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL AND NOT 94 IS NOT NULL
----
0

query I rowsort
SELECT 59 * 9 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 564ce43a8f2bd093f915166e18aa09bd

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9273
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN CAST( NULL AS SIGNED ) - col0 AND col0
----

skipif mysql # not compatible
query III rowsort label-9273
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN CAST ( NULL AS INTEGER ) - col0 AND col0
----

query I rowsort
SELECT DISTINCT 31 + - col1 AS col1 FROM tab2
----
-20
-36
-46

query II rowsort
SELECT col0 * - col2, col2 AS col1 FROM tab1
----
-4896
96
-5015
59
-6188
68

query I rowsort
SELECT ( + col0 ) * - col1 FROM tab0 cor0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT - 88 * + 5 - + - col0 FROM tab0 AS cor0
----
-343
-353
-425

onlyif mysql # DIV for integer division: 
query I rowsort label-9278
SELECT DISTINCT + col0 DIV + 33 + + col2 FROM tab2 AS cor0
----
24
41
60

skipif mysql # not compatible
query I rowsort label-9278
SELECT DISTINCT + col0 / + 33 + + col2 FROM tab2 AS cor0
----
24
41
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT MAX( DISTINCT - - col2 ) col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9279
SELECT MAX ( DISTINCT - - col2 ) col2 FROM tab1 AS cor0
----
96

onlyif mysql # DIV for integer division: 
query II rowsort label-9280
SELECT DISTINCT - col1 * - - 19 col1, + col0 DIV + col1 FROM tab1 AS cor0
----
-266
3
-893
1
-95
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9280
SELECT DISTINCT - col1 * - - 19 col1, + col0 / + col1 FROM tab1 AS cor0
----
-266
3
-893
1
-95
17

query I rowsort
SELECT DISTINCT - - 85 AS col0 FROM tab0 AS cor0
----
85

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 / - col0 <= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col1, + col0 * - 34 AS col2 FROM tab2
----
51
-1564
67
-2550
77
-2176

query I rowsort
SELECT DISTINCT - 81 * + col0 FROM tab0
----
-1215
-7047
-7857

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9285
SELECT ALL COUNT( * ) * + + 24 DIV - - ( 24 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL COUNT ( * ) * + + 24 / - - ( 24 ) FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - ( - - ( col0 ) ) < 17 * - 23
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col0 AS col1, 9 FROM tab2
----
46
9
64
9
75
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9288
SELECT CAST( + 66 AS SIGNED ) * col2 col1, CAST( + + col0 AS SIGNED ) + + col0 col1 FROM tab0
----
3102
30
6534
194
660
174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9288
SELECT CAST ( + 66 AS INTEGER ) * col2 col1, CAST ( + + col0 AS INTEGER ) + + col0 col1 FROM tab0
----
3102
30
6534
194
660
174

query I rowsort
SELECT col0 * + 44 AS col1 FROM tab2
----
2024
2816
3300

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT ALL - ( + COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 NOT BETWEEN NULL AND - col1 + 5
----

query I rowsort
SELECT ALL - col2 * + 65 + - col2 FROM tab1
----
-3894
-4488
-6336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 93 col2 FROM tab2 AS cor0
----
-93
-93
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9294
SELECT DISTINCT + CAST( + col2 AS SIGNED ) AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9294
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) AS col2 FROM tab1
----
59
68
96

query I rowsort
SELECT ALL col0 * 20 + + + 48 AS col2 FROM tab0
----
1788
1988
348

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9296
SELECT col2 + - - col1 + - col1 + - 68 * + + col0 + - col0 * + CAST( - + col1 AS SIGNED ), col1 FROM tab0
----
-4079
21
-6400
1
242
81

skipif mysql # not compatible
query II rowsort label-9296
SELECT col2 + - - col1 + - col1 + - 68 * + + col0 + - col0 * + CAST ( - + col1 AS INTEGER ), col1 FROM tab0
----
-4079
21
-6400
1
242
81

query I rowsort
SELECT - 41 + + col0 + - - 93 + + col0 FROM tab1
----
154
222
234

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT DISTINCT 95 + + + MIN( ALL - 91 ) + - - COUNT( * ) FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-9298
SELECT DISTINCT 95 + + + MIN ( ALL - 91 ) + - - COUNT ( * ) FROM tab1
----
7

query I rowsort
SELECT ALL + - col0 - - col0 + + col0 FROM tab0 cor0
----
15
87
97

query II rowsort
SELECT DISTINCT col0 * - 26, 55 AS col2 FROM tab2
----
-1196
55
-1664
55
-1950
55

query I rowsort
SELECT + + col0 * + 79 * - col1 AS col2 FROM tab2 AS cor0 WHERE NOT - 4 IS NULL
----
-185334
-389312
-396975

query I rowsort
SELECT ALL 88 * 89 FROM tab1 AS cor0
----
7832
7832
7832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9303
SELECT + - ( + col2 ) col2 FROM tab0 AS cor0 WHERE NOT + CAST( + 20 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9303
SELECT + - ( + col2 ) col2 FROM tab0 AS cor0 WHERE NOT + CAST ( + 20 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT DISTINCT SUM( + 37 ) AS col2 FROM tab0 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-9304
SELECT DISTINCT SUM ( + 37 ) AS col2 FROM tab0 AS cor0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT - + SUM( + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9305
SELECT - + SUM ( + col2 ) FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9306
SELECT 92 * - 10 * - + CAST( NULL AS SIGNED ) * - 37 / + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9306
SELECT 92 * - 10 * - + CAST ( NULL AS INTEGER ) * - 37 / + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 48, col1 AS col0 FROM tab1 AS cor0
----
48
14
48
47
48
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * col0, 18 * + - 74 col2 FROM tab1
----
4896
-1332
5015
-1332
6188
-1332

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT MIN( - col2 ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9309
SELECT MIN ( - col2 ) AS col1 FROM tab2
----
-58

query I rowsort
SELECT DISTINCT 10 * + col2 - + ( - - col0 ) FROM tab2 AS cor0
----
184
336
505

query II rowsort
SELECT DISTINCT - 93 + - col0 * col1 AS col2, col0 FROM tab1 AS cor0
----
-4370
91
-518
85
-807
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT + - 20 * + MAX( DISTINCT 24 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-480

skipif mysql # not compatible
query I rowsort label-9312
SELECT + - 20 * + MAX ( DISTINCT 24 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-480

query I rowsort
SELECT DISTINCT + ( + col2 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9314
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( * ) + - 99 AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9314
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * ) + - 99 AS col1 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT DISTINCT ( - - MIN( DISTINCT - col2 ) ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9315
SELECT DISTINCT ( - - MIN ( DISTINCT - col2 ) ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT + 68 + col0 FROM tab1 AS cor0
----
119
153
159

query I rowsort
SELECT DISTINCT - - ( - ( + + col0 ) ) FROM tab1 cor0 WHERE NOT - col0 * 97 IS NULL
----
-51
-85
-91

query I rowsort
SELECT - + 33 * - - col2 FROM tab2 AS cor0
----
-1320
-1914
-759

query I rowsort
SELECT DISTINCT + + 63 + + col0 FROM tab0 AS cor0
----
150
160
78

onlyif mysql # DIV for integer division: 
query I rowsort label-9320
SELECT - col2 DIV - 62 col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9320
SELECT - col2 / - 62 col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 44 * + + col2 FROM tab0 AS cor0
----
2068
4356
440

query I rowsort
SELECT - col2 * - col2 - col1 FROM tab0 AS cor0
----
2128
79
9800

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9323
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + + 62 / 84 + - col1 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9323
SELECT DISTINCT CAST ( NULL AS REAL ) * + + 62 / 84 + - col1 AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9324
SELECT DISTINCT - 19 + - - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9324
SELECT DISTINCT - 19 + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9325
SELECT DISTINCT 23 DIV 32 + col0 AS col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9325
SELECT DISTINCT 23 / 32 + col0 AS col2 FROM tab0
----
15
87
97

query I rowsort
SELECT ALL col0 - + 57 AS col2 FROM tab1
----
-6
28
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT 26 - - MIN( - + col2 ) AS col1 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-9327
SELECT 26 - - MIN ( - + col2 ) AS col1 FROM tab2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT DISTINCT 38 - + COUNT( * ) FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-9328
SELECT DISTINCT 38 - + COUNT ( * ) FROM tab1 AS cor0
----
35

query II rowsort
SELECT DISTINCT - col1 - col1, - 25 + + + col0 AS col1 FROM tab0 AS cor0
----
-162
-10
-2
72
-42
62

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 <> - - col1 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 + 5 AS col2 FROM tab2 AS cor0
----
-46
-62
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT DISTINCT - - COUNT( * ) FROM tab2 AS cor0 WHERE 10 + + col2 < col1
----
2

skipif mysql # not compatible
query I rowsort label-9332
SELECT DISTINCT - - COUNT ( * ) FROM tab2 AS cor0 WHERE 10 + + col2 < col1
----
2

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 WHERE NOT + 69 * - - col2 - + col0 BETWEEN NULL AND NULL
----

query II rowsort
SELECT - col2, col1 AS col0 FROM tab1
----
-59
5
-68
47
-96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT DISTINCT + COUNT( - 95 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9335
SELECT DISTINCT + COUNT ( - 95 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT - + 83 * + + 26 FROM tab1 AS cor0
----
-2158
-2158
-2158

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT + + COUNT( - - col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9337
SELECT + + COUNT ( - - col1 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9338
SELECT ALL CAST( NULL AS SIGNED ) + col0 col2 FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9338
SELECT ALL CAST ( NULL AS INTEGER ) + col0 col2 FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT - + MAX( col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9339
SELECT - + MAX ( col0 ) FROM tab2 AS cor0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9340
SELECT - 58 * - 6 * + COUNT( * ) + + CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 35
----
0

skipif mysql # not compatible
query I rowsort label-9340
SELECT - 58 * - 6 * + COUNT ( * ) + + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 35
----
0

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NULL < - 23 / + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT DISTINCT ( - col1 ) + - col0 + col1 * + 59 AS col0 FROM tab0
----
-39
1131
4683

onlyif mysql # aggregate syntax: 
query II rowsort label-9344
SELECT ALL - COUNT( * ) AS col1, + ( - 21 ) AS col0 FROM tab1
----
-3
-21

skipif mysql # not compatible
query II rowsort label-9344
SELECT ALL - COUNT ( * ) AS col1, + ( - 21 ) AS col0 FROM tab1
----
-3
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT DISTINCT - - COUNT( * ) FROM tab1 WHERE NOT col0 - + ( + - col0 ) = 85
----
3

skipif mysql # not compatible
query I rowsort label-9345
SELECT DISTINCT - - COUNT ( * ) FROM tab1 WHERE NOT col0 - + ( + - col0 ) = 85
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9346
SELECT + 2 DIV COUNT( * ) + - 41 FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-9346
SELECT + 2 / COUNT ( * ) + - 41 FROM tab2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT ALL + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL <> col1
----
0

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL <> col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + + ( + col1 ) ) col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9349
SELECT ALL + 67 + + CAST( + - 88 AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9349
SELECT ALL + 67 + + CAST ( + - 88 AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT - SUM( ALL + 41 ) AS col1 FROM tab0
----
-123

skipif mysql # not compatible
query I rowsort label-9350
SELECT - SUM ( ALL + 41 ) AS col1 FROM tab0
----
-123

query I rowsort
SELECT ALL 71 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT DISTINCT - 31 * 53 + 96 FROM tab2
----
-1547

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9353
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL col0 * + + col1 AS col1 FROM tab0 cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9355
SELECT DISTINCT + 55 * - 49 + COUNT( * ), MIN( ALL + - 22 ) AS col0 FROM tab0 AS cor0
----
-2692
-22

skipif mysql # not compatible
query II rowsort label-9355
SELECT DISTINCT + 55 * - 49 + COUNT ( * ), MIN ( ALL + - 22 ) AS col0 FROM tab0 AS cor0
----
-2692
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NOT col0 * - col0 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9356
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NOT col0 * - col0 IS NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 * + - 32 * + 6 col1 FROM tab2 AS cor0
----
-4032
-4032
-4032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9358
SELECT ALL MAX( DISTINCT - - CAST( + + col0 AS SIGNED ) ) DIV - + COUNT( * ) FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL MAX ( DISTINCT - - CAST ( + + col0 AS INTEGER ) ) / - + COUNT ( * ) FROM tab1 AS cor0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9359
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - ( - CAST( + - col2 AS SIGNED ) ) BETWEEN + - 63 AND NULL )
----
51
14
96
91
47
68

skipif mysql # not compatible
query III rowsort label-9359
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - ( - CAST ( + - col2 AS INTEGER ) ) BETWEEN + - 63 AND NULL )
----
51
14
96
91
47
68

query I rowsort
SELECT ALL + - 74 FROM tab0 AS cor0 WHERE NOT ( NOT + - col0 * - + col2 <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT ALL + + 43 * + + COUNT( * ) FROM tab1 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-9361
SELECT ALL + + 43 * + + COUNT ( * ) FROM tab1 AS cor0
----
129

query I rowsort
SELECT DISTINCT 87 * + col1 AS col0 FROM tab0
----
1827
7047
87

query I rowsort
SELECT ( col0 ) + - ( 73 ) * col0 * - col2 AS col0 FROM tab2
----
186944
317625
77280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9364
SELECT + CAST( NULL AS SIGNED ) + - SUM( ALL col2 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9364
SELECT + CAST ( NULL AS INTEGER ) + - SUM ( ALL col2 ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9365
SELECT ALL * FROM tab0 WHERE NOT + col2 NOT IN ( - CAST( NULL AS SIGNED ) - + 63 + - 82 * col0 )
----

skipif mysql # not compatible
query III rowsort label-9365
SELECT ALL * FROM tab0 WHERE NOT + col2 NOT IN ( - CAST ( NULL AS INTEGER ) - + 63 + - 82 * col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE + ( - col0 ) NOT BETWEEN 78 * 65 * - ( - - col2 ) AND + + 39
----

query I rowsort
SELECT DISTINCT 14 + + col0 AS col0 FROM tab2
----
60
78
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9368
SELECT 8 + - 31 DIV COUNT( * ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-9368
SELECT 8 + - 31 / COUNT ( * ) FROM tab1
----
-2

query II rowsort
SELECT DISTINCT + 91 * + col2 * + col2 AS col1, - 9 FROM tab0
----
201019
-9
891891
-9
9100
-9

query I rowsort
SELECT ALL col0 + col0 * - col2 * - ( col0 ) - - + col2 AS col0 FROM tab2
----
163944
326383
48737

query I rowsort
SELECT col1 * - col1 + + col1 AS col1 FROM tab1
----
-182
-20
-2162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9372
SELECT - 20 DIV MIN( col1 ) col2 FROM tab0
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9372
SELECT - 20 / MIN ( col1 ) col2 FROM tab0
----
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, 6 FROM tab0
----
10
6
47
6
99
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 7 col1 FROM tab2 AS cor0
----
7
7
7

query II rowsort
SELECT col2, - col0 AS col2 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 col1 FROM tab0
----
1

query I rowsort
SELECT DISTINCT + 47 FROM tab1 AS cor0 WHERE NOT + 91 * col2 > ( + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - 37 * 0
----
0

skipif mysql # not compatible
query I rowsort label-9378
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - 37 * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT + MIN( + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9379
SELECT + MIN ( + col0 ) FROM tab2 AS cor0
----
46

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * col0 + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - + col0 ), 26 col0 FROM tab1 AS cor0
----
-51
26
-85
26
-91
26

onlyif mysql # DIV for integer division: 
query I rowsort label-9382
SELECT DISTINCT - - 4 DIV 36 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9382
SELECT DISTINCT - - 4 / 36 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + 2 + + - 13 AS col2 FROM tab2
----
-11
-11
-11

query I rowsort
SELECT DISTINCT 6 + + col1 FROM tab1
----
11
20
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT DISTINCT + COUNT( * ) + - 47 AS col2 FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-9385
SELECT DISTINCT + COUNT ( * ) + - 47 AS col2 FROM tab1
----
-44

query II rowsort
SELECT DISTINCT + 61 * 32 + - - 2 AS col1, - 25 FROM tab0
----
1954
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT DISTINCT + + SUM( ALL + col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-9387
SELECT DISTINCT + + SUM ( ALL + col0 ) FROM tab1 AS cor0
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) + + - col0 col1 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT - col0 * - 11 + + - col2 FROM tab2 cor0
----
483
664
767

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 <= NULL
----

query I rowsort
SELECT col2 + + col0 * + col0 FROM tab0
----
272
7579
9508

query I rowsort
SELECT + + col2 * - + 29 AS col1 FROM tab2 AS cor0
----
-1160
-1682
-667

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT ALL + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE - col2 + - col0 <= col0
----
3

skipif mysql # not compatible
query I rowsort label-9393
SELECT ALL + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE - col2 + - col0 <= col0
----
3

query I rowsort
SELECT DISTINCT + ( + + col1 ) - - 17 FROM tab2 AS cor0
----
68
84
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9395
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) < - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9395
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) < - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + - 98 + - col2 AS col0 FROM tab2 AS cor0
----
-121
-138
-156

query I rowsort
SELECT DISTINCT - 48 - + 80 FROM tab1 AS cor0
----
-128

onlyif mysql # DIV for integer division: 
query I rowsort label-9398
SELECT DISTINCT + - col0 DIV 8 - col2 * - col0 AS col0 FROM tab0 AS cor0
----
704
860
9591

skipif mysql # not compatible
query I rowsort label-9398
SELECT DISTINCT + - col0 / 8 - col2 * - col0 AS col0 FROM tab0 AS cor0
----
704
860
9591

query I rowsort
SELECT col1 + col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9400
SELECT DISTINCT - col2 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9400
SELECT DISTINCT - col2 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 91 - + col0 AS col1 FROM tab0 AS cor0
----
-6
4
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT DISTINCT + + COUNT( DISTINCT + 95 ) + + 43 * + 64 AS col2 FROM tab1 AS cor0
----
2753

skipif mysql # not compatible
query I rowsort label-9402
SELECT DISTINCT + + COUNT ( DISTINCT + 95 ) + + 43 * + 64 AS col2 FROM tab1 AS cor0
----
2753

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT ALL SUM( DISTINCT - - ( col0 ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL SUM ( DISTINCT - - ( col0 ) ) FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT 84 * - 29 * - COUNT( * ) AS col1 FROM tab0
----
7308

skipif mysql # not compatible
query I rowsort label-9404
SELECT 84 * - 29 * - COUNT ( * ) AS col1 FROM tab0
----
7308

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT ALL - COUNT( * ) * - 3 * - SUM( + + 40 ) FROM tab2
----
-1080

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL - COUNT ( * ) * - 3 * - SUM ( + + 40 ) FROM tab2
----
-1080

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9406
SELECT * FROM tab0 WHERE NOT ( col0 * col2 - - ( - col0 ) NOT BETWEEN - - ( - CAST( - + col0 AS SIGNED ) ) AND NULL )
----

skipif mysql # not compatible
query III rowsort label-9406
SELECT * FROM tab0 WHERE NOT ( col0 * col2 - - ( - col0 ) NOT BETWEEN - - ( - CAST ( - + col0 AS INTEGER ) ) AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9407
SELECT ALL + 95 DIV - + col1 + col1 FROM tab1 AS cor0
----
-14
45
8

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL + 95 / - + col1 + col1 FROM tab1 AS cor0
----
-14
45
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9408
SELECT ALL - COUNT( * ) DIV - COUNT( * ) FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-9408
SELECT ALL - COUNT ( * ) / - COUNT ( * ) FROM tab1 cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9409
SELECT DISTINCT CAST( - ( col2 ) AS SIGNED ) DIV + - col2 + col0 col1 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9409
SELECT DISTINCT CAST ( - ( col2 ) AS INTEGER ) / + - col2 + col0 col1 FROM tab0 AS cor0
----
16
88
98

query I rowsort
SELECT DISTINCT + + 76 + + - 19 + col1 FROM tab0 WHERE + + 61 NOT BETWEEN ( - 58 ) AND - col2
----
138
58
78

query I rowsort
SELECT - 25 * - 30 * + + col0 AS col2 FROM tab1 AS cor0
----
38250
63750
68250

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL BETWEEN - col1 AND col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT ALL - COUNT( * ) + - 39 AS col2 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-9413
SELECT ALL - COUNT ( * ) + - 39 AS col2 FROM tab2
----
-42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9414
SELECT - ( 79 ) * + 59 * col2 * + 29 - + col0 + CAST( NULL AS DECIMAL ) * - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9414
SELECT - ( 79 ) * + 59 * col2 * + 29 - + col0 + CAST ( NULL AS REAL ) * - col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * col0 + 81 AS col0 FROM tab1
----
2682
7306
8362

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT + COUNT( * ) + - COUNT( * ) + + MIN( + col1 ) * - SUM( ALL - 67 ) col1 FROM tab0
----
201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9416
SELECT + COUNT ( * ) + - COUNT ( * ) + + MIN ( + col1 ) * - SUM ( ALL - 67 ) col1 FROM tab0
----
201

query I rowsort
SELECT ALL + 41 * + + col0 AS col0 FROM tab0
----
3567
3977
615

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT ALL - + COUNT( * ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL - + COUNT ( * ) AS col2 FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9419
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) + - col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9419
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) + - col0 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT - + 30 + + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9420
SELECT - + 30 + + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-27

query I rowsort
SELECT col2 - - ( - col0 ) + - 79 FROM tab1 AS cor0 WHERE NULL BETWEEN 54 AND + col0
----

query I rowsort
SELECT ALL - 21 + 25 AS col2 FROM tab2 AS cor0
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9423
SELECT ALL + - col2 AS col0 FROM tab0 WHERE + + CAST( NULL AS SIGNED ) IS NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9423
SELECT ALL + - col2 AS col0 FROM tab0 WHERE + + CAST ( NULL AS INTEGER ) IS NULL
----
-10
-47
-99

query I rowsort
SELECT - col2 * - + 99 * + + col2 * + 31 AS col2 FROM tab1
----
10683189
14191056
28283904

query III rowsort
SELECT ALL * FROM tab2 WHERE 25 * - - col0 * - 60 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT DISTINCT + COUNT( * ) + + + 98 FROM tab1 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-9426
SELECT DISTINCT + COUNT ( * ) + + + 98 FROM tab1 AS cor0
----
101

query I rowsort
SELECT ALL - 66 - - - 77 AS col0 FROM tab0 AS cor0
----
-143
-143
-143

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 72 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col0 + + col1 + - col2 AS col1, + 55 AS col2 FROM tab0 AS cor0
----
-195
55
-76
55
19
55

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 50 < + 98
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 43 AS col1 FROM tab1 cor0
----
-43
-43
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9432
SELECT - col0 * CAST( - col2 AS SIGNED ) AS col2 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-9432
SELECT - col0 * CAST ( - col2 AS INTEGER ) AS col2 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT DISTINCT - 56 AS col2 FROM tab0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9434
SELECT ALL col0, - 87 + + CAST( NULL AS SIGNED ) * - 98 * - 3 * col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-9434
SELECT ALL col0, - 87 + + CAST ( NULL AS INTEGER ) * - 98 * - 3 * col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

query II rowsort
SELECT 2, + col1 FROM tab0
----
2
1
2
21
2
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9436
SELECT 97 / - - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9436
SELECT 97 / - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 * - col0 col2 FROM tab1
----
-1275
-1365
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT COUNT( * ) * - COUNT( ALL + col2 ) - - 7 AS col1 FROM tab2 WHERE NOT ( + 68 + + col2 ) <> NULL
----
7

skipif mysql # not compatible
query I rowsort label-9438
SELECT COUNT ( * ) * - COUNT ( ALL + col2 ) - - 7 AS col1 FROM tab2 WHERE NOT ( + 68 + + col2 ) <> NULL
----
7

query I rowsort
SELECT ALL ( col2 ) * + col2 + - col1 FROM tab1 cor0
----
3476
4577
9202

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT DISTINCT - ( - MIN( - col1 ) ) AS col2 FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9440
SELECT DISTINCT - ( - MIN ( - col1 ) ) AS col2 FROM tab0 cor0
----
-81

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE 54 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9442
SELECT - COUNT( DISTINCT - col0 ), + 86 AS col2 FROM tab2
----
-3
86

skipif mysql # not compatible
query II rowsort label-9442
SELECT - COUNT ( DISTINCT - col0 ), + 86 AS col2 FROM tab2
----
-3
86

query I rowsort
SELECT - ( 18 ) FROM tab2
----
-18
-18
-18

query I rowsort
SELECT ALL + 76 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + 98 ) * - 67 col0 FROM tab2
----
-6566

query I rowsort
SELECT ALL - 59 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT DISTINCT COUNT( * ) * - - 30 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-9447
SELECT DISTINCT COUNT ( * ) * - - 30 FROM tab1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT ALL - COUNT( * ) + - 2 AS col0 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9448
SELECT ALL - COUNT ( * ) + - 2 AS col0 FROM tab0 AS cor0
----
-5

query II rowsort
SELECT ALL + col2, 10 + - + ( + 68 ) * + col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( 90 + 5 * - col1 ) > NULL
----

query I rowsort
SELECT ALL + ( + ( - - 6 ) ) AS col0 FROM tab1 cor0
----
6
6
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9451
SELECT + col2 + + + col1 + - 39 + CAST( + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
123
30
85

skipif mysql # not compatible
query I rowsort label-9451
SELECT + col2 + + + col1 + - 39 + CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
123
30
85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9453
SELECT + - COUNT( * ) DIV COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9453
SELECT + - COUNT ( * ) / COUNT ( * ) FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 25 col0 FROM tab1 AS cor0
----
25
25
25

query I rowsort
SELECT col0 + + col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + + 75 - - col1 + + col0 < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT ALL + COUNT( * ) + + + 29 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL + COUNT ( * ) + + + 29 FROM tab0
----
32

query I rowsort
SELECT DISTINCT col2 * + col2 + 21 * + 54 FROM tab1
----
10350
4615
5758

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + 97 AND + + ( - 22 )
----

query I rowsort
SELECT DISTINCT - 72 + + col0 FROM tab1 AS cor0
----
-21
13
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT ALL COUNT( ALL + col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL COUNT ( ALL + col2 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 WHERE ( - 15 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 46 * ( ( - col2 ) ) FROM tab2
----
-1058
-1840
-2668

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col0 ) > NULL
----

query I rowsort
SELECT DISTINCT - 43 * col0 AS col1 FROM tab0 WHERE 26 IS NOT NULL
----
-3741
-4171
-645

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT + COUNT( * ) * 14 AS col2 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-9466
SELECT + COUNT ( * ) * 14 AS col2 FROM tab2
----
42

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) = - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9468
SELECT col1 * CAST( col0 * - 51 AS SIGNED ) AS col2 FROM tab2
----
-119646
-251328
-256275

skipif mysql # not compatible
query I rowsort label-9468
SELECT col1 * CAST ( col0 * - 51 AS INTEGER ) AS col2 FROM tab2
----
-119646
-251328
-256275

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * col2 + - col1 <> + 56
----

query I rowsort
SELECT DISTINCT + 64 * - col2 AS col0 FROM tab0
----
-3008
-6336
-640

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT COUNT( * ) + 79 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-9471
SELECT COUNT ( * ) + 79 FROM tab0
----
82

query III rowsort
SELECT * FROM tab2 WHERE - col1 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9473
SELECT DISTINCT 10 DIV + col0 col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9473
SELECT DISTINCT 10 / + col0 col2 FROM tab1
----
0

query I rowsort
SELECT ALL + col1 + + col1 * - col1 AS col1 FROM tab1 WHERE NOT ( col0 ) >= col2
----
-182

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9475
SELECT * FROM tab0 WHERE NULL NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9475
SELECT * FROM tab0 WHERE NULL NOT IN ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 61 + - 7 FROM tab0 WHERE NOT col2 >= + col0
----
54

query I rowsort
SELECT - col1 * + 61 AS col1 FROM tab1 WHERE NOT + col2 - + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9479
SELECT ALL - 39 DIV col2 + - col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL - 39 / col2 + - col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE ( ( - col0 ) ) BETWEEN ( col2 ) AND ( + col1 + 15 )
----

query I rowsort
SELECT + col0 + + 53 FROM tab1
----
104
138
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9482
SELECT 42 FROM tab2 WHERE NOT ( CAST( col0 AS SIGNED ) ) IS NULL
----
42
42
42

skipif mysql # not compatible
query I rowsort label-9482
SELECT 42 FROM tab2 WHERE NOT ( CAST ( col0 AS INTEGER ) ) IS NULL
----
42
42
42

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * 81 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * + col0 + col2 AS col0 FROM tab0
----
752
880
9702

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT DISTINCT + 94 + - COUNT( * ) FROM tab2 WHERE NULL <= 85
----
94

skipif mysql # not compatible
query I rowsort label-9485
SELECT DISTINCT + 94 + - COUNT ( * ) FROM tab2 WHERE NULL <= 85
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 col2 FROM tab2
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT - 66 * + COUNT( * ) + 87 AS col0 FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-9487
SELECT - 66 * + COUNT ( * ) + 87 AS col0 FROM tab0
----
-111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9488
SELECT ALL - ( CAST( NULL AS SIGNED ) ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9488
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col0 ) col2 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( 25 ) AS col2 FROM tab2 AS cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9492
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + - 22 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT ALL + 35 + - COUNT( * ) FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-9494
SELECT ALL + 35 + - COUNT ( * ) FROM tab1 AS cor0
----
32

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE ( + col1 * col1 ) IS NULL
----

query I rowsort
SELECT + 70 * + 28 AS col0 FROM tab1 AS cor0
----
1960
1960
1960

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT ALL - ( COUNT( + 49 ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL - ( COUNT ( + 49 ) ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT - COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9498
SELECT - COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT ALL ( - COUNT( * ) ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL ( - COUNT ( * ) ) AS col1 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT + 77 + - ( MIN( DISTINCT + 16 ) ) + 6 FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-9500
SELECT + 77 + - ( MIN ( DISTINCT + 16 ) ) + 6 FROM tab0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT DISTINCT + COUNT( * ) + - + 58 AS col2 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-9501
SELECT DISTINCT + COUNT ( * ) + - + 58 AS col2 FROM tab2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT COUNT( * ) FROM tab0 WHERE NULL <> + ( + 97 ) + col0
----
0

skipif mysql # not compatible
query I rowsort label-9502
SELECT COUNT ( * ) FROM tab0 WHERE NULL <> + ( + 97 ) + col0
----
0

query I rowsort
SELECT 75 + + + col1 - - 32 FROM tab2
----
158
174
184

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT ALL - MAX( ALL - + col2 ) + - 45 AS col2 FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-9504
SELECT ALL - MAX ( ALL - + col2 ) + - 45 AS col2 FROM tab0
----
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 71 + col0 col2 FROM tab0
----
101
245
265

query I rowsort
SELECT col0 * col1 + + col1 AS col0 FROM tab2
----
2397
5005
5092

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + 60 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9507
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + 60 IS NULL
----
0

query I rowsort
SELECT + 92 * - ( col2 ) + + col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT - + MIN( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9509
SELECT - + MIN ( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT DISTINCT 52 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT DISTINCT - + COUNT( * ) - + - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT - + COUNT ( * ) - + - COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9512
SELECT * FROM tab1 AS cor0 WHERE col2 * - CAST( NULL AS SIGNED ) < ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9512
SELECT * FROM tab1 AS cor0 WHERE col2 * - CAST ( NULL AS INTEGER ) < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9513
SELECT + CAST( NULL AS SIGNED ) * + - AVG ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9513
SELECT + CAST ( NULL AS INTEGER ) * + - AVG ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 * col2 + 85 * col2 col0 FROM tab2 AS cor0 WHERE NOT + 96 IS NULL
----
2714
4720
6844

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9515
SELECT + CAST( NULL AS SIGNED ) * - 66 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9515
SELECT + CAST ( NULL AS INTEGER ) * - 66 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 83 - + col2 AS col2 FROM tab0
----
-130
-182
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-9517
SELECT ALL 58 DIV col0 * 5 + col2 AS col0 FROM tab2
----
28
40
58

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL 58 / col0 * 5 + col2 AS col0 FROM tab2
----
28
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-9518
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE + 94 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9520
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 10 NOT BETWEEN NULL AND col1 + + 50
----

query I rowsort
SELECT DISTINCT + 17 AS col1 FROM tab2 AS cor0
----
17

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 AS cor0 WHERE col2 * + - col1 = - col1 + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9524
SELECT CAST( CAST( 17 AS SIGNED ) AS SIGNED ) + - MIN( DISTINCT - 61 ) FROM tab2 AS cor0 WHERE NOT ( - col0 ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9524
SELECT CAST ( CAST ( 17 AS INTEGER ) AS INTEGER ) + - MIN ( DISTINCT - 61 ) FROM tab2 AS cor0 WHERE NOT ( - col0 ) >= NULL
----
NULL

query I rowsort
SELECT ALL + + 43 AS col1 FROM tab2 AS cor0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT - - COUNT( + + col1 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9526
SELECT - - COUNT ( + + col1 ) FROM tab2 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 AS cor0 WHERE NOT NULL >= + 27
----

query I rowsort
SELECT ALL - - 18 AS col0 FROM tab2 cor0
----
18
18
18

query I rowsort
SELECT col0 * + + col0 FROM tab1 AS cor0
----
2601
7225
8281

query I rowsort
SELECT ALL col1 * col2 * + col1 * col1 - col0 FROM tab0 AS cor0
----
2
24977712
92523

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT DISTINCT 2 * + + MIN( col1 ) AS col1 FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-9531
SELECT DISTINCT 2 * + + MIN ( col1 ) AS col1 FROM tab2
----
102

query III rowsort
SELECT * FROM tab0 WHERE NOT - 57 + + col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9533
SELECT + CAST( + + 52 AS SIGNED ) DIV + 2 FROM tab2
----
26
26
26

skipif mysql # not compatible
query I rowsort label-9533
SELECT + CAST ( + + 52 AS INTEGER ) / + 2 FROM tab2
----
26
26
26

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - col1 * + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT DISTINCT - + SUM( + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9536
SELECT DISTINCT - + SUM ( + col1 ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT ALL + 31 - - col1 + 89 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ( + + 67 ) AS col0 FROM tab0 AS cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT - ( COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9539
SELECT - ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9540
SELECT ALL 69 * 84 AS col0 FROM tab1 WHERE + 58 * - col1 >= + CAST( NULL AS SIGNED ) + 89
----

skipif mysql # not compatible
query I rowsort label-9540
SELECT ALL 69 * 84 AS col0 FROM tab1 WHERE + 58 * - col1 >= + CAST ( NULL AS INTEGER ) + 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT DISTINCT + MIN( - + 32 ) AS col0 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-9541
SELECT DISTINCT + MIN ( - + 32 ) AS col0 FROM tab2
----
-32

onlyif mysql # DIV for integer division: 
query II rowsort label-9542
SELECT ALL 53, col0 DIV + col0 AS col2 FROM tab2
----
53
1
53
1
53
1

skipif mysql # not compatible
query II rowsort label-9542
SELECT ALL 53, col0 / + col0 AS col2 FROM tab2
----
53
1
53
1
53
1

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT - 35 > + col0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 col2 FROM tab1 cor0
----
33

query I rowsort
SELECT + col2 * 85 + + col1 - + col1 FROM tab2 cor0
----
1955
3400
4930

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT + 39 + - SUM( DISTINCT - - col2 ) FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-9546
SELECT + 39 + - SUM ( DISTINCT - - col2 ) FROM tab2 AS cor0
----
-82

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * ( ( - + ( - col1 ) ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 * - 23 FROM tab2 AS cor0
----
-1173
-1541
-1771

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( 19 + - + 95 / + col0 * + 7 ) AND ( - 23 + - col0 )
----

query I rowsort
SELECT ALL + - col2 * 86 FROM tab0 AS cor0
----
-4042
-8514
-860

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT MIN( DISTINCT + + 32 ) AS col1 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-9551
SELECT MIN ( DISTINCT + + 32 ) AS col1 FROM tab0 AS cor0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9552
SELECT + CAST( + AVG ( col1 ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE col0 BETWEEN col0 AND - + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-9552
SELECT + CAST ( + AVG ( col1 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE col0 BETWEEN col0 AND - + 65
----
NULL

query I rowsort
SELECT ALL + - 53 + + col0 FROM tab1 AS cor0
----
-2
32
38

query I rowsort
SELECT + col2 * + 45 FROM tab0 AS cor0
----
2115
4455
450

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT DISTINCT - ( + + COUNT( * ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9555
SELECT DISTINCT - ( + + COUNT ( * ) ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9556
SELECT ( CAST( NULL AS SIGNED ) ) FROM tab0 WHERE ( NULL ) BETWEEN ( 61 ) AND + 82
----

skipif mysql # not compatible
query I rowsort label-9556
SELECT ( CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE ( NULL ) BETWEEN ( 61 ) AND + 82
----

query I rowsort
SELECT ALL 2 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT DISTINCT - 37 + col0 + - + 27 * col1 AS col2 FROM tab1
----
-1215
-364
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - + 21 - + + col0 col2 FROM tab0
----
-195
-215
-51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= - col2
----

query I rowsort
SELECT ALL - col1 * 99 AS col0 FROM tab1 AS cor0
----
-1386
-4653
-495

query I rowsort
SELECT - + 84 + + col1 FROM tab0 AS cor0
----
-3
-63
-83

query I rowsort
SELECT DISTINCT - col0 - + - col1 FROM tab0 cor0
----
-66
-96
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9564
SELECT ALL + 15 DIV 34 * - col1 * col2 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL + 15 / 34 * - col1 * col2 AS col1 FROM tab2
----
0
0
0

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 INNER JOIN tab1 AS cor1 ON - - 35 >= + - 60
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT DISTINCT ( + 71 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
71

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + 94, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9568
SELECT ALL + CAST( NULL AS SIGNED ) / - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9568
SELECT ALL + CAST ( NULL AS INTEGER ) / - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT ALL - 91 * - COUNT( * ) AS col1 FROM tab1 cor0
----
273

skipif mysql # not compatible
query I rowsort label-9569
SELECT ALL - 91 * - COUNT ( * ) AS col1 FROM tab1 cor0
----
273

query I rowsort
SELECT DISTINCT + - 91 FROM tab0 cor0
----
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1, col0 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT COUNT( * ) * + MAX( - - col0 ) FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-9572
SELECT COUNT ( * ) * + MAX ( - - col0 ) FROM tab0
----
291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col0, col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9574
SELECT + col1 DIV - + col1 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9574
SELECT + col1 / - + col1 AS col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col0 * + + col2 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT - col2 * + + 0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9577
SELECT DISTINCT - - col2 DIV - 28 AS col0 FROM tab1 AS cor0
----
-2
-3

skipif mysql # not compatible
query I rowsort label-9577
SELECT DISTINCT - - col2 / - 28 AS col0 FROM tab1 AS cor0
----
-2
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT - 79 + - - ( + ( - + COUNT( * ) ) ) AS col1 FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-9578
SELECT - 79 + - - ( + ( - + COUNT ( * ) ) ) AS col1 FROM tab2 AS cor0
----
-82

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 61 ) NOT BETWEEN + col0 * col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9580
SELECT ALL + 99 AS col1, col2 + + + CAST( + 74 AS SIGNED ) * col2 FROM tab0 AS cor0
----
99
3525
99
7425
99
750

skipif mysql # not compatible
query II rowsort label-9580
SELECT ALL + 99 AS col1, col2 + + + CAST ( + 74 AS INTEGER ) * col2 FROM tab0 AS cor0
----
99
3525
99
7425
99
750

query I rowsort
SELECT ALL + col2 + 80 AS col2 FROM tab2
----
103
120
138

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9582
SELECT * FROM tab2 WHERE + col2 * + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9582
SELECT * FROM tab2 WHERE + col2 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT ALL - COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT ALL + 81 + + + col2 FROM tab0 AS cor0
----
128
180
91

query I rowsort
SELECT ALL + 87 - - 52 FROM tab2 AS cor0
----
139
139
139

query I rowsort
SELECT + 74 * - + col0 + - + col2 AS col2 FROM tab0 AS cor0
----
-1157
-6448
-7277

query I rowsort
SELECT DISTINCT + col0 * 83 * - - 87 + + col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( col2, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT DISTINCT + 4 + + COUNT( * ) + - - 97 * - + 46 FROM tab2
----
-4455

skipif mysql # not compatible
query I rowsort label-9588
SELECT DISTINCT + 4 + + COUNT ( * ) + - - 97 * - + 46 FROM tab2
----
-4455

query III rowsort
SELECT * FROM tab2 WHERE ( + - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + + 0 AS col2 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT col0 * - col1 AS col2 FROM tab0 WHERE ( col0 * + + col2 ) IS NOT NULL
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab1 WHERE + - col2 < - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 - - - col1 FROM tab1
----
37
44
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9594
SELECT ALL + col0 + - - col0 + CAST( 31 AS SIGNED ) AS col0 FROM tab2
----
123
159
181

skipif mysql # not compatible
query I rowsort label-9594
SELECT ALL + col0 + - - col0 + CAST ( 31 AS INTEGER ) AS col0 FROM tab2
----
123
159
181

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( NOT + col2 IS NOT NULL ) )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( + 79 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 88 + - 94 - + 31 * - + 80 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ce6404010e22de126d18d9c27d054828

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9598
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + 27 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9598
SELECT DISTINCT + CAST ( NULL AS REAL ) * + 27 FROM tab2 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9599
SELECT ALL + 17 DIV - 94 - col2 col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9599
SELECT ALL + 17 / - 94 - col2 col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9600
SELECT ( COUNT( - col0 ) ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( + CAST( NULL AS SIGNED ) ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9600
SELECT ( COUNT ( - col0 ) ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( + CAST ( NULL AS INTEGER ) ) AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 6 ) IN ( 3, col0 * - 44, col2 + - col2 )
----

query I rowsort
SELECT DISTINCT + 13 * col1 + + col1 + + - 54 * - ( + col1 ) AS col1 FROM tab0 AS cor0
----
1428
5508
68

query II rowsort
SELECT - col2, + col0 AS col1 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9604
SELECT + 17 AS col2 FROM tab0 AS cor0 WHERE NOT col1 / + + col1 NOT BETWEEN + 36 + - col1 + - 46 - - CAST( + col1 AS SIGNED ) / + col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9604
SELECT + 17 AS col2 FROM tab0 AS cor0 WHERE NOT col1 / + + col1 NOT BETWEEN + 36 + - col1 + - 46 - - CAST ( + col1 AS INTEGER ) / + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT ALL - MIN( ALL + 3 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL - MIN ( ALL + 3 ) AS col2 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT + 11 AS col1, - col1 AS col1 FROM tab1 AS cor0
----
11
-14
11
-47
11
-5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 48 + 49 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT ALL MIN( DISTINCT + - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL MIN ( DISTINCT + - col0 ) FROM tab1 AS cor0
----
-91

query II rowsort
SELECT col2 * 67, col2 * - + 86 AS col1 FROM tab0
----
3149
-4042
6633
-8514
670
-860

onlyif mysql # aggregate syntax: 
query II rowsort label-9610
SELECT DISTINCT + 77 + - 53, - MIN( ALL + 92 ) + + + COUNT( * ) AS col2 FROM tab0
----
24
-89

skipif mysql # not compatible
query II rowsort label-9610
SELECT DISTINCT + 77 + - 53, - MIN ( ALL + 92 ) + + + COUNT ( * ) AS col2 FROM tab0
----
24
-89

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 61 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9612
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NULL > - CAST( 23 AS SIGNED ) * + 5
----

skipif mysql # not compatible
query IIIIII rowsort label-9612
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NULL > - CAST ( 23 AS INTEGER ) * + 5
----

query I rowsort
SELECT DISTINCT col0 / col2 + - col1 / - + 3 FROM tab0 WHERE NOT - + col2 NOT IN ( + + col0, col2 )
----

query II rowsort
SELECT - col1 * + + 81, col2 FROM tab1 AS cor0
----
-1134
96
-3807
68
-405
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9615
SELECT DISTINCT - col0 DIV + + col2 col0 FROM tab0 AS cor0
----
-8
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9615
SELECT DISTINCT - col0 / + + col2 col0 FROM tab0 AS cor0
----
-8
0

query III rowsort
SELECT * FROM tab2 WHERE + col1 IS NULL AND ( 20 * + col0 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9617
SELECT + CAST( NULL AS SIGNED ) + + 0 + - 7 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9617
SELECT + CAST ( NULL AS INTEGER ) + + 0 + - 7 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9618
SELECT - CAST( NULL AS SIGNED ) + + - CAST( + + col2 AS SIGNED ) + + - 35 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9618
SELECT - CAST ( NULL AS INTEGER ) + + - CAST ( + + col2 AS INTEGER ) + + - 35 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + + col0 ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + - col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + + col1, 15 FROM tab0 AS cor0
----
1
15
21
15
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT 60 * + COUNT( * ) FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-9622
SELECT 60 * + COUNT ( * ) FROM tab2 AS cor0
----
180

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9623
SELECT - 81 AS col2, + CAST( NULL AS DECIMAL ) * col1 * - col1 + + 21 FROM tab0 AS cor0
----
-81
NULL
-81
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-9623
SELECT - 81 AS col2, + CAST ( NULL AS REAL ) * col1 * - col1 + + 21 FROM tab0 AS cor0
----
-81
NULL
-81
NULL
-81
NULL

query I rowsort
SELECT ALL + ( + 55 ) AS col0 FROM tab1 AS cor0
----
55
55
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 42 col1 FROM tab1 AS cor0
----
42
42
42

query II rowsort
SELECT DISTINCT + - col0, - col2 + - 76 AS col1 FROM tab1 AS cor0
----
-51
-172
-85
-135
-91
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT ALL - MIN( DISTINCT + + col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9627
SELECT ALL - MIN ( DISTINCT + + col1 ) FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT + MIN( DISTINCT - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-9628
SELECT + MIN ( DISTINCT - col0 ) FROM tab1
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 col1 FROM tab0
----
37
37
37

query I rowsort
SELECT DISTINCT - 44 + + col2 FROM tab2
----
-21
-4
14

query I rowsort
SELECT ALL 26 + - col2 AS col1 FROM tab2
----
-14
-32
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT ALL ( - COUNT( * ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL ( - COUNT ( * ) ) AS col0 FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9633
SELECT ALL + col1 + + 88 DIV + 55 FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-9633
SELECT ALL + col1 + + 88 / + 55 FROM tab1
----
15
48
6

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 15 > ( - col2 / - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9635
SELECT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) = 56
----

skipif mysql # not compatible
query III rowsort label-9635
SELECT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) = 56
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9636
SELECT ALL col2, + col1 * + col2 col2 FROM tab1 WHERE CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9636
SELECT ALL col2, + col1 * + col2 col2 FROM tab1 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT DISTINCT + 42 + - COUNT( * ) AS col2 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-9637
SELECT DISTINCT + 42 + - COUNT ( * ) AS col2 FROM tab0
----
39

query III rowsort
SELECT * FROM tab0 WHERE NULL = + ( col1 )
----

query I rowsort
SELECT DISTINCT - col0 - - + col0 + col0 AS col0 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT DISTINCT 0 + - - COUNT( ALL 41 ) * - 44 FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT 0 + - - COUNT ( ALL 41 ) * - 44 FROM tab0
----
-132

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9641
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( + - col1 AS DECIMAL ) * + 89 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9641
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( + - col1 AS REAL ) * + 89 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9642
SELECT ALL - - COUNT( - col1 ) / - ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 cor0 WHERE + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL - - COUNT ( - col1 ) / - ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 cor0 WHERE + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + col0 * - + ( col1 ) FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT - 0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col0 * - - 58 FROM tab2
----
2668
3712
4350

query I rowsort
SELECT DISTINCT + 38 * - - col1 * col1 AS col0 FROM tab1
----
7448
83942
950

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT ( NOT + 10 = ( NULL ) ) )
----

query I rowsort
SELECT + col1 * - 78 FROM tab0
----
-1638
-6318
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT - COUNT( - 12 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9649
SELECT - COUNT ( - 12 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9650
SELECT DISTINCT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9650
SELECT DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT + - MIN( + col0 ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9651
SELECT + - MIN ( + col0 ) FROM tab0 cor0
----
-15

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 83 >= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9653
SELECT col0 DIV + - col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-9653
SELECT col0 / + - col1 FROM tab1 AS cor0
----
-1
-17
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 64 + col1 * + col0 )
----

query I rowsort
SELECT DISTINCT + ( col1 ) FROM tab0 WHERE - col2 * 29 BETWEEN NULL AND - 62 / col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9656
SELECT COUNT( * ) + + 42 DIV + COUNT( col1 ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-9656
SELECT COUNT ( * ) + + 42 / + COUNT ( col1 ) FROM tab1
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9657
SELECT ALL CAST( NULL AS SIGNED ) / col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL CAST ( NULL AS INTEGER ) / col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT - COUNT( * ) + + 74 + + 2 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-9658
SELECT - COUNT ( * ) + + 74 + + 2 FROM tab0
----
73

query I rowsort
SELECT col1 + - - col1 FROM tab0
----
162
2
42

query I rowsort
SELECT + col2 * + col0 + - + col1 FROM tab2
----
1007
2483
4283

onlyif mysql # DIV for integer division: 
query I rowsort label-9661
SELECT ALL - col0 DIV ( + col1 ) FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9661
SELECT ALL - col0 / ( + col1 ) FROM tab2
----
-1
0
0

query I rowsort
SELECT + col2 + + - 17 AS col0 FROM tab0
----
-7
30
82

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > - col0 * - col1 * - 90
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE NOT col2 * ( + - col0 ) * + ( col2 ) * + 91 + ( 14 ) >= col2 * - - col2 + col0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT + 17 + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 52 = NULL
----
17

skipif mysql # not compatible
query I rowsort label-9665
SELECT + 17 + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 52 = NULL
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT + ( + SUM( DISTINCT + + ( 36 ) ) ) AS col2 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-9666
SELECT + ( + SUM ( DISTINCT + + ( 36 ) ) ) AS col2 FROM tab2
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9667
SELECT DISTINCT + COUNT( * ) DIV 3 + ( + + 11 ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-9667
SELECT DISTINCT + COUNT ( * ) / 3 + ( + + 11 ) FROM tab1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9668
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> ( + - col0 * CAST( NULL AS SIGNED ) * - + col2 )
----

skipif mysql # not compatible
query III rowsort label-9668
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> ( + - col0 * CAST ( NULL AS INTEGER ) * - + col2 )
----

query I rowsort
SELECT ALL col0 - - 45 + - col1 AS col0 FROM tab2 AS cor0
----
32
40
53

onlyif mysql # aggregate syntax: 
query II rowsort label-9670
SELECT DISTINCT 72 - + 84, COUNT( * ) AS col1 FROM tab1 cor0
----
-12
3

skipif mysql # not compatible
query II rowsort label-9670
SELECT DISTINCT 72 - + 84, COUNT ( * ) AS col1 FROM tab1 cor0
----
-12
3

query I rowsort
SELECT ALL + col1 - - 73 + + + 29 AS col1 FROM tab0 AS cor0
----
103
123
183

onlyif mysql # DIV for integer division: 
query I rowsort label-9672
SELECT - 92 DIV - + col0 AS col0 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9672
SELECT - 92 / - + col0 AS col0 FROM tab2
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT MIN( - col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-9673
SELECT MIN ( - col1 ) FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT DISTINCT - ( ( - COUNT( * ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9674
SELECT DISTINCT - ( ( - COUNT ( * ) ) ) FROM tab0
----
3

query II rowsort
SELECT col1, - 9 FROM tab2
----
51
-9
67
-9
77
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 37 col1 FROM tab2 WHERE NOT NULL <= - + 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT MIN( ALL + - col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9677
SELECT MIN ( ALL + - col2 ) FROM tab2
----
-58

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( col2 ) * col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( col2, col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 * - col2 col0 FROM tab1
----
-249696
-426275
-563108

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 96 < - - 57
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT - + COUNT( * ) + + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( ( + col1 > - + col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9682
SELECT - + COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( ( + col1 > - + col0 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9683
SELECT ALL - + CAST( - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL - + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 21 col0 FROM tab2 cor0
----
21

query I rowsort
SELECT + col1 * 90 - + - col1 * + 66 + 4 + + col0 AS col2 FROM tab2 AS cor0
----
10531
12080
8006

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT SUM( + 64 ) AS col0 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-9686
SELECT SUM ( + 64 ) AS col0 FROM tab1
----
192

query I rowsort
SELECT ALL + 26 + - 99 FROM tab2
----
-73
-73
-73

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 < + col1
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT DISTINCT COUNT( * ) + SUM( DISTINCT - + col0 ) FROM tab1
----
-224

skipif mysql # not compatible
query I rowsort label-9689
SELECT DISTINCT COUNT ( * ) + SUM ( DISTINCT - + col0 ) FROM tab1
----
-224

query I rowsort
SELECT + col2 + + 9 * 39 * - - col1 * - + col1 FROM tab2 WHERE + 61 * - - col2 + - col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col1 IS NULL
----

query I rowsort
SELECT - 49 * - 28 FROM tab1 WHERE + col1 * - 64 IS NULL
----

query II rowsort
SELECT ALL - - 13 AS col1, - 21 * + - 90 FROM tab2 AS cor0
----
13
1890
13
1890
13
1890

query I rowsort
SELECT ALL - 24 + - 25 AS col2 FROM tab2 AS cor0
----
-49
-49
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 55 + - 32 col2 FROM tab1 cor0
----
-87
-87
-87

query I rowsort
SELECT - + 40 + - 58 FROM tab2 AS cor0
----
-98
-98
-98

query II rowsort
SELECT ALL + 77 * col0 AS col1, 8 AS col2 FROM tab2
----
3542
8
4928
8
5775
8

query I rowsort
SELECT col1 + 47 AS col0 FROM tab1
----
52
61
94

query I rowsort
SELECT ALL col0 * - 72 + + col1 FROM tab2
----
-3261
-4531
-5333

query I rowsort
SELECT DISTINCT + 76 + - 48 AS col2 FROM tab1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9701
SELECT ALL + + CAST( NULL AS SIGNED ) - + + 46 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL + + CAST ( NULL AS INTEGER ) - + + 46 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 5 AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( - col2 ) * 12 AS col0 FROM tab0 AS cor0
----
-1188
-120
-564

query I rowsort
SELECT DISTINCT - 64 - + col0 FROM tab0 AS cor0
----
-151
-161
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-9705
SELECT DISTINCT - MAX( ALL 42 ) - + COUNT( * ) - COUNT( * ), - MAX( DISTINCT + - col0 ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-48
49

skipif mysql # not compatible
query II rowsort label-9705
SELECT DISTINCT - MAX ( ALL 42 ) - + COUNT ( * ) - COUNT ( * ), - MAX ( DISTINCT + - col0 ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-48
49

query II rowsort
SELECT + col0, ( 85 ) * - col0 + - col1 AS col1 FROM tab0 AS cor0
----
15
-1356
87
-7416
97
-8246

query I rowsort
SELECT ( - - col1 ) - - col0 AS col0 FROM tab1 cor0
----
138
65
90

query I rowsort
SELECT ALL + col2 - col2 + + col2 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 92 + - col0 <> - - col2
----

query I rowsort
SELECT - 25 * 20 FROM tab2 AS cor0
----
-500
-500
-500

query I rowsort
SELECT DISTINCT + - ( + col1 ) * - col2 * col0 + - col2 AS col2 FROM tab0 cor0
----
18260
57058
9504

onlyif mysql # DIV for integer division: 
query II rowsort label-9712
SELECT ALL + col2 DIV col2 AS col1, 99 DIV - 23 AS col0 FROM tab2 AS cor0
----
1
-4
1
-4
1
-4

skipif mysql # not compatible
query II rowsort label-9712
SELECT ALL + col2 / col2 AS col1, 99 / - 23 AS col0 FROM tab2 AS cor0
----
1
-4
1
-4
1
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9713
SELECT + ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9713
SELECT + ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 <= NULL
----

query I rowsort
SELECT + ( - ( col1 ) ) FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9716
SELECT - + COUNT( DISTINCT + 47 ) DIV - 68 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9716
SELECT - + COUNT ( DISTINCT + 47 ) / - 68 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT MIN( ALL - col0 ) * + 13 AS col0 FROM tab1 AS cor0
----
-1183

skipif mysql # not compatible
query I rowsort label-9717
SELECT MIN ( ALL - col0 ) * + 13 AS col0 FROM tab1 AS cor0
----
-1183

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 + + col0 = - col0
----
-3

skipif mysql # not compatible
query I rowsort label-9718
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 + + col0 = - col0
----
-3

query I rowsort
SELECT DISTINCT + + 71 AS col0 FROM tab2 AS cor0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9720
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9721
SELECT + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT ALL COUNT( ALL + + col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL COUNT ( ALL + + col0 ) AS col2 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT MIN( DISTINCT - 20 ) AS col2 FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-9724
SELECT MIN ( DISTINCT - 20 ) AS col2 FROM tab0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9725
SELECT ALL - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9726
SELECT + CAST( - 62 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-62
-62
-62

skipif mysql # not compatible
query I rowsort label-9726
SELECT + CAST ( - 62 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-62
-62
-62

query II rowsort
SELECT DISTINCT - + col2 AS col0, + col1 AS col0 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 60 col2 FROM tab2 cor0
----
60
60
60

query I rowsort
SELECT + col2 * - + col1 FROM tab0 AS cor0
----
-210
-3807
-99

query II rowsort
SELECT + col2 AS col1, 4 FROM tab2 AS cor0
----
23
4
40
4
58
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9731
SELECT ALL + COUNT( * ), SUM( + col1 ) AS col0 FROM tab2 AS cor0
----
3
195

skipif mysql # not compatible
query II rowsort label-9731
SELECT ALL + COUNT ( * ), SUM ( + col1 ) AS col0 FROM tab2 AS cor0
----
3
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9732
SELECT + CAST( NULL AS SIGNED ) * + 41 * - 31 + + COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9732
SELECT + CAST ( NULL AS INTEGER ) * + 41 * - 31 + + COUNT ( * ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 + - + col2 * 21 + col1 AS col2 FROM tab0
----
-102
-1981
-891

query I rowsort
SELECT DISTINCT - 38 + + col1 AS col2 FROM tab0
----
-17
-37
43

query I rowsort
SELECT DISTINCT 12 + + + 29 AS col2 FROM tab2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9736
SELECT ALL + - CAST( COUNT( * ) AS SIGNED ) * + + 6 AS col2 FROM tab1 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9736
SELECT ALL + - CAST ( COUNT ( * ) AS INTEGER ) * + + 6 AS col2 FROM tab1 cor0
----
-18

query I rowsort
SELECT DISTINCT col2 * + + ( col1 ) FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT DISTINCT + - COUNT( - - 98 ) * COUNT( * ) * - 93 AS col0 FROM tab0 AS cor0
----
837

skipif mysql # not compatible
query I rowsort label-9738
SELECT DISTINCT + - COUNT ( - - 98 ) * COUNT ( * ) * - 93 AS col0 FROM tab0 AS cor0
----
837

onlyif mysql # DIV for integer division: 
query I rowsort label-9739
SELECT ALL + 79 DIV + col0 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-9739
SELECT ALL + 79 / + col0 FROM tab0 AS cor0
----
0
0
5

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT DISTINCT - 42 * - + SUM( ALL - - col2 ) AS col1 FROM tab2
----
5082

skipif mysql # not compatible
query I rowsort label-9741
SELECT DISTINCT - 42 * - + SUM ( ALL - - col2 ) AS col1 FROM tab2
----
5082

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 IS NULL AND NOT NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 + + + 81 - - 97 * - + col1 + - + 32 col0 FROM tab2 AS cor0
----
-2100
-3840
-4860

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 / + 31 = NULL
----

query I rowsort
SELECT DISTINCT + + 4 FROM tab1 cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9746
SELECT ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT ALL - MAX( ALL - + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL - MAX ( ALL - + col2 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT + 94 * - 41 AS col0 FROM tab0 AS cor0
----
-3854
-3854
-3854

query I rowsort
SELECT ALL col0 * 6 FROM tab1
----
306
510
546

query I rowsort
SELECT + col1 * + + col2 * + col0 FROM tab2
----
197120
291450
53958

query I rowsort
SELECT ( + + col0 ) FROM tab1 WHERE NOT - col2 + col2 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9753
SELECT ALL + 57, - MAX( DISTINCT col1 ) AS col1 FROM tab2
----
57
-77

skipif mysql # not compatible
query II rowsort label-9753
SELECT ALL + 57, - MAX ( DISTINCT col1 ) AS col1 FROM tab2
----
57
-77

query I rowsort
SELECT col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9755
SELECT 31 DIV - 74 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9755
SELECT 31 / - 74 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9756
SELECT + COUNT( * ), + COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-9756
SELECT + COUNT ( * ), + COUNT ( * ) FROM tab1
----
3
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9757
SELECT COUNT( col2 ) DIV 6 * + 16 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9757
SELECT COUNT ( col2 ) / 6 * + 16 AS col0 FROM tab2
----
0

query II rowsort
SELECT + 61 AS col0, + 22 + - col2 AS col1 FROM tab2
----
61
-1
61
-18
61
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT DISTINCT + COUNT( DISTINCT + - col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9759
SELECT DISTINCT + COUNT ( DISTINCT + - col1 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT - ( + 73 ) FROM tab2
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT - COUNT( * ) FROM tab2 WHERE NOT + col2 > 46
----
-2

skipif mysql # not compatible
query I rowsort label-9761
SELECT - COUNT ( * ) FROM tab2 WHERE NOT + col2 > 46
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9762
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 * + + 44 + + + col2 >= - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9762
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 * + + 44 + + + col2 >= - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + 83 * - col2 * - col2 FROM tab2 AS cor0
----
132800
279212
43907

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT 65 BETWEEN NULL AND col2
----
3

skipif mysql # not compatible
query I rowsort label-9764
SELECT + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 65 BETWEEN NULL AND col2
----
3

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, col1 AS col0 FROM tab1 AS cor0
----
59
5
68
47
96
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + 79 ) col2 FROM tab2 AS cor0
----
-79
-79
-79

query I rowsort
SELECT col0 * - 52 * + - col0 AS col0 FROM tab0
----
11700
393588
489268

query I rowsort
SELECT ALL - 68 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT - 5 + 14 * + col0 + - + ( - + col2 ) FROM tab2 AS cor0
----
1103
662
931

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT + + COUNT( * ) + + ( COUNT( DISTINCT - col1 ) ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9771
SELECT + + COUNT ( * ) + + ( COUNT ( DISTINCT - col1 ) ) AS col1 FROM tab0 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9772
SELECT + - col0 + - + col2 DIV col2 * - - 48 + - - col2 + - col0 FROM tab2 AS cor0
----
-117
-136
-140

skipif mysql # not compatible
query I rowsort label-9772
SELECT + - col0 + - + col2 / col2 * - - 48 + - - col2 + - col0 FROM tab2 AS cor0
----
-117
-136
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT ALL MAX( DISTINCT + 80 ) AS col2 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-9773
SELECT ALL MAX ( DISTINCT + 80 ) AS col2 FROM tab1 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT DISTINCT + COUNT( + + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9774
SELECT DISTINCT + COUNT ( + + col2 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - AVG ( ALL col1 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + col2 + 25 + + 17 FROM tab0
----
136
240
62

query I rowsort
SELECT - + ( - + col1 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9779
SELECT ALL - CAST( + + 9 AS SIGNED ) + - + 90 AS col1 FROM tab2
----
-99
-99
-99

skipif mysql # not compatible
query I rowsort label-9779
SELECT ALL - CAST ( + + 9 AS INTEGER ) + - + 90 AS col1 FROM tab2
----
-99
-99
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 * - 98 - - - 47 + + col2 col1 FROM tab2
----
-6359
-6377
-6394

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 28 * - 40 ) > 43
----

query I rowsort
SELECT col1 + + - 95 * - col2 AS col2 FROM tab2 AS cor0
----
2236
3877
5577

query I rowsort
SELECT + 29 + col0 FROM tab1 AS cor0
----
114
120
80

query II rowsort
SELECT DISTINCT + - col2 AS col2, - 43 - + 64 FROM tab1 AS cor0
----
-59
-107
-68
-107
-96
-107

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9785
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col0 * - + CAST( - - 60 AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-9785
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col0 * - + CAST ( - - 60 AS INTEGER ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9786
SELECT - 16 * - + col1 - + + 41 * + ( CAST( - + ( 55 ) AS SIGNED ) ) AS col1 FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
2271
2591
3551

skipif mysql # not compatible
query I rowsort label-9786
SELECT - 16 * - + col1 - + + 41 * + ( CAST ( - + ( 55 ) AS INTEGER ) ) AS col1 FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
2271
2591
3551

query I rowsort
SELECT ALL 79 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9788
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 27 + - + 32 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9788
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 27 + - + 32 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT + 93 + + col2 + - col1 * 20 * - col0 AS col0 FROM tab1
----
14469
85701
8652

query I rowsort
SELECT DISTINCT - 67 * + - col1 * 71 AS col0 FROM tab0
----
385317
4757
99897

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT MIN( ALL + + 17 ) col0 FROM tab1
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9791
SELECT MIN ( ALL + + 17 ) col0 FROM tab1
----
17

query I rowsort
SELECT - 58 AS col0 FROM tab1 AS cor0 WHERE NOT ( - col1 + + + col0 ) NOT BETWEEN NULL AND 94 / + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9793
SELECT CAST( - - col2 AS SIGNED ) col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9793
SELECT CAST ( - - col2 AS INTEGER ) col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9794
SELECT - 97 DIV + + col1 + - - col1 FROM tab1 AS cor0
----
-14
45
8

skipif mysql # not compatible
query I rowsort label-9794
SELECT - 97 / + + col1 + - - col1 FROM tab1 AS cor0
----
-14
45
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT + COUNT( 12 ) * - + 99 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-297

skipif mysql # not compatible
query I rowsort label-9795
SELECT + COUNT ( 12 ) * - + 99 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-297

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9796
SELECT ALL + MAX( DISTINCT - + col2 ) * COUNT( * ) DIV + COUNT( * ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9796
SELECT ALL + MAX ( DISTINCT - + col2 ) * COUNT ( * ) / + COUNT ( * ) FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9797
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab0 cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 59 - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9799
SELECT - CAST( MIN( 73 ) AS SIGNED ) AS col2 FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-9799
SELECT - CAST ( MIN ( 73 ) AS INTEGER ) AS col2 FROM tab2
----
-73

query I rowsort
SELECT ALL - 70 * col1 FROM tab2
----
-3570
-4690
-5390

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT - COUNT( * ) * - COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9801
SELECT - COUNT ( * ) * - COUNT ( * ) FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9802
SELECT + col2 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9802
SELECT + col2 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 72 col1 FROM tab2 cor0
----
-14
-32
-49

query I rowsort
SELECT ALL col0 + - - col1 + - col1 FROM tab2
----
46
64
75

query II rowsort
SELECT - ( - col1 ) AS col2, - col0 FROM tab2
----
51
-46
67
-75
77
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9807
SELECT ( COUNT( * ) ) * COUNT( * ) DIV 3 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9807
SELECT ( COUNT ( * ) ) * COUNT ( * ) / 3 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9808
SELECT ALL COUNT( * ) * MAX( - col0 ) + - + COUNT( * ), 60 col2 FROM tab0
----
-48
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9808
SELECT ALL COUNT ( * ) * MAX ( - col0 ) + - + COUNT ( * ), 60 col2 FROM tab0
----
-48
60

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE - col0 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT + COUNT( DISTINCT - + col2 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9810
SELECT + COUNT ( DISTINCT - + col2 ) col2 FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= ( - 35 ) + - + col1 + + 13
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9812
SELECT ALL 94 DIV + - col2 + + + col1 FROM tab1 AS cor0
----
14
4
46

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL 94 / + - col2 + + + col1 FROM tab1 AS cor0
----
14
4
46

query II rowsort
SELECT ALL + col0, col1 * + col2 FROM tab0 AS cor0
----
15
3807
87
210
97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 25 ) col1 FROM tab2 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT 59 + + - COUNT( + col0 ) FROM tab2 AS cor0 WHERE - col0 IS NULL
----
59

skipif mysql # not compatible
query I rowsort label-9815
SELECT 59 + + - COUNT ( + col0 ) FROM tab2 AS cor0 WHERE - col0 IS NULL
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9816
SELECT 56 + + + CAST( - + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-11
-21
5

skipif mysql # not compatible
query I rowsort label-9816
SELECT 56 + + + CAST ( - + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-11
-21
5

query I rowsort
SELECT col2 * + col1 + - col1 FROM tab1 WHERE NULL >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT ALL COUNT( * ) + 47 FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL COUNT ( * ) + 47 FROM tab2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT DISTINCT - MIN( DISTINCT ( col0 ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT - MIN ( DISTINCT ( col0 ) ) FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT ALL - 37 + - ( - COUNT( * ) ) col2 FROM tab1
----
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9820
SELECT ALL - 37 + - ( - COUNT ( * ) ) col2 FROM tab1
----
-34

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT - - ( COUNT( * ) ) - 67 FROM tab1 cor0 WHERE col0 IS NOT NULL
----
-64

skipif mysql # not compatible
query I rowsort label-9822
SELECT - - ( COUNT ( * ) ) - 67 FROM tab1 cor0 WHERE col0 IS NOT NULL
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT ALL - - COUNT( DISTINCT + col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9823
SELECT ALL - - COUNT ( DISTINCT + col2 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col2 * - 48 * col0 AS col1 FROM tab0
----
-33840
-41760
-460944

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col1 NOT IN ( col2, col1 )
----

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN NULL AND - 31
----

query I rowsort
SELECT DISTINCT - ( + + col0 ) FROM tab1 AS cor0
----
-51
-85
-91

query II rowsort
SELECT DISTINCT - col2 AS col2, - col1 - col0 AS col1 FROM tab0 cor0
----
-10
-108
-47
-96
-99
-98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * + 15 * + + 47 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT DISTINCT SUM( col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9830
SELECT DISTINCT SUM ( col1 ) AS col2 FROM tab0 AS cor0
----
103

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( + col2, 2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT - + 34 * COUNT( * ) FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-9832
SELECT - + 34 * COUNT ( * ) FROM tab1 AS cor0
----
-102

query I rowsort
SELECT DISTINCT + 19 * - + col1 FROM tab2 AS cor0
----
-1273
-1463
-969

query II rowsort
SELECT - + 37 AS col2, - 46 * + col2 * 66 + - - col1 AS col1 FROM tab0 cor0
----
-37
-142611
-37
-300563
-37
-30339

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT DISTINCT MAX( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9835
SELECT DISTINCT MAX ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT + - COUNT( - col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9836
SELECT + - COUNT ( - col2 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL col0 * + 63 * - 93 FROM tab1
----
-298809
-498015
-533169

query I rowsort
SELECT - - 45 * + 54 AS col0 FROM tab0 WHERE NOT - col1 > - col1
----
2430
2430
2430

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT ALL COUNT( * ) * - 85 AS col2 FROM tab0
----
-255

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL COUNT ( * ) * - 85 AS col2 FROM tab0
----
-255

query I rowsort
SELECT ALL + 86 AS col0 FROM tab1 WHERE + 71 + - - col1 * - 95 IS NOT NULL
----
86
86
86

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= col1 * - - 43
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9842
SELECT ALL CAST( + 95 AS SIGNED ) * - - 14 FROM tab1
----
1330
1330
1330

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL CAST ( + 95 AS INTEGER ) * - - 14 FROM tab1
----
1330
1330
1330

query I rowsort
SELECT DISTINCT ( - - 51 ) AS col0 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT ALL + COUNT( * ) + + + 99 AS col0 FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL + COUNT ( * ) + + + 99 AS col0 FROM tab1
----
102

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * - col0 * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 40 * col1 * - + col1 AS col1 FROM tab0 AS cor0
----
17640
262440
40

query I rowsort
SELECT - + col0 * + - col0 * - col1 + + col2 FROM tab2 AS cor0
----
-107893
-315352
-376817

query I rowsort
SELECT col1 * + - col2 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT - 86 FROM tab2 WHERE col2 * + ( - col1 ) > NULL
----

query I rowsort
SELECT DISTINCT 15 * col0 * + col0 * 13 FROM tab2
----
1096875
412620
798720

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT 2 * - + MAX( + + col1 ) AS col0 FROM tab2
----
-154

skipif mysql # not compatible
query I rowsort label-9852
SELECT 2 * - + MAX ( + + col1 ) AS col0 FROM tab2
----
-154

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( NULL ) = + + col1 )
----

query I rowsort
SELECT DISTINCT + AVG ( ALL - 2 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT 9 - + col2 * 38 - - col1 AS col1 FROM tab2
----
-1434
-2128
-814

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( ( + col0 ) ) IS NULL
----

query II rowsort
SELECT DISTINCT - col0, + col2 AS col1 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 33, 30 col1 FROM tab0 AS cor0
----
-33
30
-33
30
-33
30

query I rowsort
SELECT - 88 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # DIV for integer division: 
query I rowsort label-9860
SELECT + ( - col0 ) DIV - col2 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-9860
SELECT + ( - col0 ) / - col2 FROM tab0
----
0
0
8

query I rowsort
SELECT ( - ( - col0 ) ) AS col2 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT + - 56 * ( + COUNT( * ) ) * 80 FROM tab1 AS cor0
----
-13440

skipif mysql # not compatible
query I rowsort label-9862
SELECT + - 56 * ( + COUNT ( * ) ) * 80 FROM tab1 AS cor0
----
-13440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9863
SELECT - MAX( ( + - col1 ) ) DIV + - 29 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9863
SELECT - MAX ( ( + - col1 ) ) / + - 29 AS col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT DISTINCT 87 * - COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-264

skipif mysql # not compatible
query I rowsort label-9865
SELECT DISTINCT 87 * - COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT ALL - - MIN( 89 ) FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-9866
SELECT ALL - - MIN ( 89 ) FROM tab1 AS cor0
----
89

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col2 * - col2 BETWEEN - ( + 72 ) AND + col1 * - - col2 - 25 * + 47 * col1 + + 8
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-9868
SELECT COUNT( * ) AS col1, - 71 * COUNT( * ) FROM tab0
----
3
-213

skipif mysql # not compatible
query II rowsort label-9868
SELECT COUNT ( * ) AS col1, - 71 * COUNT ( * ) FROM tab0
----
3
-213

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 11 IS NOT NULL OR NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9871
SELECT ALL * FROM tab1 WHERE col0 * - + col2 < + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9871
SELECT ALL * FROM tab1 WHERE col0 * - + col2 < + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT DISTINCT - SUM( ALL col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-9872
SELECT DISTINCT - SUM ( ALL col2 ) FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT + - COUNT( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9873
SELECT + - COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 45 * col2 * + col0 BETWEEN NULL AND 54
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT ALL COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-9875
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT ALL - + ( + ( + col0 ) ) * - 17 AS col1 FROM tab0 AS cor0
----
1479
1649
255

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 - + 72 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 32 - - col2 * col0 FROM tab0 AS cor0
----
737
902
9635

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < col0 + + col1 - col1 OR NOT NULL IS NULL
----

query I rowsort
SELECT col0 + - - col2 AS col0 FROM tab1 cor0
----
144
147
159

query I rowsort
SELECT - 23 + + col2 AS col0 FROM tab2 cor0
----
0
17
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col1 * 34 col2 FROM tab0
----
3298
41310
62118

query I rowsort
SELECT + col2 + - 32 AS col1 FROM tab2
----
-9
26
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 92 + + - col2 + 7, col2 col1 FROM tab2
----
41
58
59
40
76
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9885
SELECT col1 DIV - 34 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9885
SELECT col1 / - 34 AS col1 FROM tab1
----
-1
0
0

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9887
SELECT DISTINCT + 66 DIV col1 col1 FROM tab2
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9887
SELECT DISTINCT + 66 / col1 col1 FROM tab2
----
0
1

query I rowsort
SELECT + col2 * - + col0 AS col2 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT - SUM( + col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-9889
SELECT - SUM ( + col1 ) FROM tab0
----
-103

query II rowsort
SELECT DISTINCT + col2 + - col2 * - col2 AS col2, - col1 FROM tab0
----
110
-21
2256
-81
9900
-1

query I rowsort
SELECT DISTINCT - col1 * - col2 - + + ( - ( col2 ) ) AS col0 FROM tab1 AS cor0
----
1440
3264
354

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT ALL COUNT( * ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9892
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL ( - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT ALL MAX( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9894
SELECT ALL MAX ( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT - MAX( + col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9895
SELECT - MAX ( + col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9896
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9896
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col0 * 91 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9898
SELECT col0 DIV + ( + col1 ) FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9898
SELECT col0 / + ( + col1 ) FROM tab2
----
0
0
1

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 <> + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-9901
SELECT ALL 24, col1 DIV + col1 AS col1 FROM tab0 AS cor0
----
24
1
24
1
24
1

skipif mysql # not compatible
query II rowsort label-9901
SELECT ALL 24, col1 / + col1 AS col1 FROM tab0 AS cor0
----
24
1
24
1
24
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 > + 15
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT DISTINCT MIN( DISTINCT + col1 ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-9903
SELECT DISTINCT MIN ( DISTINCT + col1 ) FROM tab2 cor0
----
51

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT col2 AS col0, + col2 - col1 AS col0 FROM tab1 AS cor0
----
59
54
68
21
96
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT DISTINCT + MIN( col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9906
SELECT DISTINCT + MIN ( col2 ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT ( - 65 ) FROM tab0
----
-65
-65
-65

query III rowsort
SELECT * FROM tab1 WHERE NOT + 6 - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 96 - + 60 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-9910
SELECT DISTINCT 21 - - - SUM( + 56 ) AS col2, - 62 + + + ( 97 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL
35

skipif mysql # not compatible
query II rowsort label-9910
SELECT DISTINCT 21 - - - SUM ( + 56 ) AS col2, - 62 + + + ( 97 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL
35

query I rowsort
SELECT - 46 * - + col2 + + - col1 FROM tab0 AS cor0
----
2081
439
4553

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9912
SELECT + 56 DIV SUM( - col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9912
SELECT + 56 / SUM ( - col1 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT 62 + + + 87 FROM tab1 AS cor0
----
149
149
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 61 * + + col2 col2 FROM tab2 AS cor0
----
-1403
-2440
-3538

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT ALL ( - - MIN( ALL col0 ) ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9915
SELECT ALL ( - - MIN ( ALL col0 ) ) AS col1 FROM tab0
----
15

query I rowsort
SELECT col2 * + 50 + 2 FROM tab2
----
1152
2002
2902

query II rowsort
SELECT DISTINCT + 55 + - col2 * + col1, 49 * - col2 AS col2 FROM tab1
----
-1289
-4704
-240
-2891
-3141
-3332

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN col2 - + col2 AND NULL
----

query II rowsort
SELECT - + col0 AS col2, + col1 + + + col0 AS col1 FROM tab1 AS cor0
----
-51
65
-85
90
-91
138

query II rowsort
SELECT col1, + col0 + - col0 FROM tab1 AS cor0
----
14
0
47
0
5
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9921
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) NOT IN ( col2, col2 * + col0, - - 89, + col1 + + col2 + + col2 * + col1 + - col0 - + 6, col0, + 29, - col2 + - ( + col0 ), 15 + - col1, + col0, - col2, + 99, + col1 )
----

skipif mysql # not compatible
query III rowsort label-9921
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) NOT IN ( col2, col2 * + col0, - - 89, + col1 + + col2 + + col2 * + col1 + - col0 - + 6, col0, + 29, - col2 + - ( + col0 ), 15 + - col1, + col0, - col2, + 99, + col1 )
----

query I rowsort
SELECT + col0 - - col0 * + col0 AS col1 FROM tab1 AS cor0
----
2652
7310
8372

onlyif mysql # DIV for integer division: 
query I rowsort label-9923
SELECT 35 - - + col2 DIV 64 - + - col1 AS col2 FROM tab2 AS cor0
----
102
112
86

skipif mysql # not compatible
query I rowsort label-9923
SELECT 35 - - + col2 / 64 - + - col1 AS col2 FROM tab2 AS cor0
----
102
112
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9924
SELECT + col1 * 64 * + - CAST( NULL AS SIGNED ) - + + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9924
SELECT + col1 * 64 * + - CAST ( NULL AS INTEGER ) - + + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9925
SELECT ALL col0 DIV 4 FROM tab1
----
12
21
22

skipif mysql # not compatible
query I rowsort label-9925
SELECT ALL col0 / 4 FROM tab1
----
12
21
22

query I rowsort
SELECT col0 * + col1 * - col1 + + col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 col0 FROM tab1
----
80
80
80

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 > + + 30
----
51
14
96
85
5
59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 NOT IN ( - + col0, + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT DISTINCT COUNT( * ) * + MAX( ALL + + 70 ) FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-9931
SELECT DISTINCT COUNT ( * ) * + MAX ( ALL + + 70 ) FROM tab0
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9932
SELECT + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL + 3 * + col1 AS col1 FROM tab0 AS cor0
----
243
3
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT ALL SUM( - + ( + col0 ) ) * - + 67 col0 FROM tab2
----
12395

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9934
SELECT ALL SUM ( - + ( + col0 ) ) * - + 67 col0 FROM tab2
----
12395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9935
SELECT ALL - CAST( - - 37 AS SIGNED ) AS col1 FROM tab1
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-9935
SELECT ALL - CAST ( - - 37 AS INTEGER ) AS col1 FROM tab1
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT + + COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9936
SELECT + + COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT DISTINCT COUNT( * ) FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9937
SELECT DISTINCT COUNT ( * ) FROM tab0, tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9938
SELECT + 74 * col0 DIV - col0 col2 FROM tab2
----
-74
-74
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9938
SELECT + 74 * col0 / - col0 col2 FROM tab2
----
-74
-74
-74

query I rowsort
SELECT - 49 AS col1 FROM tab0
----
-49
-49
-49

query I rowsort
SELECT ALL + col0 * - 56 FROM tab0 AS cor0
----
-4872
-5432
-840

query I rowsort
SELECT col0 * col0 * - col0 * col1 FROM tab2 AS cor0
----
-20185088
-28265625
-4964136

query I rowsort
SELECT + - 98 * + col0 FROM tab0 AS cor0
----
-1470
-8526
-9506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9943
SELECT + + 28 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9943
SELECT + + 28 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT DISTINCT - MIN( - 72 ) AS col0 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-9944
SELECT DISTINCT - MIN ( - 72 ) AS col0 FROM tab2 AS cor0
----
72

query I rowsort
SELECT col1 - + 11 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL - 84 AS col1 FROM tab1 cor0
----
-84
-84
-84

query I rowsort
SELECT - col1 * - 67 + + col2 AS col0 FROM tab2
----
3440
4547
5199

query I rowsort
SELECT - 60 AS col0 FROM tab0 WHERE - ( - - col1 ) IS NOT NULL
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT DISTINCT + COUNT( * ) + 26 * - 14 FROM tab1
----
-361

skipif mysql # not compatible
query I rowsort label-9949
SELECT DISTINCT + COUNT ( * ) + 26 * - 14 FROM tab1
----
-361

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9950
SELECT - col1 * + col1 * - 63 * - + col2 * ( - col2 ) + + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9950
SELECT - col1 * + col1 * - 63 * - + col2 * ( - col2 ) + + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * - 80 + + + 97 AS col0 FROM tab0
----
-1103
-6863
-7663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - + col0 + - col1 col2 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9953
SELECT DISTINCT - col2 * + 68 + + col1 + - - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9953
SELECT DISTINCT - col2 * + 68 + + col1 + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT 72 + - col2 + - 25 FROM tab2
----
-11
24
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9955
SELECT DISTINCT - ( + ( CAST( + 6 AS SIGNED ) ) ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9955
SELECT DISTINCT - ( + ( CAST ( + 6 AS INTEGER ) ) ) AS col1 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT DISTINCT + 37 AS col0 FROM tab1 AS cor0 WHERE NOT ( col2 IS NULL )
----
37

query II rowsort
SELECT 67 * 86, col0 FROM tab2 AS cor0
----
5762
46
5762
64
5762
75

query I rowsort
SELECT ALL col0 + - + col0 * + ( 68 ) AS col0 FROM tab1
----
-3417
-5695
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT - MIN( DISTINCT + col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-9959
SELECT - MIN ( DISTINCT + col1 ) FROM tab1
----
-5

query I rowsort
SELECT ( + 4 ) FROM tab1
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT SUM( col1 ) * - + MIN( ALL + + col2 ) * + 91 - 1 FROM tab0
----
-93731

skipif mysql # not compatible
query I rowsort label-9961
SELECT SUM ( col1 ) * - + MIN ( ALL + + col2 ) * + 91 - 1 FROM tab0
----
-93731

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT + 79 - - COUNT( ALL + 60 ) FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-9962
SELECT + 79 - - COUNT ( ALL + 60 ) FROM tab2
----
82

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 * + 41 + - col0 NOT IN ( + 82, - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NOT + 12 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 * + - 39 col1 FROM tab2
----
-192192
-195975
-91494

query II rowsort
SELECT - 94 AS col0, - col2 FROM tab0
----
-94
-10
-94
-47
-94
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT - 0 * - + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9967
SELECT - 0 * - + COUNT ( * ) FROM tab2
----
0

query II rowsort
SELECT + col2 AS col0, 23 FROM tab1
----
59
23
68
23
96
23

query I rowsort
SELECT col1 * 21 AS col2 FROM tab1
----
105
294
987

query II rowsort
SELECT DISTINCT 72 AS col2, 81 FROM tab0
----
72
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT - - COUNT( * ) AS col0 FROM tab0 WHERE NOT ( - col0 IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-9971
SELECT - - COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( - col0 IS NULL )
----
3

query I rowsort
SELECT DISTINCT - col0 * + - col1 FROM tab1
----
425
4277
714

query II rowsort
SELECT - col1, col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query II rowsort
SELECT DISTINCT - 24 AS col2, 6 * col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - col0 * 5 + 4 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 62 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT ( - 16 ) AS col1 FROM tab2
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT ALL - SUM( DISTINCT 34 ) AS col0 FROM tab2
----
-34

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL - SUM ( DISTINCT 34 ) AS col0 FROM tab2
----
-34

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 * col2 + 84 NOT IN ( - col0 * 55 + 98 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT MIN( col0 ) col0 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9980
SELECT MIN ( col0 ) col0 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT ALL - COUNT( * ) + 78 AS col1 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL - COUNT ( * ) + 78 AS col1 FROM tab0
----
75

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 - 43 / col2 >= ( col2 + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * + ( ( - 16 ) ) - col2 FROM tab0
----
-1683
-170
-799

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9984
SELECT DISTINCT * FROM tab2 WHERE - col1 * CAST( - 22 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9984
SELECT DISTINCT * FROM tab2 WHERE - col1 * CAST ( - 22 AS INTEGER ) IS NULL
----

query I rowsort
SELECT 6 + col0 FROM tab2
----
52
70
81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 47 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT 12 * - 12 FROM tab1
----
-144
-144
-144

query I rowsort
SELECT col0 + + 15 AS col1 FROM tab1
----
100
106
66

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 67 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT MIN( DISTINCT - ( 57 ) ) AS col0 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-9990
SELECT MIN ( DISTINCT - ( 57 ) ) AS col0 FROM tab1
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9991
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE NOT NULL <> - CAST( NULL AS SIGNED ) - col2 * - 12
----

skipif mysql # not compatible
query I rowsort label-9991
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE NOT NULL <> - CAST ( NULL AS INTEGER ) - col2 * - 12
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9992
SELECT ALL ( col0 ) + col0 DIV - col2 AS col0 FROM tab2
----
44
63
74

skipif mysql # not compatible
query I rowsort label-9992
SELECT ALL ( col0 ) + col0 / - col2 AS col0 FROM tab2
----
44
63
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT ALL 94 * + COUNT( * ) FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-9993
SELECT ALL 94 * + COUNT ( * ) FROM tab1
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT ALL + COUNT( * ) * - 15 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL + COUNT ( * ) * - 15 FROM tab1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT ( - COUNT( * ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9995
SELECT ( - COUNT ( * ) ) AS col0 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 * col1 ) >= ( - 11 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9997
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 51 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9997
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 51 AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT COUNT( * ) + - 88 FROM tab1
----
-85

skipif mysql # not compatible
query I rowsort label-9998
SELECT COUNT ( * ) + - 88 FROM tab1
----
-85

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * 24 IS NOT NULL
----

