sqllogictest
Artifact Content
Not logged in

Artifact 0052b618ff095afc60920f4931fecf0db9fa957f:


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 # DIV for integer division: 
query I rowsort label-0
SELECT + + 95 DIV 43 + - 1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-0
SELECT + + 95 / 43 + - 1 FROM tab0 AS cor0
----
1
1
1

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 * - ( - ( 78 ) ) + + 45 / col1 >= NULL
----

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

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

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

query I rowsort
SELECT DISTINCT + col1 * 91 FROM tab1 AS cor0
----
1274
4277
455

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 * - col1 BETWEEN - col2 AND ( col0 * - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( + col2 ) * 29 + col1 FROM tab1
----
1716
2019
2798

query I rowsort
SELECT - 80 + - - 28 + + col2 * - col0 FROM tab0
----
-757
-922
-9655

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9
SELECT DISTINCT CAST( - - col0 AS SIGNED ) + + 75 * + col1 AS col0 FROM tab2
----
3871
5100
5839

skipif mysql # not compatible
query I rowsort label-9
SELECT DISTINCT CAST ( - - col0 AS INTEGER ) + + 75 * + col1 AS col0 FROM tab2
----
3871
5100
5839

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 81 + - col1 col0 FROM tab1
----
34
67
76

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT COUNT( ALL col0 ) + + 18 FROM tab1 WHERE ( NULL ) IN ( 4 + col0 )
----
18

skipif mysql # not compatible
query I rowsort label-12
SELECT COUNT ( ALL col0 ) + + 18 FROM tab1 WHERE ( NULL ) IN ( 4 + col0 )
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-13
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-13
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 + - col1 col0 FROM tab1
----
-13
20
29

query III rowsort
SELECT * FROM tab2 WHERE NULL > 27
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-17
SELECT - CAST( COUNT( * ) AS SIGNED ) * 39 FROM tab1
----
-117

skipif mysql # not compatible
query I rowsort label-17
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * 39 FROM tab1
----
-117

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

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

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

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

skipif mysql # not compatible
query I rowsort label-20
SELECT COUNT ( * ) * + COUNT ( * ) - - COUNT ( * ) FROM tab1 AS cor0 WHERE ( + col1 ) IS NOT NULL
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-21
SELECT 32 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-21
SELECT 32 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT + + col0 - + - ( ( col2 ) ) + + col2 FROM tab2 AS cor0
----
144
191
92

onlyif mysql # DIV for integer division: 
query I rowsort label-23
SELECT - ( col2 ) DIV + 92 + + 59 DIV 9 + - col1 AS col1 FROM tab2
----
-45
-61
-71

skipif mysql # not compatible
query I rowsort label-23
SELECT - ( col2 ) / + 92 + + 59 / 9 + - col1 AS col1 FROM tab2
----
-45
-61
-71

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-24
SELECT - ( CAST ( NULL AS INTEGER ) ) * + 78 col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab0 WHERE + 65 NOT BETWEEN - col2 + + col1 * - col1 AND ( 75 * + col1 + + 69 )
----

query I rowsort
SELECT ALL col0 * + ( col0 ) + - col1 AS col0 FROM tab0
----
144
7548
9408

onlyif mysql # aggregate syntax: 
query I rowsort label-27
SELECT 41 + COUNT( * ) AS col2 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-27
SELECT 41 + COUNT ( * ) AS col2 FROM tab2
----
44

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

query I rowsort
SELECT ALL + col1 * + + 83 - - col2 + - 24 * - col1 AS col1 FROM tab2 AS cor0
----
5480
7227
8279

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> ( 31 )
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-32
SELECT DISTINCT CAST( NULL AS DECIMAL ) * col1 * + col0 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-32
SELECT DISTINCT CAST ( NULL AS REAL ) * col1 * + col0 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT col1 * + 12 * - 44 * - col2 * + col0 AS col0 FROM tab0
----
30151440
5070384
9646560

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT + + SUM( + 78 ) FROM tab2 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-35
SELECT + + SUM ( + 78 ) FROM tab2 AS cor0
----
234

onlyif mysql # DIV for integer division: 
query I rowsort label-36
SELECT - col0 DIV col0 DIV + col2 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-36
SELECT - col0 / col0 / + col2 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-37
SELECT - ( + CAST( + - COUNT( * ) AS SIGNED ) ) + + 54 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
63

skipif mysql # not compatible
query I rowsort label-37
SELECT - ( + CAST ( + - COUNT ( * ) AS INTEGER ) ) + + 54 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
63

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 22 col2, 28 - 43 + + 30 + col1 * 8 AS col0 FROM tab0 AS cor0
----
-22
183
-22
23
-22
663

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

query I rowsort
SELECT DISTINCT col0 * - - 34 FROM tab0 AS cor0
----
2958
3298
510

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

query II rowsort
SELECT ALL + col2, 10 * - - col1 FROM tab2
----
23
510
40
770
58
670

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-45
SELECT DISTINCT - 92 * - - col1 + + - col2 * - 88 + + - col1 + + CAST( col1 AS SIGNED ) FROM tab0
----
-1052
-3316
8620

skipif mysql # not compatible
query I rowsort label-45
SELECT DISTINCT - 92 * - - col1 + + - col2 * - 88 + + - col1 + + CAST ( col1 AS INTEGER ) FROM tab0
----
-1052
-3316
8620

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT + MAX( ALL 23 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-48
SELECT + MAX ( ALL 23 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-49
SELECT DISTINCT 92 + - COUNT( * ) * - SUM( + - col0 ) FROM tab1
----
-589

skipif mysql # not compatible
query I rowsort label-49
SELECT DISTINCT 92 + - COUNT ( * ) * - SUM ( + - col0 ) FROM tab1
----
-589

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-50
SELECT ALL col1 * + - CAST( NULL AS SIGNED ) + 43 + - 55 AS col1, + 61 FROM tab1
----
NULL
61
NULL
61
NULL
61

skipif mysql # not compatible
query II rowsort label-50
SELECT ALL col1 * + - CAST ( NULL AS INTEGER ) + 43 + - 55 AS col1, + 61 FROM tab1
----
NULL
61
NULL
61
NULL
61

query I rowsort
SELECT + + col0 + 88 AS col0 FROM tab2 AS cor0
----
134
152
163

query I rowsort
SELECT ALL col1 - + - col1 AS col2 FROM tab2 AS cor0
----
102
134
154

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

query I rowsort
SELECT - 67 + - col2 AS col1 FROM tab1 AS cor0
----
-126
-135
-163

query II rowsort
SELECT DISTINCT + 61, 26 AS col0 FROM tab0 AS cor0
----
61
26

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-58
SELECT + col0 FROM tab0 WHERE NOT NULL IN ( - CAST( + col2 AS SIGNED ) + - - 56 ) AND 78 NOT BETWEEN col1 AND + col2 - col0 * - 69
----

skipif mysql # not compatible
query I rowsort label-58
SELECT + col0 FROM tab0 WHERE NOT NULL IN ( - CAST ( + col2 AS INTEGER ) + - - 56 ) AND 78 NOT BETWEEN col1 AND + col2 - col0 * - 69
----

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

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

query I rowsort
SELECT ALL col1 * - 98 AS col0 FROM tab0 AS cor0
----
-2058
-7938
-98

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

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

query I rowsort
SELECT DISTINCT - col1 * - col1 + + + col2 FROM tab1 AS cor0
----
2277
292
84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT ALL COUNT( * ) * - - COUNT( * ) * - COUNT( * ) FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-66
SELECT ALL COUNT ( * ) * - - COUNT ( * ) * - COUNT ( * ) FROM tab0
----
-27

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT 33 * + - COUNT( * ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-68
SELECT 33 * + - COUNT ( * ) AS col0 FROM tab0
----
-99

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

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

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

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

query I rowsort
SELECT - ( - ( - + 11 ) ) FROM tab2
----
-11
-11
-11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-73
SELECT DISTINCT ( 41 ) * + 8 AS col2, + CAST( NULL AS DECIMAL ) * + COUNT( * ) * + - 47 FROM tab1 AS cor0
----
328
NULL

skipif mysql # not compatible
query II rowsort label-73
SELECT DISTINCT ( 41 ) * + 8 AS col2, + CAST ( NULL AS REAL ) * + COUNT ( * ) * + - 47 FROM tab1 AS cor0
----
328
NULL

query II rowsort
SELECT ALL + col2 * + col0 + 93 AS col2, 22 + + col0 AS col1 FROM tab0 AS cor0
----
798
37
963
109
9696
119

query I rowsort
SELECT DISTINCT - + col1 * - - col0 * - col0 * + col2 AS col1 FROM tab2 AS cor0
----
12615680
21858750
2482068

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT 69 + - - ( + 28 ) FROM tab0
----
97

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

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

query I rowsort
SELECT ALL - - 74 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-81
SELECT CAST( + ( 58 ) AS SIGNED ) + - col2, col0 AS col0 FROM tab1
----
-1
85
-10
91
-38
51

skipif mysql # not compatible
query II rowsort label-81
SELECT CAST ( + ( 58 ) AS INTEGER ) + - col2, col0 AS col0 FROM tab1
----
-1
85
-10
91
-38
51

query I rowsort
SELECT + 9 + - 83 FROM tab2 AS cor0
----
-74
-74
-74

query I rowsort
SELECT ALL col1 * 99 AS col1 FROM tab1 AS cor0
----
1386
4653
495

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 NOT IN ( - + ( + col1 ), + 33 * - 34, 58 / + 9 * - 28 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT ALL - - SUM( DISTINCT + col1 ) * + ( + MIN( 44 ) ) FROM tab1 AS cor0
----
2904

skipif mysql # not compatible
query I rowsort label-85
SELECT ALL - - SUM ( DISTINCT + col1 ) * + ( + MIN ( 44 ) ) FROM tab1 AS cor0
----
2904

query II rowsort
SELECT DISTINCT 26, col1 AS col1 FROM tab0
----
26
1
26
21
26
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, + col2 + + 11 col0 FROM tab2 WHERE NULL IS NULL
----
23
34
40
51
58
69

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT - 55 * + + COUNT( * ) * + 15 FROM tab2
----
-2475

skipif mysql # not compatible
query I rowsort label-88
SELECT - 55 * + + COUNT ( * ) * + 15 FROM tab2
----
-2475

query I rowsort
SELECT DISTINCT col2 + + 37 FROM tab0
----
136
47
84

query II rowsort
SELECT DISTINCT 33 AS col0, col1 + 18 AS col1 FROM tab1
----
33
23
33
32
33
65

query I rowsort
SELECT DISTINCT col0 + - - col2 AS col2 FROM tab0
----
196
62
97

query I rowsort
SELECT DISTINCT - col0 * + + col2 - + 13 + col1 - + col2 FROM tab2
----
-1043
-2536
-4354

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

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

query I rowsort
SELECT col0 * - 85 FROM tab2 cor0 WHERE NULL BETWEEN + 6 AND - col0
----

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

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

query I rowsort
SELECT - 32 - col1 * - + 73 FROM tab0 AS cor0
----
1501
41
5881

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

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

query I rowsort
SELECT + 46 + + col0 FROM tab1 AS cor0
----
131
137
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 22 IS NOT NULL
----

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

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + 58 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-103
SELECT + MIN( + 96 ) DIV - 95 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-103
SELECT + MIN ( + 96 ) / - 95 FROM tab2 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-104
SELECT ALL - - 5 DIV - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-104
SELECT ALL - - 5 / - col1 FROM tab2 AS cor0
----
0
0
0

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + 98, + col1 + - + col0 + - 93 )
----

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, + 24 * + 23 * 38 col0 FROM tab2 AS cor0
----
-51
20976
-67
20976
-77
20976

query I rowsort
SELECT DISTINCT col2 * 69 AS col1 FROM tab2 AS cor0
----
1587
2760
4002

onlyif mysql # aggregate syntax: 
query II rowsort label-112
SELECT - 60 * + COUNT( * ), + COUNT( * ) + - COUNT( * ) * + 84 AS col0 FROM tab2
----
-180
-249

skipif mysql # not compatible
query II rowsort label-112
SELECT - 60 * + COUNT ( * ), + COUNT ( * ) + - COUNT ( * ) * + 84 AS col0 FROM tab2
----
-180
-249

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

skipif mysql # not compatible
query I rowsort label-113
SELECT DISTINCT 89 FROM tab1 WHERE NOT - - col0 / + col0 + col2 / CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT ALL - - 74 * + COUNT( DISTINCT - col2 ) + 27 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
249

skipif mysql # not compatible
query I rowsort label-114
SELECT ALL - - 74 * + COUNT ( DISTINCT - col2 ) + 27 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
249

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

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

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

query I rowsort
SELECT col0 + col0 + + 82 FROM tab0 AS cor0
----
112
256
276

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT ALL - 92 - + MAX( DISTINCT - col1 ) AS col2 FROM tab2 WHERE NULL >= + - ( + ( - col1 ) ) + - - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-120
SELECT ALL - 92 - + MAX ( DISTINCT - col1 ) AS col2 FROM tab2 WHERE NULL >= + - ( + ( - col1 ) ) + - - col0
----
NULL

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

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

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

query II rowsort
SELECT ALL col0 * + 35 + col2, - col1 + - col0 AS col1 FROM tab0 AS cor0
----
3055
-108
3494
-98
572
-96

query I rowsort
SELECT col0 * 39 AS col0 FROM tab2 AS cor0
----
1794
2496
2925

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

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

query I rowsort
SELECT + 83 * + col0 * + + col2 FROM tab0 AS cor0
----
58515
72210
797049

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

query I rowsort
SELECT ALL - col0 + - + col0 AS col0 FROM tab1 AS cor0 WHERE NOT col0 = - col2
----
-102
-170
-182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-129
SELECT ALL - 50 DIV + SUM( ALL 82 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL - 50 / + SUM ( ALL 82 ) FROM tab1
----
0

query I rowsort
SELECT - 96 * 47 * + - 15 * - - col2 + col1 FROM tab0
----
3181041
6700321
676821

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-131
SELECT + col0 + col1 AS col0, - 25 * - col2 * + - CAST( + 75 AS SIGNED ) + - CAST( - - 17 AS SIGNED ) AS col1 FROM tab2
----
141
-75017
142
-108767
97
-43142

skipif mysql # not compatible
query II rowsort label-131
SELECT + col0 + col1 AS col0, - 25 * - col2 * + - CAST ( + 75 AS INTEGER ) + - CAST ( - - 17 AS INTEGER ) AS col1 FROM tab2
----
141
-75017
142
-108767
97
-43142

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

skipif mysql # not compatible
query I rowsort label-132
SELECT - CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 WHERE NULL = - - 4
----

query I rowsort
SELECT DISTINCT - col1 + + 4 FROM tab0
----
-17
-77
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-134
SELECT ALL + + CAST( - col1 AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-134
SELECT ALL + + CAST ( - col1 AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT DISTINCT SUM( DISTINCT + 25 ) + - COUNT( - - col2 ) * - MAX( col1 ) FROM tab2 AS cor0
----
256

skipif mysql # not compatible
query I rowsort label-135
SELECT DISTINCT SUM ( DISTINCT + 25 ) + - COUNT ( - - col2 ) * - MAX ( col1 ) FROM tab2 AS cor0
----
256

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

query I rowsort
SELECT ALL ( - - 82 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-140
SELECT + col1 * - CAST( + + col2 AS SIGNED ) * - - 91 AS col2 FROM tab2
----
-106743
-280280
-353626

skipif mysql # not compatible
query I rowsort label-140
SELECT + col1 * - CAST ( + + col2 AS INTEGER ) * - - 91 AS col2 FROM tab2
----
-106743
-280280
-353626

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

skipif mysql # not compatible
query I rowsort label-141
SELECT + COUNT ( * ) / 19 AS col2 FROM tab0 cor0
----
0

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

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

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

query I rowsort
SELECT ALL + col1 * 35 FROM tab2
----
1785
2345
2695

query II rowsort
SELECT - 98, col2 AS col1 FROM tab0
----
-98
10
-98
47
-98
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 99 < NULL
----

query I rowsort
SELECT ALL + 43 + + 40 FROM tab1
----
83
83
83

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 + + 48 + + col0 + + - col2 + - 35 / + + col0 > ( - col2 * + - 98 * ( - - 55 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-149
SELECT + 11 * - ( 59 ) * + CAST( - + col1 AS SIGNED ) AS col0 FROM tab0
----
13629
52569
649

skipif mysql # not compatible
query I rowsort label-149
SELECT + 11 * - ( 59 ) * + CAST ( - + col1 AS INTEGER ) AS col0 FROM tab0
----
13629
52569
649

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

onlyif mysql # aggregate syntax: 
query II rowsort label-151
SELECT + MIN( 53 ) AS col1, + MAX( + col1 ) AS col2 FROM tab1
----
53
47

skipif mysql # not compatible
query II rowsort label-151
SELECT + MIN ( 53 ) AS col1, + MAX ( + col1 ) AS col2 FROM tab1
----
53
47

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-153
SELECT DISTINCT - CAST( + ( col2 ) AS SIGNED ) 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-153
SELECT DISTINCT - CAST ( + ( col2 ) AS INTEGER ) col1 FROM tab1 AS cor0
----
-59
-68
-96

query II rowsort
SELECT DISTINCT - + 13 AS col1, + col2 FROM tab1 cor0
----
-13
59
-13
68
-13
96

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT COUNT( DISTINCT - - 56 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-155
SELECT COUNT ( DISTINCT - - 56 ) FROM tab1
----
1

query I rowsort
SELECT ALL col2 + + 50 * + - 77 FROM tab2
----
-3792
-3810
-3827

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT 66 * + - COUNT( * ) + + - 79 FROM tab2
----
-277

skipif mysql # not compatible
query I rowsort label-157
SELECT 66 * + - COUNT ( * ) + + - 79 FROM tab2
----
-277

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE col1 * 14 IS NULL
----

query I rowsort
SELECT - ( + - col1 ) + + col1 FROM tab1 AS cor0
----
10
28
94

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

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

query I rowsort
SELECT DISTINCT + col1 - - 90 AS col2 FROM tab1 cor0
----
104
137
95

query II rowsort
SELECT col1 * 17 * - col0, col1 AS col0 FROM tab1
----
-12138
14
-7225
5
-72709
47

onlyif mysql # DIV for integer division: 
query I rowsort label-165
SELECT + 81 DIV 95 * col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-165
SELECT + 81 / 95 * col0 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-166
SELECT DISTINCT 95 - - - ( col1 ) + + col1 * CAST( 57 AS SIGNED ) AS col0 FROM tab2
----
2951
3847
4407

skipif mysql # not compatible
query I rowsort label-166
SELECT DISTINCT 95 - - - ( col1 ) + + col1 * CAST ( 57 AS INTEGER ) AS col0 FROM tab2
----
2951
3847
4407

query I rowsort
SELECT DISTINCT ( col1 ) * 77 - + col0 FROM tab0
----
-20
1530
6222

query I rowsort
SELECT 54 * ( + + 70 ) FROM tab0
----
3780
3780
3780

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

skipif mysql # not compatible
query I rowsort label-169
SELECT ALL 49 * + COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab0
----
49

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - 28, ( + col1 ) - ( - 90 ) )
----

query I rowsort
SELECT + col2 - - - 97 FROM tab1
----
-1
-29
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT MIN( ALL - + col1 ) - - COUNT( * ) FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-172
SELECT MIN ( ALL - + col1 ) - - COUNT ( * ) FROM tab2
----
-74

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

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

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

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

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

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

query I rowsort
SELECT - + 34 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT - + MAX( ALL - + 36 ) FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-180
SELECT - + MAX ( ALL - + 36 ) FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----
NULL

query II rowsort
SELECT - - 21 * col2 AS col0, col2 FROM tab0 AS cor0
----
2079
99
210
10
987
47

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-185
SELECT COUNT( * ) AS col1, 60 AS col0 FROM tab1
----
3
60

skipif mysql # not compatible
query II rowsort label-185
SELECT COUNT ( * ) AS col1, 60 AS col0 FROM tab1
----
3
60

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 81 ) + - col0 IN ( - + col2 + - + col0, + 34 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * col1 NOT BETWEEN - col2 * + 0 AND + 37 * col0 + col2 + - col1 * - col2 * + col2
----

query I rowsort
SELECT ALL 67 + + col0 * + 68 FROM tab1
----
3535
5847
6255

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT ALL COUNT( * ) + - 84 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-189
SELECT ALL COUNT ( * ) + - 84 FROM tab1
----
-81

query I rowsort
SELECT ALL + col1 * 24 + + - col1 + 2 AS col2 FROM tab0 AS cor0
----
1865
25
485

query I rowsort
SELECT ALL + 30 + + col0 FROM tab2 AS cor0
----
105
76
94

query I rowsort
SELECT DISTINCT + 84 FROM tab1 cor0
----
84

query I rowsort
SELECT - 2 + - col0 FROM tab0 cor0
----
-17
-89
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-194
SELECT + ( + - COUNT( + col2 ) ) + 11 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-194
SELECT + ( + - COUNT ( + col2 ) ) + 11 FROM tab2 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT ALL + 70 + MIN( + 77 ) + MAX( DISTINCT + 99 ) AS col2 FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL + 70 + MIN ( + 77 ) + MAX ( DISTINCT + 99 ) AS col2 FROM tab0
----
246

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 28 NOT BETWEEN NULL AND - col1 + - col2
----

query I rowsort
SELECT + 34 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-198
SELECT DISTINCT + + col0 + 18 * + col1 - CAST( - - col1 AS SIGNED ) FROM tab1 AS cor0
----
170
289
890

skipif mysql # not compatible
query I rowsort label-198
SELECT DISTINCT + + col0 + 18 * + col1 - CAST ( - - col1 AS INTEGER ) FROM tab1 AS cor0
----
170
289
890

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= - 40
----

query I rowsort
SELECT ( - col2 ) - 32 AS col1 FROM tab2 AS cor0
----
-55
-72
-90

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

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

query I rowsort
SELECT col2 + - - col1 + 56 AS col2 FROM tab1 cor0
----
120
166
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-205
SELECT - 81 * COUNT( * ) + - MIN( - col1 ) AS col0 FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND - CAST( + - col0 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-205
SELECT - 81 * COUNT ( * ) + - MIN ( - col1 ) AS col0 FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND - CAST ( + - col0 AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 49 * - 50 FROM tab2
----
2450

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

query II rowsort
SELECT + col1 * + col1 + col2 AS col2, - col2 FROM tab1 AS cor0
----
2277
-68
292
-96
84
-59

query I rowsort
SELECT col2 * + - col1 - 69 FROM tab1 cor0
----
-1413
-3265
-364

query I rowsort
SELECT DISTINCT 93 * + col1 * - - col1 * + col0 AS col0 FROM tab0
----
3568131
9021
9152595

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

query I rowsort
SELECT DISTINCT col1 * 49 FROM tab0
----
1029
3969
49

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT + + MAX( ALL - 27 ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-27

skipif mysql # not compatible
query I rowsort label-213
SELECT + + MAX ( ALL - 27 ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-27

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

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

query I rowsort
SELECT - 29 * col2 * - col1 AS col0 FROM tab0 AS cor0
----
110403
2871
6090

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

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

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

query I rowsort
SELECT ALL + + col0 FROM tab1 AS cor0 WHERE NOT 82 NOT IN ( + + 25, 23 * + col1 )
----

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

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

query I rowsort
SELECT ALL - col0 * col2 * - ( + 52 ) AS col0 FROM tab1 cor0
----
254592
260780
321776

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT 69 + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + ( 65 ) * - - 44 + + 91 - - col1 < + 64 / col2 + + - col1 * + col2
----
66

skipif mysql # not compatible
query I rowsort label-221
SELECT 69 + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + ( 65 ) * - - 44 + + 91 - - col1 < + 64 / col2 + + - col1 * + col2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-222
SELECT ALL - col1 * 64 DIV 9 * 23 - + 77 AS col1 FROM tab2 cor0
----
-11025
-12658
-8403

skipif mysql # not compatible
query I rowsort label-222
SELECT ALL - col1 * 64 / 9 * 23 - + 77 AS col1 FROM tab2 cor0
----
-11025
-12658
-8403

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-223
SELECT DISTINCT AVG ( DISTINCT + col0 ) * - COUNT( * ) * SUM( ALL + CAST( NULL AS SIGNED ) ) + - 18 + - + 79 + - 62 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-223
SELECT DISTINCT AVG ( DISTINCT + col0 ) * - COUNT ( * ) * SUM ( ALL + CAST ( NULL AS INTEGER ) ) + - 18 + - + 79 + - 62 FROM tab0 AS cor0
----
NULL

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-225
SELECT ALL + SUM ( + + col2 ) col2 FROM tab1
----
223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-226
SELECT ALL - CAST( + ( COUNT( * ) ) AS SIGNED ) + - 15 AS col2 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-226
SELECT ALL - CAST ( + ( COUNT ( * ) ) AS INTEGER ) + - 15 AS col2 FROM tab2
----
-18

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

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

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

query I rowsort
SELECT ALL - 21 + col2 + col1 AS col1 FROM tab1
----
43
89
94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <= - col2 + col1 * + 39
----

query II rowsort
SELECT - + col0 - col1, - col0 + + - col1 FROM tab1 AS cor0
----
-138
-138
-65
-65
-90
-90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-233
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-233
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col1
----
0

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

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

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

query I rowsort
SELECT ALL + - col0 - + col0 AS col1 FROM tab0 AS cor0
----
-174
-194
-30

query I rowsort
SELECT DISTINCT col0 - - - 90 FROM tab2 AS cor0
----
-15
-26
-44

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

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT - COUNT( * ) * + 45 + + 64 AS col2 FROM tab0 AS cor0 WHERE + col1 <> - - col2
----
-71

skipif mysql # not compatible
query I rowsort label-239
SELECT - COUNT ( * ) * + 45 + + 64 AS col2 FROM tab0 AS cor0 WHERE + col1 <> - - col2
----
-71

query I rowsort
SELECT ALL + 70 - - + col1 FROM tab2 AS cor0
----
121
137
147

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN NULL AND ( - 67 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + col2 / - col2 AND ( 51 )
----

query I rowsort
SELECT - col2 * - - col1 AS col0 FROM tab1
----
-1344
-295
-3196

query II rowsort
SELECT DISTINCT col1, - 1 + + + 59 AS col0 FROM tab2
----
51
58
67
58
77
58

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT - col0 / + - 55 * 64 - col1 * - col1 + + - col2 * + col1 + - col1 - col2 - - 93 * - 52 NOT IN ( - 84 + - + col1 )
----

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

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + 83 >= NULL
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE NOT col1 - + 29 * + col1 < col0
----

query I rowsort
SELECT ( + 75 ) FROM tab0 AS cor0 WHERE NOT 3 <= ( - - col2 )
----

query I rowsort
SELECT DISTINCT + col1 * 58 FROM tab1 cor0
----
2726
290
812

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

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

query I rowsort
SELECT ALL col0 * - - col2 * + + 68 AS col1 FROM tab0 AS cor0
----
47940
59160
653004

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 68, - ( col2 ) * + 0 col2 FROM tab0 AS cor0
----
68
0
68
0
68
0

query I rowsort
SELECT + ( + 25 ) + - - col0 FROM tab2 AS cor0 WHERE NOT + 93 IS NULL
----
100
71
89

query I rowsort
SELECT DISTINCT col2 * - 35 FROM tab1
----
-2065
-2380
-3360

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

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT ALL - SUM( - + 23 ) AS col1 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-261
SELECT ALL - SUM ( - + 23 ) AS col1 FROM tab1 AS cor0
----
69

query I rowsort
SELECT ALL + 35 * - - col0 + 20 FROM tab2 AS cor0
----
1630
2260
2645

query I rowsort
SELECT ALL - col2 * + col0 - 66 + 24 FROM tab2 AS cor0
----
-1100
-2602
-4392

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 75 AND + 16
----

query I rowsort
SELECT ALL - col2 * - 27 AS col2 FROM tab1 AS cor0
----
1593
1836
2592

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-268
SELECT COUNT( * ), 60 AS col0 FROM tab1
----
3
60

skipif mysql # not compatible
query II rowsort label-268
SELECT COUNT ( * ), 60 AS col0 FROM tab1
----
3
60

onlyif mysql # aggregate syntax: 
query II rowsort label-269
SELECT + 58 * + + 70 - + MAX( + ( + col2 ) ), - 0 AS col1 FROM tab0 WHERE col0 IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-269
SELECT + 58 * + + 70 - + MAX ( + ( + col2 ) ), - 0 AS col1 FROM tab0 WHERE col0 IS NULL
----
NULL
0

query II rowsort
SELECT ALL + col2, col2 * - col0 FROM tab2
----
23
-1058
40
-2560
58
-4350

query I rowsort
SELECT ALL - 4 + ( + - 80 ) FROM tab1
----
-84
-84
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-272
SELECT - 47 + - + COUNT( * ) - + 53 DIV - 90 AS col2 FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-272
SELECT - 47 + - + COUNT ( * ) - + 53 / - 90 AS col2 FROM tab2
----
-50

query I rowsort
SELECT DISTINCT + col2 * - col1 - - ( - 34 ) * + col1 * + 51 FROM tab2
----
-120064
-136598
-89607

query I rowsort
SELECT + 65 + + col2 * + 79 * - 71 * 29 FROM tab1
----
-11060883
-15615391
-9596934

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

query I rowsort
SELECT col1 + - - 99 AS col1 FROM tab1 AS cor0
----
104
113
146

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT - COUNT( * ) + - 74 FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-277
SELECT - COUNT ( * ) + - 74 FROM tab0 AS cor0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-278
SELECT ALL + 83 * ( + + 78 ) + + col1 + + - 1 + - col2 DIV - col2 - - col0 col0 FROM tab0 cor0 WHERE NOT ( - + 80 = + col2 )
----
6570
6572
6582

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-278
SELECT ALL + 83 * ( + + 78 ) + + col1 + + - 1 + - col2 / - col2 - - col0 col0 FROM tab0 cor0 WHERE NOT ( - + 80 = + col2 )
----
6570
6572
6582

query I rowsort
SELECT DISTINCT + + 19 FROM tab1 AS cor0
----
19

query I rowsort
SELECT ALL + 5 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT col2 * + 46 FROM tab0
----
2162
4554
460

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-283
SELECT ALL + SUM( ALL + - ( + col0 ) ) - - COUNT( * ) * + 74 DIV + 71 FROM tab0
----
-196

skipif mysql # not compatible
query I rowsort label-283
SELECT ALL + SUM ( ALL + - ( + col0 ) ) - - COUNT ( * ) * + 74 / + 71 FROM tab0
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-284
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 65 * 74 AS col1 FROM tab2
----
4810

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

query I rowsort
SELECT ALL - 58 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

query I rowsort
SELECT DISTINCT - + col2 * + col2 FROM tab0 WHERE - - 8 IS NULL
----

query I rowsort
SELECT - col1 * + - col0 AS col0 FROM tab0
----
1215
1827
97

query I rowsort
SELECT col1 * - 27 AS col2 FROM tab1
----
-1269
-135
-378

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

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

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

query II rowsort
SELECT DISTINCT 88, col0 AS col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 95 <> NULL
----

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

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

query I rowsort
SELECT ALL + col0 + - col1 * + + col1 FROM tab1
----
-145
-2118
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, - 99 AS col0 FROM tab2
----
-51
-99
-67
-99
-77
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT - MAX( DISTINCT + 12 ) + + ( + MAX( ( - col0 ) ) ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-305
SELECT - MAX ( DISTINCT + 12 ) + + ( + MAX ( ( - col0 ) ) ) FROM tab2 AS cor0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-306
SELECT ALL 80 DIV - + col0 + + 46 * + col2 FROM tab2 cor0
----
1057
1839
2667

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL 80 / - + col0 + + 46 * + col2 FROM tab2 cor0
----
1057
1839
2667

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

query I rowsort
SELECT DISTINCT - + 83 + + + 10 AS col2 FROM tab2 AS cor0
----
-73

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-311
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > col0 * col1 * + - col2 * + + CAST( - col2 AS SIGNED ) + - 86
----

skipif mysql # not compatible
query III rowsort label-311
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > col0 * col1 * + - col2 * + + CAST ( - col2 AS INTEGER ) + - 86
----

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL col2 * - 10 + - - col2 AS col2 FROM tab2
----
-207
-360
-522

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT DISTINCT 1 + - - COUNT( * ) FROM tab2 WHERE + col0 NOT IN ( + col0 )
----
1

skipif mysql # not compatible
query I rowsort label-314
SELECT DISTINCT 1 + - - COUNT ( * ) FROM tab2 WHERE + col0 NOT IN ( + col0 )
----
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT - + COUNT( * ) FROM tab2 AS cor0 WHERE col2 BETWEEN - - col0 AND + col0 * - 36
----
0

skipif mysql # not compatible
query I rowsort label-317
SELECT - + COUNT ( * ) FROM tab2 AS cor0 WHERE col2 BETWEEN - - col0 AND + col0 * - 36
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-318
SELECT DISTINCT - - COUNT( * ) DIV + 18 AS col2 FROM tab0 AS cor0 WHERE 70 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT - - COUNT ( * ) / + 18 AS col2 FROM tab0 AS cor0 WHERE 70 IS NULL
----
0

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

query I rowsort
SELECT ALL - 35 + - col0 * + 24 * 65 AS col0 FROM tab2 AS cor0
----
-117035
-71795
-99875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-321
SELECT ALL COUNT( ALL + - ( col1 ) ) - - 46 DIV - 63 + 12 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-321
SELECT ALL COUNT ( ALL + - ( col1 ) ) - - 46 / - 63 + 12 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT + COUNT( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL <= ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-322
SELECT + COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL <= ( NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-323
SELECT + 47 DIV + col2 + + + col0 * + col1 FROM tab2
----
2348
4929
5025

skipif mysql # not compatible
query I rowsort label-323
SELECT + 47 / + col2 + + + col0 * + col1 FROM tab2
----
2348
4929
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT ALL - COUNT( * ) * 31 AS col1 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-324
SELECT ALL - COUNT ( * ) * 31 AS col1 FROM tab0
----
-93

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT col1, + 18 * - + 84 FROM tab1 AS cor0
----
14
-1512
47
-1512
5
-1512

query II rowsort
SELECT - - 37, + col0 * + + col1 + + 52 AS col0 FROM tab0 AS cor0
----
37
1267
37
149
37
1879

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( - col0 ) * - - 61 AS col0 FROM tab2
----
-2806
-3904
-4575

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + col1 + + col0 = 41
----

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

query I rowsort
SELECT DISTINCT 62 + 88 FROM tab0 cor0
----
150

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

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

query I rowsort
SELECT DISTINCT col0 + + 42 AS col1 FROM tab0 AS cor0
----
129
139
57

query I rowsort
SELECT + col1 * col1 * - ( + + col2 ) + - 33 + - col2 AS col1 FROM tab1 AS cor0
----
-150313
-1567
-18945

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NULL NOT IN ( + ( - col2 ), - 38, + - col2, + 48 + col0 + - - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-345
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL NOT IN ( + ( - col2 ), - 38, + - col2, + 48 + col0 + - - col0 )
----
0

query I rowsort
SELECT + - 12 * - 39 AS col2 FROM tab2 AS cor0
----
468
468
468

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + ( - 65 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT + SUM( - col2 ) * - 69 * + + COUNT( + col0 ) col1 FROM tab0 cor0
----
32292

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-348
SELECT + SUM ( - col2 ) * - 69 * + + COUNT ( + col0 ) col1 FROM tab0 cor0
----
32292

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

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT ALL ( - 2 ) + COUNT( * ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-350
SELECT ALL ( - 2 ) + COUNT ( * ) AS col2 FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 * - + col2 col2 FROM tab0
----
-198
-220
-3854

onlyif mysql # aggregate syntax: 
query I rowsort label-352
SELECT + 15 + + - MAX( - - col2 ) AS col1 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-352
SELECT + 15 + + - MAX ( - - col2 ) AS col1 FROM tab1
----
-81

query III rowsort
SELECT * FROM tab2 WHERE + 22 * 74 * + col0 * + 65 > col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT + 22 * COUNT( ALL + + 44 ) + - 11 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-354
SELECT + 22 * COUNT ( ALL + + 44 ) + - 11 FROM tab2
----
55

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( + - 79 ) >= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * + 92 FROM tab0 AS cor0
----
1380
8004
8924

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 96 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-360
SELECT 62 * + MAX( DISTINCT + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-360
SELECT 62 * + MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT + 39 * - ( - + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-362
SELECT + 39 * - ( - + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
117

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col1 <= 33
----

onlyif mysql # DIV for integer division: 
query I rowsort label-364
SELECT - - 53 * col0 + - ( + + col0 ) DIV - col0 FROM tab1 AS cor0
----
2704
4506
4824

skipif mysql # not compatible
query I rowsort label-364
SELECT - - 53 * col0 + - ( + + col0 ) / - col0 FROM tab1 AS cor0
----
2704
4506
4824

onlyif mysql # aggregate syntax: 
query II rowsort label-365
SELECT - - 68 col0, COUNT( + col2 ) col1 FROM tab2 AS cor0 WHERE NOT - 95 < - col1 / - - col2
----
68
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-365
SELECT - - 68 col0, COUNT ( + col2 ) col1 FROM tab2 AS cor0 WHERE NOT - 95 < - col1 / - - col2
----
68
0

query I rowsort
SELECT DISTINCT col2 * 17 FROM tab1 cor0
----
1003
1156
1632

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

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

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE NOT + 58 * + - col1 < NULL
----

query I rowsort
SELECT ALL 91 + - col1 FROM tab2 WHERE NOT NULL > NULL
----

query II rowsort
SELECT - col0 AS col2, - col2 * 83 AS col2 FROM tab1
----
-51
-7968
-85
-4897
-91
-5644

query I rowsort
SELECT + ( 14 ) FROM tab1
----
14
14
14

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-374
SELECT col1 DIV + - col2 col0 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-374
SELECT col1 / + - col2 col0 FROM tab2 AS cor0
----
-1
-1
-2

query I rowsort
SELECT - col0 * + 68 * + - 80 + - + 58 AS col0 FROM tab2 AS cor0
----
250182
348102
407942

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 94 * col1 IS NULL
----

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

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

query I rowsort
SELECT - 59 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query I rowsort
SELECT - col1 * + + 25 + + 47 + - col0 + - 51 AS col0 FROM tab0
----
-126
-2044
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT ALL - 13 + - SUM( DISTINCT + - col2 ) FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-380
SELECT ALL - 13 + - SUM ( DISTINCT + - col2 ) FROM tab1 AS cor0
----
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-381
SELECT ALL - 44 + - CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
15
24
52

skipif mysql # not compatible
query I rowsort label-381
SELECT ALL - 44 + - CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
15
24
52

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

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

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

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

query I rowsort
SELECT + col2 * - col1 + 89 AS col0 FROM tab0 AS cor0
----
-10
-121
-3718

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

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

query I rowsort
SELECT DISTINCT col2 * col1 * + col1 * + col2 AS col2 FROM tab2
----
1375929
15100996
9486400

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

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-391
SELECT DISTINCT 51 * + COUNT( * ) DIV COUNT( * ) DIV - 70 * - MAX( DISTINCT col0 ) * - + 17 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-391
SELECT DISTINCT 51 * + COUNT ( * ) / COUNT ( * ) / - 70 * - MAX ( DISTINCT col0 ) * - + 17 FROM tab2
----
0

query I rowsort
SELECT 29 - - col0 FROM tab0
----
116
126
44

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-395
SELECT DISTINCT CAST( - col0 AS SIGNED ) * - 58 * - 50 AS col2 FROM tab2 AS cor0
----
-133400
-185600
-217500

skipif mysql # not compatible
query I rowsort label-395
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * - 58 * - 50 AS col2 FROM tab2 AS cor0
----
-133400
-185600
-217500

query II rowsort
SELECT col1 AS col0, - 97 AS col0 FROM tab1
----
14
-97
47
-97
5
-97

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 45 + - col1 >= - - 89
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-399
SELECT SUM( 34 ) - - - COUNT( * ) AS col1, COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + 87 >= + + 14 + - ( - col0 ) + col2 * CAST( + - col0 AS SIGNED )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-399
SELECT SUM ( 34 ) - - - COUNT ( * ) AS col1, COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + 87 >= + + 14 + - ( - col0 ) + col2 * CAST ( + - col0 AS INTEGER )
----
NULL
0

query I rowsort
SELECT + 13 * + - 5 FROM tab2 AS cor0
----
-65
-65
-65

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 BETWEEN + col0 - col0 + + + col2 + col1 * col1 * 41 / 44 * + col1 AND - - col2
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 41 / 71 col1 FROM tab1 AS cor0 WHERE NOT + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT ALL 98 * + + SUM( col0 ) * - SUM( - col2 ) + + COUNT( * ) + + 23 AS col0 FROM tab0 AS cor0
----
3042338

skipif mysql # not compatible
query I rowsort label-404
SELECT ALL 98 * + + SUM ( col0 ) * - SUM ( - col2 ) + + COUNT ( * ) + + 23 AS col0 FROM tab0 AS cor0
----
3042338

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-406
SELECT DISTINCT MAX( - - 15 ) DIV + 97 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-406
SELECT DISTINCT MAX ( - - 15 ) / + 97 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-407
SELECT DISTINCT + 73 DIV - col1 AS col1 FROM tab1
----
-1
-14
-5

skipif mysql # not compatible
query I rowsort label-407
SELECT DISTINCT + 73 / - col1 AS col1 FROM tab1
----
-1
-14
-5

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-409
SELECT DISTINCT 56 * - COUNT( * ), 17 AS col2 FROM tab1
----
-168
17

skipif mysql # not compatible
query II rowsort label-409
SELECT DISTINCT 56 * - COUNT ( * ), 17 AS col2 FROM tab1
----
-168
17

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 15 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-411
SELECT DISTINCT - 55 + - + COUNT ( * ) FROM tab2
----
-58

query I rowsort
SELECT + ( + col1 ) + col2 + ( - col1 ) AS col2 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT + 51 + col0 * col1 AS col1 FROM tab1 AS cor0
----
4328
476
765

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT MIN( DISTINCT - 80 ) col0 FROM tab2
----
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-414
SELECT MIN ( DISTINCT - 80 ) col0 FROM tab2
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-415
SELECT DISTINCT 40 DIV 96 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-415
SELECT DISTINCT 40 / 96 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-416
SELECT ALL - COUNT( * ) DIV - 17 * 59 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-416
SELECT ALL - COUNT ( * ) / - 17 * 59 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

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

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

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

query II rowsort
SELECT + 21, col1 - - - 10 AS col0 FROM tab2 AS cor0
----
21
41
21
57
21
67

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 NOT BETWEEN NULL AND - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + col0 - + + col2 AS col2 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT - MIN( - col0 ) - - 3 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-423
SELECT - MIN ( - col0 ) - - 3 FROM tab2 AS cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-424
SELECT + 84 - ( + col1 ) col1, - CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
37
NULL
70
NULL
79
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-424
SELECT + 84 - ( + col1 ) col1, - CAST ( NULL AS INTEGER ) + col2 FROM tab1 AS cor0
----
37
NULL
70
NULL
79
NULL

query I rowsort
SELECT + 89 - col2 + - col0 FROM tab1 AS cor0
----
-55
-58
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - ( 9 ) col0 FROM tab0 AS cor0
----
-12
-72
8

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

query I rowsort
SELECT - col2 * - 86 + - - col1 AS col0 FROM tab0
----
4123
8515
881

query II rowsort
SELECT DISTINCT - + 32 AS col0, 87 AS col1 FROM tab0 WHERE NOT - - col0 NOT BETWEEN NULL AND NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-431
SELECT ALL * FROM tab0 cor0 WHERE NULL >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-431
SELECT ALL * FROM tab0 cor0 WHERE NULL >= + CAST ( NULL AS INTEGER )
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT + + 38 FROM tab1 AS cor0
----
38

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

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

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

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

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

query I rowsort
SELECT DISTINCT + ( - col2 ) * + 79 FROM tab0 AS cor0
----
-3713
-7821
-790

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

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

query I rowsort
SELECT 41 + - col0 + 4 * - + col1 AS col2 FROM tab2
----
-209
-302
-331

query I rowsort
SELECT - 83 * col0 + - 41 AS col1 FROM tab0
----
-1286
-7262
-8092

query I rowsort
SELECT ALL - + col2 FROM tab0 WHERE NULL <= + 25 * + 72 * + - col1 + 93 + col0
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, 95 + 87 + 62 col0 FROM tab2
----
46
244
64
244
75
244

query I rowsort
SELECT ALL - col0 * - - col2 + - ( col1 ) FROM tab1
----
-4910
-5020
-6235

query I rowsort
SELECT - 93 AS col1 FROM tab1
----
-93
-93
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-448
SELECT - 11 AS col0, + CAST( - + COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
-11
-3

skipif mysql # not compatible
query II rowsort label-448
SELECT - 11 AS col0, + CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
-11
-3

query I rowsort
SELECT DISTINCT + 44 - - col0 + - - col0 AS col2 FROM tab0 AS cor0
----
218
238
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 4 + - col0 + - 10 col1 FROM tab0 cor0
----
-103
-21
-93

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

query II rowsort
SELECT DISTINCT - + ( - + col1 ), col0 - col2 AS col2 FROM tab0 AS cor0
----
1
-2
21
77
81
-32

query I rowsort
SELECT + 66 * col2 AS col2 FROM tab0 AS cor0
----
3102
6534
660

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-455
SELECT + ( CAST( + ( 83 ) AS SIGNED ) ) AS col0 FROM tab2
----
83
83
83

skipif mysql # not compatible
query I rowsort label-455
SELECT + ( CAST ( + ( 83 ) AS INTEGER ) ) AS col0 FROM tab2
----
83
83
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
85
91

query I rowsort
SELECT col2 * - col2 * + + col0 AS col2 FROM tab2
----
-102400
-24334
-252300

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

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT DISTINCT + - MAX( + - col1 ) * - COUNT( * ) * - - 2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-6

skipif mysql # not compatible
query I rowsort label-459
SELECT DISTINCT + - MAX ( + - col1 ) * - COUNT ( * ) * - - 2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-460
SELECT COUNT( ALL - - CAST( col0 AS SIGNED ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-460
SELECT COUNT ( ALL - - CAST ( col0 AS INTEGER ) ) FROM tab0
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT - COUNT( * ) * + - MAX( + col1 ) * 29 + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> col1
----
NULL

skipif mysql # not compatible
query I rowsort label-462
SELECT - COUNT ( * ) * + - MAX ( + col1 ) * 29 + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> col1
----
NULL

query I rowsort
SELECT ALL + - 59 AS col0 FROM tab2 AS cor0 WHERE ( + + col0 ) BETWEEN - - col1 AND NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) BETWEEN + 57 AND 95 / - 49
----

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

skipif mysql # not compatible
query I rowsort label-466
SELECT ALL - ( MAX ( ALL - 47 ) ) AS col2 FROM tab0
----
47

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

query I rowsort
SELECT col1 * col1 - + col0 AS col2 FROM tab1
----
-60
145
2118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-469
SELECT ALL 84 * - 71 + + 26 DIV - SUM( col0 ) FROM tab2
----
-5964

skipif mysql # not compatible
query I rowsort label-469
SELECT ALL 84 * - 71 + + 26 / - SUM ( col0 ) FROM tab2
----
-5964

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE + 84 + 45 NOT IN ( + col0 + - col1 / col0 )
----
3

skipif mysql # not compatible
query I rowsort label-470
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE + 84 + 45 NOT IN ( + col0 + - col1 / col0 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT - 95 - - COUNT( * ) FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-471
SELECT - 95 - - COUNT ( * ) FROM tab0
----
-92

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-475
SELECT - col1 DIV + col0 - + ( col2 + 36 DIV - 64 ) AS col0 FROM tab0
----
-10
-52
-99

skipif mysql # not compatible
query I rowsort label-475
SELECT - col1 / + col0 - + ( col2 + 36 / - 64 ) AS col0 FROM tab0
----
-10
-52
-99

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

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

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

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

query I rowsort
SELECT ( col1 ) FROM tab2 WHERE ( NULL ) <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) * 33 col2 FROM tab0 WHERE NOT + 7 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT DISTINCT - MAX( ALL 70 ) AS col2 FROM tab2 WHERE NOT NULL = ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-481
SELECT DISTINCT - MAX ( ALL 70 ) AS col2 FROM tab2 WHERE NOT NULL = ( - col1 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-482
SELECT ( - SUM ( ALL col2 ) ) AS col1 FROM tab0
----
-156

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

skipif mysql # not compatible
query I rowsort label-483
SELECT col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT - col2 + col2 FROM tab2 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT ALL + col2 + + col1 AS col2 FROM tab2 WHERE NOT ( + ( + 75 ) * col2 ) IS NULL
----
117
125
74

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 33 ) < NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT DISTINCT + SUM( DISTINCT - col2 ) - 40 col1 FROM tab2
----
-161

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-489
SELECT DISTINCT + SUM ( DISTINCT - col2 ) - 40 col1 FROM tab2
----
-161

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

skipif mysql # not compatible
query I rowsort label-490
SELECT DISTINCT - COUNT ( * ) + - 15 FROM tab1
----
-18

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 < - 7
----

query I rowsort
SELECT + col0 + 1 * + col1 FROM tab2
----
141
142
97

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

skipif mysql # not compatible
query I rowsort label-493
SELECT + 81 + + COUNT ( * ) FROM tab0 cor0
----
84

query I rowsort
SELECT DISTINCT - 32 * - ( AVG ( DISTINCT col2 ) ) + 28 AS col1 FROM tab0 AS cor0 WHERE NULL >= NULL
----
NULL

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT + 29 * - COUNT( * ) FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-498
SELECT + 29 * - COUNT ( * ) FROM tab2 AS cor0
----
-87

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-499
SELECT DISTINCT + CAST( - 36 AS SIGNED ) - - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-499
SELECT DISTINCT + CAST ( - 36 AS INTEGER ) - - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 9 FROM tab1 cor0 CROSS JOIN tab2
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT DISTINCT + ( col0 ) + - col1 FROM tab1
----
37
44
80

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

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

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT ( + 53 ) = NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT DISTINCT - 7 + COUNT( col1 ) * - COUNT( * ) FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-505
SELECT DISTINCT - 7 + COUNT ( col1 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-16

query I rowsort
SELECT + 3 * 51 - col0 * - 46 FROM tab1 AS cor0
----
2499
4063
4339

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT 53 - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-507
SELECT 53 - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
56

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 <= + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + 14 col2 FROM tab0 AS cor0
----
-113
-24
-61

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

query I rowsort
SELECT - - col1 - - col0 AS col1 FROM tab1 cor0
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-512
SELECT - + CAST( + col0 AS SIGNED ) + - col0 * col2 FROM tab1 AS cor0
----
-4947
-5100
-6279

skipif mysql # not compatible
query I rowsort label-512
SELECT - + CAST ( + col0 AS INTEGER ) + - col0 * col2 FROM tab1 AS cor0
----
-4947
-5100
-6279

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

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

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

query I rowsort
SELECT ALL 17 AS col1 FROM tab1 AS cor0 WHERE NULL IN ( col1 + 96 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 24 = NULL
----

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

skipif mysql # not compatible
query I rowsort label-518
SELECT col1 AS col2 FROM tab1 WHERE NOT 52 - 7 * - CAST ( NULL AS REAL ) NOT BETWEEN ( NULL ) AND ( + col1 + 13 )
----

query I rowsort
SELECT DISTINCT 69 * + col2 FROM tab2
----
1587
2760
4002

query I rowsort
SELECT ALL - ( + 27 ) AS col0 FROM tab0
----
-27
-27
-27

query I rowsort
SELECT ALL - col1 * 87 AS col2 FROM tab2
----
-4437
-5829
-6699

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

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

query I rowsort
SELECT DISTINCT 35 * - 49 * - ( col2 ) AS col0 FROM tab2
----
39445
68600
99470

query I rowsort
SELECT DISTINCT col2 * col2 AS col1 FROM tab2 WHERE NOT ( NULL ) < ( col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 / 68 + + col0 * col0 NOT BETWEEN 3 + col2 * col0 AND ( - 72 )
----

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

skipif mysql # not compatible
query I rowsort label-526
SELECT COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 NOT IN ( - 54 )
----

query I rowsort
SELECT - 54 * + col2 AS col0 FROM tab2
----
-1242
-2160
-3132

query I rowsort
SELECT ALL + col1 * + - ( 24 ) AS col1 FROM tab1
----
-1128
-120
-336

onlyif mysql # DIV for integer division: 
query I rowsort label-530
SELECT ALL - col1 DIV - - 62 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-530
SELECT ALL - col1 / - - 62 FROM tab0
----
-1
0
0

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

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

query I rowsort
SELECT DISTINCT + - 84 AS col1 FROM tab2 AS cor0
----
-84

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

query I rowsort
SELECT col1 * + + 27 * - 28 FROM tab2
----
-38556
-50652
-58212

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab2 WHERE - + ( col1 ) IN ( col0 )
----

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 6 * col2 - col2 * - col0 IS NOT NULL
----

query I rowsort
SELECT + 31 * + - 79 FROM tab2 AS cor0
----
-2449
-2449
-2449

query I rowsort
SELECT 78 * - col2 FROM tab1 AS cor0
----
-4602
-5304
-7488

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-540
SELECT 44 / + COUNT( * ) + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-540
SELECT 44 / + COUNT ( * ) + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - col2 + - 47 FROM tab2 AS cor0
----
-24
-7
11

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - 25 * + col2 col0 FROM tab1 WHERE ( NULL ) <= - ( + + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-544
SELECT - COUNT( ALL 9 ) AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND ( - 63 * + CAST( 35 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-544
SELECT - COUNT ( ALL 9 ) AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND ( - 63 * + CAST ( 35 AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-545
SELECT ALL - COUNT( * ) * ( MIN( ALL col0 ) ) FROM tab1 WHERE + 70 * - CAST( NULL AS DECIMAL ) IS NULL
----
-153

skipif mysql # not compatible
query I rowsort label-545
SELECT ALL - COUNT ( * ) * ( MIN ( ALL col0 ) ) FROM tab1 WHERE + 70 * - CAST ( NULL AS REAL ) IS NULL
----
-153

query I rowsort
SELECT DISTINCT + 29 + - col0 AS col2 FROM tab0
----
-58
-68
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-547
SELECT * FROM tab2 WHERE ( - col0 * + - CAST( NULL AS SIGNED ) ) NOT BETWEEN NULL AND 0
----

skipif mysql # not compatible
query III rowsort label-547
SELECT * FROM tab2 WHERE ( - col0 * + - CAST ( NULL AS INTEGER ) ) NOT BETWEEN NULL AND 0
----

query I rowsort
SELECT ( + ( + col1 ) ) AS col2 FROM tab1
----
14
47
5

query I rowsort
SELECT + 89 FROM tab1 WHERE - - 90 NOT IN ( + col1 )
----
89
89
89

query I rowsort
SELECT ALL - ( + 21 ) - col0 AS col0 FROM tab2
----
-67
-85
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT MIN( + 18 ) col2 FROM tab1
----
18

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

query I rowsort
SELECT ALL - ( - 68 ) + - 35 FROM tab1 AS cor0
----
33
33
33

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 92 * col1 IN ( - - 6 + col1 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT DISTINCT - 6 + + ( COUNT( - col0 ) ) + - + SUM( - col1 ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-556
SELECT DISTINCT - 6 + + ( COUNT ( - col0 ) ) + - + SUM ( - col1 ) FROM tab1
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-557
SELECT + - 90 DIV - MIN( + col0 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-557
SELECT + - 90 / - MIN ( + col0 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT + col1 * col1 * + 3 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
588
6627
75

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

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

query I rowsort
SELECT DISTINCT - 3 FROM tab1 AS cor0 WHERE 30 IS NULL
----

query I rowsort
SELECT + 63 * col1 AS col0 FROM tab1 cor0 WHERE NOT NULL >= - col0 + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 >= - col0 + - 72
----

query II rowsort
SELECT + 10 AS col1, - col2 * - col0 FROM tab0
----
10
705
10
870
10
9603

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

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

query I rowsort
SELECT - col1 * - + col2 AS col0 FROM tab0
----
210
3807
99

query I rowsort
SELECT + 96 * - 5 * + - 61 FROM tab1
----
29280
29280
29280

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT DISTINCT - COUNT( * ) * - + MIN( col0 ) AS col1 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-568
SELECT DISTINCT - COUNT ( * ) * - + MIN ( col0 ) AS col1 FROM tab1
----
153

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

onlyif mysql # DIV for integer division: 
query I rowsort label-570
SELECT ALL + 85 DIV - col1 FROM tab0
----
-1
-4
-85

skipif mysql # not compatible
query I rowsort label-570
SELECT ALL + 85 / - col1 FROM tab0
----
-1
-4
-85

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

query II rowsort
SELECT + col0 * - 42 AS col0, - col1 FROM tab2
----
-1932
-51
-2688
-77
-3150
-67

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

query I rowsort
SELECT - + col0 AS col1 FROM tab2 WHERE NOT + + col1 IS NULL
----
-46
-64
-75

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-576
SELECT DISTINCT * FROM tab1 WHERE NOT 44 * col0 * - col1 BETWEEN NULL AND + 11 * - CAST( NULL AS DECIMAL ) + col2
----

skipif mysql # not compatible
query III rowsort label-576
SELECT DISTINCT * FROM tab1 WHERE NOT 44 * col0 * - col1 BETWEEN NULL AND + 11 * - CAST ( NULL AS REAL ) + col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT MIN( - + col1 ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-578
SELECT MIN ( - + col1 ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-580
SELECT col0 DIV - 17 FROM tab0 AS cor0
----
-5
-5
0

skipif mysql # not compatible
query I rowsort label-580
SELECT col0 / - 17 FROM tab0 AS cor0
----
-5
-5
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT ALL COUNT( - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT - 6 + + 41 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-582
SELECT ALL COUNT ( - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT - 6 + + 41 IS NULL
----
3

query I rowsort
SELECT - + ( 22 ) + + ( + 95 ) FROM tab0 AS cor0
----
73
73
73

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-586
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE NOT + 97 / - CAST( NULL AS SIGNED ) IS NOT NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-586
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE NOT + 97 / - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT + 99 * 32 * + - col2 AS col0 FROM tab2 AS cor0
----
-126720
-183744
-72864

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

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

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

query I rowsort
SELECT + 16 + + 50 AS col1 FROM tab1
----
66
66
66

query II rowsort
SELECT col1 + - 57 * + 19 AS col1, + col2 * col2 AS col0 FROM tab2
----
-1006
1600
-1016
3364
-1032
529

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

query I rowsort
SELECT - 83 + - 86 AS col2 FROM tab2
----
-169
-169
-169

query I rowsort
SELECT + + col1 + - col0 FROM tab1 WHERE - col2 IS NOT NULL
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT COUNT( * ) + + COUNT( * ) * COUNT( col2 ) * - MIN( ALL + col1 ) AS col0 FROM tab2
----
-456

skipif mysql # not compatible
query I rowsort label-595
SELECT COUNT ( * ) + + COUNT ( * ) * COUNT ( col2 ) * - MIN ( ALL + col1 ) AS col0 FROM tab2
----
-456

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

skipif mysql # not compatible
query I rowsort label-596
SELECT DISTINCT - 83 + COUNT ( * ) FROM tab1
----
-80

query I rowsort
SELECT ALL col1 - - 22 - + + col1 * + col1 FROM tab2
----
-2528
-4400
-5830

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-598
SELECT MAX( DISTINCT + col2 ) + - 96 AS col2, + CAST( NULL AS SIGNED ) * SUM( DISTINCT col1 ) AS col1 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-598
SELECT MAX ( DISTINCT + col2 ) + - 96 AS col2, + CAST ( NULL AS INTEGER ) * SUM ( DISTINCT col1 ) AS col1 FROM tab0
----
3
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-600
SELECT ALL - COUNT( * ) AS col1, 47 FROM tab1 AS cor0
----
-3
47

skipif mysql # not compatible
query II rowsort label-600
SELECT ALL - COUNT ( * ) AS col1, 47 FROM tab1 AS cor0
----
-3
47

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

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

query I rowsort
SELECT + 99 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT + COUNT( * ) AS col1 FROM ( tab2 cor0 LEFT JOIN tab0 AS cor1 ON NOT + + 11 = NULL )
----
3

skipif mysql # not compatible
query I rowsort label-603
SELECT + COUNT ( * ) AS col1 FROM ( tab2 cor0 LEFT JOIN tab0 AS cor1 ON NOT + + 11 = NULL )
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT DISTINCT + + COUNT( * ) - MAX( ALL - col0 ) + + 60 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
109

skipif mysql # not compatible
query I rowsort label-607
SELECT DISTINCT + + COUNT ( * ) - MAX ( ALL - col0 ) + + 60 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
109

query I rowsort
SELECT DISTINCT + 68 * - col2 AS col0 FROM tab2
----
-1564
-2720
-3944

query I rowsort
SELECT ( + col2 ) * 77 FROM tab1
----
4543
5236
7392

query I rowsort
SELECT ALL 61 * + 49 FROM tab1
----
2989
2989
2989

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 * - col0 col1 FROM tab2
----
119646
336675
379456

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-615
SELECT - 99 AS col2, ( - MIN( col0 ) ) AS col0 FROM tab2
----
-99
-46

skipif mysql # not compatible
query II rowsort label-615
SELECT - 99 AS col2, ( - MIN ( col0 ) ) AS col0 FROM tab2
----
-99
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 89 col2 FROM tab0 AS cor0
----
-4183
-8811
-890

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( + - 36 ) / - + 49
----

query I rowsort
SELECT - col2 AS col0 FROM tab0 cor0 WHERE NOT + col0 <= - - 61 + + col2
----
-10

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

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

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

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

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

query I rowsort
SELECT col2 * - - col1 + + - col1 FROM tab0
----
189
3726
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-623
SELECT + col2 * - - col0 * 27 + col0 + - ( - 60 ) * + CAST( NULL AS SIGNED ) AS col2, + ( + - 36 ) col1 FROM tab2
----
NULL
-36
NULL
-36
NULL
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-623
SELECT + col2 * - - col0 * 27 + col0 + - ( - 60 ) * + CAST ( NULL AS INTEGER ) AS col2, + ( + - 36 ) col1 FROM tab2
----
NULL
-36
NULL
-36
NULL
-36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-624
SELECT * FROM tab2 AS cor0 WHERE ( - - 42 ) < 84 AND NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-624
SELECT * FROM tab2 AS cor0 WHERE ( - - 42 ) < 84 AND NOT CAST ( NULL AS INTEGER ) IS NULL
----

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

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

query I rowsort
SELECT DISTINCT 2 * 68 FROM tab2 AS cor0
----
136

query I rowsort
SELECT ALL - col2 + - + col2 AS col1 FROM tab2 cor0
----
-116
-46
-80

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

query I rowsort
SELECT + col0 + + 18 + + 92 FROM tab1 AS cor0
----
161
195
201

query I rowsort
SELECT DISTINCT - 65 * 41 FROM tab2 AS cor0
----
-2665

query I rowsort
SELECT ALL - + 24 * + 58 * col2 FROM tab1 cor0
----
-133632
-82128
-94656

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-632
SELECT * FROM tab0 AS cor0 WHERE - col2 - + CAST( NULL AS DECIMAL ) > + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-632
SELECT * FROM tab0 AS cor0 WHERE - col2 - + CAST ( NULL AS REAL ) > + CAST ( NULL AS INTEGER )
----

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

query II rowsort
SELECT ALL - col1 AS col2, col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT ALL 67 + + - col0 FROM tab2 cor0
----
-8
21
3

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

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

query I rowsort
SELECT 72 * - ( + 11 ) FROM tab0
----
-792
-792
-792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-638
SELECT COUNT( * ) DIV - 68 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-638
SELECT COUNT ( * ) / - 68 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-639
SELECT DISTINCT SUM( CAST( ( + col1 ) AS SIGNED ) ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-639
SELECT DISTINCT SUM ( CAST ( ( + col1 ) AS INTEGER ) ) AS col1 FROM tab0
----
103

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-641
SELECT 20 * ( - CAST( - 84 AS SIGNED ) ) FROM tab2
----
1680
1680
1680

skipif mysql # not compatible
query I rowsort label-641
SELECT 20 * ( - CAST ( - 84 AS INTEGER ) ) FROM tab2
----
1680
1680
1680

query I rowsort
SELECT 40 - col1 + + + 60 + + 10 FROM tab2 AS cor0
----
33
43
59

query I rowsort
SELECT ALL 18 + col1 FROM tab1 AS cor0
----
23
32
65

query I rowsort
SELECT DISTINCT col0 * - + ( + 48 ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-645
SELECT + - col2 + + + CAST( + col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
-98
11
34

skipif mysql # not compatible
query I rowsort label-645
SELECT + - col2 + + + CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
-98
11
34

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-647
SELECT ALL + - col0, col0 + + CAST( 14 AS SIGNED ) + col2 - + - col1 DIV 54 + - 35 AS col1 FROM tab0 AS cor0
----
-15
42
-87
76
-97
175

skipif mysql # not compatible
query II rowsort label-647
SELECT ALL + - col0, col0 + + CAST ( 14 AS INTEGER ) + col2 - + - col1 / 54 + - 35 AS col1 FROM tab0 AS cor0
----
-15
42
-87
76
-97
175

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 4 col0, - 11 + + col0 AS col0 FROM tab1 AS cor0
----
4
40
4
74
4
80

query I rowsort
SELECT DISTINCT + 23 * - + col1 + 69 FROM tab0 AS cor0
----
-1794
-414
46

query I rowsort
SELECT + col0 * + + col1 + col2 AS col2 FROM tab2 AS cor0
----
2369
4968
5083

onlyif mysql # DIV for integer division: 
query I rowsort label-652
SELECT ALL 62 * - 25 - - 81 DIV + + 6 - - 24 DIV 21 + col2 FROM tab2 AS cor0
----
-1478
-1496
-1513

skipif mysql # not compatible
query I rowsort label-652
SELECT ALL 62 * - 25 - - 81 / + + 6 - - 24 / 21 + col2 FROM tab2 AS cor0
----
-1478
-1496
-1513

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT - MAX( - col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-653
SELECT - MAX ( - col1 ) FROM tab1
----
5

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-656
SELECT + 97 FROM tab2 cor0 WHERE NOT NULL <= + CAST( + col1 AS SIGNED ) AND NOT NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-656
SELECT + 97 FROM tab2 cor0 WHERE NOT NULL <= + CAST ( + col1 AS INTEGER ) AND NOT NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT ALL + COUNT( * ) * - 9 + 59 AS col1 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-657
SELECT ALL + COUNT ( * ) * - 9 + 59 AS col1 FROM tab1 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-658
SELECT DISTINCT - COUNT( * ) * - 68 + + 69 AS col2 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-658
SELECT DISTINCT - COUNT ( * ) * - 68 + + 69 AS col2 FROM tab1
----
273

query I rowsort
SELECT col1 * + 29 FROM tab0 cor0
----
2349
29
609

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE col1 <= + 53
----
-87
-97

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 99 NOT IN ( - col1, - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-663
SELECT ALL 73 DIV - col0 + col0 AS col1, col2 col0 FROM tab0 AS cor0
----
11
47
87
10
97
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-663
SELECT ALL 73 / - col0 + col0 AS col1, col2 col0 FROM tab0 AS cor0
----
11
47
87
10
97
99

query I rowsort
SELECT - + 78 * + col1 + + 66 FROM tab0 AS cor0
----
-12
-1572
-6252

query I rowsort
SELECT ALL + col2 - 31 AS col0 FROM tab2 AS cor0
----
-8
27
9

query I rowsort
SELECT + col1 - + 98 FROM tab0 AS cor0
----
-17
-77
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT - - COUNT( * ) - + 56 + COUNT( * ) FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-667
SELECT - - COUNT ( * ) - + 56 + COUNT ( * ) FROM tab1 AS cor0
----
-50

query I rowsort
SELECT + + col2 * + col2 - + - col0 + - - col2 - col2 * + + col2 + + 98 FROM tab2 AS cor0
----
167
202
231

query I rowsort
SELECT DISTINCT + col1 * - ( col0 ) - + col2 FROM tab1 AS cor0
----
-4345
-484
-810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-670
SELECT ALL - CAST( col1 AS SIGNED ) FROM tab1 cor0 WHERE + col0 + + + col1 IN ( + col2 / - CAST( 32 AS SIGNED ) * - col2 * - col1 + - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) + + + col2 - col0, + col2 )
----

skipif mysql # not compatible
query I rowsort label-670
SELECT ALL - CAST ( col1 AS INTEGER ) FROM tab1 cor0 WHERE + col0 + + + col1 IN ( + col2 / - CAST ( 32 AS INTEGER ) * - col2 * - col1 + - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) + + + col2 - col0, + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL < 83
----

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

skipif mysql # not compatible
query I rowsort label-672
SELECT COUNT ( * ) + - MIN ( - + 22 ) FROM tab1
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 WHERE - col2 * + 49 * + + col2 + + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 77 NOT BETWEEN 64 * col0 AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ( + 18 ) AS col1, - col2 FROM tab0
----
18
-10
18
-47
18
-99

query I rowsort
SELECT DISTINCT col0 + - 69 FROM tab2
----
-23
-5
6

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-678
SELECT + col0 DIV + + col2 AS col1 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-678
SELECT + col0 / + + col2 AS col1 FROM tab2 AS cor0
----
1
1
2

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT COUNT( * ) * + + 81 FROM tab1 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-681
SELECT COUNT ( * ) * + + 81 FROM tab1 AS cor0
----
243

onlyif mysql # DIV for integer division: 
query I rowsort label-682
SELECT ALL - - 66 DIV + + ( - - col2 ) - col1 AS col1 FROM tab1 cor0
----
-14
-4
-47

skipif mysql # not compatible
query I rowsort label-682
SELECT ALL - - 66 / + + ( - - col2 ) - col1 AS col1 FROM tab1 cor0
----
-14
-4
-47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 43 * - col1 * + col0 = NULL
----

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

query I rowsort
SELECT + + col2 FROM tab1 WHERE NOT - - 63 * + col1 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT + col1, col0 * + + 10 * - col1 / col2 FROM tab2 cor0 WHERE 44 * + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT DISTINCT + SUM( DISTINCT + 60 ) + 45 FROM tab0 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-687
SELECT DISTINCT + SUM ( DISTINCT + 60 ) + 45 FROM tab0 AS cor0
----
105

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

query I rowsort
SELECT - - col2 FROM tab2 WHERE + col1 <= NULL
----

query I rowsort
SELECT + col2 + - col0 + - 12 FROM tab0 AS cor0
----
-10
-89
20

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-692
SELECT DISTINCT - SUM( + col0 ) + COUNT( * ) + + - 28 DIV MAX( DISTINCT 74 ) AS col1 FROM tab2 AS cor0
----
-182

skipif mysql # not compatible
query I rowsort label-692
SELECT DISTINCT - SUM ( + col0 ) + COUNT ( * ) + + - 28 / MAX ( DISTINCT 74 ) AS col1 FROM tab2 AS cor0
----
-182

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

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT ALL ( + SUM( - 88 ) ) + - - COUNT( * ) - - 67 + 5 AS col1 FROM tab1 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-694
SELECT ALL ( + SUM ( - 88 ) ) + - - COUNT ( * ) - - 67 + 5 AS col1 FROM tab1 AS cor0
----
-189

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 col1 FROM tab2 cor0
----
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-698
SELECT - 53 * - MIN( DISTINCT col2 ) AS col0 FROM tab0
----
530

skipif mysql # not compatible
query I rowsort label-698
SELECT - 53 * - MIN ( DISTINCT col2 ) AS col0 FROM tab0
----
530

query II rowsort
SELECT 10 AS col2, col0 * + col2 + - col1 FROM tab1
----
10
4882
10
5010
10
6141

query I rowsort
SELECT ALL 41 * - 93 AS col2 FROM tab0
----
-3813
-3813
-3813

query I rowsort
SELECT DISTINCT 25 * col1 * - col0 AS col0 FROM tab2
----
-123200
-125625
-58650

query II rowsort
SELECT + ( + col0 ) * - col2, + col2 * 93 + col1 * - col2 AS col0 FROM tab2
----
-1058
966
-2560
640
-4350
1508

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 89 * + - 48 / - col0 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query II rowsort
SELECT DISTINCT + col0 * - - col2, col2 AS col0 FROM tab1
----
4896
96
5015
59
6188
68

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

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

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

skipif mysql # not compatible
query I rowsort label-707
SELECT + COUNT ( + + 42 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT ALL + - MAX( col0 ) FROM tab1 AS cor0 WHERE NOT 2 * col1 IS NULL
----
-91

skipif mysql # not compatible
query I rowsort label-708
SELECT ALL + - MAX ( col0 ) FROM tab1 AS cor0 WHERE NOT 2 * col1 IS NULL
----
-91

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

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

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

query I rowsort
SELECT - + col2 * - col0 * + - 77 AS col2 FROM tab2 AS cor0
----
-197120
-334950
-81466

onlyif mysql # DIV for integer division: 
query I rowsort label-712
SELECT col1 DIV col1 DIV + col0 - + col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-712
SELECT col1 / col1 / + col0 - + col0 FROM tab0 AS cor0
----
-15
-87
-97

query II rowsort
SELECT + + col1, - 61 + + 8 FROM tab1 AS cor0
----
14
-53
47
-53
5
-53

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 / - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-717
SELECT ALL - ( + + ( - 31 ) ) * + + CAST( NULL AS SIGNED ) + + + CAST( NULL AS SIGNED ) + + 96 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-717
SELECT ALL - ( + + ( - 31 ) ) * + + CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS INTEGER ) + + 96 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT SUM( + 93 ) FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-718
SELECT SUM ( + 93 ) FROM tab0
----
279

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

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

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

query I rowsort
SELECT ALL + col0 + - col1 + - col1 * + col2 * + col1 AS col0 FROM tab0
----
-3
-308433
-4344

query I rowsort
SELECT + + col2 * 50 + - col1 FROM tab1 AS cor0
----
2945
3353
4786

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + 53 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-724
SELECT - 91 * - COUNT( * ) + 20 FROM tab1 cor0
----
293

skipif mysql # not compatible
query I rowsort label-724
SELECT - 91 * - COUNT ( * ) + 20 FROM tab1 cor0
----
293

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-726
SELECT - col1 DIV + + col2 + 48 FROM tab0 AS cor0
----
46
47
48

skipif mysql # not compatible
query I rowsort label-726
SELECT - col1 / + + col2 + 48 FROM tab0 AS cor0
----
46
47
48

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

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

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

query I rowsort
SELECT - 38 * col0 + - - col1 - 87 FROM tab2 AS cor0
----
-1784
-2442
-2870

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT ( col2 ) <> col1 AND NOT NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-732
SELECT + - 80 * - col1 * + - 49 - CAST( - - col1 AS SIGNED ) * - 40 FROM tab0 AS cor0
----
-314280
-3880
-81480

skipif mysql # not compatible
query I rowsort label-732
SELECT + - 80 * - col1 * + - 49 - CAST ( - - col1 AS INTEGER ) * - 40 FROM tab0 AS cor0
----
-314280
-3880
-81480

query I rowsort
SELECT ALL - + col1 + + 57 FROM tab2 AS cor0
----
-10
-20
6

query I rowsort
SELECT + + 90 + + col2 FROM tab1 cor0
----
149
158
186

query I rowsort
SELECT + 95 + + - col2 AS col0 FROM tab2 AS cor0
----
37
55
72

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT DISTINCT MIN( DISTINCT - col0 ) - - + 87 * 37 AS col2 FROM tab0 cor0
----
3122

skipif mysql # not compatible
query I rowsort label-736
SELECT DISTINCT MIN ( DISTINCT - col0 ) - - + 87 * 37 AS col2 FROM tab0 cor0
----
3122

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT DISTINCT COUNT( * ) - - COUNT( 7 ) + + - COUNT( * ) * 63 AS col0 FROM tab0
----
-183

skipif mysql # not compatible
query I rowsort label-737
SELECT DISTINCT COUNT ( * ) - - COUNT ( 7 ) + + - COUNT ( * ) * 63 AS col0 FROM tab0
----
-183

query I rowsort
SELECT ALL + col1 * + 65 FROM tab2
----
3315
4355
5005

query I rowsort
SELECT ALL 96 * + ( + - col2 ) * - - col1 - - - 38 + col2 AS col2 FROM tab2
----
-112623
-295678
-373036

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - 27 * - + 71 AND NULL
----

query I rowsort
SELECT DISTINCT + ( + 48 ) * + 11 FROM tab2
----
528

query I rowsort
SELECT ALL col2 * - - col2 FROM tab1
----
3481
4624
9216

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-744
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT + 98 / + + col2 * - - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-744
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT + 98 / + + col2 * - - col0 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 * 38 col1 FROM tab2
----
2128
2128
2128

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT DISTINCT MAX( - + col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-746
SELECT DISTINCT MAX ( - + col2 ) FROM tab2
----
-23

query I rowsort
SELECT col2 * + 14 AS col0 FROM tab0
----
1386
140
658

query I rowsort
SELECT ALL - 95 * + - col2 AS col2 FROM tab2
----
2185
3800
5510

query I rowsort
SELECT ALL + ( - col0 ) * 6 FROM tab2
----
-276
-384
-450

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-750
SELECT col2, CAST( NULL AS SIGNED ) FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-750
SELECT col2, CAST ( NULL AS INTEGER ) FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT COUNT( + 73 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-751
SELECT COUNT ( + 73 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-752
SELECT DISTINCT - + MAX( ( col0 ) ), - 71 * MIN( ALL + col1 ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-75
-10863

skipif mysql # not compatible
query II rowsort label-752
SELECT DISTINCT - + MAX ( ( col0 ) ), - 71 * MIN ( ALL + col1 ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-75
-10863

query I rowsort
SELECT - - col0 + col0 AS col2 FROM tab2 cor0
----
128
150
92

query I rowsort
SELECT - - 35 AS col2 FROM tab0 AS cor0 WHERE NOT 5 / + - col0 * + col1 <= NULL
----

query I rowsort
SELECT DISTINCT - col0 * + col1 + + + 20 * + + col2 AS col2 FROM tab0 cor0
----
-1627
-275
1883

onlyif mysql # DIV for integer division: 
query I rowsort label-756
SELECT ALL col0 DIV - - 23 FROM tab2 AS cor0
----
2
2
3

skipif mysql # not compatible
query I rowsort label-756
SELECT ALL col0 / - - 23 FROM tab2 AS cor0
----
2
2
3

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

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

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

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

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

query I rowsort
SELECT - - 70 AS col1 FROM tab2 WHERE + 20 IN ( - - col1 * - col1 * + 15 * - + 73, - col2, + - col0 )
----

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

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

query I rowsort
SELECT DISTINCT 60 + - + col1 AS col0 FROM tab2
----
-17
-7
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-763
SELECT + col0 * + + ( CAST( col0 AS SIGNED ) ) FROM tab1
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-763
SELECT + col0 * + + ( CAST ( col0 AS INTEGER ) ) FROM tab1
----
2601
7225
8281

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

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

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

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

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

query I rowsort
SELECT ALL + col0 + - + col2 AS col2 FROM tab1
----
-45
23
26

query II rowsort
SELECT - col2 AS col2, + 39 * - col1 * + col0 AS col1 FROM tab2
----
-23
-91494
-40
-192192
-58
-195975

query III rowsort
SELECT * FROM tab1 WHERE - col2 * - col2 + 76 + + col2 + - col0 * + + col1 IS NULL
----

query II rowsort
SELECT 8 + 96, + col1 AS col2 FROM tab0
----
104
1
104
21
104
81

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT DISTINCT - MAX( DISTINCT - + 42 ) FROM tab0, tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-771
SELECT DISTINCT - MAX ( DISTINCT - + 42 ) FROM tab0, tab1 AS cor0
----
42

query I rowsort
SELECT ALL - col2 + col0 + - - col1 * + + col1 FROM tab1
----
151
2232
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) + - 79 col1 FROM tab0 cor0
----
-166
-176
-94

query I rowsort
SELECT ALL - - ( col0 ) * - col1 - + col1 FROM tab0 AS cor0
----
-1296
-1848
-98

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

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

query I rowsort
SELECT + 69 * col1 - + ( col1 ) + 95 FROM tab0 AS cor0
----
1523
163
5603

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT ALL COUNT( * ) * + - 10 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-777
SELECT ALL COUNT ( * ) * + - 10 FROM tab0
----
-30

query III rowsort
SELECT * FROM tab1 WHERE NOT + 46 BETWEEN + col1 * + 80 AND + col0 + + 84 + - col0 - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 83 AS col1, + 22 AS col2 FROM tab2
----
83
22

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

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

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

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

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

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

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

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

query II rowsort
SELECT 31 AS col1, col0 AS col1 FROM tab2 AS cor0
----
31
46
31
64
31
75

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

query I rowsort
SELECT ALL ( + col2 ) * + 2 FROM tab2
----
116
46
80

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 58 > NULL
----

query I rowsort
SELECT DISTINCT col0 * - col0 + col2 + - - col1 AS col1 FROM tab1
----
-2491
-7161
-8166

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 83 <> + - col2
----

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

query I rowsort
SELECT ALL - - col0 * + col0 + 66 FROM tab0 AS cor0
----
291
7635
9475

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

skipif mysql # not compatible
query II rowsort label-794
SELECT + ( col2 ) * + + col1 * + CAST ( NULL AS INTEGER ) AS col0, 92 / - col2 AS col2 FROM tab1 AS cor0
----
NULL
-1
NULL
-1
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-795
SELECT ALL - 59 DIV col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-795
SELECT ALL - 59 / col0 FROM tab1 AS cor0
----
-1
0
0

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

skipif mysql # not compatible
query I rowsort label-796
SELECT DISTINCT + ( - + CAST ( col1 AS INTEGER ) ) / 88 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-797
SELECT + 64 DIV - 48 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-797
SELECT + 64 / - 48 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT + 68 * + - 46 + col1 + + col1 FROM tab2 cor0
----
-2974
-2994
-3026

query I rowsort
SELECT ALL + 56 + - 6 FROM tab2
----
50
50
50

query I rowsort
SELECT col1 - col1 * + + col1 FROM tab1 WHERE - 5 IS NOT NULL
----
-182
-20
-2162

query III rowsort
SELECT * FROM tab2 WHERE + 13 / + 90 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 15 * col0 + col2 FROM tab0
----
1315
1554
272

query I rowsort
SELECT DISTINCT + col0 * - + col2 + + 35 AS col2 FROM tab2
----
-1023
-2525
-4315

onlyif mysql # DIV for integer division: 
query I rowsort label-804
SELECT 97 DIV 68 + - + col0 FROM tab0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-804
SELECT 97 / 68 + - + col0 FROM tab0
----
-14
-86
-96

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

query II rowsort
SELECT ALL + + col2 + - col0 + - + col0 AS col2, - 68 AS col1 FROM tab1 cor0
----
-111
-68
-114
-68
-6
-68

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

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

query I rowsort
SELECT ALL 14 - col1 FROM tab2 AS cor0
----
-37
-53
-63

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

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

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

query I rowsort
SELECT ALL col2 - - col2 * + col0 AS col0 FROM tab2 AS cor0
----
1081
2600
4408

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

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

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

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

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

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

query II rowsort
SELECT - col2 AS col1, 91 + - col2 FROM tab2 AS cor0
----
-23
68
-40
51
-58
33

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

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

query I rowsort
SELECT ALL + 23 - - - ( - - col0 ) + + col2 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 <= NULL
----

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

query I rowsort
SELECT 15 * 38 * 5 AS col0 FROM tab1
----
2850
2850
2850

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

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

query II rowsort
SELECT col0 * + 29, - col2 AS col1 FROM tab2
----
1334
-23
1856
-40
2175
-58

query I rowsort
SELECT + 24 * + 22 FROM tab0
----
528
528
528

query I rowsort
SELECT ALL + 36 * + - ( 38 ) AS col1 FROM tab0
----
-1368
-1368
-1368

query III rowsort
SELECT * FROM tab1 WHERE NOT 52 <= NULL
----

query I rowsort
SELECT + 9 FROM tab2 WHERE NOT + 35 IS NULL
----
9
9
9

query I rowsort
SELECT ALL + 56 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 * 49 - - 68 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 55761fecef470b500a4154b602cbc79d

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

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

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

query I rowsort
SELECT - + 15 + - 43 + - 43 AS col1 FROM tab1 AS cor0
----
-101
-101
-101

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

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT + - COUNT( * ) + + MAX( DISTINCT + + col2 ) AS col1 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-833
SELECT + - COUNT ( * ) + + MAX ( DISTINCT + + col2 ) AS col1 FROM tab2 AS cor0
----
55

query I rowsort
SELECT ALL + col1 + + + col1 AS col0 FROM tab1 AS cor0
----
10
28
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT ALL - MIN( DISTINCT + col1 ) AS col1 FROM tab2 WHERE - 87 * col2 + + - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-836
SELECT ALL - MIN ( DISTINCT + col1 ) AS col1 FROM tab2 WHERE - 87 * col2 + + - col0 IS NULL
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-838
SELECT MIN( - + 27 ) AS col1, COUNT( * ) FROM tab2
----
-27
3

skipif mysql # not compatible
query II rowsort label-838
SELECT MIN ( - + 27 ) AS col1, COUNT ( * ) FROM tab2
----
-27
3

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT DISTINCT MIN( - col0 ) + COUNT( * ) AS col0 FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-839
SELECT DISTINCT MIN ( - col0 ) + COUNT ( * ) AS col0 FROM tab1
----
-88

query I rowsort
SELECT ALL col0 * + - col2 - 16 * col2 AS col1 FROM tab0
----
-1030
-11187
-1457

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT + + MAX( + - 20 ) FROM tab2 AS cor0 WHERE - 24 + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-841
SELECT + + MAX ( + - 20 ) FROM tab2 AS cor0 WHERE - 24 + col1 IS NULL
----
NULL

query I rowsort
SELECT ALL - + col2 * 99 + + 17 - - col0 - + - col2 + - col0 FROM tab2 AS cor0
----
-2237
-3903
-5667

query I rowsort
SELECT ALL + col1 * col0 - + ( + + 53 ) + + + col1 + + - 84 FROM tab1 cor0
----
293
4187
591

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 / + + 6 - - + 26 IN ( ( + - col2 ) + - + 87, col1 - + 30, + ( + - col0 ) - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 7 - + col0 AS col2 FROM tab1 cor0
----
-44
-78
-84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT DISTINCT - COUNT( * ) * + COUNT( + - 77 ) FROM tab0 WHERE NOT - col0 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-847
SELECT DISTINCT - COUNT ( * ) * + COUNT ( + - 77 ) FROM tab0 WHERE NOT - col0 IS NULL
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 * - + 73 * - + col2 col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col1 + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-849
SELECT DISTINCT col1 DIV 95 * + col2 * ( - col2 ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-849
SELECT DISTINCT col1 / 95 * + col2 * ( - col2 ) AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT - 24 * + + col1 + - - 88 FROM tab0 AS cor0
----
-1856
-416
64

query I rowsort
SELECT - 51 AS col2 FROM tab2 cor0
----
-51
-51
-51

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

query II rowsort
SELECT DISTINCT - 87, - 76 + - 67 AS col0 FROM tab2
----
-87
-143

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + + col0 * - 73 AND - col1 + + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-855
SELECT + 33 AS col1, MIN( + col1 ) FROM tab2
----
33
51

skipif mysql # not compatible
query II rowsort label-855
SELECT + 33 AS col1, MIN ( + col1 ) FROM tab2
----
33
51

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> - + 64
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT + 70 + + SUM( + 0 ) FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-860
SELECT + 70 + + SUM ( + 0 ) FROM tab0 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT ALL - - COUNT( + col2 ) * + COUNT( ALL - + 70 ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-861
SELECT ALL - - COUNT ( + col2 ) * + COUNT ( ALL - + 70 ) AS col2 FROM tab0 AS cor0
----
9

query II rowsort
SELECT ALL - col1, 2 AS col2 FROM tab2 AS cor0
----
-51
2
-67
2
-77
2

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT + 90 * + 69 + + COUNT( + col0 ) FROM tab0 cor0
----
6213

skipif mysql # not compatible
query I rowsort label-863
SELECT + 90 * + 69 + + COUNT ( + col0 ) FROM tab0 cor0
----
6213

onlyif mysql # DIV for integer division: 
query I rowsort label-864
SELECT - col0 + col1 * col2 + + col0 DIV - col2 AS col2 FROM tab1 AS cor0
----
1293
209
3104

skipif mysql # not compatible
query I rowsort label-864
SELECT - col0 + col1 * col2 + + col0 / - col2 AS col2 FROM tab1 AS cor0
----
1293
209
3104

query I rowsort
SELECT 73 + + col2 - - + col0 * col0 FROM tab1
----
2770
7357
8422

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT - COUNT( * ) col0 FROM tab0 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-866
SELECT - COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-869
SELECT ALL col2 + - col1 + col1 DIV + + col2 FROM tab0 AS cor0
----
-33
-9
98

skipif mysql # not compatible
query I rowsort label-869
SELECT ALL col2 + - col1 + col1 / + + col2 FROM tab0 AS cor0
----
-33
-9
98

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE 41 * col0 IS NOT NULL
----
-15
-87
-97

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-873
SELECT DISTINCT ( - CAST( - 41 AS SIGNED ) ) col0 FROM tab0 AS cor0
----
41

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

query I rowsort
SELECT - col1 - + + col1 + - + 62 FROM tab0 AS cor0
----
-104
-224
-64

query I rowsort
SELECT col1 * + col1 + + - col0 AS col2 FROM tab0 AS cor0
----
-96
354
6546

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

skipif mysql # not compatible
query I rowsort label-876
SELECT - 22 * col2 + CAST ( NULL AS INTEGER ) + + ( 47 ) * col1 * col2 AS col1 FROM tab2
----
NULL
NULL
NULL

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

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

query II rowsort
SELECT - col1 AS col0, col0 FROM tab2 WHERE - col1 + - - col2 + + + ( 33 ) - + 42 = + + 95
----

query I rowsort
SELECT ALL - col2 + + 78 + 45 + 4 FROM tab0
----
117
28
80

query I rowsort
SELECT ALL + 43 + + 64 * - col1 FROM tab2 WHERE NULL IS NULL
----
-3221
-4245
-4885

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col1 ) col1 FROM tab2
----
-51
-67
-77

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 * - - 4 AS col0 FROM tab1
----
-188
-20
-56

query I rowsort
SELECT ALL - col2 * ( - 35 ) FROM tab0
----
1645
3465
350

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

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT DISTINCT + + COUNT( * ) FROM tab1 AS cor0 WHERE 85 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-888
SELECT DISTINCT + + COUNT ( * ) FROM tab1 AS cor0 WHERE 85 IS NOT NULL
----
3

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

skipif mysql # not compatible
query I rowsort label-889
SELECT - MAX ( - - 85 ) AS col0 FROM tab1 AS cor0
----
-85

query I rowsort
SELECT ALL - col1 * + 53 + + 87 FROM tab1 AS cor0
----
-178
-2404
-655

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-895
SELECT ALL + col1 * + CAST( + + col1 AS SIGNED ) - - col1 AS col2 FROM tab0 AS cor0
----
2
462
6642

skipif mysql # not compatible
query I rowsort label-895
SELECT ALL + col1 * + CAST ( + + col1 AS INTEGER ) - - col1 AS col2 FROM tab0 AS cor0
----
2
462
6642

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

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

query I rowsort
SELECT + ( + col0 ) * - + col2 * - 2 AS col0 FROM tab2
----
2116
5120
8700

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT - 50 * COUNT( * ) AS col2 FROM tab1
----
-150

skipif mysql # not compatible
query I rowsort label-898
SELECT - 50 * COUNT ( * ) AS col2 FROM tab1
----
-150

query I rowsort
SELECT DISTINCT col2 * 33 * - + ( - col0 ) + col0 FROM tab1
----
161619
165580
204295

onlyif mysql # DIV for integer division: 
query I rowsort label-900
SELECT - 68 DIV - - col1 FROM tab0
----
-3
-68
0

skipif mysql # not compatible
query I rowsort label-900
SELECT - 68 / - - col1 FROM tab0
----
-3
-68
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT 91 / - - col1 * - col1 AS col1, 6 col2, + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - col2 * + col1 * - 97 FROM tab2 AS cor0
----
113781
298760
376942

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

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

query I rowsort
SELECT + 61 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 34 * + + col1 <= 26
----

query I rowsort
SELECT 91 + + col1 AS col1 FROM tab0
----
112
172
92

onlyif mysql # DIV for integer division: 
query I rowsort label-908
SELECT ALL - + 49 + - - 69 DIV 62 FROM tab1 AS cor0
----
-48
-48
-48

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL - + 49 + - - 69 / 62 FROM tab1 AS cor0
----
-48
-48
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-909
SELECT + ( col1 ) DIV + + col1 - col2 + - + col1 + 94 FROM tab2 AS cor0
----
-22
-30
21

skipif mysql # not compatible
query I rowsort label-909
SELECT + ( col1 ) / + + col1 - col2 + - + col1 + 94 FROM tab2 AS cor0
----
-22
-30
21

query I rowsort
SELECT ALL ( - col2 ) - - col1 FROM tab2 cor0
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-911
SELECT * FROM tab0 AS cor0 WHERE + col1 + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + col2 <> 31
----

skipif mysql # not compatible
query III rowsort label-911
SELECT * FROM tab0 AS cor0 WHERE + col1 + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + col2 <> 31
----

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-916
SELECT + COUNT( * ) * - CAST( + + 17 AS SIGNED ) * - 74 AS col0 FROM tab2
----
3774

skipif mysql # not compatible
query I rowsort label-916
SELECT + COUNT ( * ) * - CAST ( + + 17 AS INTEGER ) * - 74 AS col0 FROM tab2
----
3774

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT + COUNT( * ) - - + 38 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-918
SELECT + COUNT ( * ) - - + 38 FROM tab1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT ALL + COUNT( * ) + - 37 FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL + COUNT ( * ) + - 37 FROM tab1
----
-34

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 37 col2 FROM tab1 WHERE NULL > + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-923
SELECT CAST( - 53 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 * + + col2 + + - 33 >= - 56
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-923
SELECT CAST ( - 53 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 * + + col2 + + - 33 >= - 56
----
-53
-53
-53

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

query II rowsort
SELECT ALL + 59 AS col2, col0 - - - col1 * - 72 - + - col2 FROM tab1 AS cor0
----
59
1155
59
3543
59
504

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-928
SELECT + COUNT( * ) DIV - 96 + + 15 AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-928
SELECT + COUNT ( * ) / - 96 + + 15 AS col1 FROM tab0 AS cor0
----
15

query II rowsort
SELECT DISTINCT + col1 * 33, col1 FROM tab2
----
1683
51
2211
67
2541
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-930
SELECT DISTINCT MIN( col1 ) DIV 14 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-930
SELECT DISTINCT MIN ( col1 ) / 14 FROM tab1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-931
SELECT ALL 48 * CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-931
SELECT ALL 48 * CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col0 + + col1, 74 AS col0 FROM tab0
----
-66
74
-96
74
66
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-933
SELECT - col0 AS col0 FROM tab0 WHERE NOT col1 * - CAST( - - col1 AS SIGNED ) IS NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-933
SELECT - col0 AS col0 FROM tab0 WHERE NOT col1 * - CAST ( - - col1 AS INTEGER ) IS NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-934
SELECT ALL 14 * + - col1 + col1 col0 FROM tab2 AS cor0 WHERE NOT - CAST( + 11 AS SIGNED ) IS NULL
----
-1001
-663
-871

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-934
SELECT ALL 14 * + - col1 + col1 col0 FROM tab2 AS cor0 WHERE NOT - CAST ( + 11 AS INTEGER ) IS NULL
----
-1001
-663
-871

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN + - ( - col1 ) - - ( - 54 ) AND col2
----
1

skipif mysql # not compatible
query I rowsort label-935
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN + - ( - col1 ) - - ( - 54 ) AND col2
----
1

query I rowsort
SELECT DISTINCT - 3 + - col0 AS col1 FROM tab1
----
-54
-88
-94

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

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

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

query I rowsort
SELECT ALL + + 72 - + 19 FROM tab1 AS cor0
----
53
53
53

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT - 55 + COUNT( * ) col0 FROM tab0 AS cor0
----
-52

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-944
SELECT - CAST( - 77 AS SIGNED ) + + 94 AS col0 FROM tab2 AS cor0
----
171
171
171

skipif mysql # not compatible
query I rowsort label-944
SELECT - CAST ( - 77 AS INTEGER ) + + 94 AS col0 FROM tab2 AS cor0
----
171
171
171

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-945
SELECT DISTINCT + - 47 DIV 72 + + + 98 col1, - ( COUNT( * ) ) FROM tab1 AS cor0
----
98
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-945
SELECT DISTINCT + - 47 / 72 + + + 98 col1, - ( COUNT ( * ) ) FROM tab1 AS cor0
----
98
-3

query I rowsort
SELECT + 46 + - col2 FROM tab2
----
-12
23
6

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT ALL + MIN( ALL - + col2 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-947
SELECT ALL + MIN ( ALL - + col2 ) AS col1 FROM tab0
----
-99

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

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

query II rowsort
SELECT DISTINCT col0, - col0 * col0 FROM tab0 AS cor0
----
15
-225
87
-7569
97
-9409

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT + + col2 - + + 98 <= + col1 * + col1 )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 51 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

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

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

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

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

query I rowsort
SELECT + 90 * - 65 FROM tab2 AS cor0 WHERE NOT col1 >= col1
----

query I rowsort
SELECT DISTINCT + 2 * + - 84 * - 4 AS col2 FROM tab1 AS cor0
----
672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-960
SELECT DISTINCT - CAST( - 39 AS SIGNED ) AS col0 FROM tab0 cor0
----
39

skipif mysql # not compatible
query I rowsort label-960
SELECT DISTINCT - CAST ( - 39 AS INTEGER ) AS col0 FROM tab0 cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT DISTINCT MIN( + 56 ) FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-961
SELECT DISTINCT MIN ( + 56 ) FROM tab0
----
56

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

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

query II rowsort
SELECT - ( col0 ), 86 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT DISTINCT 57 + - 89 FROM tab1
----
-32

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

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

query I rowsort
SELECT col1 * - - 36 FROM tab1
----
1692
180
504

query I rowsort
SELECT ALL col1 + 29 FROM tab0
----
110
30
50

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT DISTINCT + 3 + - MIN( ALL + + col2 ) FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-970
SELECT DISTINCT + 3 + - MIN ( ALL + + col2 ) FROM tab1
----
-56

query I rowsort
SELECT DISTINCT + col1 * - - col1 + - 24 * - 63 AS col2 FROM tab0
----
1513
1953
8073

query I rowsort
SELECT DISTINCT col0 + + 80 FROM tab2
----
126
144
155

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-973
SELECT ALL + - COUNT( ALL + CAST( - col1 AS DECIMAL ) ) AS col0 FROM tab1 cor0 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-973
SELECT ALL + - COUNT ( ALL + CAST ( - col1 AS REAL ) ) AS col0 FROM tab1 cor0 WHERE - col1 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-974
SELECT COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) * - 50 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-974
SELECT COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - 50 AS col2 FROM tab0
----
0

query I rowsort
SELECT ALL - col1 + + 27 * - col0 AS col2 FROM tab1
----
-1391
-2300
-2504

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

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

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE + ( + col2 ) + - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-979
SELECT + 92 * - CAST( col2 AS SIGNED ) FROM tab1
----
-5428
-6256
-8832

skipif mysql # not compatible
query I rowsort label-979
SELECT + 92 * - CAST ( col2 AS INTEGER ) FROM tab1
----
-5428
-6256
-8832

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT ALL SUM( col0 ) + - 59 FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL SUM ( col0 ) + - 59 FROM tab2
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT - 82 * COUNT( * ) AS col1 FROM tab1
----
-246

skipif mysql # not compatible
query I rowsort label-981
SELECT - 82 * COUNT ( * ) AS col1 FROM tab1
----
-246

query I rowsort
SELECT ALL - 24 * 43 FROM tab1
----
-1032
-1032
-1032

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - ( + 10 ) ) BETWEEN - col1 AND 34
----
15
81
47
87
21
10

query I rowsort
SELECT - 44 FROM tab2 WHERE col1 = col0 + - 32
----

onlyif mysql # DIV for integer division: 
query I rowsort label-986
SELECT ALL + col1 DIV - 19 col0 FROM tab0
----
-1
-4
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-986
SELECT ALL + col1 / - 19 col0 FROM tab0
----
-1
-4
0

query I rowsort
SELECT + 58 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( + 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT DISTINCT - COUNT( * ) + + 92 FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-988
SELECT DISTINCT - COUNT ( * ) + + 92 FROM tab0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-989
SELECT DISTINCT MAX( DISTINCT - 23 ) DIV MAX( 86 + + col2 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-989
SELECT DISTINCT MAX ( DISTINCT - 23 ) / MAX ( 86 + + col2 ) AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 WHERE NOT ( 92 - col0 / 31 ) IS NULL
----
51
85
91

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - 79 BETWEEN + 31 AND 45
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-994
SELECT + col2 + - 22 DIV col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-994
SELECT + col2 + - 22 / col2 FROM tab1
----
59
68
96

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-996
SELECT + 14 / CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-996
SELECT + 14 / CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-997
SELECT - SUM ( DISTINCT - ( - col0 ) ) FROM tab1
----
-227

query I rowsort
SELECT DISTINCT + col2 + + col0 FROM tab1 WHERE NULL IS NULL
----
144
147
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 62 + col1 col1 FROM tab0
----
143
63
83

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 90 * + col2 BETWEEN 60 * - col1 AND NULL
----

query I rowsort
SELECT DISTINCT - 27 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT + col2 + + 97 * 15 FROM tab2
----
1478
1495
1513

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT + COUNT( DISTINCT - 43 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1005
SELECT + COUNT ( DISTINCT - 43 ) AS col0 FROM tab2
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT ALL - COUNT( * ) - 4 * 26 FROM tab0 AS cor0 WHERE NOT NULL IN ( + 98 * col2 )
----
-104

skipif mysql # not compatible
query I rowsort label-1007
SELECT ALL - COUNT ( * ) - 4 * 26 FROM tab0 AS cor0 WHERE NOT NULL IN ( + 98 * col2 )
----
-104

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

query I rowsort
SELECT ALL - 67 AS col1 FROM tab1 cor0
----
-67
-67
-67

query I rowsort
SELECT DISTINCT ( col1 ) FROM tab1 cor0 WHERE + col0 - - 21 NOT BETWEEN col1 AND 72
----
47
5

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

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

skipif mysql # not compatible
query I rowsort label-1012
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
9

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 * - 36 ) BETWEEN - col1 AND ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 54 * + col0 FROM tab0 AS cor0
----
4698
5238
810

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT DISTINCT + SUM( + col1 ) * COUNT( * ) FROM tab2 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-1015
SELECT DISTINCT + SUM ( + col1 ) * COUNT ( * ) FROM tab2 AS cor0
----
585

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

query I rowsort
SELECT ALL + - 66 * col0 AS col0 FROM tab1 cor0
----
-3366
-5610
-6006

query I rowsort
SELECT - col0 * col0 FROM tab0 AS cor0 WHERE NOT col0 * + 61 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1019
SELECT + COUNT( * ) * + 28 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-1019
SELECT + COUNT ( * ) * + 28 FROM tab0 AS cor0
----
84

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

query I rowsort
SELECT DISTINCT + ( col2 ) * col2 FROM tab2 AS cor0 WHERE NOT - col1 IN ( - col2 / - col1 + ( + col0 ) )
----
1600
3364
529

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 58 <= NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1026
SELECT 69 DIV - 91 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1026
SELECT 69 / - 91 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT COUNT( * ) * - 97 AS col2 FROM tab2
----
-291

skipif mysql # not compatible
query I rowsort label-1027
SELECT COUNT ( * ) * - 97 AS col2 FROM tab2
----
-291

query I rowsort
SELECT DISTINCT + col0 + - 81 FROM tab0
----
-66
16
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1029
SELECT + ( + 79 ) DIV + 21 + + 6 FROM tab1
----
9
9
9

skipif mysql # not compatible
query I rowsort label-1029
SELECT + ( + 79 ) / + 21 + + 6 FROM tab1
----
9
9
9

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1031
SELECT ALL col1 + col2 DIV - 55 AS col0 FROM tab1 WHERE - 23 DIV - col0 IS NOT NULL
----
13
4
46

skipif mysql # not compatible
query I rowsort label-1031
SELECT ALL col1 + col2 / - 55 AS col0 FROM tab1 WHERE - 23 / - col0 IS NOT NULL
----
13
4
46

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1033
SELECT DISTINCT + col0 + ( + col1 ) DIV + 14 FROM tab1
----
52
85
94

skipif mysql # not compatible
query I rowsort label-1033
SELECT DISTINCT + col0 + ( + col1 ) / + 14 FROM tab1
----
52
85
94

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

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

query I rowsort
SELECT ALL 42 * + col2 + + col0 FROM tab0
----
1989
4255
507

query I rowsort
SELECT DISTINCT col2 + - 4 FROM tab1
----
55
64
92

query I rowsort
SELECT ALL + col1 + - - 34 AS col1 FROM tab0 AS cor0
----
115
35
55

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

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

query I rowsort
SELECT - + 90 + + + 40 FROM tab0 AS cor0
----
-50
-50
-50

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1041
SELECT DISTINCT + col1 * + col1 FROM tab2 AS cor0 WHERE NOT + CAST( col0 AS SIGNED ) NOT IN ( 52 )
----

skipif mysql # not compatible
query I rowsort label-1041
SELECT DISTINCT + col1 * + col1 FROM tab2 AS cor0 WHERE NOT + CAST ( col0 AS INTEGER ) NOT IN ( 52 )
----

query I rowsort
SELECT + col1 * 8 * col0 FROM tab2
----
18768
39424
40200

query II rowsort
SELECT DISTINCT + col0 AS col0, 46 * - col0 * - col0 FROM tab1
----
51
119646
85
332350
91
380926

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1045
SELECT - col1 - col2 + - + col1 + + col2 DIV col1 FROM tab0 AS cor0
----
-2
-209
-52

skipif mysql # not compatible
query I rowsort label-1045
SELECT - col1 - col2 + - + col1 + + col2 / col1 FROM tab0 AS cor0
----
-2
-209
-52

query I rowsort
SELECT col1 + - 36 AS col1 FROM tab2 AS cor0
----
15
31
41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1047
SELECT - 56 FROM tab0 AS cor0 WHERE NOT CAST( + col2 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1047
SELECT - 56 FROM tab0 AS cor0 WHERE NOT CAST ( + col2 AS REAL ) IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT ALL COUNT( DISTINCT + 35 ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL COUNT ( DISTINCT + 35 ) AS col0 FROM tab1 AS cor0
----
1

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

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

query I rowsort
SELECT ALL + 97 * - + col1 FROM tab2
----
-4947
-6499
-7469

query I rowsort
SELECT ALL 53 AS col0 FROM tab1 WHERE NOT - col0 < ( NULL )
----

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

query I rowsort
SELECT col1 * + 94 FROM tab1
----
1316
4418
470

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col1 = - 56 + col2
----

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

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT + CAST ( - 64 AS INTEGER ) * + COUNT ( * ) FROM tab0
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT ALL COUNT( * ) * 58 FROM tab2 WHERE - col2 NOT BETWEEN ( - col2 ) AND - col0
----
174

skipif mysql # not compatible
query I rowsort label-1057
SELECT ALL COUNT ( * ) * 58 FROM tab2 WHERE - col2 NOT BETWEEN ( - col2 ) AND - col0
----
174

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1058
SELECT ALL - + CAST( + + col0 AS SIGNED ) DIV + - 81 AS col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1058
SELECT ALL - + CAST ( + + col0 AS INTEGER ) / + - 81 AS col0 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1059
SELECT DISTINCT - col2 + col2 AS col0 FROM tab1 AS cor0 WHERE NULL = 96 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1059
SELECT DISTINCT - col2 + col2 AS col0 FROM tab1 AS cor0 WHERE NULL = 96 + - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT - + 50 * - col1 AS col2, 13 FROM tab1 AS cor0
----
2350
13
250
13
700
13

query III rowsort
SELECT * FROM tab0 WHERE NOT 41 <> - col1
----

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 * + 89 + col1 + + col1 + - col0 col2 FROM tab0 AS cor0
----
439
489
681

query I rowsort
SELECT ALL 9 FROM tab0 AS cor0 WHERE NULL IS NULL
----
9
9
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1065
SELECT col2 DIV - - col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1065
SELECT col2 / - - col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
0

query I rowsort
SELECT col1 + 89 + - 25 FROM tab1 AS cor0
----
111
69
78

query II rowsort
SELECT ALL + + col0 AS col1, 86 + + + 97 AS col0 FROM tab1 AS cor0
----
51
183
85
183
91
183

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

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

query III rowsort
SELECT * FROM tab2 WHERE + 59 > ( + + col1 )
----
46
51
23

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 = 67 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL = + 28
----

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

skipif mysql # not compatible
query I rowsort label-1073
SELECT col2 / + - col0 AS col1 FROM tab1
----
-1
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT 18 * + 38 + + + MAX( - - 17 ) * 78 FROM tab2, tab2 AS cor0
----
2010

skipif mysql # not compatible
query I rowsort label-1075
SELECT 18 * + 38 + + + MAX ( - - 17 ) * 78 FROM tab2, tab2 AS cor0
----
2010

query I rowsort
SELECT + - 97 * col2 - col1 AS col0 FROM tab2 WHERE 94 >= - 48 + + col2
----
-2282
-3957
-5693

query II rowsort
SELECT DISTINCT col1, col2 * 43 FROM tab1
----
14
4128
47
2924
5
2537

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT ( MIN( ALL + col0 ) ) * 7 AS col2 FROM tab2 WHERE NULL NOT IN ( + col2 * + + 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1078
SELECT ( MIN ( ALL + col0 ) ) * 7 AS col2 FROM tab2 WHERE NULL NOT IN ( + col2 * + + 21 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1079
SELECT 28 AS col1, 74 + - + MIN( DISTINCT col2 ) AS col0 FROM tab2
----
28
51

skipif mysql # not compatible
query II rowsort label-1079
SELECT 28 AS col1, 74 + - + MIN ( DISTINCT col2 ) AS col0 FROM tab2
----
28
51

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

skipif mysql # not compatible
query I rowsort label-1080
SELECT + MAX ( ALL 62 ) AS col0 FROM tab2
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-1081
SELECT ALL + col2 DIV 20 + + + 36 AS col2 FROM tab2
----
37
38
38

skipif mysql # not compatible
query I rowsort label-1081
SELECT ALL + col2 / 20 + + + 36 AS col2 FROM tab2
----
37
38
38

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

query I rowsort
SELECT - col2 * - - 47 - + col0 * - col1 * - col1 FROM tab2 AS cor0
----
-120727
-339401
-381336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1084
SELECT + - 26 / col0 + 46 FROM tab2 WHERE - col1 + - CAST( NULL AS SIGNED ) NOT IN ( + + col0 ) AND NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1084
SELECT + - 26 / col0 + 46 FROM tab2 WHERE - col1 + - CAST ( NULL AS INTEGER ) NOT IN ( + + col0 ) AND NULL IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NOT - 46 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # DIV for integer division: 
query I rowsort label-1086
SELECT DISTINCT + col0 DIV + - col0 + - col2 col0 FROM tab1
----
-60
-69
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1086
SELECT DISTINCT + col0 / + - col0 + - col2 col0 FROM tab1
----
-60
-69
-97

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

query II rowsort
SELECT DISTINCT + - col0 * 63, + col1 FROM tab2 AS cor0
----
-2898
51
-4032
77
-4725
67

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1090
SELECT col1 * + 25 * CAST( + CAST( + + col2 AS SIGNED ) AS SIGNED ) FROM tab1 cor0
----
33600
7375
79900

skipif mysql # not compatible
query I rowsort label-1090
SELECT col1 * + 25 * CAST ( + CAST ( + + col2 AS INTEGER ) AS INTEGER ) FROM tab1 cor0
----
33600
7375
79900

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

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

query I rowsort
SELECT col0 * + 90 FROM tab1
----
4590
7650
8190

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT COUNT( * ) * + 12 AS col0 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-1093
SELECT COUNT ( * ) * + 12 AS col0 FROM tab2
----
36

query I rowsort
SELECT ALL 41 * - + col0 AS col1 FROM tab0
----
-3567
-3977
-615

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT + COUNT( * ) * + - 48 FROM tab0
----
-144

skipif mysql # not compatible
query I rowsort label-1095
SELECT + COUNT ( * ) * + - 48 FROM tab0
----
-144

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col0 >= - + col0 - - col1
----
15
81
47

query I rowsort
SELECT - 52 + - col0 * - col1 AS col0 FROM tab2 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1098
SELECT ALL + 86 DIV - col0 col2 FROM tab1
----
-1
-1
0

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

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

query I rowsort
SELECT - - 18 AS col0 FROM tab1 AS cor0
----
18
18
18

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

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

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

query I rowsort
SELECT + 20 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT 75 * + SUM( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
-14625

skipif mysql # not compatible
query I rowsort label-1104
SELECT 75 * + SUM ( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
-14625

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1105
SELECT * FROM tab0 AS cor0 WHERE ( - 77 ) <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1105
SELECT * FROM tab0 AS cor0 WHERE ( - 77 ) <= CAST ( NULL AS INTEGER )
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1107
SELECT MAX( + col1 ) AS col1, - COUNT( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
47
-3

skipif mysql # not compatible
query II rowsort label-1107
SELECT MAX ( + col1 ) AS col1, - COUNT ( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
47
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 / - 86 * - 15 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1108
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 / - 86 * - 15 IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1109
SELECT + col2 + + - col0 DIV col0 * + col1 FROM tab1 cor0
----
21
54
82

skipif mysql # not compatible
query I rowsort label-1109
SELECT + col2 + + - col0 / col0 * + col1 FROM tab1 cor0
----
21
54
82

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

query I rowsort
SELECT ALL 78 AS col1 FROM tab0 AS cor0 WHERE - col0 + - - 57 + + + 18 * - col2 + col0 NOT IN ( col2, 33 )
----
78
78
78

query I rowsort
SELECT + ( + col1 ) + + - col1 * - col2 FROM tab1
----
1358
300
3243

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

query I rowsort
SELECT DISTINCT + 73 * + col1 + + + col2 + + 60 - col2 * + - col2 AS col1 FROM tab1
----
10394
3965
8183

query I rowsort
SELECT ALL col1 FROM tab1 WHERE ( + col2 ) = NULL
----

query I rowsort
SELECT ALL - col1 + + 6 AS col2 FROM tab0
----
-15
-75
5

onlyif mysql # DIV for integer division: 
query II rowsort label-1117
SELECT 80 AS col1, 88 AS col2 FROM tab2 WHERE NOT - col2 IN ( + + col1 DIV - + 72 + + - col2, col1 * - 1 )
----
80
88

skipif mysql # not compatible
query II rowsort label-1117
SELECT 80 AS col1, 88 AS col2 FROM tab2 WHERE NOT - col2 IN ( + + col1 / - + 72 + + - col2, col1 * - 1 )
----
80
88

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - ( + col2 ) col0 FROM tab2 AS cor0
----
1058
2560
4350

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1121
SELECT CAST ( NULL AS INTEGER ) col0, col2 FROM tab0 cor0
----
NULL
10
NULL
47
NULL
99

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

query I rowsort
SELECT DISTINCT 20 * - + col0 * col2 FROM tab2
----
-21160
-51200
-87000

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

query I rowsort
SELECT - - col0 + - col1 AS col0 FROM tab0 WHERE NOT - + 44 IS NULL
----
-66
66
96

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1127
SELECT ALL - 31 DIV SUM( DISTINCT + + 97 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL - 31 / SUM ( DISTINCT + + 97 ) FROM tab0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1128
SELECT DISTINCT - 93 * + + col1 AS col0, CAST( NULL AS DECIMAL ) FROM tab1
----
-1302
NULL
-4371
NULL
-465
NULL

skipif mysql # not compatible
query II rowsort label-1128
SELECT DISTINCT - 93 * + + col1 AS col0, CAST ( NULL AS REAL ) FROM tab1
----
-1302
NULL
-4371
NULL
-465
NULL

query I rowsort
SELECT ALL col2 * + 78 AS col2 FROM tab0 AS cor0
----
3666
7722
780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1130
SELECT ALL - COUNT( ALL 85 ) - + COUNT( * ) + - - CAST( - - MIN( DISTINCT - col2 ) AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-64

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL - COUNT ( ALL 85 ) - + COUNT ( * ) + - - CAST ( - - MIN ( DISTINCT - col2 ) AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1131
SELECT DISTINCT - CAST( 39 AS SIGNED ) * + ( - + col1 ) * - col2 + + col2 + 40 * + col0 AS col0 FROM tab2 AS cor0
----
-117520
-148496
-43884

skipif mysql # not compatible
query I rowsort label-1131
SELECT DISTINCT - CAST ( 39 AS INTEGER ) * + ( - + col1 ) * - col2 + + col2 + 40 * + col0 AS col0 FROM tab2 AS cor0
----
-117520
-148496
-43884

query I rowsort
SELECT - col2 FROM tab1 WHERE NULL IS NULL
----
-59
-68
-96

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

query I rowsort
SELECT DISTINCT - 47 * - col1 AS col0 FROM tab2
----
2397
3149
3619

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT 15 + - COUNT( * ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-1135
SELECT 15 + - COUNT ( * ) FROM tab0 AS cor0
----
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1136
SELECT DISTINCT + col2 + + - CAST( NULL AS DECIMAL ) / - - col2 + + 23 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1136
SELECT DISTINCT + col2 + + - CAST ( NULL AS REAL ) / - - col2 + + 23 AS col0 FROM tab2 AS cor0
----
NULL

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( 7, 27, + + col0 )
----

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

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

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

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

query I rowsort
SELECT ALL col1 + - 67 FROM tab1
----
-20
-53
-62

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1143
SELECT DISTINCT COUNT ( * ) / + + 85 col0 FROM tab1
----
0

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 + - ( col0 ) AS col0 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT - col0 * - ( + + 76 ) FROM tab1
----
3876
6460
6916

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE NOT + col0 * + 19 + - 31 / + + col2 IS NOT NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1153
SELECT + MIN ( - + col2 ) FROM tab2 cor0
----
-58

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

query I rowsort
SELECT ALL + col0 * + + col2 * - + col2 * col1 * 34 FROM tab2 AS cor0
----
-268083200
-42195156
-574739400

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

query I rowsort
SELECT ALL ( - 80 ) FROM tab0 AS cor0
----
-80
-80
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1158
SELECT CAST( - 64 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-64
-64
-64

skipif mysql # not compatible
query I rowsort label-1158
SELECT CAST ( - 64 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-64
-64
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1159
SELECT - 48 AS col0, CAST( NULL AS SIGNED ) * - ( - - col2 ) AS col2 FROM tab0
----
-48
NULL
-48
NULL
-48
NULL

skipif mysql # not compatible
query II rowsort label-1159
SELECT - 48 AS col0, CAST ( NULL AS INTEGER ) * - ( - - col2 ) AS col2 FROM tab0
----
-48
NULL
-48
NULL
-48
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1160
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( col2 + - col0 * + ( - CAST( NULL AS SIGNED ) ) + - 50, - 43, + - col2 / col2 + col2, + ( ( ( + - col1 ) ) ) )
----

skipif mysql # not compatible
query III rowsort label-1160
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( col2 + - col0 * + ( - CAST ( NULL AS INTEGER ) ) + - 50, - 43, + - col2 / col2 + col2, + ( ( ( + - col1 ) ) ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1161
SELECT DISTINCT ( 9 ), MIN( + 12 ) * - - 6 AS col1 FROM tab0
----
9
72

skipif mysql # not compatible
query II rowsort label-1161
SELECT DISTINCT ( 9 ), MIN ( + 12 ) * - - 6 AS col1 FROM tab0
----
9
72

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

skipif mysql # not compatible
query II rowsort label-1162
SELECT - MIN ( + + 14 ) AS col1, - COUNT ( * ) AS col2 FROM tab1
----
-14
-3

query I rowsort
SELECT DISTINCT - col1 + - + ( col1 ) FROM tab1
----
-10
-28
-94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT ALL - MAX( - col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1165
SELECT ALL - MAX ( - col1 ) FROM tab0
----
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1167
SELECT col1 * 52 + CAST( NULL AS SIGNED ) * + - 16 + - col0 - col1 * - col1 FROM tab1 AS cor0 WHERE NOT - col2 < - 99
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1167
SELECT col1 * 52 + CAST ( NULL AS INTEGER ) * + - 16 + - col0 - col1 * - col1 FROM tab1 AS cor0 WHERE NOT - col2 < - 99
----
NULL
NULL
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT - MAX( DISTINCT + + col0 ) + - - 68 FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-1170
SELECT - MAX ( DISTINCT + + col0 ) + - - 68 FROM tab2 AS cor0
----
-7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT COUNT( * ) + + COUNT( * ) * + 15 AS col0 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-1172
SELECT COUNT ( * ) + + COUNT ( * ) * + 15 AS col0 FROM tab0 AS cor0
----
48

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1174
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1174
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1176
SELECT DISTINCT + - 9 DIV + col2 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1176
SELECT DISTINCT + - 9 / + col2 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT + - COUNT( * ) - SUM( + - col0 ) AS col0 FROM tab2 AS cor0
----
182

skipif mysql # not compatible
query I rowsort label-1177
SELECT + - COUNT ( * ) - SUM ( + - col0 ) AS col0 FROM tab2 AS cor0
----
182

query I rowsort
SELECT DISTINCT + 7 - - 23 + - 99 FROM tab1 AS cor0
----
-69

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

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

query I rowsort
SELECT - ( col0 ) + + + 82 FROM tab1 AS cor0
----
-3
-9
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1181
SELECT - CAST( NULL AS SIGNED ) + - 54 * - AVG ( ALL - 91 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1181
SELECT - CAST ( NULL AS INTEGER ) + - 54 * - AVG ( ALL - 91 ) FROM tab2
----
NULL

query I rowsort
SELECT - col2 + 76 AS col2 FROM tab0
----
-23
29
66

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

query I rowsort
SELECT DISTINCT - col0 + + - 32 FROM tab0
----
-119
-129
-47

query II rowsort
SELECT - col2 + + 55 - + + 7, ( 42 ) FROM tab0 AS cor0 WHERE NOT 22 * 54 BETWEEN - + ( + + col0 ) AND NULL
----

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT BETWEEN col1 AND NULL
----

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

query I rowsort
SELECT - - 21 * col1 FROM tab1 cor0
----
105
294
987

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

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

query I rowsort
SELECT + 12 * + ( - + col2 ) AS col1 FROM tab2 AS cor0
----
-276
-480
-696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + - ( 47 ) - ( + 68 ) * - col1 col2 FROM tab2 AS cor0
----
5865
7705
8855

query II rowsort
SELECT - ( - - 80 ) AS col2, 88 FROM tab1 cor0 WHERE NOT - 52 IS NULL
----
-80
88
-80
88
-80
88

query II rowsort
SELECT - + ( col0 ), + col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = - + 61 + + col0 * + + col1 * - col1
----

query I rowsort
SELECT DISTINCT ( - + col1 ) FROM tab1
----
-14
-47
-5

query I rowsort
SELECT DISTINCT 66 * - col1 AS col2 FROM tab2 AS cor0
----
-3366
-4422
-5082

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

skipif mysql # not compatible
query I rowsort label-1199
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + col1 * - + 86 + + 95 FROM tab1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1201
SELECT 87 DIV col0 + 54 FROM tab2
----
55
55
55

skipif mysql # not compatible
query I rowsort label-1201
SELECT 87 / col0 + 54 FROM tab2
----
55
55
55

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

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

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

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

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

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

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

query II rowsort
SELECT ALL - col1 - - col0, + col1 FROM tab2 AS cor0
----
-13
77
-5
51
8
67

query I rowsort
SELECT DISTINCT + 60 * 76 AS col2 FROM tab1 AS cor0
----
4560

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

skipif mysql # not compatible
query I rowsort label-1208
SELECT 22 / + - col0 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 50 * - 48 AS col1 FROM tab0
----
-2400
-2400
-2400

onlyif mysql # DIV for integer division: 
query I rowsort label-1210
SELECT col0 DIV 10 DIV + 5 - - col0 FROM tab1
----
52
86
92

skipif mysql # not compatible
query I rowsort label-1210
SELECT col0 / 10 / + 5 - - col0 FROM tab1
----
52
86
92

query I rowsort
SELECT ALL col1 * + + 46 FROM tab0
----
3726
46
966

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1213
SELECT DISTINCT - col0 DIV - col2, col2 + - 65 col0 FROM tab2 cor0
----
1
-25
1
-7
2
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1213
SELECT DISTINCT - col0 / - col2, col2 + - 65 col0 FROM tab2 cor0
----
1
-25
1
-7
2
-42

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT - - MIN( DISTINCT + col1 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-1216
SELECT - - MIN ( DISTINCT + col1 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51

query I rowsort
SELECT + 31 FROM tab0 AS cor0 WHERE NOT col1 >= NULL
----

query I rowsort
SELECT ALL + col0 * - + col1 * col0 * + - 38 * - - col2 FROM tab0
----
32549850
35396658
60400620

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1221
SELECT MIN( DISTINCT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT col2 * col0 IN ( - 58 + col2, col1 + + + 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1221
SELECT MIN ( DISTINCT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT col2 * col0 IN ( - 58 + col2, col1 + + + 87 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1222
SELECT ALL + 45 DIV - col0 FROM tab0 cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL + 45 / - col0 FROM tab0 cor0
----
-3
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT - - COUNT( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1223
SELECT - - COUNT ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

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

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

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

query II rowsort
SELECT ALL - col0 + + - col0 AS col0, 20 * + - ( + - col1 ) FROM tab2
----
-128
1540
-150
1340
-92
1020

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1227
SELECT DISTINCT CAST( 51 AS SIGNED ) + col2 col0 FROM tab1
----
110
119
147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1227
SELECT DISTINCT CAST ( 51 AS INTEGER ) + col2 col0 FROM tab1
----
110
119
147

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

query I rowsort
SELECT col1 * - - col1 * col2 FROM tab1
----
1475
150212
18816

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

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

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

query I rowsort
SELECT ALL ( - - 47 ) AS col1 FROM tab1
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1233
SELECT ALL CAST( - col0 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL CAST ( - col0 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1234
SELECT DISTINCT col1 DIV - 38 + col0 FROM tab1 cor0
----
51
85
90

skipif mysql # not compatible
query I rowsort label-1234
SELECT DISTINCT col1 / - 38 + col0 FROM tab1 cor0
----
51
85
90

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

query I rowsort
SELECT DISTINCT - col1 + + 39 FROM tab0 cor0
----
-42
18
38

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

query I rowsort
SELECT + ( - + 55 ) + - 57 - + 41 FROM tab1 AS cor0
----
-153
-153
-153

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1241
SELECT col1 + + - CAST( 71 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-20
-4
6

skipif mysql # not compatible
query I rowsort label-1241
SELECT col1 + + - CAST ( 71 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-20
-4
6

query I rowsort
SELECT - - 52 * col1 AS col2 FROM tab2 WHERE NOT + - 52 > + - 14
----
2652
3484
4004

query I rowsort
SELECT - col0 * 43 * + - col1 AS col0 FROM tab0
----
4171
52245
78561

onlyif mysql # DIV for integer division: 
query I rowsort label-1244
SELECT 40 DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1244
SELECT 40 / + col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + 94 * + col0 AS col2 FROM tab1
----
4794
7990
8554

query I rowsort
SELECT DISTINCT 72 * - 98 AS col0 FROM tab2
----
-7056

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT DISTINCT + MIN( ALL - 27 ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-1247
SELECT DISTINCT + MIN ( ALL - 27 ) FROM tab1
----
-27

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1249
SELECT ALL - COUNT( * ) DIV + 95 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1249
SELECT ALL - COUNT ( * ) / + 95 FROM tab1 AS cor0
----
0

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1251
SELECT ALL col0, col0 * - + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-1251
SELECT ALL col0, col0 * - + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT + col1 * + + col1 + + col2 AS col0 FROM tab2 AS cor0
----
2624
4547
5969

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1253
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) * + 72 BETWEEN NULL AND + + 2
----

skipif mysql # not compatible
query III rowsort label-1253
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * + 72 BETWEEN NULL AND + + 2
----

query I rowsort
SELECT DISTINCT + col1 * - 44 * + col2 FROM tab0
----
-167508
-4356
-9240

onlyif mysql # DIV for integer division: 
query I rowsort label-1255
SELECT ALL col0 DIV + ( + col0 ) FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL col0 / + ( + col0 ) FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT ALL + MIN( 72 ) AS col1 FROM tab2 WHERE NOT + + 93 / - 82 = - - col1 * col0 * col2
----
72

skipif mysql # not compatible
query I rowsort label-1256
SELECT ALL + MIN ( 72 ) AS col1 FROM tab2 WHERE NOT + + 93 / - 82 = - - col1 * col0 * col2
----
72

query II rowsort
SELECT - - col0 + col2, 38 AS col2 FROM tab2 AS cor0
----
104
38
133
38
69
38

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= col0 * - 80 * + - col1
----

query I rowsort
SELECT - col0 + + ( + + col2 ) FROM tab0 WHERE col0 <> NULL
----

query I rowsort
SELECT DISTINCT col1 * + col0 * - + col2 * + col2 FROM tab0
----
-182700
-2683935
-950697

onlyif mysql # DIV for integer division: 
query I rowsort label-1262
SELECT ALL col2 DIV - + col2 + - 11 AS col1 FROM tab2
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-1262
SELECT ALL col2 / - + col2 + - 11 AS col1 FROM tab2
----
-12
-12
-12

query I rowsort
SELECT DISTINCT col1 + + + ( - - col2 ) - - 40 AS col1 FROM tab2
----
114
157
165

onlyif mysql # aggregate syntax: 
query II rowsort label-1264
SELECT COUNT( * ) AS col0, + 84 * - MAX( 38 ) FROM tab0
----
3
-3192

skipif mysql # not compatible
query II rowsort label-1264
SELECT COUNT ( * ) AS col0, + 84 * - MAX ( 38 ) FROM tab0
----
3
-3192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1265
SELECT DISTINCT + MIN( 59 ) DIV - - COUNT( * ) + - - COUNT( * ) AS col1 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-1265
SELECT DISTINCT + MIN ( 59 ) / - - COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab1
----
22

query I rowsort
SELECT DISTINCT - col1 + 46 * - col2 + + col0 AS col0 FROM tab2 WHERE NULL < + ( col1 ) * col1
----

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

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

query II rowsort
SELECT DISTINCT - - 76 + + 21 * + + 64 AS col1, col2 * - col0 FROM tab0 AS cor0
----
1420
-705
1420
-870
1420
-9603

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

query I rowsort
SELECT ALL + 76 * col0 * - + col2 - + 6 FROM tab1 AS cor0
----
-372102
-381146
-470294

query II rowsort
SELECT ALL col1 * + 82 * + + col1 * 73 * col2, + col0 FROM tab1
----
112632576
51
8829350
85
899169032
91

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1275
SELECT DISTINCT + 1 + - ( - COUNT( * ) ) FROM tab0 AS cor0 WHERE col1 * 68 * col0 + + 95 + CAST( NULL AS SIGNED ) IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-1275
SELECT DISTINCT + 1 + - ( - COUNT ( * ) ) FROM tab0 AS cor0 WHERE col1 * 68 * col0 + + 95 + CAST ( NULL AS INTEGER ) IS NOT NULL
----
1

query I rowsort
SELECT DISTINCT + + 20 FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN - 50 AND NULL
----
20

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1281
SELECT DISTINCT col2, - CAST( NULL AS SIGNED ) FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-1281
SELECT DISTINCT col2, - CAST ( NULL AS INTEGER ) FROM tab1
----
59
NULL
68
NULL
96
NULL

query II rowsort
SELECT col0 AS col2, col0 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT DISTINCT - col1 * + - 35 FROM tab1
----
1645
175
490

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

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

query I rowsort
SELECT ALL - 22 + AVG ( ALL - col0 ) FROM tab0 WHERE NOT + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 41 * col2 AS col0 FROM tab1 AS cor0
----
2419
2788
3936

query I rowsort
SELECT DISTINCT - + 11 * + + col1 * col1 AS col2 FROM tab2 AS cor0
----
-28611
-49379
-65219

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

query I rowsort
SELECT 76 * + col1 FROM tab2 AS cor0
----
3876
5092
5852

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT DISTINCT + - 60 * MAX( - ( + + col0 ) ) FROM tab0 AS cor0
----
900

skipif mysql # not compatible
query I rowsort label-1291
SELECT DISTINCT + - 60 * MAX ( - ( + + col0 ) ) FROM tab0 AS cor0
----
900

query I rowsort
SELECT + - col2 * + + 10 FROM tab0 AS cor0
----
-100
-470
-990

query I rowsort
SELECT - ( col1 ) + + 12 AS col0 FROM tab2 AS cor0
----
-39
-55
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-1294
SELECT - 90 + + 24 * - - ( + col2 ) DIV - - col2 AS col0 FROM tab2
----
-66
-66
-66

skipif mysql # not compatible
query I rowsort label-1294
SELECT - 90 + + 24 * - - ( + col2 ) / - - col2 AS col0 FROM tab2
----
-66
-66
-66

query I rowsort
SELECT - 69 FROM tab2 WHERE + + 36 IS NOT NULL
----
-69
-69
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-1296
SELECT DISTINCT ( + 68 ) DIV + 90 + - col1 * - - col1 DIV col1 DIV - col2 DIV + col2 DIV - - col1 col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1296
SELECT DISTINCT ( + 68 ) / + 90 + - col1 * - - col1 / col1 / - col2 / + col2 / - - col1 col0 FROM tab1
----
0

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1299
SELECT - - MAX( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 WHERE - ( + 53 ) - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1299
SELECT - - MAX ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 WHERE - ( + 53 ) - col1 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1300
SELECT ALL - + col1 DIV + col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-1300
SELECT ALL - + col1 / + col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-2

query I rowsort
SELECT ALL + - 85 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT DISTINCT + MIN( DISTINCT 51 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
51

skipif mysql # not compatible
query I rowsort label-1302
SELECT DISTINCT + MIN ( DISTINCT 51 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
51

query I rowsort
SELECT DISTINCT 34 + - col0 FROM tab0
----
-53
-63
19

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 27 BETWEEN - col1 AND - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1311
SELECT - col1 * + CAST( ( + col0 ) AS SIGNED ) FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-1311
SELECT - col1 * + CAST ( ( + col0 ) AS INTEGER ) FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT ALL MAX( - + 6 ) AS col2 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-1312
SELECT ALL MAX ( - + 6 ) AS col2 FROM tab2
----
-6

query I rowsort
SELECT - 62 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + - col1, 50, col0 - + col0, col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1314
SELECT - col1 * col1 DIV ( - + col1 ) * - 31 + col2 AS col1 FROM tab2 AS cor0
----
-1558
-2019
-2347

skipif mysql # not compatible
query I rowsort label-1314
SELECT - col1 * col1 / ( - + col1 ) * - 31 + col2 AS col1 FROM tab2 AS cor0
----
-1558
-2019
-2347

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT 95 * - COUNT( * ) FROM tab2 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-1315
SELECT 95 * - COUNT ( * ) FROM tab2 AS cor0
----
-285

query I rowsort
SELECT 8 + - - 85 AS col0 FROM tab0
----
93
93
93

query I rowsort
SELECT ALL - col0 * + 84 + + 38 * - 14 FROM tab2
----
-4396
-5908
-6832

query I rowsort
SELECT ( - 83 ) + col2 + - col1 + - 52 * + + 87 FROM tab1
----
-4525
-4553
-4586

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1320
SELECT ALL ( + 97 ) DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-1320
SELECT ALL ( + 97 ) / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-32

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

query I rowsort
SELECT - - 54 + + col1 FROM tab1 AS cor0
----
101
59
68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1323
SELECT ALL - COUNT( * ) AS col1, + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) > NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-1323
SELECT ALL - COUNT ( * ) AS col1, + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) > NULL
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1324
SELECT DISTINCT + + 89 * + MAX( ALL - + col0 ) FROM tab1 AS cor0
----
-4539

skipif mysql # not compatible
query I rowsort label-1324
SELECT DISTINCT + + 89 * + MAX ( ALL - + col0 ) FROM tab1 AS cor0
----
-4539

query I rowsort
SELECT + + col2 * + col2 * - col0 AS col0 FROM tab0 cor0
----
-33135
-8700
-950697

query I rowsort
SELECT ALL 93 * + 73 + + + col1 + - col0 AS col0 FROM tab0 AS cor0
----
6693
6723
6855

onlyif mysql # aggregate syntax: 
query II rowsort label-1327
SELECT DISTINCT - 56 AS col2, COUNT( * ) FROM tab0
----
-56
3

skipif mysql # not compatible
query II rowsort label-1327
SELECT DISTINCT - 56 AS col2, COUNT ( * ) FROM tab0
----
-56
3

query I rowsort
SELECT - col0 * ( - - 71 ) AS col0 FROM tab1
----
-3621
-6035
-6461

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1329
SELECT ALL CAST( + - 97 AS SIGNED ) AS col1 FROM tab2
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-1329
SELECT ALL CAST ( + - 97 AS INTEGER ) AS col1 FROM tab2
----
-97
-97
-97

query I rowsort
SELECT + ( + - 96 ) * - - col0 * + + col2 FROM tab2
----
-101568
-245760
-417600

query II rowsort
SELECT DISTINCT col1 AS col2, 35 * col0 FROM tab1
----
14
1785
47
3185
5
2975

onlyif mysql # DIV for integer division: 
query I rowsort label-1332
SELECT - col1 * 10 DIV + - 19 FROM tab2
----
26
35
40

skipif mysql # not compatible
query I rowsort label-1332
SELECT - col1 * 10 / + - 19 FROM tab2
----
26
35
40

query I rowsort
SELECT col0 - + + 38 FROM tab2
----
26
37
8

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

query I rowsort
SELECT DISTINCT + col1 + + + col0 + + col1 * col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) < 93
----

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

query I rowsort
SELECT col0 + - - col2 FROM tab0
----
196
62
97

onlyif mysql # DIV for integer division: 
query II rowsort label-1338
SELECT col2 DIV + col2, + col0 FROM tab0
----
1
15
1
87
1
97

skipif mysql # not compatible
query II rowsort label-1338
SELECT col2 / + col2, + col0 FROM tab0
----
1
15
1
87
1
97

query I rowsort
SELECT - 91 * col0 AS col0 FROM tab2
----
-4186
-5824
-6825

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

query I rowsort
SELECT DISTINCT + col2 * - + col0 FROM tab0 cor0 WHERE NOT ( 8 IS NOT NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1342
SELECT ALL + + ( + 43 ) DIV - COUNT( * ) FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL + + ( + 43 ) / - COUNT ( * ) FROM tab1 AS cor0
----
-14

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

query I rowsort
SELECT ALL - - 23 FROM tab1 cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT ALL + - MAX( + ( - - ( + col1 ) ) ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1345
SELECT ALL + - MAX ( + ( - - ( + col1 ) ) ) FROM tab0 AS cor0
----
-81

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1347
SELECT DISTINCT + 54 + - - CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab0 AS cor0 WHERE 71 + col2 = NULL
----

skipif mysql # not compatible
query I rowsort label-1347
SELECT DISTINCT + 54 + - - CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab0 AS cor0 WHERE 71 + col2 = NULL
----

query II rowsort
SELECT col2 * - col2 * - 4 * + - col1 * - - col2, - col2 + col1 FROM tab2 WHERE NOT + 91 >= NULL
----

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

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

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

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

query II rowsort
SELECT + 65 AS col1, - col0 + - col1 AS col2 FROM tab0
----
65
-108
65
-96
65
-98

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 > - - 62
----
87
21
10
97
1
99

query I rowsort
SELECT col2 * + - col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT DISTINCT 63 * - MAX( DISTINCT - - col0 ) FROM tab0
----
-6111

skipif mysql # not compatible
query I rowsort label-1354
SELECT DISTINCT 63 * - MAX ( DISTINCT - - col0 ) FROM tab0
----
-6111

query II rowsort
SELECT - 38 AS col2, 21 AS col1 FROM tab2
----
-38
21
-38
21
-38
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1356
SELECT ALL - CAST( NULL AS SIGNED ) * 70 * COUNT( * ) + 41 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1356
SELECT ALL - CAST ( NULL AS INTEGER ) * 70 * COUNT ( * ) + 41 col2 FROM tab2
----
NULL

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

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

query I rowsort
SELECT DISTINCT ( 74 ) FROM tab0
----
74

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1360
SELECT + - col0 * col0 - + + CAST( col0 AS SIGNED ) FROM tab0 cor0
----
-240
-7656
-9506

skipif mysql # not compatible
query I rowsort label-1360
SELECT + - col0 * col0 - + + CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
-240
-7656
-9506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1361
SELECT DISTINCT + + SUM( - CAST( - col1 AS SIGNED ) ) col0 FROM tab0 AS cor0
----
103

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT SUM( ALL 22 ) + - - MAX( + 67 ) * SUM( - ( 41 ) ) * 27 FROM tab1 AS cor0
----
-222441

skipif mysql # not compatible
query I rowsort label-1362
SELECT SUM ( ALL 22 ) + - - MAX ( + 67 ) * SUM ( - ( 41 ) ) * 27 FROM tab1 AS cor0
----
-222441

query I rowsort
SELECT 93 * + col2 + - col0 FROM tab2 AS cor0
----
2093
3656
5319

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

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

query I rowsort
SELECT ALL - col2 * col1 + + + 58 AS col2 FROM tab1 AS cor0
----
-1286
-237
-3138

query I rowsort
SELECT + + 23 + - 71 + - + 69 * + col1 AS col0 FROM tab0 AS cor0
----
-117
-1497
-5637

query I rowsort
SELECT ALL + + col2 AS col1 FROM tab2 WHERE - 4 * - + col0 + + ( + - col1 ) * + - 93 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1368
SELECT * FROM tab1 WHERE - 6 * - CAST( + col0 AS SIGNED ) > - col1 + 29
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1368
SELECT * FROM tab1 WHERE - 6 * - CAST ( + col0 AS INTEGER ) > - col1 + 29
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 + - + col0 FROM tab2
----
0
0
0

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

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

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

query I rowsort
SELECT DISTINCT - col0 - + col1 + + col0 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

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

query I rowsort
SELECT ALL - 9 + + 2 FROM tab0 cor0 WHERE + col1 + - col1 = col2 + - 66
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1377
SELECT DISTINCT - col1 DIV - 66 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1377
SELECT DISTINCT - col1 / - 66 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT ALL - MIN( + col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1378
SELECT ALL - MIN ( + col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1381
SELECT DISTINCT - MIN ( 87 ) col2 FROM tab2 AS cor0
----
-87

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

skipif mysql # not compatible
query I rowsort label-1382
SELECT col1 / + 26 AS col1 FROM tab0 AS cor0
----
0
0
3

query I rowsort
SELECT DISTINCT + 18 * col0 + - ( - 95 ) - + col1 * + 87 FROM tab0 cor0 WHERE NOT + col0 IS NULL
----
-166
-6682
1754

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1387
SELECT - 57 + - ( + COUNT( * ) ) DIV - - 40 FROM tab1 cor0 WHERE NOT NULL < - col2 * - 90 * + 16 * col0 * - 52
----
-57

skipif mysql # not compatible
query I rowsort label-1387
SELECT - 57 + - ( + COUNT ( * ) ) / - - 40 FROM tab1 cor0 WHERE NOT NULL < - col2 * - 90 * + 16 * col0 * - 52
----
-57

query I rowsort
SELECT 76 AS col1 FROM tab1, tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT + SUM( + 45 ) FROM tab0 AS cor0 WHERE + - col0 + - col1 IS NOT NULL OR ( NULL IS NOT NULL )
----
135

skipif mysql # not compatible
query I rowsort label-1389
SELECT + SUM ( + 45 ) FROM tab0 AS cor0 WHERE + - col0 + - col1 IS NOT NULL OR ( NULL IS NOT NULL )
----
135

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 < + - 67
----

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

query I rowsort
SELECT DISTINCT + col1 + - 4 FROM tab0 AS cor0
----
-3
17
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col2 * - + col1 * + col1 * col1 ) <> col2 - - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT ALL - - col0 + - - col1 - 46 * + 49 AS col1 FROM tab2 AS cor0
----
-2112
-2113
-2157

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

query I rowsort
SELECT + col2 * 58 + + - ( 93 ) FROM tab0 AS cor0
----
2633
487
5649

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

query III rowsort
SELECT * FROM tab0 WHERE col0 < 85
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * - 36, - 26 * + 40 + - col0 + - 73 col2 FROM tab0
----
-1692
-1128
-3564
-1210
-360
-1200

query II rowsort
SELECT - col1 - col2 AS col1, - col0 AS col1 FROM tab0
----
-100
-97
-128
-15
-31
-87

query I rowsort
SELECT 36 - col0 AS col0 FROM tab1
----
-15
-49
-55

query II rowsort
SELECT DISTINCT - col0 + col0 AS col0, col0 AS col0 FROM tab0
----
0
15
0
87
0
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT COUNT( * ) - - 51 + + COUNT( * ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-1406
SELECT COUNT ( * ) - - 51 + + COUNT ( * ) FROM tab2
----
57

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

query I rowsort
SELECT - col2 * + 78 - + col0 * + - 31 AS col0 FROM tab0
----
-3201
-4715
1917

query I rowsort
SELECT - ( - + col1 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
14
47
5

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

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

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

query I rowsort
SELECT DISTINCT - col1 / col1 * - 23 FROM tab2 AS cor0 WHERE NULL IN ( - col1 + + - col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 14 + + 9 + - col0 > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + 56 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 30 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT ( + col1 / + + col1 * 77 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1417
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( + col1 / + + col1 * 77 ) IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> + col1 + + col1 * - + 29
----

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

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

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

query I rowsort
SELECT DISTINCT - + col2 * - col1 + + + 7 AS col0 FROM tab0 cor0
----
106
217
3814

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

query I rowsort
SELECT + ( + 72 ) * 86 AS col1 FROM tab0
----
6192
6192
6192

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1425
SELECT ALL + 17 * CAST( - - col2 AS SIGNED ) + - col0 * + col1 + + 87 - - + col1 - + 55 AS col0 FROM tab0
----
-1604
-303
1619

skipif mysql # not compatible
query I rowsort label-1425
SELECT ALL + 17 * CAST ( - - col2 AS INTEGER ) + - col0 * + col1 + + 87 - - + col1 - + 55 AS col0 FROM tab0
----
-1604
-303
1619

query I rowsort
SELECT DISTINCT 84 + + + col0 - - col0 AS col0 FROM tab0
----
114
258
278

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1427
SELECT DISTINCT * FROM tab2 WHERE + CAST( NULL AS DECIMAL ) > NULL
----

skipif mysql # not compatible
query III rowsort label-1427
SELECT DISTINCT * FROM tab2 WHERE + CAST ( NULL AS REAL ) > NULL
----

query I rowsort
SELECT DISTINCT - col0 + + col1 * + - col1 AS col0 FROM tab1 AS cor0
----
-110
-2300
-247

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1429
SELECT DISTINCT col1 * + CAST( 52 AS SIGNED ) FROM tab2 cor0
----
2652
3484
4004

skipif mysql # not compatible
query I rowsort label-1429
SELECT DISTINCT col1 * + CAST ( 52 AS INTEGER ) FROM tab2 cor0
----
2652
3484
4004

query I rowsort
SELECT - + col0 + - + 47 AS col1 FROM tab0 AS cor0
----
-134
-144
-62

query I rowsort
SELECT ALL + - col1 * - 6 AS col2 FROM tab1 AS cor0
----
282
30
84

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1433
SELECT CAST( + col0 AS SIGNED ) AS col0, 71 FROM tab1
----
51
71
85
71
91
71

skipif mysql # not compatible
query II rowsort label-1433
SELECT CAST ( + col0 AS INTEGER ) AS col0, 71 FROM tab1
----
51
71
85
71
91
71

query I rowsort
SELECT ALL col0 * + - ( + + col0 ) - + + 9 * col1 + + + col2 AS col1 FROM tab1
----
-2631
-7211
-8636

query II rowsort
SELECT - + col0 - col1, col1 FROM tab0 AS cor0
----
-108
21
-96
81
-98
1

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

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

query I rowsort
SELECT 99 + 46 FROM tab1 AS cor0
----
145
145
145

query I rowsort
SELECT ALL + col1 * - 56 - - - col1 * - + 85 * - ( col2 ) FROM tab2 AS cor0
----
-102561
-266112
-334062

query I rowsort
SELECT ( col0 ) * + col0 + + - 31 FROM tab2
----
2085
4065
5594

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1441
SELECT DISTINCT 76 + - col2 DIV - 26 - + col1 + col1 FROM tab2
----
76
77
78

skipif mysql # not compatible
query I rowsort label-1441
SELECT DISTINCT 76 + - col2 / - 26 - + col1 + col1 FROM tab2
----
76
77
78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT + MIN( ALL + + col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-1443
SELECT + MIN ( ALL + + col1 ) FROM tab1
----
5

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

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

query II rowsort
SELECT - col2, col1 * + - ( + col1 ) AS col0 FROM tab1 AS cor0
----
-59
-25
-68
-2209
-96
-196

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 98 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT COUNT( * ) + 83 FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-1447
SELECT COUNT ( * ) + 83 FROM tab1
----
86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1448
SELECT ALL MIN( ALL - CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1448
SELECT ALL MIN ( ALL - CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT + SUM( 43 ) AS col2 FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-1450
SELECT + SUM ( 43 ) AS col2 FROM tab0
----
129

query I rowsort
SELECT ALL - AVG ( 74 ) AS col0 FROM tab2 WHERE NOT NULL <> col2 * col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1452
SELECT DISTINCT 95 FROM tab1 WHERE NOT ( - col1 + col0 ) < CAST( col2 AS SIGNED ) - - 31
----

skipif mysql # not compatible
query I rowsort label-1452
SELECT DISTINCT 95 FROM tab1 WHERE NOT ( - col1 + col0 ) < CAST ( col2 AS INTEGER ) - - 31
----

query I rowsort
SELECT - ( 91 ) AS col2 FROM tab1
----
-91
-91
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1454
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 ) >= ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1454
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 ) >= ( CAST ( NULL AS INTEGER ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT ALL - COUNT( ALL col2 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL - COUNT ( ALL col2 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT ALL - MAX( ALL - 47 ) col0 FROM tab0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1458
SELECT ALL - MAX ( ALL - 47 ) col0 FROM tab0
----
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT ALL + ( + 7 ) - SUM( - col2 ) AS col2 FROM tab0
----
163

skipif mysql # not compatible
query I rowsort label-1460
SELECT ALL + ( + 7 ) - SUM ( - col2 ) AS col2 FROM tab0
----
163

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

query I rowsort
SELECT 73 * 11 AS col0 FROM tab2
----
803
803
803

query I rowsort
SELECT + 83 * 27 AS col1 FROM tab0
----
2241
2241
2241

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE ( + col1 / + 43 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE + col2 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT DISTINCT - ( MIN( DISTINCT col0 ) ) FROM tab2 WHERE + col0 <> col2
----
-46

skipif mysql # not compatible
query I rowsort label-1466
SELECT DISTINCT - ( MIN ( DISTINCT col0 ) ) FROM tab2 WHERE + col0 <> col2
----
-46

query I rowsort
SELECT col1 + ( col2 ) * col0 FROM tab1
----
4910
5020
6235

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1470
SELECT ALL + CAST( + CAST( col0 AS DECIMAL ) AS SIGNED ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1470
SELECT ALL + CAST ( + CAST ( col0 AS REAL ) AS INTEGER ) FROM tab1
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) * 11 col1 FROM tab0 WHERE ( - 68 ) > NULL
----

query I rowsort
SELECT ALL - col0 + 63 AS col1 FROM tab1 AS cor0
----
-22
-28
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 col1 FROM tab2 cor0 WHERE ( + ( - 5 ) ) < NULL
----

query I rowsort
SELECT ALL - col0 * + ( + col1 * - 11 ) FROM tab1 cor0 WHERE NULL IS NULL
----
4675
47047
7854

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1475
SELECT DISTINCT - COUNT( * ) DIV + 80 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1475
SELECT DISTINCT - COUNT ( * ) / + 80 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col0 * - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + 17 * col2 - + col2
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col2 + - 16 col1 FROM tab0 AS cor0
----
-116
-2225
-9817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1479
SELECT - 21 + - CAST( NULL AS SIGNED ) * ( + 47 + + 63 * + 92 ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1479
SELECT - 21 + - CAST ( NULL AS INTEGER ) * ( + 47 + + 63 * + 92 ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT DISTINCT MIN( - 3 ) FROM tab2 AS cor0 CROSS JOIN tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1480
SELECT DISTINCT MIN ( - 3 ) FROM tab2 AS cor0 CROSS JOIN tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT DISTINCT + 52 + - MAX( + col0 ) AS col1 FROM tab1 WHERE ( NULL ) > col2 + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-1481
SELECT DISTINCT + 52 + - MAX ( + col0 ) AS col1 FROM tab1 WHERE ( NULL ) > col2 + 56
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1483
SELECT + 37 * + 26 + 85 FROM tab2 cor0 CROSS JOIN tab1 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1483
SELECT + 37 * + 26 + 85 FROM tab2 cor0 CROSS JOIN tab1 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT ALL + COUNT( * ) * + MAX( DISTINCT 80 + col1 ) - 92 FROM tab2 AS cor0
----
379

skipif mysql # not compatible
query I rowsort label-1486
SELECT ALL + COUNT ( * ) * + MAX ( DISTINCT 80 + col1 ) - 92 FROM tab2 AS cor0
----
379

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1487
SELECT DISTINCT - 78 DIV COUNT( ALL - col2 ) - + COUNT( * ) FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-1487
SELECT DISTINCT - 78 / COUNT ( ALL - col2 ) - + COUNT ( * ) FROM tab1 AS cor0
----
-29

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

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

query I rowsort
SELECT + col0 * - col1 AS col0 FROM tab2 AS cor0 WHERE ( + 59 + col2 ) NOT IN ( col2 )
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT ALL COUNT( * ) - + 17 AS col1 FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL COUNT ( * ) - + 17 AS col1 FROM tab0 AS cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1492
SELECT + COUNT( - 11 ) - 50 AS col1 FROM tab0 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-1492
SELECT + COUNT ( - 11 ) - 50 AS col1 FROM tab0 AS cor0
----
-47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT DISTINCT MIN( - + col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-1494
SELECT DISTINCT MIN ( - + col1 ) FROM tab2
----
-77

query I rowsort
SELECT DISTINCT 23 FROM tab1 WHERE NULL > NULL
----

query I rowsort
SELECT 35 * - col1 FROM tab0
----
-2835
-35
-735

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

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

query I rowsort
SELECT ALL - col0 * ( col1 ) AS col2 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT - col2 < col0 / + 44
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1500
SELECT CAST( ( MAX( DISTINCT col0 ) ) AS SIGNED ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-1500
SELECT CAST ( ( MAX ( DISTINCT col0 ) ) AS INTEGER ) AS col0 FROM tab1
----
91

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

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

query I rowsort
SELECT + col0 / - 97 + + col0 / + col0 FROM tab2 AS cor0 WHERE NOT - col0 * col1 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT - col0 BETWEEN ( col2 ) AND NULL
----
10
47
99

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 18 * - col0 NOT BETWEEN NULL AND - col1 * - 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT + MIN( DISTINCT 79 ) FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1506
SELECT + MIN ( DISTINCT 79 ) FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND ( - col2 )
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1510
SELECT DISTINCT - 12 AS col0, MIN( DISTINCT - col2 ) FROM tab1 AS cor0
----
-12
-96

skipif mysql # not compatible
query II rowsort label-1510
SELECT DISTINCT - 12 AS col0, MIN ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-12
-96

query I rowsort
SELECT + ( - col2 ) * + + col1 + col0 FROM tab0 AS cor0
----
-123
-2
-3792

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT ALL - SUM( 58 ) + - + COUNT( DISTINCT - col1 ) col0 FROM tab2
----
-177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1512
SELECT ALL - SUM ( 58 ) + - + COUNT ( DISTINCT - col1 ) col0 FROM tab2
----
-177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1513
SELECT DISTINCT - CAST( + 14 AS SIGNED ) + ( + col0 ) AS col0 FROM tab1
----
37
71
77

skipif mysql # not compatible
query I rowsort label-1513
SELECT DISTINCT - CAST ( + 14 AS INTEGER ) + ( + col0 ) AS col0 FROM tab1
----
37
71
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 + col0 * - col0 * - 86 * 26 col0 FROM tab2
----
12577509
4731404
9158693

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

query I rowsort
SELECT DISTINCT col0 * ( + 15 ) AS col1 FROM tab0
----
1305
1455
225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 * + col0 col0 FROM tab0
----
-348
-388
-60

query I rowsort
SELECT DISTINCT AVG ( DISTINCT ( - 3 ) ) FROM tab0 WHERE ( + + 91 ) IS NULL
----
NULL

query I rowsort
SELECT ALL + + 92 + - col1 + + + col2 + - 46 FROM tab2 AS cor0
----
18
37
9

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 + col2 + + col0 IS NULL OR NOT - 68 + 62 * 75 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 92 ) <> NULL
----

query I rowsort
SELECT col1 - + 96 FROM tab1
----
-49
-82
-91

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 WHERE ( col1 ) IS NULL OR - 21 - - ( + col0 ) * - 9 <= ( NULL )
----

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

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

query I rowsort
SELECT DISTINCT ( + + 48 ) * - + 35 - col1 + + col0 FROM tab2 AS cor0
----
-1672
-1685
-1693

query I rowsort
SELECT + col1 * - col1 + + col0 + + - col1 * + col2 * + col0 - 98 AS col2 FROM tab2 AS cor0
----
-203083
-295962
-56611

query I rowsort
SELECT ALL - col1 + - 12 AS col1 FROM tab0 AS cor0
----
-13
-33
-93

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

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

query II rowsort
SELECT - - col0 AS col2, + 70 AS col1 FROM tab2 AS cor0
----
46
70
64
70
75
70

query I rowsort
SELECT - col1 * 71 + - col0 + + col1 * + - col2 AS col2 FROM tab1 AS cor0
----
-2389
-6624
-735

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

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

query I rowsort
SELECT DISTINCT + col2 + 66 FROM tab1 AS cor0 WHERE ( NULL ) >= NULL
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + + 22 - - - 7 > - 85
----

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

skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL - COUNT ( ALL - col1 ) FROM tab2
----
-3

query I rowsort
SELECT ALL 35 * - col2 AS col1 FROM tab1
----
-2065
-2380
-3360

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

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

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

query II rowsort
SELECT DISTINCT - + 52 AS col2, - 76 + col1 FROM tab1 AS cor0
----
-52
-29
-52
-62
-52
-71

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1546
SELECT DISTINCT - COUNT( * ) DIV + COUNT( * ) + + 57 FROM tab0 cor0
----
56

skipif mysql # not compatible
query I rowsort label-1546
SELECT DISTINCT - COUNT ( * ) / + COUNT ( * ) + + 57 FROM tab0 cor0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-1547
SELECT ALL + col1 * - col1 DIV col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL + col1 * - col1 / col1 FROM tab1 AS cor0
----
-14
-47
-5

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 92 <> - col0 + col0
----

query I rowsort
SELECT DISTINCT - col1 + + ( - + 74 ) AS col1 FROM tab1
----
-121
-79
-88

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

skipif mysql # not compatible
query I rowsort label-1552
SELECT ALL MAX ( - CAST ( + col1 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-51

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1554
SELECT + 12 + + CAST( + col1 AS SIGNED ) col0 FROM tab1 AS cor0
----
17
26
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1554
SELECT + 12 + + CAST ( + col1 AS INTEGER ) col0 FROM tab1 AS cor0
----
17
26
59

query II rowsort
SELECT ALL - 17 AS col1, - 74 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-17
-74
-17
-74
-17
-74

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

skipif mysql # not compatible
query II rowsort label-1556
SELECT - COUNT ( * ) + - 85 AS col0, COUNT ( - 68 ) FROM tab2 AS cor0
----
-88
3

query I rowsort
SELECT ALL + 25 + - - ( - col0 ) + - col0 FROM tab2 cor0
----
-103
-125
-67

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT + COUNT( * ) * + + 51 + 59 AS col2 FROM tab2 AS cor0
----
212

skipif mysql # not compatible
query I rowsort label-1560
SELECT + COUNT ( * ) * + + 51 + 59 AS col2 FROM tab2 AS cor0
----
212

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1561
SELECT + MIN( ALL 61 ) DIV - 40 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1561
SELECT + MIN ( ALL 61 ) / - 40 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1562
SELECT DISTINCT + MAX( ALL + + col2 ), COUNT( * ) AS col0 FROM tab0 AS cor0
----
99
3

skipif mysql # not compatible
query II rowsort label-1562
SELECT DISTINCT + MAX ( ALL + + col2 ), COUNT ( * ) AS col0 FROM tab0 AS cor0
----
99
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col0 >= - col1 * - - col0 * - - col2
----
3

skipif mysql # not compatible
query I rowsort label-1563
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col0 >= - col1 * - - col0 * - - col2
----
3

query II rowsort
SELECT DISTINCT col2, col2 + - col2 + - + col0 + + 5 * + col0 * - col0 FROM tab2
----
23
-10626
40
-20544
58
-28200

query II rowsort
SELECT ALL col1, + col0 * - col2 AS col2 FROM tab1
----
14
-4896
47
-6188
5
-5015

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1566
SELECT + MIN( DISTINCT + col1 ) DIV 3 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1566
SELECT + MIN ( DISTINCT + col1 ) / 3 FROM tab0
----
0

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

query II rowsort
SELECT col1 AS col0, + 38 AS col2 FROM tab1
----
14
38
47
38
5
38

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

skipif mysql # not compatible
query I rowsort label-1569
SELECT DISTINCT + 50 + - COUNT ( * ) FROM tab1
----
47

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1572
SELECT ALL 60 + + 19 DIV col2 FROM tab0
----
60
60
61

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL 60 + + 19 / col2 FROM tab0
----
60
60
61

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - + 85 col0 FROM tab1 AS cor0
----
-4335
-7225
-7735

query I rowsort
SELECT DISTINCT + 26 * col1 FROM tab0
----
2106
26
546

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

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

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

query I rowsort
SELECT ALL + col2 * 78 * - - col1 FROM tab2
----
240240
303108
91494

query II rowsort
SELECT - col1 * - + 7 * - 91 AS col0, 54 FROM tab0
----
-13377
54
-51597
54
-637
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT ALL - COUNT( * ) * - 23 AS col2 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-1581
SELECT ALL - COUNT ( * ) * - 23 AS col2 FROM tab2
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1582
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT + - col2 IN ( col1 - + col1, 22, CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-1582
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT + - col2 IN ( col1 - + col1, 22, CAST ( NULL AS INTEGER ) )
----
0

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

skipif mysql # not compatible
query I rowsort label-1583
SELECT DISTINCT COUNT ( * ) / - 98 * - + 51 FROM tab1
----
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1586
SELECT ALL + CAST( col0 AS SIGNED ) + + - 81 * 12 FROM tab1 AS cor0
----
-881
-887
-921

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL + CAST ( col0 AS INTEGER ) + + - 81 * 12 FROM tab1 AS cor0
----
-881
-887
-921

onlyif mysql # aggregate syntax: 
query II rowsort label-1587
SELECT SUM( + + col0 ) col2, 49 AS col2 FROM tab0
----
199
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1587
SELECT SUM ( + + col0 ) col2, 49 AS col2 FROM tab0
----
199
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 75 - - col1 col2 FROM tab0
----
106
175
203

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

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

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 + col2, 67 * - + col2 + col1 + - - col1 + - + 48 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 9 <> - - 69
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ALL - + 30 + 27 FROM tab1 AS cor0
----
-3
-3
-3

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1599
SELECT - COUNT( * ) + 35 DIV - 36 AS col0 FROM tab1 AS cor0
----
-3

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

query I rowsort
SELECT 49 + col0 FROM tab1
----
100
134
140

query I rowsort
SELECT ALL + 47 FROM tab0, tab0 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

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

skipif mysql # not compatible
query I rowsort label-1602
SELECT ALL COUNT ( * ) * - - COUNT ( * ) + + + COUNT ( * ) FROM tab0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-1603
SELECT DISTINCT + - ( + col1 ) DIV + col0 * + col1 + - + 73 col1 FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1603
SELECT DISTINCT + - ( + col1 ) / + col0 * + col1 + - + 73 col1 FROM tab1 AS cor0
----
-73

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1606
SELECT ALL COUNT( * ) * - 93 AS col0 FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-1606
SELECT ALL COUNT ( * ) * - 93 AS col0 FROM tab0
----
-279

query I rowsort
SELECT DISTINCT 94 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
94

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

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

query I rowsort
SELECT DISTINCT + 69 FROM tab0 WHERE + col2 IS NULL
----

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 + - col2 IS NULL
----
-59
-68
-96

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

skipif mysql # not compatible
query I rowsort label-1611
SELECT ALL - ( + + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT DISTINCT + MIN( + 64 ) FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-1612
SELECT DISTINCT + MIN ( + 64 ) FROM tab2 AS cor0
----
64

query II rowsort
SELECT - 62, col2 FROM tab2 AS cor0
----
-62
23
-62
40
-62
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1614
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 > - CAST( NULL AS SIGNED ) - - + 81 - + col2
----

skipif mysql # not compatible
query III rowsort label-1614
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 > - CAST ( NULL AS INTEGER ) - - + 81 - + col2
----

query II rowsort
SELECT ALL - col1 AS col0, 22 AS col1 FROM tab0 AS cor0
----
-1
22
-21
22
-81
22

query I rowsort
SELECT - - 90 FROM tab0 WHERE NOT NULL NOT IN ( ( 67 ), ( col1 ) - 80, - col2 * 59 + - 38 + + col0 )
----

query I rowsort
SELECT 97 * + - col1 FROM tab0
----
-2037
-7857
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT - MIN( + col2 ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-1618
SELECT - MIN ( + col2 ) AS col2 FROM tab1
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - + 73 col1 FROM tab1 AS cor0
----
-26
-59
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT DISTINCT 94 * + - COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
846

skipif mysql # not compatible
query I rowsort label-1620
SELECT DISTINCT 94 * + - COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
846

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 - - - col2 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 81 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT DISTINCT + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1623
SELECT DISTINCT + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT - COUNT( * ) + - - 92 * - 77 FROM tab2 AS cor0
----
-7087

skipif mysql # not compatible
query I rowsort label-1624
SELECT - COUNT ( * ) + - - 92 * - 77 FROM tab2 AS cor0
----
-7087

query I rowsort
SELECT ALL col0 + - + col1 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT DISTINCT COUNT( * ) - + + COUNT( * ) * + 40 * + 48 col0 FROM tab1 AS cor0
----
-5757

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1626
SELECT DISTINCT COUNT ( * ) - + + COUNT ( * ) * + 40 * + 48 col0 FROM tab1 AS cor0
----
-5757

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 4 BETWEEN - + col1 AND NULL
----

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE ( col1 ) >= NULL
----

query I rowsort
SELECT ALL 51 FROM tab2 AS cor0 WHERE NOT col0 + ( - - col1 ) + + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 77 - - col2 AS col1 FROM tab0 AS cor0
----
124
176
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1631
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1631
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 IN ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT DISTINCT SUM( - col1 ) col1 FROM tab0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1632
SELECT DISTINCT SUM ( - col1 ) col1 FROM tab0
----
-103

query II rowsort
SELECT ALL col1 AS col2, col1 + + 65 FROM tab1
----
14
79
47
112
5
70

query III rowsort
SELECT col1 AS col0, 15, col1 FROM tab1
----
9 values hashing to 48ecdb6508abf3fd510d80f4507ff576

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 - - - col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT DISTINCT COUNT( * ) + + 83 FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-1637
SELECT DISTINCT COUNT ( * ) + + 83 FROM tab2
----
86

query I rowsort
SELECT + col0 * - - 55 - + col0 FROM tab2
----
2484
3456
4050

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1639
SELECT CAST( col0 AS SIGNED ) * + ( col2 ) + + - 29 DIV col0 - + col2 FROM tab1
----
4800
4956
6120

skipif mysql # not compatible
query I rowsort label-1639
SELECT CAST ( col0 AS INTEGER ) * + ( col2 ) + + - 29 / col0 - + col2 FROM tab1
----
4800
4956
6120

query I rowsort
SELECT DISTINCT + col2 + - 85 FROM tab0 AS cor0
----
-38
-75
14

query I rowsort
SELECT ALL 95 - + col2 AS col0 FROM tab2 cor0
----
37
55
72

query I rowsort
SELECT ALL + - col0 * + 41 FROM tab0 cor0
----
-3567
-3977
-615

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT col0 IS NOT NULL )
----

query II rowsort
SELECT + 76 AS col2, 69 * + - col0 FROM tab0 AS cor0
----
76
-1035
76
-6003
76
-6693

query I rowsort
SELECT ALL 55 * col1 FROM tab2 AS cor0
----
2805
3685
4235

query I rowsort
SELECT + + 88 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT - 60 * + col0 IS NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + - 18 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

query IIIIII rowsort
SELECT * FROM tab2 cor0 INNER JOIN tab2 cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # DIV for integer division: 
query I rowsort label-1650
SELECT ( col2 ) DIV - + 66 + - col0 AS col1 FROM tab1
----
-52
-85
-92

skipif mysql # not compatible
query I rowsort label-1650
SELECT ( col2 ) / - + 66 + - col0 AS col1 FROM tab1
----
-52
-85
-92

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN NULL AND col0 * - col1 + - 91
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1652
SELECT ALL - CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1652
SELECT ALL - CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT + MAX( ALL + - ( col1 ) ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1653
SELECT + MAX ( ALL + - ( col1 ) ) AS col2 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT ALL + ( - 62 ) AS col0 FROM tab1 cor0
----
-62
-62
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1655
SELECT - col2 + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / + + col1 / + - col2 * + - CAST( 17 AS SIGNED ) * col1 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1655
SELECT - col2 + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / + + col1 / + - col2 * + - CAST ( 17 AS INTEGER ) * col1 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 34 * - col2 + + col1 FROM tab1 AS cor0
----
-2001
-2265
-3250

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT DISTINCT MAX( 48 ) * - 4 * + ( 77 ) FROM tab0
----
-14784

skipif mysql # not compatible
query I rowsort label-1657
SELECT DISTINCT MAX ( 48 ) * - 4 * + ( 77 ) FROM tab0
----
-14784

query II rowsort
SELECT ALL col2 * + + ( col2 ) AS col1, - 30 AS col0 FROM tab0
----
100
-30
2209
-30
9801
-30

query I rowsort
SELECT ( 79 ) AS col2 FROM tab2
----
79
79
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1660
SELECT ALL + col0 + - - 74 / - + CAST( NULL AS SIGNED ) * col0 * 69 * - 28, - 23 * col2 AS col1 FROM tab1
----
NULL
-1357
NULL
-1564
NULL
-2208

skipif mysql # not compatible
query II rowsort label-1660
SELECT ALL + col0 + - - 74 / - + CAST ( NULL AS INTEGER ) * col0 * 69 * - 28, - 23 * col2 AS col1 FROM tab1
----
NULL
-1357
NULL
-1564
NULL
-2208

onlyif mysql # DIV for integer division: 
query I rowsort label-1661
SELECT DISTINCT - col1 + + col1 * col2 DIV - + col2 + - 30 FROM tab0
----
-192
-32
-72

skipif mysql # not compatible
query I rowsort label-1661
SELECT DISTINCT - col1 + + col1 * col2 / - + col2 + - 30 FROM tab0
----
-192
-32
-72

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT + - ( - + col0 ) + + - 70 + - col0 AS col1 FROM tab1 AS cor0
----
-70

query I rowsort
SELECT 27 + - 31 * col1 FROM tab2 cor0
----
-1554
-2050
-2360

query I rowsort
SELECT ALL 58 * + - col2 FROM tab1
----
-3422
-3944
-5568

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT ALL + 38 + - COUNT( * ) FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL + 38 + - COUNT ( * ) FROM tab0
----
35

query II rowsort
SELECT DISTINCT + col1 + + col0, - 92 - + 2 AS col0 FROM tab2
----
141
-94
142
-94
97
-94

query I rowsort
SELECT col0 - - 50 + col2 * + 3 FROM tab1 AS cor0
----
312
345
389

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 35 * col2 = + col1 / - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1670
SELECT - col0 + - 87 + - col2 * + col1 + - + 37 * + col0 * - col0 * - ( + - 68 ), CAST( + col0 AS SIGNED ) * - col0 - - 32 AS col2 FROM tab1 AS cor0
----
18177633
-7193
20831622
-8249
6542634
-2569

skipif mysql # not compatible
query II rowsort label-1670
SELECT - col0 + - 87 + - col2 * + col1 + - + 37 * + col0 * - col0 * - ( + - 68 ), CAST ( + col0 AS INTEGER ) * - col0 - - 32 AS col2 FROM tab1 AS cor0
----
18177633
-7193
20831622
-8249
6542634
-2569

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT MIN( + col0 ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-1671
SELECT MIN ( + col0 ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-1672
SELECT + + COUNT( * ) + + COUNT( * ) AS col1, 33 AS col1 FROM tab1 cor0
----
6
33

skipif mysql # not compatible
query II rowsort label-1672
SELECT + + COUNT ( * ) + + COUNT ( * ) AS col1, 33 AS col1 FROM tab1 cor0
----
6
33

query I rowsort
SELECT col2 + + - col0 AS col2 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT + - 30 + + + col2 AS col2 FROM tab1 AS cor0
----
29
38
66

query I rowsort
SELECT DISTINCT - - col1 - + col0 AS col0 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1676
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( CAST( + - col0 AS DECIMAL ) * - - col1 / + col2 * - + col1 IS NOT NULL ) )
----

skipif mysql # not compatible
query III rowsort label-1676
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( CAST ( + - col0 AS REAL ) * - - col1 / + col2 * - + col1 IS NOT NULL ) )
----

query I rowsort
SELECT ALL 74 * col1 + + col2 FROM tab2
----
3797
5016
5738

onlyif mysql # DIV for integer division: 
query I rowsort label-1678
SELECT + - col1 DIV - 67 AS col2 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1678
SELECT + - col1 / - 67 AS col2 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1679
SELECT ALL + + 3 DIV + 18 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1679
SELECT ALL + + 3 / + 18 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1680
SELECT DISTINCT - col2 DIV 8 FROM tab1 AS cor0
----
-12
-7
-8

skipif mysql # not compatible
query I rowsort label-1680
SELECT DISTINCT - col2 / 8 FROM tab1 AS cor0
----
-12
-7
-8

query II rowsort
SELECT col0, - 68 AS col0 FROM tab2 AS cor0
----
46
-68
64
-68
75
-68

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - + 52 * + + ( + 92 ) AND - col2
----

query II rowsort
SELECT - col1 AS col2, col0 AS col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1684
SELECT + - col0 + CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1684
SELECT + - col0 + CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col2, - col1 - 88 AS col1 FROM tab0 WHERE NOT - 34 * + 48 + + 27 - + 18 IS NOT NULL
----

query II rowsort
SELECT ALL col1 + + col1, col1 AS col1 FROM tab1
----
10
5
28
14
94
47

query I rowsort
SELECT + + 45 * - + 60 * + 53 * col0 FROM tab2 AS cor0
----
-10732500
-6582600
-9158400

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT DISTINCT - MAX( - 80 ) FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-1688
SELECT DISTINCT - MAX ( - 80 ) FROM tab1 AS cor0
----
80

query I rowsort
SELECT 11 - + + ( + 68 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT DISTINCT col2 + - + col1 - - - col0 + - + ( - + col1 ) AS col1 FROM tab1
----
-23
-26
45

query II rowsort
SELECT + col0, + col1 * 11 AS col2 FROM tab0 AS cor0
----
15
891
87
231
97
11

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

query I rowsort
SELECT ALL - 81 + - col1 AS col1 FROM tab0 AS cor0
----
-102
-162
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT DISTINCT MAX( - + 36 ) AS col2 FROM tab2 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-1694
SELECT DISTINCT MAX ( - + 36 ) AS col2 FROM tab2 cor0
----
-36

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col1 - + 77 FROM tab2 AS cor0
----
-128
-144
-154

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + + 58
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE 81 * - - 50 + + 66 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1699
SELECT DISTINCT + ( - 19 ) - + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1699
SELECT DISTINCT + ( - 19 ) - + CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT + col2 - + 3 + + col1 AS col2 FROM tab0
----
125
28
97

query I rowsort
SELECT + ( + + 4 ) * - col0 AS col0 FROM tab1
----
-204
-340
-364

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT + + 17 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # DIV for integer division: 
query II rowsort label-1703
SELECT ALL - col0 DIV - col0 AS col0, - 11 FROM tab2
----
1
-11
1
-11
1
-11

skipif mysql # not compatible
query II rowsort label-1703
SELECT ALL - col0 / - col0 AS col0, - 11 FROM tab2
----
1
-11
1
-11
1
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1704
SELECT DISTINCT + SUM( col2 ) DIV COUNT( * ) FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-1704
SELECT DISTINCT + SUM ( col2 ) / COUNT ( * ) FROM tab0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT - 54 * - SUM( + col0 ) FROM tab2 AS cor0
----
9990

skipif mysql # not compatible
query I rowsort label-1705
SELECT - 54 * - SUM ( + col0 ) FROM tab2 AS cor0
----
9990

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 * 40 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT - COUNT( * ) + 60 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
51

skipif mysql # not compatible
query I rowsort label-1707
SELECT - COUNT ( * ) + 60 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
51

query I rowsort
SELECT DISTINCT + + 92 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE + 82 IS NOT NULL
----
92

query I rowsort
SELECT ALL + 82 * col2 * + col0 FROM tab2
----
209920
356700
86756

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND + - col0 * - col1 + + col2 - + col0
----

query I rowsort
SELECT + - 42 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

onlyif mysql # DIV for integer division: 
query I rowsort label-1712
SELECT col0 DIV - col2 + - + col0 col0 FROM tab0 AS cor0
----
-15
-95
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1712
SELECT col0 / - col2 + - + col0 col0 FROM tab0 AS cor0
----
-15
-95
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT + - ( - COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1713
SELECT + - ( - COUNT ( * ) ) FROM tab2 cor0
----
3

query I rowsort
SELECT ALL + - 71 AS col0 FROM tab0 AS cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT - 60 * MIN( - col1 ) col0 FROM tab2
----
4620

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1715
SELECT - 60 * MIN ( - col1 ) col0 FROM tab2
----
4620

query II rowsort
SELECT 33, col2 AS col0 FROM tab1
----
33
59
33
68
33
96

onlyif mysql # DIV for integer division: 
query II rowsort label-1717
SELECT ( + + col0 ) DIV - 52 + col2, col2 FROM tab0
----
47
47
9
10
98
99

skipif mysql # not compatible
query II rowsort label-1717
SELECT ( + + col0 ) / - 52 + col2, col2 FROM tab0
----
47
47
9
10
98
99

query I rowsort
SELECT + col0 + + + col1 * - col0 + + - col1 - + col0 * - 16 FROM tab0
----
-1041
-369
1551

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT MAX( DISTINCT - - 10 ) + 84 FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-1719
SELECT MAX ( DISTINCT - - 10 ) + 84 FROM tab2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT DISTINCT + COUNT( * ) + ( 26 ) AS col0 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-1720
SELECT DISTINCT + COUNT ( * ) + ( 26 ) AS col0 FROM tab1
----
29

query I rowsort
SELECT + col1 + - 53 AS col1 FROM tab1
----
-39
-48
-6

query III rowsort
SELECT * FROM tab2 WHERE + - 2 NOT BETWEEN ( + + col2 / - 82 * - + col2 * col1 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1723
SELECT DISTINCT 31 DIV - 21 + col2 AS col0 FROM tab0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT 31 / - 21 + col2 AS col0 FROM tab0
----
46
9
98

query I rowsort
SELECT + ( + - col2 ) + + + ( - col0 ) + - col0 AS col2 FROM tab1
----
-198
-229
-250

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT - COUNT( ALL + - 72 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1725
SELECT - COUNT ( ALL + - 72 ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 45 * 18 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col1 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query II rowsort label-1728
SELECT ALL + col2, + col2 DIV - col1 AS col1 FROM tab2 AS cor0
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-1728
SELECT ALL + col2, + col2 / - col1 AS col1 FROM tab2 AS cor0
----
23
0
40
0
58
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1729
SELECT - + CAST( + 4 AS SIGNED ) AS col0, + AVG ( + col1 ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-1729
SELECT - + CAST ( + 4 AS INTEGER ) AS col0, + AVG ( + col1 ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-4
NULL

query II rowsort
SELECT ALL - col1, col2 + - - 84 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14
180
-47
152
-5
143

onlyif mysql # DIV for integer division: 
query I rowsort label-1731
SELECT DISTINCT col1 DIV + col1 + col0 * + col1 AS col2 FROM tab2
----
2347
4929
5026

skipif mysql # not compatible
query I rowsort label-1731
SELECT DISTINCT col1 / + col1 + col0 * + col1 AS col2 FROM tab2
----
2347
4929
5026

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 + + + 58 col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8ea29c11e2d920a09e8656cafe5a9642

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1733
SELECT + 33 DIV ( - MIN( + + ( + col0 ) ) ) - - 28 AS col2 FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-1733
SELECT + 33 / ( - MIN ( + + ( + col0 ) ) ) - - 28 AS col2 FROM tab0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT DISTINCT 81 - + ( - 2 ) * - ( + COUNT( * ) ) AS col2 FROM tab1 cor0
----
75

skipif mysql # not compatible
query I rowsort label-1734
SELECT DISTINCT 81 - + ( - 2 ) * - ( + COUNT ( * ) ) AS col2 FROM tab1 cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1735
SELECT DISTINCT col2 * col0 / - CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1735
SELECT DISTINCT col2 * col0 / - CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT ALL + COUNT( * ) - - 55 AS col1 FROM tab1 AS cor0 WHERE NULL = + 77
----
55

skipif mysql # not compatible
query I rowsort label-1736
SELECT ALL + COUNT ( * ) - - 55 AS col1 FROM tab1 AS cor0 WHERE NULL = + 77
----
55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1737
SELECT ALL + CAST( NULL AS DECIMAL ) - - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1737
SELECT ALL + CAST ( NULL AS REAL ) - - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1738
SELECT - AVG ( - col1 ) * + 48 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1738
SELECT - AVG ( - col1 ) * + 48 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT - 62 + + col1 AS col2, 33 + - col0 FROM tab0 AS cor0
----
-41
-54
-61
-64
19
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT ( COUNT( + col1 ) ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1740
SELECT ( COUNT ( + col1 ) ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 6 + - - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL > col1 * - - 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT DISTINCT - ( + COUNT( ALL - 83 ) ) * MAX( DISTINCT + col0 ) FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-1742
SELECT DISTINCT - ( + COUNT ( ALL - 83 ) ) * MAX ( DISTINCT + col0 ) FROM tab0
----
-291

query I rowsort
SELECT DISTINCT col2 * 39 * col2 AS col2 FROM tab0
----
382239
3900
86151

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT + - 59 NOT IN ( + col0, 49 / + 49 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT ALL 64 * COUNT( * ) FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-1745
SELECT ALL 64 * COUNT ( * ) FROM tab2
----
192

query II rowsort
SELECT ALL 57 AS col2, - 98 FROM tab1
----
57
-98
57
-98
57
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-1747
SELECT DISTINCT col2 DIV - - 6 AS col1 FROM tab1
----
11
16
9

skipif mysql # not compatible
query I rowsort label-1747
SELECT DISTINCT col2 / - - 6 AS col1 FROM tab1
----
11
16
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT + 70 * COUNT( * ) AS col0 FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-1748
SELECT + 70 * COUNT ( * ) AS col0 FROM tab1
----
210

query I rowsort
SELECT - 18 * 54 * + + col1 * col2 AS col0 FROM tab0 AS cor0
----
-204120
-3700404
-96228

query II rowsort
SELECT + + col0 AS col1, col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - - 4 col1 FROM tab2 AS cor0
----
184
256
300

query I rowsort
SELECT + col0 + - 2 FROM tab0 AS cor0 WHERE NOT NULL <= col2
----

query I rowsort
SELECT + 81 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT 51 + + col2 - + - 29 + + - col0 + col2 * - ( + - col0 ) FROM tab0
----
817
873
9685

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < NULL OR NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col2 + - ( - ( col1 ) ) AS col0 FROM tab2 cor0
----
28
37
9

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT + col0 + - - col1 + - col2 * + col0 FROM tab0 cor0
----
-609
-762
-9505

query I rowsort
SELECT ALL - - 79 AS col0 FROM tab1 AS cor0
----
79
79
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1760
SELECT + col2 * col0 / - 79 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1760
SELECT + col2 * col0 / - 79 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 = + ( 96 )
----

query I rowsort
SELECT ALL col1 * 80 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 >= NULL
----

query I rowsort
SELECT ALL - col1 * - col2 * + + col1 AS col1 FROM tab2 AS cor0
----
237160
260362
59823

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 + 37 FROM tab1
----
122
128
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1767
SELECT CAST( - + 94 AS SIGNED ) AS col1 FROM tab0
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-1767
SELECT CAST ( - + 94 AS INTEGER ) AS col1 FROM tab0
----
-94
-94
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 col2 FROM tab2
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT ALL - ( COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL - ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + + 35 * + col1 + + col1 * - - col1 - + col2 FROM tab0 AS cor0
----
-63
1166
9349

query I rowsort
SELECT ALL - + 90 * + AVG ( ALL + ( col0 ) ) AS col2 FROM tab2 AS cor0 WHERE NULL >= col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1772
SELECT DISTINCT - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN - col1 + - CAST( - - col1 AS SIGNED ) AND col2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1772
SELECT DISTINCT - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN - col1 + - CAST ( - - col1 AS INTEGER ) AND col2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1773
SELECT AVG ( DISTINCT col0 ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1773
SELECT AVG ( DISTINCT col0 ) + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE NULL = NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1776
SELECT DISTINCT col2 + - col2 - col2 * - + CAST( NULL AS DECIMAL ) + - col0 * - - 26 * - + col1 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1776
SELECT DISTINCT col2 + - col2 - col2 * - + CAST ( NULL AS REAL ) + - col0 * - - 26 * - + col1 AS col2 FROM tab1
----
NULL

query II rowsort
SELECT + + 12 AS col2, + col0 AS col2 FROM tab0 AS cor0
----
12
15
12
87
12
97

query II rowsort
SELECT DISTINCT + + col1, + 62 * + col2 * + col2 + - col1 FROM tab2 AS cor0
----
51
32747
67
208501
77
99123

query I rowsort
SELECT ALL - 4 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
-4
-4
-4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 >= - col2 / - 75
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT DISTINCT + + MAX( ALL - col2 ) col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1781
SELECT DISTINCT + + MAX ( ALL - col2 ) col2 FROM tab1 AS cor0
----
-59

query II rowsort
SELECT - 76, 76 AS col2 FROM tab1 cor0
----
-76
76
-76
76
-76
76

query II rowsort
SELECT ALL + - col2, ( + col0 ) FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

onlyif mysql # DIV for integer division: 
query II rowsort label-1784
SELECT + + 11 AS col0, col1 + + + 86 + - + col1 + + + 57 DIV 98 AS col2 FROM tab0 AS cor0
----
11
86
11
86
11
86

skipif mysql # not compatible
query II rowsort label-1784
SELECT + + 11 AS col0, col1 + + + 86 + - + col1 + + + 57 / 98 AS col2 FROM tab0 AS cor0
----
11
86
11
86
11
86

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <> 35
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1786
SELECT - 40 * - CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1600
2320
920

skipif mysql # not compatible
query I rowsort label-1786
SELECT - 40 * - CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1600
2320
920

query I rowsort
SELECT ALL 62 * ( + col1 ) AS col1 FROM tab1
----
2914
310
868

query I rowsort
SELECT DISTINCT - col0 * 50 * + 40 FROM tab2
----
-128000
-150000
-92000

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT ALL + ( - + COUNT( * ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1789
SELECT ALL + ( - + COUNT ( * ) ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT ALL + + col2 + - col0 - + col0 FROM tab0 WHERE NOT ( NULL ) > - + 96 OR NOT + col2 * 78 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 / ( - col1 ) + - - col0 > + 99 + col2
----

query I rowsort
SELECT ALL + col0 - ( - + col1 ) AS col2 FROM tab0 WHERE ( NULL NOT IN ( col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1793
SELECT ALL col1 DIV - ( + col1 ) + + 46 + 90 FROM tab0
----
135
135
135

skipif mysql # not compatible
query I rowsort label-1793
SELECT ALL col1 / - ( + col1 ) + + 46 + 90 FROM tab0
----
135
135
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1794
SELECT DISTINCT - CAST( - 80 AS SIGNED ) FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-1794
SELECT DISTINCT - CAST ( - 80 AS INTEGER ) FROM tab1 AS cor0
----
80

query I rowsort
SELECT - ( + col0 ) * - - col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT 56 * - col0 * col2 AS col0 FROM tab1 cor0
----
-274176
-280840
-346528

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT DISTINCT - - COUNT( * ) * + 23 col1 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1797
SELECT DISTINCT - - COUNT ( * ) * + 23 col1 FROM tab2 AS cor0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1798
SELECT - - CAST( NULL AS SIGNED ) + 5 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1798
SELECT - - CAST ( NULL AS INTEGER ) + 5 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 + + 0 AS col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT 13 AS col1 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
13

query I rowsort
SELECT DISTINCT 6 * - 35 FROM tab2 AS cor0
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT + COUNT( * ) + 24 AS col2 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-1802
SELECT + COUNT ( * ) + 24 AS col2 FROM tab2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1803
SELECT ALL CAST( - 30 AS SIGNED ) AS col1 FROM tab1
----
-30
-30
-30

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL CAST ( - 30 AS INTEGER ) AS col1 FROM tab1
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT + MIN( DISTINCT + - col1 ) * - 60 + 76 FROM tab0
----
4936

skipif mysql # not compatible
query I rowsort label-1804
SELECT + MIN ( DISTINCT + - col1 ) * - 60 + 76 FROM tab0
----
4936

query I rowsort
SELECT col0 * - col0 * - col2 * - ( - - col2 ) + + 42 AS col1 FROM tab1
----
-23970774
-25150183
-38291302

query I rowsort
SELECT col2 * - col0 / - + col1 - + - 32 + - - col1 FROM tab2 WHERE + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1807
SELECT DISTINCT 33 DIV - 61 + - col1 AS col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1807
SELECT DISTINCT 33 / - 61 + - col1 AS col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT ALL - ( col1 ) + + 59 AS col0 FROM tab2
----
-18
-8
8

query I rowsort
SELECT DISTINCT col2 + 37 AS col1 FROM tab1
----
105
133
96

query I rowsort
SELECT ALL - - 93 FROM tab2 AS cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT + MAX( DISTINCT col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-1811
SELECT + MAX ( DISTINCT col2 ) FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1812
SELECT CAST( + 79 AS SIGNED ) FROM tab0 AS cor0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-1812
SELECT CAST ( + 79 AS INTEGER ) FROM tab0 AS cor0
----
79
79
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 34 - + col1 + + 74 * - 65 + - ( + + col0 ) col1 FROM tab1 AS cor0
----
-4841
-4866
-4914

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 70 BETWEEN NULL AND col1 * - 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT - COUNT( * ) * - 75 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-675

skipif mysql # not compatible
query I rowsort label-1815
SELECT - COUNT ( * ) * - 75 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-675

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE col2 + - col2 IS NULL
----

query I rowsort
SELECT + col0 * 51 AS col0 FROM tab0
----
4437
4947
765

query I rowsort
SELECT - 34 * - + col1 + - col2 AS col0 FROM tab2 AS cor0
----
1711
2220
2578

query I rowsort
SELECT DISTINCT 21 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
21

query II rowsort
SELECT ALL - col1 AS col1, col2 AS col1 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT + COUNT( + - 17 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1821
SELECT + COUNT ( + - 17 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 IN ( 78, - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 col1 FROM tab2 AS cor0
----
75
75
75

query I rowsort
SELECT - 7 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-7
-7
-7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1825
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-1825
SELECT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1 AS col1, - ( + + 75 ) FROM tab1
----
14
-75
47
-75
5
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT ALL COUNT( DISTINCT + col1 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1827
SELECT ALL COUNT ( DISTINCT + col1 ) col1 FROM tab0
----
3

query I rowsort
SELECT ALL col1 * - 22 FROM tab0
----
-1782
-22
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT DISTINCT - MAX( + 66 ) AS col2 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-1829
SELECT DISTINCT - MAX ( + 66 ) AS col2 FROM tab0
----
-66

onlyif mysql # DIV for integer division: 
query II rowsort label-1830
SELECT ALL col0, col1 DIV col2 - col0 FROM tab1
----
51
-51
85
-85
91
-91

skipif mysql # not compatible
query II rowsort label-1830
SELECT ALL col0, col1 / col2 - col0 FROM tab1
----
51
-51
85
-85
91
-91

query I rowsort
SELECT - + 45 * + + ( + ( col1 ) ) * + - col2 + col2 FROM tab0 AS cor0
----
171362
4554
9460

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT COUNT( - col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1832
SELECT COUNT ( - col2 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL 29 * 75 AS col0 FROM tab1
----
2175
2175
2175

query II rowsort
SELECT col1 + - col1, col0 AS col1 FROM tab2
----
0
46
0
64
0
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1835
SELECT - + col0 + - col0 + CAST( NULL AS SIGNED ) 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-1835
SELECT - + col0 + - col0 + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1836
SELECT - CAST( NULL AS DECIMAL ) + + + col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1836
SELECT - CAST ( NULL AS REAL ) + + + col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1837
SELECT - 9 + - SUM( ALL - 63 ) DIV 10 AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1837
SELECT - 9 + - SUM ( ALL - 63 ) / 10 AS col2 FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1838
SELECT DISTINCT + col1 + 62 + CAST( - 88 AS SIGNED ) FROM tab2 AS cor0
----
25
41
51

skipif mysql # not compatible
query I rowsort label-1838
SELECT DISTINCT + col1 + 62 + CAST ( - 88 AS INTEGER ) FROM tab2 AS cor0
----
25
41
51

query I rowsort
SELECT DISTINCT + 22 * - - col1 AS col2 FROM tab1 AS cor0
----
1034
110
308

onlyif mysql # DIV for integer division: 
query I rowsort label-1840
SELECT ALL col1 DIV + 58 AS col1 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1840
SELECT ALL col1 / + 58 AS col1 FROM tab0 cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT ALL + + ( - - COUNT( * ) ) FROM tab2 cor0 WHERE NOT NULL <= 86 + - ( - 79 ) + - 74 + + col2
----
0

skipif mysql # not compatible
query I rowsort label-1841
SELECT ALL + + ( - - COUNT ( * ) ) FROM tab2 cor0 WHERE NOT NULL <= 86 + - ( - 79 ) + - 74 + + col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1842
SELECT ALL + col0 DIV + col0 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL + col0 / + col0 AS col2 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1843
SELECT DISTINCT - 20, - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-1843
SELECT DISTINCT - 20, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
-20
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1844
SELECT DISTINCT SUM( - - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT SUM ( - - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 30 * - col2 + + - col2 + col0 col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1846
SELECT + ( - CAST( NULL AS SIGNED ) ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1846
SELECT + ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - 37 * + + col1 * - + col1 FROM tab2
----
12456975
14039872
4426902

query I rowsort
SELECT ALL col1 + col1 * col2 + + col2 FROM tab0
----
199
241
3935

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT COUNT( * ) - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1849
SELECT COUNT ( * ) - COUNT ( * ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT ALL + COUNT( * ) - - + 94 AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL + COUNT ( * ) - - + 94 AS col1 FROM tab0 AS cor0
----
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 32 * - + 18 + + col2 IS NULL
----

query I rowsort
SELECT ALL - 19 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT - COUNT( col2 ) * - - MAX( DISTINCT - col0 ) AS col2 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-1853
SELECT - COUNT ( col2 ) * - - MAX ( DISTINCT - col0 ) AS col2 FROM tab0
----
45

query I rowsort
SELECT ALL - 3 AS col0 FROM tab0
----
-3
-3
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 <= NULL
----

query II rowsort
SELECT DISTINCT col0, col0 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1857
SELECT DISTINCT - CAST( NULL AS SIGNED ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1857
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

query II rowsort
SELECT ALL + + col0 * + 89 - col2, - col1 AS col2 FROM tab0 AS cor0
----
1288
-81
7733
-21
8534
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1859
SELECT + + col0 AS col2 FROM tab1 cor0 WHERE NOT + col1 NOT BETWEEN CAST( + 96 AS SIGNED ) AND + 61 / + 95
----

skipif mysql # not compatible
query I rowsort label-1859
SELECT + + col0 AS col2 FROM tab1 cor0 WHERE NOT + col1 NOT BETWEEN CAST ( + 96 AS INTEGER ) AND + 61 / + 95
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 * + col2 col1 FROM tab0 AS cor0
----
-376
-792
-80

query II rowsort
SELECT DISTINCT + col0, + col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query II rowsort
SELECT DISTINCT - 28, col1 FROM tab0 AS cor0
----
-28
1
-28
21
-28
81

query I rowsort
SELECT DISTINCT + 82 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1864
SELECT ALL - CAST( NULL AS SIGNED ) * + col1 + 92 * - - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL - CAST ( NULL AS INTEGER ) * + col1 + 92 * - - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL = 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT DISTINCT - + MIN( ALL + ( 12 ) ) AS col2 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-1866
SELECT DISTINCT - + MIN ( ALL + ( 12 ) ) AS col2 FROM tab0 AS cor0
----
-12

query I rowsort
SELECT ALL col2 + col1 + - 60 AS col2 FROM tab0 AS cor0
----
-29
40
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1868
SELECT + + 55 + - CAST( - col2 AS SIGNED ) * - 23 - + col2 AS col1 FROM tab1 AS cor0
----
-1361
-1577
-2249

skipif mysql # not compatible
query I rowsort label-1868
SELECT + + 55 + - CAST ( - col2 AS INTEGER ) * - 23 - + col2 AS col1 FROM tab1 AS cor0
----
-1361
-1577
-2249

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT DISTINCT - SUM( + 81 ) - + - MIN( DISTINCT + - col1 ) AS col2 FROM tab0 AS cor0
----
-324

skipif mysql # not compatible
query I rowsort label-1869
SELECT DISTINCT - SUM ( + 81 ) - + - MIN ( DISTINCT + - col1 ) AS col2 FROM tab0 AS cor0
----
-324

query I rowsort
SELECT + + 74 FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1871
SELECT ALL - - CAST( + ( - col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1871
SELECT ALL - - CAST ( + ( - col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT + col1 + - col1 + - col1 - - 67 + + col2 * + ( - col2 ) FROM tab0 AS cor0
----
-2223
-54
-9735

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1873
SELECT - 40 DIV + COUNT( * ) + + COUNT( * ) AS col0 FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-1873
SELECT - 40 / + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT DISTINCT 73 + + COUNT( * ) * + 76 FROM tab2
----
301

skipif mysql # not compatible
query I rowsort label-1874
SELECT DISTINCT 73 + + COUNT ( * ) * + 76 FROM tab2
----
301

query III rowsort
SELECT * FROM tab1 WHERE + ( - - col1 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col0 * - col1 * + col1 + - 3 FROM tab1
----
-201022
-2128
-9999

query I rowsort
SELECT + col2 + - 2 AS col2 FROM tab1 WHERE NULL <> + + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1878
SELECT ALL + 13 + - - SUM( CAST( + col2 AS SIGNED ) ) AS col0 FROM tab1
----
236

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL + 13 + - - SUM ( CAST ( + col2 AS INTEGER ) ) AS col0 FROM tab1
----
236

query I rowsort
SELECT ALL + 50 - - col2 AS col1 FROM tab2 AS cor0
----
108
73
90

query I rowsort
SELECT DISTINCT - + col0 * - col0 + - + 52 AS col2 FROM tab2 AS cor0
----
2064
4044
5573

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT COUNT( col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1881
SELECT COUNT ( col1 ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 - - col2 NOT BETWEEN + 52 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 40 AS col1 FROM tab2 AS cor0
----
40
40
40

query II rowsort
SELECT - + col2 AS col1, 57 FROM tab0 AS cor0
----
-10
57
-47
57
-99
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT ALL + MIN( - + 1 ) FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL + MIN ( - + 1 ) FROM tab2 cor0
----
-1

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 24 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT DISTINCT + SUM( - + col2 ) col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1888
SELECT DISTINCT + SUM ( - + col2 ) col2 FROM tab1 AS cor0
----
-223

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col2 >= + 89
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 83 col1 FROM tab0 AS cor0 WHERE + 59 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1891
SELECT + + CAST( - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1891
SELECT + + CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1892
SELECT DISTINCT - col0 * - ( CAST( - col1 AS SIGNED ) ) * col2 FROM tab2
----
-197120
-291450
-53958

skipif mysql # not compatible
query I rowsort label-1892
SELECT DISTINCT - col0 * - ( CAST ( - col1 AS INTEGER ) ) * col2 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT + 33 / + col0 - 56 FROM tab1 WHERE NOT NULL < - col2 + - - 68 - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1894
SELECT DISTINCT - CAST( ( + col1 ) AS SIGNED ) * - - col0, - col1 * + col0 FROM tab2
----
-2346
-2346
-4928
-4928
-5025
-5025

skipif mysql # not compatible
query II rowsort label-1894
SELECT DISTINCT - CAST ( ( + col1 ) AS INTEGER ) * - - col0, - col1 * + col0 FROM tab2
----
-2346
-2346
-4928
-4928
-5025
-5025

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1896
SELECT 72 * + col2 * CAST( + 52 AS SIGNED ) FROM tab2
----
149760
217152
86112

skipif mysql # not compatible
query I rowsort label-1896
SELECT 72 * + col2 * CAST ( + 52 AS INTEGER ) FROM tab2
----
149760
217152
86112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 * - 5 * - col2 col2 FROM tab0 AS cor0
----
19035
40095
4050

query I rowsort
SELECT DISTINCT + col2 + 15 FROM tab2 cor0
----
38
55
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT COUNT( * ) + - 85 FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-1899
SELECT COUNT ( * ) + - 85 FROM tab1
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1900
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - 44 + - + 13 / COUNT( DISTINCT + 23 ) + - COUNT( * ) + 6 / - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1900
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - 44 + - + 13 / COUNT ( DISTINCT + 23 ) + - COUNT ( * ) + 6 / - COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT + COUNT( * ) * + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-1901
SELECT + COUNT ( * ) * + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
81

query I rowsort
SELECT DISTINCT - ( - col1 ) - + col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) = + + col2
----

query I rowsort
SELECT DISTINCT - - 53 - + col0 FROM tab1 AS cor0
----
-32
-38
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1905
SELECT DISTINCT COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1905
SELECT DISTINCT COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col0, ( - - col2 ) col0 FROM tab1
----
-51
96
-85
59
-91
68

query I rowsort
SELECT - col0 - 25 AS col0 FROM tab2
----
-100
-71
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-1908
SELECT col2 - + + col0 DIV col2 col2 FROM tab2
----
21
39
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1908
SELECT col2 - + + col0 / col2 col2 FROM tab2
----
21
39
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1909
SELECT + CAST( col2 AS SIGNED ) - - col1 FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-1909
SELECT + CAST ( col2 AS INTEGER ) - - col1 FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT DISTINCT 70 * + SUM( DISTINCT + + ( + 24 ) ) AS col2 FROM tab0
----
1680

skipif mysql # not compatible
query I rowsort label-1910
SELECT DISTINCT 70 * + SUM ( DISTINCT + + ( + 24 ) ) AS col2 FROM tab0
----
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT ( + - COUNT( * ) ) - - + COUNT( DISTINCT col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1911
SELECT ( + - COUNT ( * ) ) - - + COUNT ( DISTINCT col0 ) FROM tab0
----
0

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE + 20 IS NOT NULL
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 + - col2 * + 31 col2 FROM tab1
----
-1740
-2019
-2887

query I rowsort
SELECT ALL + col1 * + - col2 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT MIN( DISTINCT - col2 ) AS col1 FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1915
SELECT MIN ( DISTINCT - col2 ) AS col1 FROM tab1 cor0
----
-96

query I rowsort
SELECT ALL - col1 * col0 AS col0 FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN 34 AND + 72
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT MIN( + 61 ) AS col0 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-1917
SELECT MIN ( + 61 ) AS col0 FROM tab2 AS cor0
----
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 * + col2 col1 FROM tab1 cor0
----
2360
2720
3840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1919
SELECT + COUNT( * ) DIV - 47 * - + 26 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1919
SELECT + COUNT ( * ) / - 47 * - + 26 AS col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col2 FROM tab2 AS cor0 WHERE NOT - col2 / - + col2 <= NULL
----

query I rowsort
SELECT ALL - col2 * - 84 * col1 * 93 * + 83 AS col0 FROM tab1
----
191276820
2072273616
871444224

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT NULL <> NULL )
----

query I rowsort
SELECT DISTINCT + 46 * + - 38 FROM tab1
----
-1748

query III rowsort
SELECT ALL * FROM tab2 WHERE - 6 BETWEEN NULL AND col2
----

query I rowsort
SELECT - 29 * col2 FROM tab0 WHERE NOT + col2 IS NULL
----
-1363
-2871
-290

query I rowsort
SELECT 23 + - col2 + - ( - 3 ) AS col1 FROM tab0
----
-21
-73
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1927
SELECT DISTINCT - 40 * 93 + col1 col1, + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-3643
NULL
-3653
NULL
-3669
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1927
SELECT DISTINCT - 40 * 93 + col1 col1, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-3643
NULL
-3653
NULL
-3669
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1928
SELECT ALL + col2 * - + CAST( - + col2 AS SIGNED ) + - col0 + + ( ( + - 42 ) ) FROM tab1
----
3354
4491
9123

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL + col2 * - + CAST ( - + col2 AS INTEGER ) + - col0 + + ( ( + - 42 ) ) FROM tab1
----
3354
4491
9123

query I rowsort
SELECT - col1 * - 31 AS col0 FROM tab0 AS cor0
----
2511
31
651

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT ALL SUM( 37 ) FROM tab1
----
111

skipif mysql # not compatible
query I rowsort label-1930
SELECT ALL SUM ( 37 ) FROM tab1
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1931
SELECT ALL CAST( col2 AS SIGNED ) * - col1 FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-1931
SELECT ALL CAST ( col2 AS INTEGER ) * - col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1932
SELECT DISTINCT COUNT( ALL - col1 ) FROM tab1 WHERE NOT ( + CAST( col1 AS SIGNED ) + 10 ) <> ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1932
SELECT DISTINCT COUNT ( ALL - col1 ) FROM tab1 WHERE NOT ( + CAST ( col1 AS INTEGER ) + 10 ) <> ( col0 )
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 ) >= ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - col0 col0 FROM tab0 WHERE NOT NULL = 99 * - 61
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 WHERE NOT ( col0 ) IS NULL
----
1
21
81

query I rowsort
SELECT ALL + 10 + col2 AS col1 FROM tab2
----
33
50
68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1937
SELECT DISTINCT - col2 DIV + col0 - + CAST( col2 + - col2 AS SIGNED ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1937
SELECT DISTINCT - col2 / + col0 - + CAST ( col2 + - col2 AS INTEGER ) FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1938
SELECT + CAST( NULL AS SIGNED ) / col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1938
SELECT + CAST ( NULL AS INTEGER ) / col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * - ( 77 ) AS col1 FROM tab2
----
-1771
-3080
-4466

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 IN ( + col1 )
----

query I rowsort
SELECT ALL 32 * 46 FROM tab1 WHERE 2 * col0 + + col0 NOT IN ( - 14 )
----
1472
1472
1472

query I rowsort
SELECT col0 + 76 AS col2 FROM tab2 WHERE NOT NULL BETWEEN col1 + 51 AND - col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 75 * 72 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT - 64 * - SUM( + ( 97 ) ) FROM tab1
----
18624

skipif mysql # not compatible
query I rowsort label-1944
SELECT - 64 * - SUM ( + ( 97 ) ) FROM tab1
----
18624

query I rowsort
SELECT + 53 + col2 AS col2 FROM tab0
----
100
152
63

query I rowsort
SELECT - 70 * + 69 FROM tab0
----
-4830
-4830
-4830

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT DISTINCT + SUM( - col0 ) + COUNT( * ) FROM tab2 WHERE + 77 >= col1
----
-182

skipif mysql # not compatible
query I rowsort label-1947
SELECT DISTINCT + SUM ( - col0 ) + COUNT ( * ) FROM tab2 WHERE + 77 >= col1
----
-182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1948
SELECT - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1948
SELECT - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - ( col1 ) AS col0 FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT ALL col1 + - 84 * + col0 AS col0 FROM tab1
----
-4270
-7135
-7597

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1951
SELECT * FROM tab2 WHERE NULL IN ( 27 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1951
SELECT * FROM tab2 WHERE NULL IN ( 27 + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT ALL + ( + COUNT( * ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1952
SELECT ALL + ( + COUNT ( * ) ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1953
SELECT DISTINCT col1 * + col0 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-1953
SELECT DISTINCT col1 * + col0 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT SUM( col0 ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-1954
SELECT SUM ( col0 ) AS col2 FROM tab1
----
227

onlyif mysql # DIV for integer division: 
query I rowsort label-1955
SELECT 40 DIV + 14 AS col0 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1955
SELECT 40 / + 14 AS col0 FROM tab1 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT + COUNT( * ) * 96 FROM tab0 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-1956
SELECT + COUNT ( * ) * 96 FROM tab0 AS cor0
----
288

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 3 * 82 col2 FROM tab1 AS cor0
----
-246
-246
-246

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT + col2 * col2 BETWEEN col1 * 17 AND + col2
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT DISTINCT SUM( - col1 ) FROM tab2 AS cor0 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1960
SELECT DISTINCT SUM ( - col1 ) FROM tab2 AS cor0 WHERE NULL <= NULL
----
NULL

query I rowsort
SELECT - 58 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 )
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

query III rowsort
SELECT * FROM tab2 WHERE NOT 56 * - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 78 AS col2 FROM tab2
----
-78

query I rowsort
SELECT - 73 * 76 + col2 FROM tab0 AS cor0
----
-5449
-5501
-5538

onlyif mysql # DIV for integer division: 
query I rowsort label-1965
SELECT - + col0 DIV + col0 + col1 * - ( + ( - 87 ) + + 13 * - col1 ) AS col1 FROM tab2 AS cor0
----
38249
64185
83775

skipif mysql # not compatible
query I rowsort label-1965
SELECT - + col0 / + col0 + col1 * - ( + ( - 87 ) + + 13 * - col1 ) AS col1 FROM tab2 AS cor0
----
38249
64185
83775

onlyif mysql # DIV for integer division: 
query I rowsort label-1966
SELECT + col2 + - col0 DIV col2 FROM tab1 AS cor0
----
58
67
96

skipif mysql # not compatible
query I rowsort label-1966
SELECT + col2 + - col0 / col2 FROM tab1 AS cor0
----
58
67
96

query I rowsort
SELECT + col2 + col0 * + 62 AS col0 FROM tab1 AS cor0
----
3258
5329
5710

onlyif mysql # DIV for integer division: 
query I rowsort label-1968
SELECT 27 DIV + ( col0 + - col2 * ( - col2 ) ) + 17 AS col2 FROM tab2 AS cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-1968
SELECT 27 / + ( col0 + - col2 * ( - col2 ) ) + 17 AS col2 FROM tab2 AS cor0
----
17
17
17

query I rowsort
SELECT + + ( - col1 ) + col0 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT SUM( 29 ) AS col1 FROM tab1 cor0
----
87

skipif mysql # not compatible
query I rowsort label-1970
SELECT SUM ( 29 ) AS col1 FROM tab1 cor0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 col2 FROM tab2 AS cor0 WHERE NOT 45 >= col1 / - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1972
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 44 ) + - CAST( - col2 AS DECIMAL ) >= ( col2 * + 28 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1972
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 44 ) + - CAST ( - col2 AS REAL ) >= ( col2 * + 28 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1973
SELECT CAST( NULL AS DECIMAL ) / - + COUNT( * ) * MAX( DISTINCT + col0 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1973
SELECT CAST ( NULL AS REAL ) / - + COUNT ( * ) * MAX ( DISTINCT + col0 ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col1 * + + 7 AS col2 FROM tab2
----
357
469
539

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT DISTINCT 25 + COUNT( * ) AS col1 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-1975
SELECT DISTINCT 25 + COUNT ( * ) AS col1 FROM tab1
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-1976
SELECT ALL col2 DIV col2 * - 66 FROM tab2
----
-66
-66
-66

skipif mysql # not compatible
query I rowsort label-1976
SELECT ALL col2 / col2 * - 66 FROM tab2
----
-66
-66
-66

query I rowsort
SELECT DISTINCT AVG ( 92 ) AS col2 FROM tab1 WHERE ( + col2 ) NOT BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( col1 ) = NULL OR - col0 * col1 NOT BETWEEN ( NULL ) AND + col0 * col0
----

query I rowsort
SELECT + ( 38 ) - col0 FROM tab0 WHERE ( + ( - col0 ) * 53 ) IS NOT NULL
----
-49
-59
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT - 71 * + COUNT( * ) AS col0 FROM tab2
----
-213

skipif mysql # not compatible
query I rowsort label-1980
SELECT - 71 * + COUNT ( * ) AS col0 FROM tab2
----
-213

query I rowsort
SELECT DISTINCT col1 + - - 41 * ( + col1 ) FROM tab2
----
2142
2814
3234

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT + MIN( - - col1 ) col2 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1982
SELECT + MIN ( - - col1 ) col2 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT ALL 98 + - AVG ( + col1 ) * COUNT( * ) FROM tab2 WHERE - 79 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1983
SELECT ALL 98 + - AVG ( + col1 ) * COUNT ( * ) FROM tab2 WHERE - 79 IS NULL
----
NULL

query I rowsort
SELECT ALL - 17 + col0 AS col0 FROM tab2
----
29
47
58

query I rowsort
SELECT ALL col1 * 52 AS col0 FROM tab1
----
2444
260
728

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT - MAX( + col1 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-1986
SELECT - MAX ( + col1 ) AS col2 FROM tab2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1987
SELECT DISTINCT + 79 * - ( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1987
SELECT DISTINCT + 79 * - ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - 6 FROM tab0 WHERE NOT + col2 BETWEEN + col2 * + col2 AND ( NULL )
----
-6
-6
-6

query I rowsort
SELECT - col1 * + col1 * col2 AS col1 FROM tab2 AS cor0
----
-237160
-260362
-59823

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> ( + ( col1 ) )
----

query I rowsort
SELECT - col2 + + 52 FROM tab2 cor0
----
-6
12
29

query I rowsort
SELECT + ( + 13 ) + 62 AS col1 FROM tab0 AS cor0
----
75
75
75

query I rowsort
SELECT DISTINCT col2 * + - col2 - - col0 * col0 FROM tab1 AS cor0
----
-6615
3657
3744

query I rowsort
SELECT DISTINCT + 1 + + - col1 AS col1 FROM tab2
----
-50
-66
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1995
SELECT ( + 54 ) / + 13 AS col2 FROM tab1 WHERE NULL NOT IN ( + - CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1995
SELECT ( + 54 ) / + 13 AS col2 FROM tab1 WHERE NULL NOT IN ( + - CAST ( col0 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1996
SELECT - col0 DIV - CAST( col0 AS SIGNED ) + col0 FROM tab0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-1996
SELECT - col0 / - CAST ( col0 AS INTEGER ) + col0 FROM tab0
----
16
88
98

query I rowsort
SELECT ALL - col0 + - - 1 FROM tab1
----
-50
-84
-90

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE NULL IN ( - col0 - - 78 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1999
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1999
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT ALL col0 + + - col0 AS col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 58 col0, 26 FROM tab1 AS cor0
----
58
26
58
26
58
26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( - + col0 ) ) > NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL > + 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE + col1 NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2004
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE + col1 NOT IN ( col1 )
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * - col1 + col1 * col2 BETWEEN ( col2 ) AND ( NULL ) OR NOT NULL IS NULL
----

query I rowsort
SELECT + ( ( + col1 ) ) * - 52 FROM tab2 AS cor0
----
-2652
-3484
-4004

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2008
SELECT + MIN( DISTINCT 43 ), + COUNT( * ) DIV + 64 + + MAX( ALL 75 ) AS col1 FROM tab0
----
43
75

skipif mysql # not compatible
query II rowsort label-2008
SELECT + MIN ( DISTINCT 43 ), + COUNT ( * ) / + 64 + + MAX ( ALL 75 ) AS col1 FROM tab0
----
43
75

query I rowsort
SELECT col1 * 38 * - col1 FROM tab2
----
-170582
-225302
-98838

query I rowsort
SELECT col2 * + col2 * - + 85 AS col0 FROM tab0
----
-187765
-833085
-8500

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( ( NULL ) < + col2 * 56 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT - SUM( DISTINCT - col1 ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2012
SELECT - SUM ( DISTINCT - col1 ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2013
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( col1 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 55 col2 FROM tab2 cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT - MAX( DISTINCT - 23 ) AS col0 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-2015
SELECT - MAX ( DISTINCT - 23 ) AS col0 FROM tab0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT ALL MIN( + col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2016
SELECT ALL MIN ( + col2 ) AS col2 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT ALL - COUNT( * ) AS col1 FROM tab2 WHERE NOT ( col0 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2017
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( col0 ) IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2018
SELECT + col0 * + + 27 * - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2018
SELECT + col0 * + + 27 * - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2019
SELECT DISTINCT ( + + CAST( NULL AS SIGNED ) ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2019
SELECT DISTINCT ( + + CAST ( NULL AS INTEGER ) ) col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2020
SELECT + COUNT( * ) AS col1, 28 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
28

skipif mysql # not compatible
query II rowsort label-2020
SELECT + COUNT ( * ) AS col1, 28 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
28

query I rowsort
SELECT ALL + 53 * 47 FROM tab1 AS cor0 WHERE ( col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2022
SELECT DISTINCT - - col1 * - - col2 + - col1 * - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2022
SELECT DISTINCT - - col1 * - - col2 + - col1 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2023
SELECT - col1 FROM tab2 AS cor0 WHERE ( + col2 * + col2 ) BETWEEN - 24 AND - + CAST( + 44 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2023
SELECT - col1 FROM tab2 AS cor0 WHERE ( + col2 * + col2 ) BETWEEN - 24 AND - + CAST ( + 44 AS INTEGER )
----

query I rowsort
SELECT ALL - col1 * - + 13 FROM tab2 AS cor0
----
1001
663
871

query I rowsort
SELECT + + 65 * - ( col0 ) FROM tab0 AS cor0
----
-5655
-6305
-975

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 68 + + - 66 * + - col2 - - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT DISTINCT COUNT( ALL col1 ) * + 27 AS col2 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2027
SELECT DISTINCT COUNT ( ALL col1 ) * + 27 AS col2 FROM tab2 AS cor0
----
81

query I rowsort
SELECT ALL + col1 * - + col1 * - col1 * + + ( - col1 ) FROM tab2 AS cor0
----
-20151121
-35153041
-6765201

onlyif mysql # aggregate syntax: 
query II rowsort label-2029
SELECT ALL + COUNT( * ), - COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
-9

skipif mysql # not compatible
query II rowsort label-2029
SELECT ALL + COUNT ( * ), - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
-9

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT + ( + + col2 ) IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2031
SELECT - - col2 + + CAST( + 64 AS SIGNED ) + col0 * - - 56 + - 15 AS col2 FROM tab1 AS cor0
----
3001
4868
5213

skipif mysql # not compatible
query I rowsort label-2031
SELECT - - col2 + + CAST ( + 64 AS INTEGER ) + col0 * - - 56 + - 15 AS col2 FROM tab1 AS cor0
----
3001
4868
5213

onlyif mysql # DIV for integer division: 
query I rowsort label-2032
SELECT + col0 + col0 DIV col0 + 31 FROM tab0 AS cor0
----
119
129
47

skipif mysql # not compatible
query I rowsort label-2032
SELECT + col0 + col0 / col0 + 31 FROM tab0 AS cor0
----
119
129
47

query I rowsort
SELECT ALL ( + 34 ) FROM tab0 AS cor0
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT + COUNT( * ) + + - 72 AS col0 FROM tab1 WHERE - ( - 27 ) IS NULL
----
-72

skipif mysql # not compatible
query I rowsort label-2034
SELECT + COUNT ( * ) + + - 72 AS col0 FROM tab1 WHERE - ( - 27 ) IS NULL
----
-72

query I rowsort
SELECT DISTINCT col2 + col2 + col2 * - - 40 * - ( - col2 ) AS col1 FROM tab0
----
392238
4020
88454

query I rowsort
SELECT DISTINCT col1 + - ( - col2 ) * + col0 * 98 FROM tab1
----
479822
491475
606471

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT - 29 * + MAX( - 39 * - 96 ) AS col2 FROM tab0 WHERE ( - - col0 * - col2 * - col1 * col0 + 11 ) > ( - col2 )
----
-108576

skipif mysql # not compatible
query I rowsort label-2037
SELECT - 29 * + MAX ( - 39 * - 96 ) AS col2 FROM tab0 WHERE ( - - col0 * - col2 * - col1 * col0 + 11 ) > ( - col2 )
----
-108576

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 71 * + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + + col0 * - + ( + col0 ) FROM tab0 cor0
----
-225
-7569
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col0 col0 FROM tab0
----
-196
-62
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2042
SELECT ALL - ( col2 ) DIV col2 + + col2 AS col0 FROM tab2 AS cor0
----
22
39
57

skipif mysql # not compatible
query I rowsort label-2042
SELECT ALL - ( col2 ) / col2 + + col2 AS col0 FROM tab2 AS cor0
----
22
39
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2043
SELECT 31 * - COUNT( * ) DIV COUNT( DISTINCT - 80 ) AS col1 FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-2043
SELECT 31 * - COUNT ( * ) / COUNT ( DISTINCT - 80 ) AS col1 FROM tab0 AS cor0
----
-93

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) > - + col2 * + - col1 + - - col2
----

query I rowsort
SELECT ( ( + - col1 ) ) FROM tab1 cor0
----
-14
-47
-5

query I rowsort
SELECT + 98 FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 + + 45 )
----

query I rowsort
SELECT DISTINCT + col0 FROM tab0 cor0 WHERE col0 + 98 = - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 81 + - col1 * - 44 + - 21 ) > col1 * ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col0, + col1 + + col0 FROM tab0
----
15
96
87
108
97
98

query I rowsort
SELECT ALL 60 * ( - col1 ) FROM tab1
----
-2820
-300
-840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 2 col0 FROM tab2 WHERE + - col2 = NULL
----

query I rowsort
SELECT DISTINCT 87 * + - 73 AS col1 FROM tab0
----
-6351

query II rowsort
SELECT DISTINCT + 40, col1 - ( + - col1 ) AS col1 FROM tab1
----
40
10
40
28
40
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2054
SELECT col2 DIV + - col1 FROM tab0 WHERE NOT + col2 + + - col2 <= - + col2
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-2054
SELECT col2 / + - col1 FROM tab0 WHERE NOT + col2 + + - col2 <= - + col2
----
-99
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col1 * + - 7 * - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( 92 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 10 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-10

query I rowsort
SELECT + col2 + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( col2 - + + ( - - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT - + COUNT( * ) * + 48 AS col2 FROM tab0 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-2059
SELECT - + COUNT ( * ) * + 48 AS col2 FROM tab0 AS cor0
----
-144

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 75 BETWEEN NULL AND + 66 + 95
----

query I rowsort
SELECT ALL 16 * 71 + + col1 FROM tab1
----
1141
1150
1183

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 15 <= NULL
----

query I rowsort
SELECT ( + + 58 ) + - + col0 AS col0 FROM tab0
----
-29
-39
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2064
SELECT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE + 26 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2064
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE + 26 IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col1 <> + - col1 + 54
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT ALL 75 + - + COUNT( 34 ) AS col0 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-2066
SELECT ALL 75 + - + COUNT ( 34 ) AS col0 FROM tab2 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT - ( + 75 ) + COUNT( - + 29 ) FROM tab0 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2067
SELECT - ( + 75 ) + COUNT ( - + 29 ) FROM tab0 cor0
----
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 81 ) * 89 col2 FROM tab1 cor0
----
7209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2069
SELECT ALL - - CAST( + + MIN( ( - 41 ) ) AS SIGNED ) * CAST( - - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-2069
SELECT ALL - - CAST ( + + MIN ( ( - 41 ) ) AS INTEGER ) * CAST ( - - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-123

query II rowsort
SELECT - + ( col1 ), col0 AS col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

query III rowsort
SELECT * FROM tab1 WHERE + - col0 + + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col2 NOT BETWEEN 7 AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 66 AS col2, ( - col1 ) FROM tab0
----
66
-1
66
-21
66
-81

query II rowsort
SELECT ALL 80, col2 * ( + 16 ) AS col0 FROM tab0
----
80
1584
80
160
80
752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 col2 FROM tab0 WHERE NOT + 25 * + 95 + + - col1 + - + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 8 + 38 * ( col1 ) * col0 col2 FROM tab1
----
16142
162518
27124

query I rowsort
SELECT + 99 - + col1 FROM tab2
----
22
32
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT ALL MAX( ALL col0 ) * - COUNT( * ) * + COUNT( * ) * + 88 + + 82 AS col2 FROM tab1
----
-71990

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL MAX ( ALL col0 ) * - COUNT ( * ) * + COUNT ( * ) * + 88 + + 82 AS col2 FROM tab1
----
-71990

onlyif mysql # DIV for integer division: 
query I rowsort label-2079
SELECT col2 - + 42 + + + col0 DIV col1 * col1 AS col2 FROM tab2
----
-19
-2
83

skipif mysql # not compatible
query I rowsort label-2079
SELECT col2 - + 42 + + + col0 / col1 * col1 AS col2 FROM tab2
----
-19
-2
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT ALL + + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL <> - 65
----
0

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL + + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL <> - 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE col1 IN ( - col2 * + - 41 - 67 * + col1 - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2081
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE col1 IN ( - col2 * + - 41 - 67 * + col1 - col2 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab1 AS cor0 WHERE + 92 IS NOT NULL
----
59
68
96

query II rowsort
SELECT + + col1 + + 20 - - col0, col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
81

skipif mysql # not compatible
query I rowsort label-2085
SELECT COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2086
SELECT 58 DIV - ( - col1 ) FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2086
SELECT 58 / - ( - col1 ) FROM tab2
----
0
0
1

query I rowsort
SELECT + 59 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT ALL + ( + 31 ) FROM tab0 AS cor0
----
31
31
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - AVG ( ALL - - 61 ) col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND NULL
----
NULL

query I rowsort
SELECT - 42 * - - col0 AS col2 FROM tab1 AS cor0
----
-2142
-3570
-3822

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( - col2 + + - col1, 31, - - 33, - ( + 91 ) + + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 * - 41 - col0 + - col1 BETWEEN NULL AND col0
----

query I rowsort
SELECT DISTINCT - ( - col1 ) AS col2 FROM tab0 cor0
----
1
21
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2095
SELECT ALL + CAST( ( - col2 ) AS DECIMAL ) - + + col0 col1 FROM tab1 cor0 WHERE + col2 / - + ( col0 ) + + + 27 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2095
SELECT ALL + CAST ( ( - col2 ) AS REAL ) - + + col0 col1 FROM tab1 cor0 WHERE + col2 / - + ( col0 ) + + + 27 IS NULL
----

query II rowsort
SELECT DISTINCT + + col1 AS col0, col2 * col2 FROM tab1 WHERE NULL IS NULL
----
14
9216
47
4624
5
3481

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 WHERE 40 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2098
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 + 34 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2098
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 + 34 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - 84 * - col0 * + col1 / col1 + col0 + col2 / col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IN ( - col1, - 81 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT 63 * + MAX( - col2 ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-1452

skipif mysql # not compatible
query I rowsort label-2101
SELECT 63 * + MAX ( - col2 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-1452

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT DISTINCT + + COUNT( * ) + + ( 89 ) FROM tab0 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT + + COUNT ( * ) + + ( 89 ) FROM tab0 AS cor0
----
92

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND 31
----

query II rowsort
SELECT ALL - - col1, 15 AS col0 FROM tab1 AS cor0
----
14
15
47
15
5
15

query I rowsort
SELECT 50 + - + 95 AS col0 FROM tab2 AS cor0
----
-45
-45
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 92 + + - 97 col2 FROM tab1 AS cor0
----
-5
-5
-5

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - col2, col0 * - 78 * - 97, + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2108
SELECT + 40 + + 3 AS col0, COUNT( * ) * COUNT( * ) AS col1 FROM tab1
----
43
9

skipif mysql # not compatible
query II rowsort label-2108
SELECT + 40 + + 3 AS col0, COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1
----
43
9

query I rowsort
SELECT ALL - col1 + - - 67 AS col1 FROM tab0
----
-14
46
66

query I rowsort
SELECT ALL - 38 FROM tab2 WHERE + 82 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) <= - - col2
----

query I rowsort
SELECT DISTINCT - 16 - + + col0 * - - col2 AS col1 FROM tab0 AS cor0
----
-721
-886
-9619

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT ALL - COUNT( * ) - SUM( col2 ) FROM tab2 AS cor0
----
-124

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL - COUNT ( * ) - SUM ( col2 ) FROM tab2 AS cor0
----
-124

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) <> col0 + + col2
----

query I rowsort
SELECT DISTINCT col0 * - ( + + col1 ) FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2116
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT - col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT ALL COUNT( * ) col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2117
SELECT ALL COUNT ( * ) col1 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT - - 42 * COUNT( * ) FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-2118
SELECT - - 42 * COUNT ( * ) FROM tab0 AS cor0
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-2119
SELECT + col2 DIV col1 * ( + + 48 ) AS col0 FROM tab1 AS cor0
----
288
48
528

skipif mysql # not compatible
query I rowsort label-2119
SELECT + col2 / col1 * ( + + 48 ) AS col0 FROM tab1 AS cor0
----
288
48
528

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT MAX( - col1 ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2120
SELECT MAX ( - col1 ) AS col2 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT ALL COUNT( * ) col1 FROM tab0 cor0 WHERE 82 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2121
SELECT ALL COUNT ( * ) col1 FROM tab0 cor0 WHERE 82 IS NULL
----
0

query I rowsort
SELECT DISTINCT 28 * - - col2 * - - col2 AS col0 FROM tab2 AS cor0
----
14812
44800
94192

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT ALL - SUM( 17 ) FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL - SUM ( 17 ) FROM tab0 AS cor0
----
-51

query I rowsort
SELECT ALL - 33 * col0 * - + col0 FROM tab2 AS cor0
----
135168
185625
69828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 83 * ( - 13 ) col0 FROM tab2 AS cor0
----
-1079

query I rowsort
SELECT ALL + ( - - 82 ) * + + col0 AS col0 FROM tab1
----
4182
6970
7462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 63 col2 FROM tab1
----
2961
315
882

query I rowsort
SELECT DISTINCT + ( + - 82 ) FROM tab2
----
-82

query I rowsort
SELECT ( 82 ) FROM tab1
----
82
82
82

query I rowsort
SELECT ALL + 39 * + - 72 FROM tab2
----
-2808
-2808
-2808

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, 37 * - + col2 AS col1 FROM tab1
----
-14
-3552
-47
-2516
-5
-2183

query I rowsort
SELECT ALL + col1 + + 91 * - + col0 AS col0 FROM tab2
----
-4135
-5747
-6758

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2133
SELECT ALL COUNT( * ) + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2133
SELECT ALL COUNT ( * ) + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 45 AS col2 FROM tab2 AS cor0 WHERE 40 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 57 + + 97 * + - 11 + + - col1 AS col2 FROM tab2
----
-1061
-1077
-1087

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2137
SELECT col1 - - col1 DIV 63 * - col0 DIV - col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2137
SELECT col1 - - col1 / 63 * - col0 / - col2 FROM tab1
----
14
47
5

query II rowsort
SELECT ALL - col1, col2 AS col2 FROM tab1 cor0
----
-14
96
-47
68
-5
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2139
SELECT + 43, CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
43
-51
43
-85
43
-91

skipif mysql # not compatible
query II rowsort label-2139
SELECT + 43, CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
43
-51
43
-85
43
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2140
SELECT + CAST( + 94 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
94
94
94

skipif mysql # not compatible
query I rowsort label-2140
SELECT + CAST ( + 94 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
94
94
94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 64 < 59
----

query I rowsort
SELECT + ( + ( col0 ) ) FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 94
----

query I rowsort
SELECT - - col1 * - + 37 FROM tab0 AS cor0
----
-2997
-37
-777

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 * col2 col0 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2146
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / - - COUNT( * ) * + ( + - 15 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2146
SELECT DISTINCT + CAST ( NULL AS REAL ) / - - COUNT ( * ) * + ( + - 15 ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( 11 )
----

query I rowsort
SELECT DISTINCT col1 * - 36 FROM tab2
----
-1836
-2412
-2772

query I rowsort
SELECT + col0 * - + 48 AS col0 FROM tab2
----
-2208
-3072
-3600

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 96 - + 30 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT 85 * + 2 + - MAX( col2 ) AS col1 FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-2151
SELECT 85 * + 2 + - MAX ( col2 ) AS col1 FROM tab0
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-2152
SELECT ALL col1 * + 34 + + - col0 DIV 15 FROM tab0
----
2753
28
709

skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL col1 * + 34 + + - col0 / 15 FROM tab0
----
2753
28
709

query II rowsort
SELECT DISTINCT 22 AS col0, 28 AS col1 FROM tab2
----
22
28

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL - ( + - 52 ) * col0 AS col0 FROM tab1 AS cor0
----
2652
4420
4732

query I rowsort
SELECT - 47 * 35 FROM tab1 AS cor0
----
-1645
-1645
-1645

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT ALL + 69 + - - COUNT( * ) AS col0 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL + 69 + - - COUNT ( * ) AS col0 FROM tab1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2158
SELECT DISTINCT + col2 + - CAST( - 91 AS SIGNED ) AS col2 FROM tab1
----
150
159
187

skipif mysql # not compatible
query I rowsort label-2158
SELECT DISTINCT + col2 + - CAST ( - 91 AS INTEGER ) AS col2 FROM tab1
----
150
159
187

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) = + + col2
----

query I rowsort
SELECT DISTINCT - col2 * - - col1 AS col2 FROM tab2 cor0
----
-1173
-3080
-3886

query I rowsort
SELECT - col2 + + 26 AS col2 FROM tab2 AS cor0
----
-14
-32
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2162
SELECT ALL COUNT( col0 ) DIV - MAX( DISTINCT col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL COUNT ( col0 ) / - MAX ( DISTINCT col0 ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2163
SELECT DISTINCT - 72 DIV 94 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2163
SELECT DISTINCT - 72 / 94 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + ( + col0 ) - - + ( 78 ) FROM tab1 AS cor0
----
129
163
169

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT ALL + SUM( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2165
SELECT ALL + SUM ( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2166
SELECT DISTINCT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 NOT IN ( CAST( NULL AS SIGNED ), 16, - col1 )
----

skipif mysql # not compatible
query I rowsort label-2166
SELECT DISTINCT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 NOT IN ( CAST ( NULL AS INTEGER ), 16, - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 46 * 13 - - col1 * - col1 + col1 col0 FROM tab0 AS cor0
----
-5882
178
598

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT DISTINCT - SUM( + col2 ) AS col1 FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2168
SELECT DISTINCT - SUM ( + col2 ) AS col1 FROM tab2 cor0
----
-121

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 77 ) + 29 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE + + col0 + 82 IS NULL
----

query II rowsort
SELECT col0 * + col2 AS col0, 80 FROM tab0
----
705
80
870
80
9603
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT ALL - COUNT( ALL col0 ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2172
SELECT ALL - COUNT ( ALL col0 ) col1 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < col2 + - 86
----

query II rowsort
SELECT - ( - col1 ), 99 AS col1 FROM tab2 AS cor0
----
51
99
67
99
77
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2175
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 24 BETWEEN ( + + ( - CAST( - 82 AS SIGNED ) ) ) AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2175
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 24 BETWEEN ( + + ( - CAST ( - 82 AS INTEGER ) ) ) AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 = - ( 53 )
----

query I rowsort
SELECT ALL 25 AS col2 FROM tab0 cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT ALL MIN( + + 92 ) FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL MIN ( + + 92 ) FROM tab1
----
92

query I rowsort
SELECT col2 * - + col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT ALL - col1 FROM tab1 cor0 WHERE NOT 99 NOT BETWEEN NULL AND + - 87
----

query I rowsort
SELECT - 84 * + - col1 - col2 AS col0 FROM tab2 AS cor0
----
4261
5570
6428

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT ALL + - COUNT( ALL - 60 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL + - COUNT ( ALL - 60 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2183
SELECT DISTINCT + SUM( col1 ) * 62, 7 AS col0 FROM tab0 AS cor0
----
6386
7

skipif mysql # not compatible
query II rowsort label-2183
SELECT DISTINCT + SUM ( col1 ) * 62, 7 AS col0 FROM tab0 AS cor0
----
6386
7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 75 * col2 NOT BETWEEN + col1 * - 4 * col2 AND NULL
----

query I rowsort
SELECT col1 * 33 - col0 + col2 AS col0 FROM tab0 AS cor0
----
2705
35
616

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( - col1 ) - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT + + 79 * - - COUNT( * ) FROM tab2 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-2187
SELECT + + 79 * - - COUNT ( * ) FROM tab2 AS cor0
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT DISTINCT - + MAX( ALL col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2188
SELECT DISTINCT - + MAX ( ALL col2 ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT + col2 * + col1 * - col1 AS col1 FROM tab1
----
-1475
-150212
-18816

query II rowsort
SELECT DISTINCT - col1 * - 93, col2 FROM tab0
----
1953
10
7533
47
93
99

query I rowsort
SELECT + ( + ( + 70 ) ) AS col2 FROM tab0 AS cor0
----
70
70
70

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 + + col0 BETWEEN ( + - col2 ) AND ( NULL )
----

query II rowsort
SELECT ALL ( + col1 ) AS col0, col2 AS col0 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT DISTINCT SUM( ALL - ( - 63 ) ) FROM tab2 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-2194
SELECT DISTINCT SUM ( ALL - ( - 63 ) ) FROM tab2 AS cor0
----
189

query I rowsort
SELECT 72 + 25 + - + col1 FROM tab1
----
50
83
92

query II rowsort
SELECT DISTINCT - - 91 AS col1, 54 AS col1 FROM tab0 WHERE NOT 33 * col1 IS NULL
----
91
54

query I rowsort
SELECT col1 * col2 + col0 + - - ( - ( - col1 ) ) + 27 * - - col0 AS col0 FROM tab0
----
2667
2816
4308

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT MAX( + 78 ) AS col1 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-2198
SELECT MAX ( + 78 ) AS col1 FROM tab1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2199
SELECT ALL CAST( NULL AS SIGNED ) + - + 10 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL CAST ( NULL AS INTEGER ) + - + 10 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2200
SELECT + ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2200
SELECT + ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + 94 AS col1 FROM tab0 AS cor0
----
-5
47
84

query II rowsort
SELECT 36, + col2 FROM tab0 AS cor0
----
36
10
36
47
36
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 70, + 63 + 35 - - ( + 72 ) col2 FROM tab2 cor0
----
70
170
70
170
70
170

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT + COUNT( * ) * + - COUNT( * ) - - COUNT( * ) AS col2 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-2204
SELECT + COUNT ( * ) * + - COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab2
----
-6

query II rowsort
SELECT DISTINCT col2 * - col0 * - + col0 * col1 AS col0, + 87 + - + col0 * + col0 - + - 47 FROM tab0
----
1589490
-7435
856575
-91
931491
-9275

query I rowsort
SELECT DISTINCT col0 * + ( - - 24 ) AS col2 FROM tab1
----
1224
2040
2184

query I rowsort
SELECT - col1 * + 8 FROM tab0
----
-168
-648
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-2208
SELECT col0 DIV + - col1 col0 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2208
SELECT col0 / + - col1 col0 FROM tab0
----
-4
-97
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 11, + col2 col2 FROM tab2
----
11
23
11
40
11
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2210
SELECT + CAST( NULL AS SIGNED ) * col1 * + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2210
SELECT + CAST ( NULL AS INTEGER ) * col1 * + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2211
SELECT + + CAST( NULL AS SIGNED ) / + col2 + col1 + 5 FROM tab1 WHERE NOT - col2 >= NULL
----

skipif mysql # not compatible
query I rowsort label-2211
SELECT + + CAST ( NULL AS INTEGER ) / + col2 + col1 + 5 FROM tab1 WHERE NOT - col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2212
SELECT ALL + CAST( col2 AS SIGNED ) * col1 DIV col0 + - 98 AS col1 FROM tab1 AS cor0
----
-63
-72
-95

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL + CAST ( col2 AS INTEGER ) * col1 / col0 + - 98 AS col1 FROM tab1 AS cor0
----
-63
-72
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT SUM( - + 26 ) AS col2 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-2213
SELECT SUM ( - + 26 ) AS col2 FROM tab1 AS cor0
----
-78

query I rowsort
SELECT + - 15 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 col2 FROM tab1
----
37

query I rowsort
SELECT + - 2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * + col2 BETWEEN - - 99 * + col0 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * - col0 * col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-158949
-18225
-9409

query I rowsort
SELECT + + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2220
SELECT DISTINCT col2 * - - col2 AS col2, 37 AS col0, - CAST( NULL AS DECIMAL ) + - + 77 FROM tab0 AS cor0
----
9 values hashing to cd06db9355e382efa03741e587ff9712

skipif mysql # not compatible
query III rowsort label-2220
SELECT DISTINCT col2 * - - col2 AS col2, 37 AS col0, - CAST ( NULL AS REAL ) + - + 77 FROM tab0 AS cor0
----
9 values hashing to cd06db9355e382efa03741e587ff9712

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2221
SELECT - col0, CAST( - 58 AS SIGNED ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-2221
SELECT - col0, CAST ( - 58 AS INTEGER ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 / + - col1 * + + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - - 60 + - + 71 + - col0 AS col1 FROM tab2 cor0
----
-57
-75
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2224
SELECT ALL + CAST( + + col2 AS SIGNED ) AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2224
SELECT ALL + CAST ( + + col2 AS INTEGER ) AS col1 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2225
SELECT 34 + + + col1 + col2 + - 80 + + - CAST( col0 AS SIGNED ) FROM tab0
----
-102
-43
67

skipif mysql # not compatible
query I rowsort label-2225
SELECT 34 + + + col1 + col2 + - 80 + + - CAST ( col0 AS INTEGER ) FROM tab0
----
-102
-43
67

query III rowsort
SELECT ALL * FROM tab2 WHERE + 34 * - col2 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2227
SELECT DISTINCT COUNT( ALL col0 ) DIV - 65 + + 51 AS col1 FROM tab1 WHERE NOT - col2 IS NULL
----
51

skipif mysql # not compatible
query I rowsort label-2227
SELECT DISTINCT COUNT ( ALL col0 ) / - 65 + + 51 AS col1 FROM tab1 WHERE NOT - col2 IS NULL
----
51

query I rowsort
SELECT ALL 71 * + 28 FROM tab1
----
1988
1988
1988

query I rowsort
SELECT ALL 23 + 51 FROM tab1
----
74
74
74

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> ( - 80 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT DISTINCT - MIN( - + ( + - col2 ) ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2231
SELECT DISTINCT - MIN ( - + ( + - col2 ) ) FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT DISTINCT + + COUNT( * ) + + MAX( col2 ) AS col0 FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-2232
SELECT DISTINCT + + COUNT ( * ) + + MAX ( col2 ) AS col0 FROM tab0 AS cor0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT - ( MIN( ( col1 ) ) ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2233
SELECT - ( MIN ( ( col1 ) ) ) AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT - COUNT( 19 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2234
SELECT - COUNT ( 19 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT - + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - col2 = 53 * + col2 - + col0 + - col0 * + 90
----
0

skipif mysql # not compatible
query I rowsort label-2235
SELECT - + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - col2 = 53 * + col2 - + col0 + - col0 * + 90
----
0

query I rowsort
SELECT + 87 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT + col0 + + + col2 AS col1 FROM tab0 AS cor0
----
196
62
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 49 + - col1 col2 FROM tab2 AS cor0
----
-100
-116
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT DISTINCT + ( - SUM( ALL + - 45 ) ) - + 32 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2239
SELECT DISTINCT + ( - SUM ( ALL + - 45 ) ) - + 32 FROM tab0 AS cor0
----
103

query I rowsort
SELECT col0 + + 17 + + - col2 AS col0 FROM tab0 AS cor0
----
-15
15
94

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 41 * col1 - 91 IS NULL
----

query II rowsort
SELECT + ( - 41 ) AS col0, - col2 AS col2 FROM tab1 AS cor0
----
-41
-59
-41
-68
-41
-96

query I rowsort
SELECT ALL - 41 * - 1 + col2 + 75 AS col1 FROM tab0 cor0 WHERE col0 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, - ( 94 ) AS col0 FROM tab2 AS cor0 WHERE NOT + 5 * - + col1 BETWEEN NULL AND - - col0
----

query I rowsort
SELECT ALL + - 35 AS col2 FROM tab2 AS cor0
----
-35
-35
-35

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + 49 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 * - - col1 AS col2 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2249
SELECT + 95 DIV - col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-2249
SELECT + 95 / - col0 FROM tab2
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT DISTINCT MIN( ALL 99 ) * COUNT( * ) FROM tab2
----
297

skipif mysql # not compatible
query I rowsort label-2250
SELECT DISTINCT MIN ( ALL 99 ) * COUNT ( * ) FROM tab2
----
297

query II rowsort
SELECT - 68 AS col1, - 42 FROM tab2
----
-68
-42
-68
-42
-68
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT + COUNT( DISTINCT - - 44 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2252
SELECT + COUNT ( DISTINCT - - 44 ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT + - 22 * COUNT( * ) col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2253
SELECT + - 22 * COUNT ( * ) col2 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT ALL - MAX( 56 ) FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL - MAX ( 56 ) FROM tab2 AS cor0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2255
SELECT + COUNT( * ) FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) + - col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2255
SELECT + COUNT ( * ) FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) + - col2 < NULL
----
0

query I rowsort
SELECT ALL - 80 * - 48 * - - 5 FROM tab2
----
19200
19200
19200

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT COUNT( * ) + - 63 col0 FROM tab2
----
-60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2257
SELECT COUNT ( * ) + - 63 col0 FROM tab2
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2258
SELECT CAST( + - ( COUNT( * ) ) AS SIGNED ) + - + MIN( ALL + 4 ) * + - 46 AS col2 FROM tab0
----
181

skipif mysql # not compatible
query I rowsort label-2258
SELECT CAST ( + - ( COUNT ( * ) ) AS INTEGER ) + - + MIN ( ALL + 4 ) * + - 46 AS col2 FROM tab0
----
181

query I rowsort
SELECT + 69 + - + col2 + col1 * - col1 * - - col0 FROM tab2 cor0
----
-119600
-336664
-379427

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT COUNT( * ) * COUNT( * ) + + 58 FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-2260
SELECT COUNT ( * ) * COUNT ( * ) + + 58 FROM tab2 AS cor0
----
67

query I rowsort
SELECT col1 + + + col1 * 37 FROM tab1 AS cor0 WHERE - 27 - + col1 IS NOT NULL
----
1786
190
532

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + col1 col1, + col0 + col2 * - col2, + col0 * + col2 AS col1 FROM tab0 AS cor0
----
9 values hashing to 3018d3156e1b1e7e1dfae56f5e57347a

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 * - col2 + + 87 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT DISTINCT + + SUM( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2264
SELECT DISTINCT + + SUM ( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab1 cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT + 29 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-2266
SELECT + 29 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT + COUNT( * ) + COUNT( * ) FROM tab2 cor0 WHERE 75 * + - col2 = - 4 * - + col0 + col1 * - 26 - + col1
----
0

skipif mysql # not compatible
query I rowsort label-2267
SELECT + COUNT ( * ) + COUNT ( * ) FROM tab2 cor0 WHERE 75 * + - col2 = - 4 * - + col0 + col1 * - 26 - + col1
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 + - ( + + col1 ) * - col1 + col1 * - 25 BETWEEN + 34 AND NULL
----
51
14
96
85
5
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * col1 NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT ALL col2 + + 42 FROM tab2
----
100
65
82

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2272
SELECT ALL - 99 DIV + - COUNT( * ) + MAX( - col0 ) FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL - 99 / + - COUNT ( * ) + MAX ( - col0 ) FROM tab2
----
-13

query I rowsort
SELECT 85 * 85 AS col1 FROM tab2
----
7225
7225
7225

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2274
SELECT ALL 74 / - CAST( NULL AS DECIMAL ) + + 30 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL 74 / - CAST ( NULL AS REAL ) + + 30 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - - ( col0 ) + col1 * - - 24 FROM tab0 cor0
----
121
1959
591

query I rowsort
SELECT 64 * col0 AS col0 FROM tab1
----
3264
5440
5824

query I rowsort
SELECT col1 * + + col1 AS col2 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT - COUNT( * ) FROM tab2, tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2278
SELECT - COUNT ( * ) FROM tab2, tab2 cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 91 AS col0, - 64 col0 FROM tab1 AS cor0
----
91
-64
91
-64
91
-64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 92 ) > + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 = - + col2
----

query II rowsort
SELECT DISTINCT + col1 AS col0, col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( + 1 ) <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT - MAX( DISTINCT - col1 ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-2284
SELECT - MAX ( DISTINCT - col1 ) FROM tab1 cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 * col1 col1 FROM tab2 AS cor0
----
-3876
-5092
-5852

query II rowsort
SELECT DISTINCT + col2 * + + 65, - 47 + + 72 AS col0 FROM tab2
----
1495
25
2600
25
3770
25

onlyif mysql # DIV for integer division: 
query II rowsort label-2287
SELECT DISTINCT + 70 DIV - col2 col1, - col2 FROM tab1
----
-1
-59
-1
-68
0
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2287
SELECT DISTINCT + 70 / - col2 col1, - col2 FROM tab1
----
-1
-59
-1
-68
0
-96

query I rowsort
SELECT ALL - col1 * - 11 AS col2 FROM tab1
----
154
517
55

query I rowsort
SELECT DISTINCT 52 * - 70 AS col2 FROM tab0
----
-3640

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT SUM( ALL - + col1 ) AS col0 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2290
SELECT SUM ( ALL - + col1 ) AS col0 FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT ALL - COUNT( * ) * COUNT( * ) * - - COUNT( * ) FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL - COUNT ( * ) * COUNT ( * ) * - - COUNT ( * ) FROM tab2
----
-27

query I rowsort
SELECT ALL - col2 * + 2 AS col0 FROM tab2 AS cor0
----
-116
-46
-80

query I rowsort
SELECT DISTINCT col1 * col2 * col2 AS col1 FROM tab0 AS cor0
----
178929
2100
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2294
SELECT ALL + ( - - ( + ( - 13 ) ) ) / + col0 - - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL + ( - - ( + ( - 13 ) ) ) / + col0 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2295
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

query II rowsort
SELECT ALL col1 AS col2, + col0 AS col1 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2297
SELECT + CAST( NULL AS DECIMAL ) * + 66 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2297
SELECT + CAST ( NULL AS REAL ) * + 66 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 17 * + col2 FROM tab0 AS cor0
----
1683
170
799

onlyif mysql # DIV for integer division: 
query I rowsort label-2299
SELECT + col1 DIV + - 56 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2299
SELECT + col1 / + - 56 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 72 * + + col0 FROM tab0 cor0
----
-1080
-6264
-6984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2301
SELECT - + MIN( ALL - col1 ) + CAST( + + COUNT( * ) AS SIGNED ) FROM tab1 cor0
----
50

skipif mysql # not compatible
query I rowsort label-2301
SELECT - + MIN ( ALL - col1 ) + CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab1 cor0
----
50

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2302
SELECT col2 + CAST( 70 AS SIGNED ) DIV + + 94 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2302
SELECT col2 + CAST ( 70 AS INTEGER ) / + + 94 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT + 98 + - - 27 + - - 78 + + ( 16 ) * col0 AS col0 FROM tab0 AS cor0
----
1595
1755
443

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT ALL + - COUNT( 2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL + - COUNT ( 2 ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL ( - col2 ) + - 51 AS col2, + 27 FROM tab1 AS cor0
----
-110
27
-119
27
-147
27

query I rowsort
SELECT - 8 + + col2 + + col2 AS col0 FROM tab2 AS cor0
----
108
38
72

query I rowsort
SELECT col2 + col0 + - col1 AS col1 FROM tab2
----
18
27
66

query I rowsort
SELECT - col1 + - 98 AS col1 FROM tab1
----
-103
-112
-145

query II rowsort
SELECT ALL 31 AS col0, col2 * + 0 * + col0 AS col0 FROM tab1
----
31
0
31
0
31
0

query I rowsort
SELECT DISTINCT + 84 FROM tab0, tab1 AS cor0
----
84

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-2311
SELECT * FROM tab1, tab1 AS cor0 WHERE NULL > - 37 / 9 + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query IIIIII rowsort label-2311
SELECT * FROM tab1, tab1 AS cor0 WHERE NULL > - 37 / 9 + + CAST ( NULL AS REAL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2312
SELECT ALL col2 DIV - + col1 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-2312
SELECT ALL col2 / - + col1 FROM tab0
----
-99
0
0

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col1
----

query I rowsort
SELECT DISTINCT 49 - col0 * ( - col2 ) AS col1 FROM tab0 AS cor0
----
754
919
9652

query II rowsort
SELECT 41 AS col1, col1 FROM tab2 cor0 WHERE 59 = col2
----

query I rowsort
SELECT + ( - 91 ) FROM tab2 AS cor0
----
-91
-91
-91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * col2 <= ( - + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col2 + + - col0 + - - col2 + + + col2 AS col1 FROM tab1 AS cor0 WHERE NOT + 76 IS NULL
----
-23
-26
45

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 94 * col2 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT + COUNT( - + 44 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2320
SELECT + COUNT ( - + 44 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT ALL SUM( DISTINCT - - 51 ) * + 75 FROM tab1 AS cor0
----
3825

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL SUM ( DISTINCT - - 51 ) * + 75 FROM tab1 AS cor0
----
3825

query I rowsort
SELECT DISTINCT 81 AS col2 FROM tab0 cor0
----
81

query II rowsort
SELECT DISTINCT col1, - 99 AS col1 FROM tab0
----
1
-99
21
-99
81
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2324
SELECT + SUM( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2324
SELECT + SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query II rowsort
SELECT + col0 AS col1, - ( - col1 ) - - + 65 AS col0 FROM tab0
----
15
146
87
86
97
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT COUNT( DISTINCT + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2326
SELECT COUNT ( DISTINCT + col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT DISTINCT MIN( - - col1 ) * + + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE 58 + - - col0 IN ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2327
SELECT DISTINCT MIN ( - - col1 ) * + + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE 58 + - - col0 IN ( - col0 )
----
NULL

query I rowsort
SELECT ALL 55 * - + 28 AS col0 FROM tab2 AS cor0
----
-1540
-1540
-1540

query I rowsort
SELECT - 54 + + - col0 FROM tab1
----
-105
-139
-145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 col0 FROM tab0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT + COUNT( * ) - - COUNT( * ) FROM tab0, tab1 cor0
----
18

skipif mysql # not compatible
query I rowsort label-2331
SELECT + COUNT ( * ) - - COUNT ( * ) FROM tab0, tab1 cor0
----
18

query I rowsort
SELECT col2 + + ( - + ( - 79 ) ) + - - col2 FROM tab0
----
173
277
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2333
SELECT DISTINCT + + col2 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2333
SELECT DISTINCT + + col2 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2334
SELECT DISTINCT + col2 col1 FROM tab0 cor0 WHERE + col1 NOT BETWEEN - col1 - - CAST( col0 AS DECIMAL ) AND NULL
----
10
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2334
SELECT DISTINCT + col2 col1 FROM tab0 cor0 WHERE + col1 NOT BETWEEN - col1 - - CAST ( col0 AS REAL ) AND NULL
----
10
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + + col2 ) * - col2 * + + 79 + - - col1 * - 51 IS NOT NULL
----

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE ( NULL ) IN ( - 12 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2338
SELECT ALL - ( - 81 ) DIV + - col0 + + col2 FROM tab1 AS cor0
----
59
68
95

skipif mysql # not compatible
query I rowsort label-2338
SELECT ALL - ( - 81 ) / + - col0 + + col2 FROM tab1 AS cor0
----
59
68
95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + - col2 * + col2 * + 96 BETWEEN + col2 AND - 81
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2340
SELECT DISTINCT col2 DIV - 37 + - - ( - ( 77 ) ) FROM tab0 cor0
----
-77
-78
-79

skipif mysql # not compatible
query I rowsort label-2340
SELECT DISTINCT col2 / - 37 + - - ( - ( 77 ) ) FROM tab0 cor0
----
-77
-78
-79

query I rowsort
SELECT DISTINCT + col0 + + col0 + - + col1 AS col2 FROM tab1
----
135
165
88

query III rowsort
SELECT * FROM tab1 WHERE - 88 * - col1 * - + col2 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2343
SELECT DISTINCT ( + 85 ) * - 21 * - CAST( - col1 AS SIGNED ) - - ( - + 47 ) + + + col2 + 58 * col2 * + col1 * - col1 + - ( col2 ) FROM tab0
----
-18029918
-293312
-7574

skipif mysql # not compatible
query I rowsort label-2343
SELECT DISTINCT ( + 85 ) * - 21 * - CAST ( - col1 AS INTEGER ) - - ( - + 47 ) + + + col2 + 58 * col2 * + col1 * - col1 + - ( col2 ) FROM tab0
----
-18029918
-293312
-7574

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT ALL SUM( 22 ) + 55 + - COUNT( * ) FROM tab2
----
118

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL SUM ( 22 ) + 55 + - COUNT ( * ) FROM tab2
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2345
SELECT - col0 - + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2345
SELECT - col0 - + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 80 * - col0 + col0 FROM tab1
----
4131
6885
7371

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT ALL - 98 - COUNT( * ) FROM tab1
----
-101

skipif mysql # not compatible
query I rowsort label-2347
SELECT ALL - 98 - COUNT ( * ) FROM tab1
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT DISTINCT + COUNT( * ) + + 83 AS col1 FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-2348
SELECT DISTINCT + COUNT ( * ) + + 83 AS col1 FROM tab0 AS cor0
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - col0 ) - - - col2 col0 FROM tab2 AS cor0
----
17
23
24

query II rowsort
SELECT 63 AS col1, - 93 AS col2 FROM tab1
----
63
-93
63
-93
63
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT + COUNT( ALL - ( ( col2 ) ) ) * + COUNT( * ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2351
SELECT + COUNT ( ALL - ( ( col2 ) ) ) * + COUNT ( * ) AS col2 FROM tab1
----
9

query II rowsort
SELECT DISTINCT 86, col0 AS col1 FROM tab1
----
86
51
86
85
86
91

onlyif mysql # aggregate syntax: 
query II rowsort label-2353
SELECT - MIN( - col0 ), - COUNT( * ) AS col0 FROM tab1
----
91
-3

skipif mysql # not compatible
query II rowsort label-2353
SELECT - MIN ( - col0 ), - COUNT ( * ) AS col0 FROM tab1
----
91
-3

query I rowsort
SELECT ALL + 69 AS col0 FROM tab0
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT DISTINCT - MAX( 78 ) FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-2355
SELECT DISTINCT - MAX ( 78 ) FROM tab2 AS cor0
----
-78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-2356
SELECT - CAST( NULL AS DECIMAL ) AS col2, 72 * + MAX( col0 ) AS col2, + + COUNT( * ) FROM tab0 AS cor0
----
NULL
6984
3

skipif mysql # not compatible
query III rowsort label-2356
SELECT - CAST ( NULL AS REAL ) AS col2, 72 * + MAX ( col0 ) AS col2, + + COUNT ( * ) FROM tab0 AS cor0
----
NULL
6984
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN + - col1 AND + col2 * - - col1 * - - 62 + + 12 - - col2 + + col2 * + col2 / ( - col2 ) * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - 60 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

query II rowsort
SELECT ALL - - col0 AS col0, - col1 AS col1 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

query II rowsort
SELECT + col1 AS col1, 95 FROM tab1 AS cor0
----
14
95
47
95
5
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT SUM( - + col2 ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-2362
SELECT SUM ( - + col2 ) AS col0 FROM tab2
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2363
SELECT col2 * - - CAST( NULL AS SIGNED ), + col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-2363
SELECT col2 * - - CAST ( NULL AS INTEGER ), + col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT MIN( ALL - col2 ) * - ( 77 ) * - - COUNT( * ) AS col1 FROM tab2
----
13398

skipif mysql # not compatible
query I rowsort label-2364
SELECT MIN ( ALL - col2 ) * - ( 77 ) * - - COUNT ( * ) AS col1 FROM tab2
----
13398

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2365
SELECT 48 + - col0 + 18 + - col0 + - - col2 * - CAST( NULL AS DECIMAL ) * + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2365
SELECT 48 + - col0 + 18 + - col0 + - - col2 * - CAST ( NULL AS REAL ) * + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT NULL NOT BETWEEN - col1 / + + col0 AND NULL )
----

query I rowsort
SELECT col1 * + ( - ( + 17 ) ) FROM tab2 cor0
----
-1139
-1309
-867

query I rowsort
SELECT - + 0 AS col0 FROM tab2 WHERE NULL IS NULL
----
0
0
0

query I rowsort
SELECT ALL - 9 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT + + 21 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT + - 51 + MAX( col1 ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2371
SELECT + - 51 + MAX ( col1 ) FROM tab0 AS cor0
----
30

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT - COUNT( * ) * + 86 + 59 FROM tab2 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2373
SELECT - COUNT ( * ) * + 86 + 59 FROM tab2 AS cor0
----
-199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 col0 FROM tab2 AS cor0 WHERE NOT col2 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT - COUNT( * ) + + 82 FROM tab1 cor0
----
79

skipif mysql # not compatible
query I rowsort label-2376
SELECT - COUNT ( * ) + + 82 FROM tab1 cor0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2377
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + + + 66 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2377
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + + + 66 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT ALL COUNT( ALL 40 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2378
SELECT ALL COUNT ( ALL 40 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab0 WHERE NOT - col2 <> NULL
----

query I rowsort
SELECT ALL - 65 + - 19 * 62 FROM tab2
----
-1243
-1243
-1243

query I rowsort
SELECT DISTINCT + 95 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col1 + 42 FROM tab1
----
47
56
89

query I rowsort
SELECT ALL col1 + + 7 AS col0 FROM tab0
----
28
8
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col1 FROM tab2
----
86
86
86

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( col1 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 71 > - col0
----

query I rowsort
SELECT + ( + ( - + 46 ) ) FROM tab2 AS cor0
----
-46
-46
-46

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - 72 AS col2 FROM tab1 AS cor0
----
72
72
72

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND 79
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2391
SELECT 19 DIV - col1 + 28 + + ( - col2 ) + col1 DIV - 84 AS col0 FROM tab0 AS cor0
----
-19
-90
18

skipif mysql # not compatible
query I rowsort label-2391
SELECT 19 / - col1 + 28 + + ( - col2 ) + col1 / - 84 AS col0 FROM tab0 AS cor0
----
-19
-90
18

query I rowsort
SELECT + 67 + col1 FROM tab0 cor0 WHERE NOT 69 IS NULL
----
148
68
88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2393
SELECT ALL * FROM tab0 AS cor0 WHERE - 19 IN ( CAST( + col2 AS SIGNED ) * + col1 * + col2 * + 42 * - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2393
SELECT ALL * FROM tab0 AS cor0 WHERE - 19 IN ( CAST ( + col2 AS INTEGER ) * + col1 * + col2 * + 42 * - + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 IN ( - col0 + - 94 + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2395
SELECT DISTINCT + ( - col0 ) * 29 + + + col2 AS col0 FROM tab0 WHERE NOT - + 69 NOT BETWEEN - - CAST( + col0 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2395
SELECT DISTINCT + ( - col0 ) * 29 + + + col2 AS col0 FROM tab0 WHERE NOT - + 69 NOT BETWEEN - - CAST ( + col0 AS INTEGER ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2396
SELECT DISTINCT ( - col0 ) DIV 58 + - col2 AS col1 FROM tab1
----
-60
-69
-96

skipif mysql # not compatible
query I rowsort label-2396
SELECT DISTINCT ( - col0 ) / 58 + - col2 AS col1 FROM tab1
----
-60
-69
-96

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - col0 ) / + 24 <= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE + 76 * 67 / - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT + 19 * COUNT( * ) FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-2399
SELECT + 19 * COUNT ( * ) FROM tab1 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT DISTINCT + COUNT( 1 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2400
SELECT DISTINCT + COUNT ( 1 ) col2 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2401
SELECT ALL col1 DIV 3 + - col2 * + - 19 FROM tab2
----
1124
454
785

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL col1 / 3 + - col2 * + - 19 FROM tab2
----
1124
454
785

onlyif mysql # DIV for integer division: 
query I rowsort label-2402
SELECT ALL + 26 - col2 DIV + - ( - col1 ) AS col2 FROM tab0
----
-73
26
26

skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL + 26 - col2 / + - ( - col1 ) AS col2 FROM tab0
----
-73
26
26

query II rowsort
SELECT ALL + 39 + + col0, col2 FROM tab2 AS cor0
----
103
40
114
58
85
23

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 + + - 93 + - - col2 IS NULL
----

query I rowsort
SELECT - col2 - - 0 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT ALL + 37 - + COUNT( * ) FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL + 37 - + COUNT ( * ) FROM tab2
----
34

query I rowsort
SELECT DISTINCT - col2 + + 23 AS col1 FROM tab0
----
-24
-76
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2408
SELECT COUNT( * ) - - 79 DIV - - 78 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-2408
SELECT COUNT ( * ) - - 79 / - - 78 FROM tab0
----
4

query III rowsort
SELECT * FROM tab1 WHERE + col2 * 41 BETWEEN NULL AND + 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT COUNT( * ) - - 52 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-2410
SELECT COUNT ( * ) - - 52 FROM tab2
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-2411
SELECT - 94 DIV - + col1 FROM tab1
----
18
2
6

skipif mysql # not compatible
query I rowsort label-2411
SELECT - 94 / - + col1 FROM tab1
----
18
2
6

query I rowsort
SELECT DISTINCT + col1 * + - col0 AS col0 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT ALL - - col1 FROM tab0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2414
SELECT DISTINCT + col1 / - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2414
SELECT DISTINCT + col1 / - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + 70 * - col2 col1 FROM tab1
----
-4215
-4851
-6771

query I rowsort
SELECT 16 + - 90 FROM tab0
----
-74
-74
-74

query I rowsort
SELECT DISTINCT + 31 * + col1 + - 17 AS col1 FROM tab1
----
138
1440
417

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT + SUM( ALL + col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-2418
SELECT + SUM ( ALL + col2 ) AS col2 FROM tab0
----
156

query I rowsort
SELECT col1 + 11 FROM tab1 WHERE NOT ( col0 ) IN ( col1 / col2 )
----
16
25
58

query I rowsort
SELECT col2 * + 75 - + col0 AS col2 FROM tab2
----
1679
2936
4275

query I rowsort
SELECT - 41 FROM tab0 WHERE ( col2 ) > 67 + + 78
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND col0 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT - MIN( ALL + col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2423
SELECT - MIN ( ALL + col0 ) FROM tab2
----
-46

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - 42 ) > + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 * + col2 FROM tab1 WHERE NOT + 92 = col0
----
-3481
-4624
-9216

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 48 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT 13 * + COUNT( * ) AS col2 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-2427
SELECT 13 * + COUNT ( * ) AS col2 FROM tab0
----
39

query III rowsort
SELECT * FROM tab2 WHERE NULL <= col2
----

query I rowsort
SELECT col2 * - 16 AS col0 FROM tab0
----
-1584
-160
-752

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT 24 * - COUNT( * ) FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-2430
SELECT 24 * - COUNT ( * ) FROM tab0
----
-72

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( 3 * - ( + col2 ) + - 3 / - 55 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2432
SELECT + col2 AS col0 FROM tab1 WHERE - col1 + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2432
SELECT + col2 AS col0 FROM tab1 WHERE - col1 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT DISTINCT MIN( DISTINCT - 7 ) AS col2 FROM tab2 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2433
SELECT DISTINCT MIN ( DISTINCT - 7 ) AS col2 FROM tab2 WHERE NULL <> NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2434
SELECT * FROM tab2 AS cor0 WHERE + col0 + - CAST( - 20 + col2 * ( + 44 + - col1 ) AS SIGNED ) * + 69 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2434
SELECT * FROM tab2 AS cor0 WHERE + col0 + - CAST ( - 20 + col2 * ( + 44 + - col1 ) AS INTEGER ) * + 69 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1600
-3364
-529

query I rowsort
SELECT ALL col1 * 29 AS col2 FROM tab2 AS cor0
----
1479
1943
2233

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT + COUNT( * ) * - 49 FROM tab0 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-2438
SELECT + COUNT ( * ) * - 49 FROM tab0 AS cor0
----
-147

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT + COUNT( - col2 ) * ( 33 ) col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2440
SELECT + COUNT ( - col2 ) * ( 33 ) col0 FROM tab0 AS cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2441
SELECT ALL col2 DIV col0 AS col0 FROM tab1 WHERE NOT col2 * + 73 BETWEEN - col1 * + 65 AND col2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2441
SELECT ALL col2 / col0 AS col0 FROM tab1 WHERE NOT col2 * + 73 BETWEEN - col1 * + 65 AND col2
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * + col0 BETWEEN NULL AND + col2 * - col2
----

query I rowsort
SELECT 88 * 30 FROM tab0 WHERE ( col0 * + col0 ) NOT BETWEEN ( col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT ALL MIN( ALL - col1 ) + - ( - COUNT( * ) ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL MIN ( ALL - col1 ) + - ( - COUNT ( * ) ) FROM tab0
----
-78

query I rowsort
SELECT ALL + 98 + + col0 FROM tab0
----
113
185
195

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT DISTINCT COUNT( * ) - + COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2446
SELECT DISTINCT COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2447
SELECT ALL 28 * 67 FROM tab0 AS cor0 WHERE ( ( - col0 ) ) >= ( CAST( NULL AS DECIMAL ) + ( ( 98 ) + + 57 ) )
----

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL 28 * 67 FROM tab0 AS cor0 WHERE ( ( - col0 ) ) >= ( CAST ( NULL AS REAL ) + ( ( 98 ) + + 57 ) )
----

query I rowsort
SELECT DISTINCT 42 + col1 AS col0 FROM tab0 AS cor0
----
123
43
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT SUM( DISTINCT 49 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
49

skipif mysql # not compatible
query I rowsort label-2449
SELECT SUM ( DISTINCT 49 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-2450
SELECT + 36 DIV + col1 + + col0 AS col0 FROM tab0 AS cor0
----
133
15
88

skipif mysql # not compatible
query I rowsort label-2450
SELECT + 36 / + col1 + + col0 AS col0 FROM tab0 AS cor0
----
133
15
88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT ALL + COUNT( * ) - + 63 FROM tab2 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL + COUNT ( * ) - + 63 FROM tab2 cor0
----
-60

query I rowsort
SELECT DISTINCT 68 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT - col1 * 27 + col1 * col1 FROM tab1 AS cor0
----
-110
-182
940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2455
SELECT - col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2455
SELECT - col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2456
SELECT * FROM tab2 AS cor0 WHERE ( + 9 * 19 ) NOT BETWEEN CAST( NULL AS SIGNED ) AND 29
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2456
SELECT * FROM tab2 AS cor0 WHERE ( + 9 * 19 ) NOT BETWEEN CAST ( NULL AS INTEGER ) AND 29
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT DISTINCT COUNT( * ) FROM tab0 cor0 WHERE + 79 + 18 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2457
SELECT DISTINCT COUNT ( * ) FROM tab0 cor0 WHERE + 79 + 18 IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2458
SELECT DISTINCT ( + COUNT( * ) ) - - MAX( + col0 + ( - 96 + col2 ) DIV col0 ) AS col2 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-2458
SELECT DISTINCT ( + COUNT ( * ) ) - - MAX ( + col0 + ( - 96 + col2 ) / col0 ) AS col2 FROM tab0
----
100

query I rowsort
SELECT DISTINCT 43 * + col0 FROM tab2
----
1978
2752
3225

query III rowsort
SELECT ALL * FROM tab2 WHERE 32 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT 98 * - SUM( 28 ) AS col0 FROM tab0
----
-8232

skipif mysql # not compatible
query I rowsort label-2461
SELECT 98 * - SUM ( 28 ) AS col0 FROM tab0
----
-8232

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2462
SELECT ALL * FROM tab1 WHERE NOT col2 NOT BETWEEN CAST( NULL AS SIGNED ) * 44 AND ( col1 )
----

skipif mysql # not compatible
query III rowsort label-2462
SELECT ALL * FROM tab1 WHERE NOT col2 NOT BETWEEN CAST ( NULL AS INTEGER ) * 44 AND ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2463
SELECT ALL COUNT( CAST( 40 AS SIGNED ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2463
SELECT ALL COUNT ( CAST ( 40 AS INTEGER ) ) AS col0 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 - - 14 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2465
SELECT - COUNT( * ) DIV COUNT( col0 ) col0 FROM tab1 WHERE NOT - 25 BETWEEN ( 37 ) AND ( + col0 )
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2465
SELECT - COUNT ( * ) / COUNT ( col0 ) col0 FROM tab1 WHERE NOT - 25 BETWEEN ( 37 ) AND ( + col0 )
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( col1 ) * col1 - 11 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 NOT IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 75 * col2 FROM tab0 WHERE NOT + col0 NOT BETWEEN ( col2 ) AND ( + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2469
SELECT - col1 DIV - + col1 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2469
SELECT - col1 / - + col1 AS col0 FROM tab2
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( col2 - + col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col1 FROM tab2 cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT MIN( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2472
SELECT MIN ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2473
SELECT + 77 / - col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-2473
SELECT + 77 / - col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 <= + - ( - 55 )
----
64
77
40
75
67
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= ( + col0 - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT + - COUNT( + + col2 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2476
SELECT + - COUNT ( + + col2 ) AS col1 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL - col2 AS col1, - col2 FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN col2 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - ( - 20 ) * - col2 + col2 FROM tab0 AS cor0
----
-1881
-190
-893

query I rowsort
SELECT DISTINCT - ( col0 ) FROM tab0 AS cor0 WHERE col0 * + col2 + 22 IN ( col0 + + col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 NOT IN ( 46 )
----

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT 5 * + 93 FROM tab0 cor0
----
465

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col0 + + - col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 * + col1 ) IS NULL
----

query I rowsort
SELECT ALL ( - 26 ) * + + ( - + col0 ) + 46 AS col1 FROM tab0
----
2308
2568
436

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2487
SELECT ALL CAST( 91 AS SIGNED ) + - + col1 FROM tab2
----
14
24
40

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL CAST ( 91 AS INTEGER ) + - + col1 FROM tab2
----
14
24
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2488
SELECT - 47 * CAST( + CAST( - ( col2 ) AS SIGNED ) AS SIGNED ) FROM tab0
----
2209
4653
470

skipif mysql # not compatible
query I rowsort label-2488
SELECT - 47 * CAST ( + CAST ( - ( col2 ) AS INTEGER ) AS INTEGER ) FROM tab0
----
2209
4653
470

query I rowsort
SELECT DISTINCT 35 + - col2 FROM tab1
----
-24
-33
-61

query I rowsort
SELECT + + col2 + - 3 + + col0 FROM tab2 AS cor0
----
101
130
66

onlyif mysql # aggregate syntax: 
query II rowsort label-2491
SELECT - + 5 + - 36 AS col0, 94 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-41
97

skipif mysql # not compatible
query II rowsort label-2491
SELECT - + 5 + - 36 AS col0, 94 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-41
97

query I rowsort
SELECT - 65 + - col0 * + col0 FROM tab1 AS cor0
----
-2666
-7290
-8346

query I rowsort
SELECT + col0 + col2 + + col0 FROM tab1 AS cor0
----
198
229
250

query I rowsort
SELECT + col2 + - 28 - + col2 AS col2 FROM tab2 AS cor0
----
-28
-28
-28

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 cor0 WHERE NOT ( + 62 IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - col2 )
----

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NULL > col0
----

query I rowsort
SELECT ( - ( 85 ) ) + + col2 AS col2 FROM tab2
----
-27
-45
-62

query I rowsort
SELECT + + 10 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT DISTINCT + SUM( col0 ) + SUM( 15 ) AS col1 FROM tab2 WHERE NOT ( + col1 * col0 / + 48 * + col0 + + 6 * - col2 ) IS NULL
----
230

skipif mysql # not compatible
query I rowsort label-2500
SELECT DISTINCT + SUM ( col0 ) + SUM ( 15 ) AS col1 FROM tab2 WHERE NOT ( + col1 * col0 / + 48 * + col0 + + 6 * - col2 ) IS NULL
----
230

query I rowsort
SELECT DISTINCT - + 70 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-70

query I rowsort
SELECT ALL 35 + - - col2 FROM tab0
----
134
45
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT - COUNT( 26 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2503
SELECT - COUNT ( 26 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2504
SELECT ALL MAX( DISTINCT - - CAST( col1 AS SIGNED ) ) FROM tab1 WHERE NOT ( + col1 ) IS NULL
----
47

skipif mysql # not compatible
query I rowsort label-2504
SELECT ALL MAX ( DISTINCT - - CAST ( col1 AS INTEGER ) ) FROM tab1 WHERE NOT ( + col1 ) IS NULL
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT ALL MIN( 95 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
95

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL MIN ( 95 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT ALL + COUNT( - 95 ) - 81 col1 FROM tab2 WHERE ( + col0 ) NOT IN ( 14 + 24 * - 61 )
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2506
SELECT ALL + COUNT ( - 95 ) - 81 col1 FROM tab2 WHERE ( + col0 ) NOT IN ( 14 + 24 * - 61 )
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-2507
SELECT 24 DIV + 34 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2507
SELECT 24 / + 34 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - ( - 41 ) + 84 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
125

query I rowsort
SELECT DISTINCT + - 61 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - col1 ) col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 20 >= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * col0 / col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2514
SELECT DISTINCT 72 DIV - 79 * - - col0 * + 24 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2514
SELECT DISTINCT 72 / - 79 * - - col0 * + 24 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT col1 / - col1 * 78 IS NULL
----
15
87
97

query I rowsort
SELECT + col0 * 48 AS col0 FROM tab1
----
2448
4080
4368

query I rowsort
SELECT DISTINCT 81 AS col0 FROM tab0 WHERE NOT ( NULL NOT BETWEEN ( NULL ) AND 33 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN col0 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT COUNT( * ) * - 10 col0 FROM tab0
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2519
SELECT COUNT ( * ) * - 10 col0 FROM tab0
----
-30

query I rowsort
SELECT - 55 * + - 42 FROM tab1
----
2310
2310
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT ( MAX( DISTINCT - + col0 ) ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2521
SELECT ( MAX ( DISTINCT - + col0 ) ) AS col1 FROM tab0
----
-15

query II rowsort
SELECT ALL - 59 AS col2, 47 AS col2 FROM tab0
----
-59
47
-59
47
-59
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2523
SELECT ALL col0 AS col2 FROM tab2 WHERE + col0 BETWEEN - col1 + 72 + - col2 + - col2 * + CAST( - CAST( col2 AS SIGNED ) * + CAST( NULL AS SIGNED ) AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL col0 AS col2 FROM tab2 WHERE + col0 BETWEEN - col1 + 72 + - col2 + - col2 * + CAST ( - CAST ( col2 AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT SUM( ALL - col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-2524
SELECT SUM ( ALL - col0 ) FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT + 95 * COUNT( * ) + - COUNT( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NOT 60 + - - col2 * + - col0 + 42 IS NULL
----
282

skipif mysql # not compatible
query I rowsort label-2525
SELECT + 95 * COUNT ( * ) + - COUNT ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NOT 60 + - - col2 * + - col0 + 42 IS NULL
----
282

query I rowsort
SELECT DISTINCT - + 60 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-60

query I rowsort
SELECT DISTINCT - 35 AS col0 FROM tab1 cor0
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-2528
SELECT - + 28 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2528
SELECT - + 28 / col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( - - 18 ) * 90 <> ( - - col0 * - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2530
SELECT + col1 FROM tab2 AS cor0 WHERE CAST( - col0 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-2530
SELECT + col1 FROM tab2 AS cor0 WHERE CAST ( - col0 AS INTEGER ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2531
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) / - + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2531
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) / - + col0 IS NOT NULL
----

query I rowsort
SELECT - + col2 * - col0 + + col0 FROM tab1 cor0
----
4947
5100
6279

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT DISTINCT COUNT( * ) * ( + ( - COUNT( * ) ) ) * + COUNT( DISTINCT 83 ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2533
SELECT DISTINCT COUNT ( * ) * ( + ( - COUNT ( * ) ) ) * + COUNT ( DISTINCT 83 ) FROM tab0 AS cor0
----
-9

query II rowsort
SELECT DISTINCT + 48, col0 * + col0 AS col1 FROM tab2
----
48
2116
48
4096
48
5625

query I rowsort
SELECT DISTINCT + col1 + - - col1 * - ( - col0 ) FROM tab1
----
430
4324
728

query III rowsort
SELECT * FROM tab1 WHERE 20 * col0 + - ( - col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - - ( - col2 ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 / - + col2 NOT IN ( + col1 * + - 49 + - col1 ) OR NOT 5 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2539
SELECT ALL + col0 DIV 24 + + + col0 AS col0, + 48 DIV - + col1 FROM tab0
----
101
-48
15
0
90
-2

skipif mysql # not compatible
query II rowsort label-2539
SELECT ALL + col0 / 24 + + + col0 AS col0, + 48 / - + col1 FROM tab0
----
101
-48
15
0
90
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab0 WHERE col0 IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2541
SELECT AVG ( DISTINCT + col1 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2541
SELECT AVG ( DISTINCT + col1 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL - - 74 + - - col1 AS col1 FROM tab1 AS cor0
----
121
79
88

query I rowsort
SELECT - - 31 + - col1 AS col0 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-50
10
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2544
SELECT + CAST( + - col1 AS SIGNED ) FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2544
SELECT + CAST ( + - col1 AS INTEGER ) FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT DISTINCT - ( + - COUNT( * ) ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2545
SELECT DISTINCT - ( + - COUNT ( * ) ) col2 FROM tab1
----
3

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0 WHERE ( NULL ) <= - 10
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 41 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT DISTINCT + MAX( - 84 ) FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-2548
SELECT DISTINCT + MAX ( - 84 ) FROM tab2 AS cor0
----
-84

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2550
SELECT ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2551
SELECT ALL + 50 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL + 50 / col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2552
SELECT DISTINCT + col0 DIV - + col0 AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2552
SELECT DISTINCT + col0 / - + col0 AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL - AVG ( + + col0 ) AS col1 FROM tab0 WHERE NOT ( - - col0 / 19 ) IS NOT NULL
----
NULL

query II rowsort
SELECT col2, - 97 FROM tab0
----
10
-97
47
-97
99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT DISTINCT + 75 * COUNT( 3 ) FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT + 75 * COUNT ( 3 ) FROM tab1
----
225

query I rowsort
SELECT ALL - col1 * - ( col0 ) AS col1 FROM tab2
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2557
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2557
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( + col2 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( ( NOT col0 >= ( - col0 - + 45 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 * + col1 AS col2 FROM tab0 AS cor0 WHERE - 89 - - 83 IN ( + 56 * 39 )
----

query I rowsort
SELECT ALL 59 * - col1 FROM tab0 AS cor0 WHERE NULL = 78 / - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT - - MIN( ALL col0 ) + - - 33 col0 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2561
SELECT - - MIN ( ALL col0 ) + - - 33 col0 FROM tab1 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT ALL COUNT( * ) + - 24 FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL COUNT ( * ) + - 24 FROM tab2 AS cor0
----
-21

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col2, col0 )
----

query I rowsort
SELECT + col0 + - - col1 AS col0 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT DISTINCT - COUNT( * ) * - ( 8 ) FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2565
SELECT DISTINCT - COUNT ( * ) * - ( 8 ) FROM tab1 AS cor0
----
24

query II rowsort
SELECT ALL - + col1 AS col2, 14 AS col0 FROM tab0 AS cor0
----
-1
14
-21
14
-81
14

query II rowsort
SELECT + col1 AS col0, col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT ALL - COUNT( col2 ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2568
SELECT ALL - COUNT ( col2 ) col1 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col0, col0 col2 FROM tab2 AS cor0
----
46
46
64
64
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 col0 FROM tab1 AS cor0 WHERE + ( 29 ) + 71 > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = - - 94
----

query II rowsort
SELECT ALL 54 + - - 60 AS col2, + col0 FROM tab2
----
114
46
114
64
114
75

query I rowsort
SELECT DISTINCT col1 * + - col1 + + 50 + 4 AS col1 FROM tab2
----
-2547
-4435
-5875

query I rowsort
SELECT ( 66 ) AS col0 FROM tab0
----
66
66
66

query I rowsort
SELECT DISTINCT ( - + col0 ) + + 57 * - col0 FROM tab1
----
-2958
-4930
-5278

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 - col2 AS col2, col2 col0 FROM tab0
----
-2
99
-32
47
77
10

query I rowsort
SELECT DISTINCT 51 FROM tab0 WHERE + ( col0 ) * col0 IS NOT NULL
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT - ( + SUM( DISTINCT + 8 ) ) + - 59 + - 22 col0 FROM tab1
----
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2578
SELECT - ( + SUM ( DISTINCT + 8 ) ) + - 59 + - 22 col0 FROM tab1
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-2579
SELECT - 5 * - 9 + + + 14 AS col0, COUNT( + - col0 ) + - COUNT( * ) FROM tab1 AS cor0
----
59
0

skipif mysql # not compatible
query II rowsort label-2579
SELECT - 5 * - 9 + + + 14 AS col0, COUNT ( + - col0 ) + - COUNT ( * ) FROM tab1 AS cor0
----
59
0

query I rowsort
SELECT + - col2 + - 15 - col2 FROM tab0 AS cor0 WHERE - col2 + + ( col1 ) + - 76 IS NOT NULL
----
-109
-213
-35

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col2 * 44 AND - 27
----

query I rowsort
SELECT 28 + + col2 FROM tab1 cor0
----
124
87
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT DISTINCT MAX( ALL - + col2 ) col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2583
SELECT DISTINCT MAX ( ALL - + col2 ) col2 FROM tab2 AS cor0
----
-23

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL NOT IN ( + 9 + 93 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT + - MAX( + col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2585
SELECT + - MAX ( + col2 ) FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT ALL + ( + MIN( ALL - + ( - - col1 ) ) ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2586
SELECT ALL + ( + MIN ( ALL - + ( - - col1 ) ) ) AS col0 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT + - col1 * - - col2 FROM tab0 AS cor0
----
-210
-3807
-99

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col1 BETWEEN + - col2 AND + col2 * + 10
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2589
SELECT ALL 52 DIV + col2 FROM tab2 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL 52 / + col2 FROM tab2 cor0
----
0
1
2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) >= NULL
----

query II rowsort
SELECT DISTINCT - - col1 AS col0, + col1 AS col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2592
SELECT AVG ( DISTINCT - - col1 ) * CAST( NULL AS DECIMAL ) * ( + - CAST( NULL AS SIGNED ) ) - - ( COUNT( * ) ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2592
SELECT AVG ( DISTINCT - - col1 ) * CAST ( NULL AS REAL ) * ( + - CAST ( NULL AS INTEGER ) ) - - ( COUNT ( * ) ) AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT ALL COUNT( ALL + col1 ) FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2593
SELECT ALL COUNT ( ALL + col1 ) FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT ALL - COUNT( DISTINCT + col0 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL - COUNT ( DISTINCT + col0 ) AS col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT COUNT( ALL + + col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2595
SELECT COUNT ( ALL + + col0 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT DISTINCT + 58 * COUNT( * ) FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-2596
SELECT DISTINCT + 58 * COUNT ( * ) FROM tab0
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT ( - 96 ) * - COUNT( * ) * - COUNT( DISTINCT + ( + 95 ) ) FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-2597
SELECT ( - 96 ) * - COUNT ( * ) * - COUNT ( DISTINCT + ( + 95 ) ) FROM tab1
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT DISTINCT + COUNT( * ) * - + COUNT( * ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-2598
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab1
----
-9

query I rowsort
SELECT ALL - ( + col2 ) FROM tab2 WHERE NOT NULL NOT BETWEEN + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT + + SUM( + col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2600
SELECT + + SUM ( + col2 ) AS col0 FROM tab1 AS cor0
----
223

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col1 / - + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2602
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 80 * - col1 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2602
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 80 * - col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT ALL SUM( + col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL SUM ( + col2 ) FROM tab0
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2604
SELECT - CAST( + + COUNT( * ) AS SIGNED ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-2604
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 56 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 + - - 96 + + + col0 * - + 38 * - col1 * - col1 AS col1 FROM tab2 AS cor0
----
-12793487
-14419155
-4546401

query I rowsort
SELECT ALL 17 AS col0 FROM tab1 AS cor0
----
17
17
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2608
SELECT + + col1 * - ( - - col0 ) + + col0 + col2 + + + col1 * - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2608
SELECT + + col1 * - ( - - col0 ) + + col0 + col2 + + + col1 * - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 34 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-34
-34
-34

query II rowsort
SELECT DISTINCT - - 28 AS col2, + 78 + col1 * + 37 + - 10 * col2 * + 5 FROM tab0 AS cor0
----
28
-4835
28
355
28
725

onlyif mysql # DIV for integer division: 
query I rowsort label-2611
SELECT col0 DIV - col2 + - col1 * 81 FROM tab0 cor0
----
-1709
-6561
-81

skipif mysql # not compatible
query I rowsort label-2611
SELECT col0 / - col2 + - col1 * 81 FROM tab0 cor0
----
-1709
-6561
-81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 > NULL
----

query I rowsort
SELECT + - col2 + - - col0 AS col0 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT DISTINCT 39 * + col0 FROM tab2 cor0 WHERE NOT 53 * + - ( + 24 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2615
SELECT - CAST( NULL AS SIGNED ) + - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2615
SELECT - CAST ( NULL AS INTEGER ) + - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - 75 AS col2 FROM tab1 AS cor0
----
-16
-7
21

query I rowsort
SELECT col0 + + 58 * - col2 AS col2 FROM tab1
----
-3337
-3853
-5517

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT DISTINCT - MAX( - ( - 74 ) ) AS col0 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-2619
SELECT DISTINCT - MAX ( - ( - 74 ) ) AS col0 FROM tab1
----
-74

query I rowsort
SELECT col0 * - 53 FROM tab0
----
-4611
-5141
-795

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, + col1 - + + col0 col0 FROM tab2
----
23
5
40
13
58
-8

query I rowsort
SELECT ALL col0 FROM tab1 WHERE ( + 77 * + col1 ) <= NULL
----

query I rowsort
SELECT ALL col2 + + - col0 * + 11 AS col1 FROM tab1
----
-465
-876
-933

query I rowsort
SELECT DISTINCT 99 - - 28 FROM tab2 AS cor0
----
127

query I rowsort
SELECT ALL + col2 - + col2 - - + col1 FROM tab2 AS cor0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 * col2, + 95 * col2 + - - col2 col0 FROM tab1 AS cor0
----
3481
5664
4624
6528
9216
9216

query II rowsort
SELECT DISTINCT + 26 * + + 16 - + col0 * - col2 AS col0, 5 + - col2 FROM tab2 AS cor0
----
1474
-18
2976
-35
4766
-53

query II rowsort
SELECT col0, 4 AS col1 FROM tab1 cor0
----
51
4
85
4
91
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT ALL + 77 * COUNT( ALL - col0 ) col2 FROM tab1 AS cor0 WHERE - 78 IS NOT NULL
----
231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2629
SELECT ALL + 77 * COUNT ( ALL - col0 ) col2 FROM tab1 AS cor0 WHERE - 78 IS NOT NULL
----
231

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 11 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col2, col1 col0 FROM tab1 AS cor0
----
59
5
68
47
96
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + ( 55 ) AS col0, + col0 col2 FROM tab1 AS cor0
----
55
51
55
85
55
91

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col0 < NULL
----

query I rowsort
SELECT + 43 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
43
43
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 col1 FROM tab0 cor0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-2636
SELECT - - ( - - 26 ) DIV col0 DIV + 59 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2636
SELECT - - ( - - 26 ) / col0 / + 59 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - 0 * + col1 * 49 + - - col0 + - col1 + - col0 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - 56 * + col1 FROM tab1 AS cor0
----
-2632
-280
-784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2639
SELECT ALL 58 DIV 92 * - + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2639
SELECT ALL 58 / 92 * - + COUNT ( * ) FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab1 WHERE NOT - col2 > + col1 + - 16
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT COUNT( * ) * + ( + ( + COUNT( * ) ) ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2641
SELECT COUNT ( * ) * + ( + ( + COUNT ( * ) ) ) FROM tab2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2642
SELECT + col0 DIV + 24 AS col0 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2642
SELECT + col0 / + 24 AS col0 FROM tab2
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 57 col0, - col0 FROM tab2 AS cor0
----
-57
-46
-57
-64
-57
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT - - MAX( + col1 ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2644
SELECT - - MAX ( + col1 ) AS col1 FROM tab2 AS cor0
----
77

query II rowsort
SELECT ALL col2, 32 AS col0 FROM tab1 AS cor0
----
59
32
68
32
96
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT + MIN( col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2646
SELECT + MIN ( col2 ) AS col0 FROM tab1 AS cor0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-2647
SELECT + + 51 DIV 64 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2647
SELECT + + 51 / 64 AS col1 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * + + 19 BETWEEN - - col1 AND + col0 - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT DISTINCT COUNT( + - col1 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2649
SELECT DISTINCT COUNT ( + - col1 ) col0 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + + 71 AS col0 FROM tab1 WHERE col1 / 49 - + + col0 + col0 + + 32 BETWEEN - - 34 AND - col0 * col2
----

query I rowsort
SELECT ALL col1 + + + col2 AS col0 FROM tab0
----
100
128
31

query I rowsort
SELECT 89 + - ( + + ( - + col1 ) ) FROM tab2
----
140
156
166

query I rowsort
SELECT DISTINCT col2 + + 2 - - col2 FROM tab2
----
118
48
82

query I rowsort
SELECT DISTINCT - 21 FROM tab2 AS cor0 WHERE NOT ( - col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT ALL - 64 + + COUNT( * ) col0 FROM tab2
----
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2655
SELECT ALL - 64 + + COUNT ( * ) col0 FROM tab2
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2656
SELECT + COUNT( * ) - COUNT( - col1 ) * 9 * - + 89 * - SUM( DISTINCT - col1 ) DIV + - 3 + + COUNT( * ) AS col0 FROM tab1
----
-52860

skipif mysql # not compatible
query I rowsort label-2656
SELECT + COUNT ( * ) - COUNT ( - col1 ) * 9 * - + 89 * - SUM ( DISTINCT - col1 ) / + - 3 + + COUNT ( * ) AS col0 FROM tab1
----
-52860

query I rowsort
SELECT col0 * - - col2 - col1 FROM tab2
----
1007
2483
4283

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT DISTINCT 49 + + - MAX( + + 96 ) FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-2658
SELECT DISTINCT 49 + + - MAX ( + + 96 ) FROM tab0
----
-47

query II rowsort
SELECT + col0 + - - col0 * + - col2, col2 * - - col1 AS col1 FROM tab2
----
-1012
1173
-2496
3080
-4275
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2660
SELECT ALL - ( - - CAST( NULL AS SIGNED ) ) + 11 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2660
SELECT ALL - ( - - CAST ( NULL AS INTEGER ) ) + 11 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT ( COUNT( DISTINCT - ( - 25 ) ) ) * - MAX( DISTINCT - 53 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2662
SELECT ( COUNT ( DISTINCT - ( - 25 ) ) ) * - MAX ( DISTINCT - 53 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT DISTINCT COUNT( DISTINCT + - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2663
SELECT DISTINCT COUNT ( DISTINCT + - col0 ) FROM tab1 AS cor0
----
3

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE ( 54 * - 10 ) >= NULL
----

query I rowsort
SELECT 96 * 64 AS col0 FROM tab1
----
6144
6144
6144

query II rowsort
SELECT + col0, + col1 FROM tab0
----
15
81
87
21
97
1

query I rowsort
SELECT - col0 * - 96 AS col2 FROM tab1 AS cor0
----
4896
8160
8736

onlyif mysql # aggregate syntax: 
query II rowsort label-2668
SELECT DISTINCT + + 88 AS col0, COUNT( * ) FROM tab2 cor0
----
88
3

skipif mysql # not compatible
query II rowsort label-2668
SELECT DISTINCT + + 88 AS col0, COUNT ( * ) FROM tab2 cor0
----
88
3

query I rowsort
SELECT DISTINCT + col0 * col0 * + - col0 FROM tab1 AS cor0
----
-132651
-614125
-753571

query I rowsort
SELECT ALL 93 * - + col2 FROM tab1 AS cor0
----
-5487
-6324
-8928

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT ALL - - COUNT( * ) * + - 18 + - - COUNT( ALL col2 ) AS col1 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2671
SELECT ALL - - COUNT ( * ) * + - 18 + - - COUNT ( ALL col2 ) AS col1 FROM tab0 AS cor0
----
-51

query I rowsort
SELECT - ( + - col0 ) FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT + COUNT( * ) * - ( ( + + 96 ) ) + - 67 FROM tab0 AS cor0
----
-355

skipif mysql # not compatible
query I rowsort label-2673
SELECT + COUNT ( * ) * - ( ( + + 96 ) ) + - 67 FROM tab0 AS cor0
----
-355

query I rowsort
SELECT DISTINCT + col1 * + ( - 31 ) AS col0 FROM tab2
----
-1581
-2077
-2387

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2675
SELECT ALL col1 * ( CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2675
SELECT ALL col1 * ( CAST ( NULL AS REAL ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT ALL - 31 + + MAX( 96 ) * + - 54 AS col2 FROM tab1
----
-5215

skipif mysql # not compatible
query I rowsort label-2676
SELECT ALL - 31 + + MAX ( 96 ) * + - 54 AS col2 FROM tab1
----
-5215

onlyif mysql # DIV for integer division: 
query I rowsort label-2677
SELECT - - col0 DIV + - col0 AS col0 FROM tab1 WHERE NOT + + col2 IS NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2677
SELECT - - col0 / + - col0 AS col0 FROM tab1 WHERE NOT + + col2 IS NULL
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2678
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - 50 + + 49 - 89 col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2678
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - 50 + + 49 - 89 col1 FROM tab2
----
NULL

query I rowsort
SELECT col2 * ( + + col0 ) + - 89 - + ( + 72 ) + + col2 AS col1 FROM tab2
----
2439
4247
920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2680
SELECT DISTINCT - ( - - col1 ) + col1 * - + CAST( + - col2 AS SIGNED ) + - col0 FROM tab2
----
1076
2939
3744

skipif mysql # not compatible
query I rowsort label-2680
SELECT DISTINCT - ( - - col1 ) + col1 * - + CAST ( + - col2 AS INTEGER ) + - col0 FROM tab2
----
1076
2939
3744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + - col1 + - col1 * + + ( + + 90 ) col1 FROM tab2
----
-11055
-11858
-6936

query I rowsort
SELECT + 59 + + + ( + col2 ) AS col0 FROM tab2 AS cor0
----
117
82
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT DISTINCT SUM( DISTINCT - ( col0 ) ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2683
SELECT DISTINCT SUM ( DISTINCT - ( col0 ) ) FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2684
SELECT ALL - SUM( - 73 ) DIV 47 AS col2, ( - - COUNT( * ) ) + + - 50 AS col0 FROM tab1 AS cor0
----
4
-47

skipif mysql # not compatible
query II rowsort label-2684
SELECT ALL - SUM ( - 73 ) / 47 AS col2, ( - - COUNT ( * ) ) + + - 50 AS col0 FROM tab1 AS cor0
----
4
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2685
SELECT DISTINCT + col0 * - - ( CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2685
SELECT DISTINCT + col0 * - - ( CAST ( NULL AS REAL ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2686
SELECT + - 74 DIV - + col2 AS col0 FROM tab0 cor0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-2686
SELECT + - 74 / - + col2 AS col0 FROM tab0 cor0
----
0
1
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2687
SELECT - + COUNT( * ) DIV - 58 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2687
SELECT - + COUNT ( * ) / - 58 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL col2 * col0 + + + col2 FROM tab0
----
752
880
9702

query I rowsort
SELECT - 9 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2690
SELECT - - CAST( + col1 AS SIGNED ) + - col2 AS col2, col1 FROM tab0 AS cor0
----
-98
1
11
21
34
81

skipif mysql # not compatible
query II rowsort label-2690
SELECT - - CAST ( + col1 AS INTEGER ) + - col2 AS col2, col1 FROM tab0 AS cor0
----
-98
1
11
21
34
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2691
SELECT + + 15 + + ( + - CAST( + + 88 AS SIGNED ) ) col0, COUNT( * ) AS col1 FROM tab1 AS cor0
----
-73
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2691
SELECT + + 15 + + ( + - CAST ( + + 88 AS INTEGER ) ) col0, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-73
3

query I rowsort
SELECT DISTINCT - col1 * 10 + + col0 - col1 + + col0 * - 20 AS col1 FROM tab0 AS cor0
----
-1176
-1854
-1884

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2693
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2694
SELECT col2 AS col0 FROM tab0 WHERE + 99 * - CAST( + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2694
SELECT col2 AS col0 FROM tab0 WHERE + 99 * - CAST ( + col1 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2695
SELECT ALL * FROM tab1 WHERE col1 NOT BETWEEN NULL AND ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2695
SELECT ALL * FROM tab1 WHERE col1 NOT BETWEEN NULL AND ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL 7 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT ALL + + COUNT( * ) AS col2 FROM tab1 WHERE ( - col1 ) <= + + 29
----
3

skipif mysql # not compatible
query I rowsort label-2697
SELECT ALL + + COUNT ( * ) AS col2 FROM tab1 WHERE ( - col1 ) <= + + 29
----
3

query I rowsort
SELECT - col1 * - 12 AS col1 FROM tab2
----
612
804
924

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col0 BETWEEN - col2 AND - + col0
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2700
SELECT ( - + col1 ) AS col1, - col0 / + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-2700
SELECT ( - + col1 ) AS col1, - col0 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 39 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT DISTINCT - - MAX( - 23 ) AS col2 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT - - MAX ( - 23 ) AS col2 FROM tab1 AS cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 * - - 83 col0 FROM tab2
----
-6557
-6557
-6557

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 65 BETWEEN - 60 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = + 49
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2706
SELECT - + col0 * ( CAST( col2 AS SIGNED ) ) FROM tab1 cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-2706
SELECT - + col0 * ( CAST ( col2 AS INTEGER ) ) FROM tab1 cor0
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2707
SELECT DISTINCT + 71 * ( - CAST( NULL AS SIGNED ) ) / - col0 + col1 * + 70 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT + 71 * ( - CAST ( NULL AS INTEGER ) ) / - col0 + col1 * + 70 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 67 col0, - 73 AS col0 FROM tab2 AS cor0
----
-67
-73

query I rowsort
SELECT - + 87 * + 29 AS col0 FROM tab2 AS cor0
----
-2523
-2523
-2523

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT DISTINCT ( + - COUNT( ALL + 15 ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT ( + - COUNT ( ALL + 15 ) ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT ALL 30 * COUNT( * ) + 93 col0 FROM tab0
----
183

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2711
SELECT ALL 30 * COUNT ( * ) + 93 col0 FROM tab0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT DISTINCT - COUNT( * ) * - SUM( + col2 ) AS col2 FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-2712
SELECT DISTINCT - COUNT ( * ) * - SUM ( + col2 ) AS col2 FROM tab0
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT DISTINCT - COUNT( * ) * - 11 + - COUNT( * ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-2713
SELECT DISTINCT - COUNT ( * ) * - 11 + - COUNT ( * ) FROM tab2
----
30

query I rowsort
SELECT ALL - - col1 FROM tab1 WHERE NOT + 55 * - 44 IS NOT NULL
----

query I rowsort
SELECT ALL col1 + - + col2 + - col2 * - 13 + - + 41 + + + col2 * - col0 * + col1 AS col0 FROM tab0
----
-18170
-56501
-8455

query I rowsort
SELECT DISTINCT 8 * col2 + - col1 FROM tab0
----
295
59
791

onlyif mysql # aggregate syntax: 
query II rowsort label-2717
SELECT DISTINCT + COUNT( * ) col2, 93 AS col1 FROM tab2 AS cor0
----
3
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2717
SELECT DISTINCT + COUNT ( * ) col2, 93 AS col1 FROM tab2 AS cor0
----
3
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT - + COUNT( + + 44 ) + + + 50 AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2718
SELECT - + COUNT ( + + 44 ) + + + 50 AS col0 FROM tab1 AS cor0
----
47

query I rowsort
SELECT - 3 * + + col1 + + col0 + - 28 + + 12 AS col2 FROM tab0 AS cor0
----
-244
78
8

query II rowsort
SELECT DISTINCT col1 + col0 AS col1, col2 FROM tab1
----
138
68
65
96
90
59

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col1 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 34 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-34

query I rowsort
SELECT - + col1 - col2 AS col1 FROM tab1 AS cor0
----
-110
-115
-64

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) IS NULL OR NOT ( ( ( NOT ( NOT col1 IS NULL ) ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + + col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 73 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2728
SELECT 24 * + - CAST( + - COUNT( DISTINCT - col2 ) AS SIGNED ) AS col1 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-2728
SELECT 24 * + - CAST ( + - COUNT ( DISTINCT - col2 ) AS INTEGER ) AS col1 FROM tab1
----
72

query I rowsort
SELECT ALL - ( + + 55 ) FROM tab1
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT COUNT( * ) * - 55 AS col2 FROM tab1
----
-165

skipif mysql # not compatible
query I rowsort label-2730
SELECT COUNT ( * ) * - 55 AS col2 FROM tab1
----
-165

query III rowsort
SELECT * FROM tab1 WHERE NOT + 69 > + + col2
----
51
14
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2732
SELECT - 54 DIV - MAX( - - col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2732
SELECT - 54 / - MAX ( - - col2 ) FROM tab0
----
0

query I rowsort
SELECT col2 * + col2 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT - COUNT( * ) * - COUNT( * ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2735
SELECT - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT ( - + SUM( ( - 18 ) ) ) FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-2736
SELECT ( - + SUM ( ( - 18 ) ) ) FROM tab0
----
54

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2738
SELECT ALL CAST( + - col2 AS SIGNED ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2738
SELECT ALL CAST ( + - col2 AS INTEGER ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - col2 AND - col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 35 + col2 + col0 + - 29 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT ALL + COUNT( ALL ( - col2 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2741
SELECT ALL + COUNT ( ALL ( - col2 ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2743
SELECT - CAST( 93 AS SIGNED ) * + - 5 AS col0 FROM tab1 AS cor0
----
465
465
465

skipif mysql # not compatible
query I rowsort label-2743
SELECT - CAST ( 93 AS INTEGER ) * + - 5 AS col0 FROM tab1 AS cor0
----
465
465
465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2744
SELECT - col2 / 98 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2744
SELECT - col2 / 98 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 78 * + col1 + - col2 FROM tab0
----
-21
1628
6271

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col2 + - col0 / + + 84 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + - 8 FROM tab2
----
43
59
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2748
SELECT ALL - col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL - col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + col0 * - col0 * - col1 + + col0, + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( NULL ) <= + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT ALL 60 * - MAX( - col1 ) col0 FROM tab0
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2751
SELECT ALL 60 * - MAX ( - col1 ) col0 FROM tab0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT ALL + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE + col1 + - 76 IN ( - col2, - col1, - + 31 )
----
0

skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE + col1 + - 76 IN ( - col2, - col1, - + 31 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT + + MIN( DISTINCT - + col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2753
SELECT + + MIN ( DISTINCT - + col2 ) AS col2 FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2754
SELECT ALL + CAST( + SUM( DISTINCT + col1 ) AS SIGNED ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-2754
SELECT ALL + CAST ( + SUM ( DISTINCT + col1 ) AS INTEGER ) FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT DISTINCT + COUNT( * ) + + ( COUNT( * ) ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-2755
SELECT DISTINCT + COUNT ( * ) + + ( COUNT ( * ) ) FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT DISTINCT 66 * - COUNT( * ) FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-2756
SELECT DISTINCT 66 * - COUNT ( * ) FROM tab0
----
-198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2757
SELECT DISTINCT + - col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT + - col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col0 * col0 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT ALL + 25 * - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL + 25 * - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-75

query II rowsort
SELECT + + 0, + col2 AS col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT DISTINCT MIN( - + col1 ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2761
SELECT DISTINCT MIN ( - + col1 ) AS col2 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT ALL + - 0 AS col1 FROM tab0 AS cor0 WHERE NOT 70 NOT BETWEEN - + col2 AND + + col0
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2763
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2763
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 49 AS col1, - col2 col1 FROM tab2 WHERE NOT col1 <= - col1
----
49
-23
49
-40
49
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2765
SELECT DISTINCT MAX( + col2 ) * - CAST( + + 40 AS SIGNED ) AS col2 FROM tab1
----
-3840

skipif mysql # not compatible
query I rowsort label-2765
SELECT DISTINCT MAX ( + col2 ) * - CAST ( + + 40 AS INTEGER ) AS col2 FROM tab1
----
-3840

onlyif mysql # aggregate syntax: 
query II rowsort label-2766
SELECT DISTINCT - MAX( + col0 ) AS col1, 16 AS col1 FROM tab0
----
-97
16

skipif mysql # not compatible
query II rowsort label-2766
SELECT DISTINCT - MAX ( + col0 ) AS col1, 16 AS col1 FROM tab0
----
-97
16

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 65 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2769
SELECT DISTINCT COUNT( * ) * + CAST( + 19 AS SIGNED ) FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-2769
SELECT DISTINCT COUNT ( * ) * + CAST ( + 19 AS INTEGER ) FROM tab1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2770
SELECT DISTINCT * FROM tab0 WHERE CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-2770
SELECT DISTINCT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT + col2 + + - col0 AS col0 FROM tab1
----
-23
-26
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2772
SELECT DISTINCT col2, - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + + col1 + - col1 - 72 / + col2 * + 18 * + 13 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-2772
SELECT DISTINCT col2, - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + + col1 + - col1 - 72 / + col2 * + 18 * + 13 FROM tab1
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT - + col1 + - col1 AS col1 FROM tab1 cor0
----
-10
-28
-94

query I rowsort
SELECT DISTINCT - + 11 FROM tab2 AS cor0
----
-11

query I rowsort
SELECT + - col2 * - 65 - + + ( - - col2 ) AS col2 FROM tab2 AS cor0
----
1472
2560
3712

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2776
SELECT COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2777
SELECT - - CAST( NULL AS DECIMAL ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2777
SELECT - - CAST ( NULL AS REAL ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2778
SELECT - 30 * + + col1 + - col2 + + - CAST( + + 13 AS SIGNED ) col0 FROM tab1 AS cor0
----
-1491
-222
-529

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2778
SELECT - 30 * + + col1 + - col2 + + - CAST ( + + 13 AS INTEGER ) col0 FROM tab1 AS cor0
----
-1491
-222
-529

query I rowsort
SELECT col2 * + + col1 + - 57 FROM tab0 cor0 WHERE col1 = NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 + + + 65 + + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT MAX( DISTINCT - + ( + + col0 ) ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2781
SELECT MAX ( DISTINCT - + ( + + col0 ) ) FROM tab1
----
-51

query II rowsort
SELECT + col0 + + 65 AS col0, col2 AS col0 FROM tab1
----
116
96
150
59
156
68

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 * 27 NOT BETWEEN NULL AND - + col2 AND NOT NULL <= 22
----

query I rowsort
SELECT DISTINCT + 11 + - col2 FROM tab2 AS cor0
----
-12
-29
-47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2785
SELECT ALL - ( - - CAST( col0 AS SIGNED ) ) - + col1 DIV - 80 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2785
SELECT ALL - ( - - CAST ( col0 AS INTEGER ) ) - + col1 / - 80 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 10 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT DISTINCT MAX( - col1 ) * + + MIN( DISTINCT + + 39 ) + + + 98 AS col2 FROM tab2
----
-1891

skipif mysql # not compatible
query I rowsort label-2787
SELECT DISTINCT MAX ( - col1 ) * + + MIN ( DISTINCT + + 39 ) + + + 98 AS col2 FROM tab2
----
-1891

query I rowsort
SELECT DISTINCT + 61 * 59 AS col2 FROM tab2
----
3599

query I rowsort
SELECT ALL - col0 * + + 65 AS col1 FROM tab1
----
-3315
-5525
-5915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2790
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 * + 74 * CAST( NULL AS SIGNED ) + - ( col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2790
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 * + 74 * CAST ( NULL AS INTEGER ) + - ( col2 ) IS NULL
----
0

query I rowsort
SELECT ALL - + 5 * + col2 AS col1 FROM tab0 cor0
----
-235
-495
-50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2792
SELECT ALL - + col0 * - CAST( NULL AS DECIMAL ) * col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2792
SELECT ALL - + col0 * - CAST ( NULL AS REAL ) * col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT - + MIN( + - col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2793
SELECT - + MIN ( + - col1 ) AS col1 FROM tab0 AS cor0
----
81

query I rowsort
SELECT ALL col1 * - col2 * + + col0 AS col1 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query II rowsort label-2795
SELECT COUNT( * ) AS col1, + COUNT( * ) + - 76 FROM tab1
----
3
-73

skipif mysql # not compatible
query II rowsort label-2795
SELECT COUNT ( * ) AS col1, + COUNT ( * ) + - 76 FROM tab1
----
3
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-2796
SELECT - ( - - 6 ) * - ( col2 ) + 78 DIV + col0 AS col1 FROM tab1
----
354
408
577

skipif mysql # not compatible
query I rowsort label-2796
SELECT - ( - - 6 ) * - ( col2 ) + 78 / + col0 AS col1 FROM tab1
----
354
408
577

query I rowsort
SELECT + col0 * + 10 FROM tab2
----
460
640
750

onlyif mysql # DIV for integer division: 
query I rowsort label-2798
SELECT ALL + col0 * col2 DIV + col2 AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL + col0 * col2 / + col2 AS col0 FROM tab2
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - ( + - 23 ) <= col1
----
51
14
96
85
5
59

onlyif mysql # DIV for integer division: 
query II rowsort label-2800
SELECT ALL 94 DIV + - col0 AS col2, ( col1 ) FROM tab2
----
-1
67
-1
77
-2
51

skipif mysql # not compatible
query II rowsort label-2800
SELECT ALL 94 / + - col0 AS col2, ( col1 ) FROM tab2
----
-1
67
-1
77
-2
51

query III rowsort
SELECT ALL * FROM tab1 WHERE 36 NOT BETWEEN 26 * 58 + - col1 AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + - + 61 AS col0 FROM tab0 AS cor0
----
-46
26
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2803
SELECT DISTINCT - 57 * + CAST( - ( COUNT( + + col2 ) ) AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2803
SELECT DISTINCT - 57 * + CAST ( - ( COUNT ( + + col2 ) ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
51
67
77

query I rowsort
SELECT col2 + + + col0 - + 92 AS col1 FROM tab2 AS cor0
----
-23
12
41

onlyif mysql # aggregate syntax: 
query II rowsort label-2806
SELECT - + 40 + - - COUNT( * ) AS col0, + COUNT( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
-37
3

skipif mysql # not compatible
query II rowsort label-2806
SELECT - + 40 + - - COUNT ( * ) AS col0, + COUNT ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
-37
3

query I rowsort
SELECT 42 FROM tab0 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL - col1 + + 76 AS col2 FROM tab2
----
-1
25
9

query II rowsort
SELECT - col2 + - + col2 + col2 AS col2, - col2 FROM tab1
----
-59
-59
-68
-68
-96
-96

query I rowsort
SELECT DISTINCT 82 - + col0 AS col2 FROM tab0
----
-15
-5
67

query I rowsort
SELECT ( + 57 ) FROM tab1 AS cor0
----
57
57
57

query I rowsort
SELECT + col2 - + 72 AS col1 FROM tab2 AS cor0
----
-14
-32
-49

query I rowsort
SELECT + col2 - + 48 AS col0 FROM tab1 AS cor0
----
11
20
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT + SUM( ALL - col0 ) - - 11 + + COUNT( * ) FROM tab2 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-2814
SELECT + SUM ( ALL - col0 ) - - 11 + + COUNT ( * ) FROM tab2 AS cor0
----
-171

query I rowsort
SELECT ALL col1 + - + col2 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT ALL - 98 / + col0 AS col1 FROM tab0 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT + COUNT( + col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2817
SELECT + COUNT ( + col2 ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT 93 AS col1 FROM tab2 cor0
----
93
93
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab0 cor0 WHERE col2 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT ALL col2 * + + col1 FROM tab2
----
1173
3080
3886

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN - 98 AND - col1
----

query II rowsort
SELECT ALL + 22 AS col2, col1 * col0 + - col2 FROM tab1
----
22
366
22
4209
22
618

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 <= + col0
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT ALL + 56 * COUNT( * ) FROM tab1
----
168

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL + 56 * COUNT ( * ) FROM tab1
----
168

query II rowsort
SELECT + 31, col2 FROM tab1 AS cor0
----
31
59
31
68
31
96

query II rowsort
SELECT - - col0, col1 AS col2 FROM tab1 AS cor0
----
51
14
85
5
91
47

query II rowsort
SELECT ALL col2 AS col2, col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + - col1 col2 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT DISTINCT COUNT( - col2 ) + - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2830
SELECT DISTINCT COUNT ( - col2 ) + - COUNT ( * ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT DISTINCT SUM( col0 ) + + - 76 col1 FROM tab2
----
109

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2831
SELECT DISTINCT SUM ( col0 ) + + - 76 col1 FROM tab2
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT ALL COUNT( * ) AS col2 FROM tab1 WHERE - 27 * - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL COUNT ( * ) AS col2 FROM tab1 WHERE - 27 * - col1 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2833
SELECT + CAST( NULL AS SIGNED ) * - 68 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2833
SELECT + CAST ( NULL AS INTEGER ) * - 68 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT DISTINCT - + COUNT( * ) * 69 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-621

skipif mysql # not compatible
query I rowsort label-2834
SELECT DISTINCT - + COUNT ( * ) * 69 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-621

query I rowsort
SELECT - 71 * + col0 * - col2 FROM tab2 AS cor0
----
181760
308850
75118

query I rowsort
SELECT DISTINCT + + 78 + - col0 AS col0 FROM tab0 AS cor0
----
-19
-9
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2837
SELECT CAST( NULL AS SIGNED ) * + - col2 / + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2837
SELECT CAST ( NULL AS INTEGER ) * + - col2 / + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * col0 + + - col0 AS col2 FROM tab0 AS cor0
----
0
1200
1740

onlyif mysql # DIV for integer division: 
query I rowsort label-2839
SELECT 48 DIV + + col0 * - col2 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2839
SELECT 48 / + + col0 * - col2 AS col0 FROM tab1 cor0
----
0
0
0

query II rowsort
SELECT - col1 AS col2, 85 FROM tab2 AS cor0
----
-51
85
-67
85
-77
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2841
SELECT ALL - CAST( 7 AS SIGNED ) + - 37 FROM tab2 AS cor0
----
-44
-44
-44

skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL - CAST ( 7 AS INTEGER ) + - 37 FROM tab2 AS cor0
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT DISTINCT + - COUNT( * ) * + ( COUNT( * ) ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2842
SELECT DISTINCT + - COUNT ( * ) * + ( COUNT ( * ) ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE + col2 - col1 < - 24
----
23
40

query II rowsort
SELECT DISTINCT + col0, col0 AS col1 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2845
SELECT ALL - CAST( NULL AS SIGNED ) + + 81 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2845
SELECT ALL - CAST ( NULL AS INTEGER ) + + 81 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( col0 ) FROM tab0 WHERE + col2 IS NULL
----

query II rowsort
SELECT ALL 4 AS col2, ( - - 33 ) FROM tab1, tab2 AS cor0
----
18 values hashing to 0f036aa1326c24383ac71e03b0d8fecc

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 44 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2849
SELECT + col2 DIV col0 - - col2 AS col1 FROM tab1
----
59
68
97

skipif mysql # not compatible
query I rowsort label-2849
SELECT + col2 / col0 - - col2 AS col1 FROM tab1
----
59
68
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 64 IS NOT NULL
----

query I rowsort
SELECT col0 + + - col1 - 53 * + col2 * + col2 * col2 FROM tab2
----
-10340928
-3392013
-644856

query I rowsort
SELECT - - 37 + + col2 AS col0 FROM tab2 AS cor0
----
60
77
95

query I rowsort
SELECT ALL - 63 + - + 30 FROM tab0 AS cor0
----
-93
-93
-93

query I rowsort
SELECT DISTINCT - col1 * - + col0 FROM tab0
----
1215
1827
97

query I rowsort
SELECT 22 * - col0 FROM tab0
----
-1914
-2134
-330

query I rowsort
SELECT col0 * + ( + - col0 ) AS col1 FROM tab0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2857
SELECT DISTINCT - 36 FROM tab1 AS cor0 WHERE ( CAST( NULL AS SIGNED ) + + col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2857
SELECT DISTINCT - 36 FROM tab1 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) + + col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 23 AS col0 FROM tab0 AS cor0 WHERE NULL < NULL
----

query II rowsort
SELECT ALL 66, + col1 + - col2 * + col2 * - 76 AS col2 FROM tab0 cor0
----
66
167965
66
744877
66
7621

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN - col1 AND NULL
----

query II rowsort
SELECT - - 12 AS col0, - col1 AS col2 FROM tab2 AS cor0
----
12
-51
12
-67
12
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2862
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 / col1 NOT IN ( + + col2, CAST( NULL AS DECIMAL ), - col1 * - col0, - col2 )
----

skipif mysql # not compatible
query III rowsort label-2862
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 / col1 NOT IN ( + + col2, CAST ( NULL AS REAL ), - col1 * - col0, - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT + ( + MAX( 40 ) ) AS col1 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-2863
SELECT + ( + MAX ( 40 ) ) AS col1 FROM tab0 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT - COUNT( * ) FROM tab0 WHERE NOT - ( - col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2864
SELECT - COUNT ( * ) FROM tab0 WHERE NOT - ( - col0 ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT ( - col1 ) + 21 FROM tab1
----
-26
16
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT ALL - 58 + + COUNT( DISTINCT 80 ) FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-2866
SELECT ALL - 58 + + COUNT ( DISTINCT 80 ) FROM tab0 AS cor0
----
-57

query I rowsort
SELECT DISTINCT - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT + 34 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN + 48 + - col2 + + ( 40 ) * col2 AND + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT ALL col1 * - 23 FROM tab1 AS cor0
----
-1081
-115
-322

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT + MAX( DISTINCT - + 32 ) AS col1 FROM tab2, tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-2871
SELECT + MAX ( DISTINCT - + 32 ) AS col1 FROM tab2, tab1 AS cor0
----
-32

query I rowsort
SELECT DISTINCT col1 + col2 * + col0 * col0 AS col0 FROM tab0
----
10656
75711
931492

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT + MAX( col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2873
SELECT + MAX ( col0 ) FROM tab2
----
75

query I rowsort
SELECT + - 42 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 9894093f29c0defae91347934f060329

query I rowsort
SELECT DISTINCT col0 + ( - + col1 ) FROM tab1 AS cor0
----
37
44
80

query II rowsort
SELECT + col2 + + col1 + - col0 AS col0, col1 AS col2 FROM tab2 AS cor0
----
28
51
50
67
53
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 12 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col1 AS col2, - col1 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

query I rowsort
SELECT ALL - ( - 88 ) AS col1 FROM tab1 AS cor0
----
88
88
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2880
SELECT - AVG ( DISTINCT col1 ) * CAST( NULL AS SIGNED ) + + - COUNT( * ) / 59 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2880
SELECT - AVG ( DISTINCT col1 ) * CAST ( NULL AS INTEGER ) + + - COUNT ( * ) / 59 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - 9 + col1 col2 FROM tab0 cor0
----
-168
-648
-8

query I rowsort
SELECT + col0 + + - ( col1 ) AS col1 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT DISTINCT + + ( - ( + - 31 ) ) AS col0 FROM tab0 AS cor0
----
31

query II rowsort
SELECT - 3, 57 AS col1 FROM tab0
----
-3
57
-3
57
-3
57

onlyif mysql # aggregate syntax: 
query II rowsort label-2885
SELECT COUNT( * ), ( COUNT( * ) ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-2885
SELECT COUNT ( * ), ( COUNT ( * ) ) FROM tab2
----
3
3

query I rowsort
SELECT + col0 * 39 AS col2 FROM tab2
----
1794
2496
2925

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2887
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0, col2 * - col2 AS col0 FROM tab1
----
NULL
-3481
NULL
-4624
NULL
-9216

skipif mysql # not compatible
query II rowsort label-2887
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, col2 * - col2 AS col0 FROM tab1
----
NULL
-3481
NULL
-4624
NULL
-9216

onlyif mysql # DIV for integer division: 
query I rowsort label-2888
SELECT ALL - col0 + - + col1 + col1 - col2 DIV - col1 + - + col1 col2 FROM tab0
----
-108
-96
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2888
SELECT ALL - col0 + - + col1 + col1 - col2 / - col1 + - + col1 col2 FROM tab0
----
-108
-96
1

query I rowsort
SELECT DISTINCT + ( + col2 ) FROM tab0 WHERE 62 NOT BETWEEN NULL AND - col2 + - col0
----
10
47
99

query II rowsort
SELECT DISTINCT + col2 AS col2, - col1 AS col0 FROM tab0
----
10
-21
47
-81
99
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2891
SELECT DISTINCT - col0 - - 72 DIV + col2 FROM tab1
----
-51
-84
-90

skipif mysql # not compatible
query I rowsort label-2891
SELECT DISTINCT - col0 - - 72 / + col2 FROM tab1
----
-51
-84
-90

query III rowsort
SELECT * FROM tab2 WHERE NOT 89 >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT - COUNT( * ) * 69 * + MIN( DISTINCT col2 ) AS col1 FROM tab1 cor0
----
-12213

skipif mysql # not compatible
query I rowsort label-2893
SELECT - COUNT ( * ) * 69 * + MIN ( DISTINCT col2 ) AS col1 FROM tab1 cor0
----
-12213

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT - MIN( ( - col2 ) ) FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-2894
SELECT - MIN ( ( - col2 ) ) FROM tab0 cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2895
SELECT DISTINCT - col2 DIV 18 AS col1 FROM tab2 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT - col2 / 18 AS col1 FROM tab2 AS cor0
----
-1
-2
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2896
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NULL >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NULL >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 22 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 60, - col1 * + 20 + + - col1 - - col0 + - col1 AS col0 FROM tab2
----
60
-1076
60
-1399
60
-1630

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col0 NOT BETWEEN - col2 AND - ( - 9 ) - + + col0 * + 20
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT DISTINCT SUM( DISTINCT + 30 ) + - COUNT( + 43 ) AS col1 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-2901
SELECT DISTINCT SUM ( DISTINCT + 30 ) + - COUNT ( + 43 ) AS col1 FROM tab0
----
27

query I rowsort
SELECT 85 * - 9 AS col1 FROM tab2
----
-765
-765
-765

query I rowsort
SELECT col2 * + 11 + col2 + + col2 AS col0 FROM tab0 AS cor0
----
1287
130
611

query I rowsort
SELECT ALL 50 + - 63 FROM tab0
----
-13
-13
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 * col1 col0 FROM tab1
----
2773
295
826

query I rowsort
SELECT 97 + col2 AS col1 FROM tab2
----
120
137
155

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT MIN( ALL col2 ) * 1 AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2907
SELECT MIN ( ALL col2 ) * 1 AS col1 FROM tab0
----
10

query I rowsort
SELECT - 95 * + col0 FROM tab0
----
-1425
-8265
-9215

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2909
SELECT CAST( col2 AS SIGNED ) * + 57 FROM tab2
----
1311
2280
3306

skipif mysql # not compatible
query I rowsort label-2909
SELECT CAST ( col2 AS INTEGER ) * + 57 FROM tab2
----
1311
2280
3306

query I rowsort
SELECT ALL + 70 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col2 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT ALL + COUNT( * ) * 50 FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-2911
SELECT ALL + COUNT ( * ) * 50 FROM tab1
----
150

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 * 55 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 13 * - ( - col2 ) AS col1 FROM tab0
----
-1287
-130
-611

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2914
SELECT * FROM tab1 WHERE NOT CAST( col1 AS SIGNED ) * + 65 > ( - col1 * - 20 )
----

skipif mysql # not compatible
query III rowsort label-2914
SELECT * FROM tab1 WHERE NOT CAST ( col1 AS INTEGER ) * + 65 > ( - col1 * - 20 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT MAX( ALL - col0 ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2915
SELECT MAX ( ALL - col0 ) AS col2 FROM tab2
----
-46

query I rowsort
SELECT ALL - 34 * col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 31 * + col0 AS col1 FROM tab1
----
-1581
-2635
-2821

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2918
SELECT + SUM( DISTINCT + col2 ) DIV COUNT( * ) FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-2918
SELECT + SUM ( DISTINCT + col2 ) / COUNT ( * ) FROM tab0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2919
SELECT DISTINCT - 18 DIV + COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-2919
SELECT DISTINCT - 18 / + COUNT ( * ) FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT DISTINCT SUM( 61 ) + 44 FROM tab0
----
227

skipif mysql # not compatible
query I rowsort label-2920
SELECT DISTINCT SUM ( 61 ) + 44 FROM tab0
----
227

onlyif mysql # DIV for integer division: 
query I rowsort label-2921
SELECT + 28 DIV + col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2921
SELECT + 28 / + col2 FROM tab2
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2922
SELECT - 17 DIV col1 FROM tab1
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-2922
SELECT - 17 / col1 FROM tab1
----
-1
-3
0

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT 99 * + col1 AS col0 FROM tab1
----
1386
4653
495

query I rowsort
SELECT DISTINCT 7 + + 61 * - col0 AS col2 FROM tab2
----
-2799
-3897
-4568

query I rowsort
SELECT ( - col1 ) * - col0 AS col2 FROM tab0
----
1215
1827
97

query I rowsort
SELECT ALL + col2 + + 86 AS col2 FROM tab0
----
133
185
96

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE ( - 13 / + col1 ) <> 19
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2929
SELECT MIN( ALL - CAST( NULL AS SIGNED ) ) + - 30 * COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2929
SELECT MIN ( ALL - CAST ( NULL AS INTEGER ) ) + - 30 * COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT COUNT( * ) + 74 FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-2930
SELECT COUNT ( * ) + 74 FROM tab1
----
77

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT - col0 >= col1
----
14
47
5

query I rowsort
SELECT DISTINCT 83 FROM tab1 WHERE NOT ( 78 * + 10 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * + col0 + - col0 * 40 AS col0 FROM tab0
----
-1653
-3783
615

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col1 / - ( + ( + ( - col0 ) ) ) ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 8 - - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT DISTINCT - 60 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-2937
SELECT DISTINCT - 60 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
180

query I rowsort
SELECT ALL + 65 FROM tab0 cor0 CROSS JOIN tab0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 NOT IN ( - col2 * - col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 78 NOT BETWEEN ( col1 * col0 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( ( 51 ) * + col0 + 30 ) AND - col1 * col1
----

query I rowsort
SELECT DISTINCT 45 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= ( - 44 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col0 ) = + col0 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT SUM( ALL col0 ) AS col2 FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-2944
SELECT SUM ( ALL col0 ) AS col2 FROM tab0 cor0
----
199

onlyif mysql # DIV for integer division: 
query I rowsort label-2945
SELECT - col0 + 60 + + col0 DIV + col0 AS col0 FROM tab0
----
-26
-36
46

skipif mysql # not compatible
query I rowsort label-2945
SELECT - col0 + 60 + + col0 / + col0 AS col0 FROM tab0
----
-26
-36
46

query I rowsort
SELECT 84 FROM tab1 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT - ( - col1 ) + 35 FROM tab0
----
116
36
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT ALL - MIN( ALL + 51 ) - ( 66 ) FROM tab1 WHERE ( 96 / - col0 ) IN ( ( - col1 ) * 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL - MIN ( ALL + 51 ) - ( 66 ) FROM tab1 WHERE ( 96 / - col0 ) IN ( ( - col1 ) * 4 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2949
SELECT CAST( NULL AS SIGNED ) + - + COUNT( * ) + 19 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2949
SELECT CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + 19 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 + col0 / - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT - 43 + COUNT( DISTINCT 58 ) AS col2 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-2951
SELECT - 43 + COUNT ( DISTINCT 58 ) AS col2 FROM tab1
----
-42

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT IN ( 18 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT COUNT( * ) FROM tab2 WHERE ( 3 * + 98 - 59 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2953
SELECT COUNT ( * ) FROM tab2 WHERE ( 3 * + 98 - 59 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT col1 + + + 24 AS col1 FROM tab2
----
101
75
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col2 * col1 ) IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * + - col1 FROM tab0 AS cor0
----
-210
-3807
-99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT + ( SUM( - 74 ) ) FROM tab2 cor0
----
-222

skipif mysql # not compatible
query I rowsort label-2958
SELECT + ( SUM ( - 74 ) ) FROM tab2 cor0
----
-222

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT ( - col0 ) + 56 FROM tab0
----
-31
-41
41

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE + 44 + - col1 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - 13 / 50 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 5 - 28 FROM tab0 AS cor0
----
-23
-23
-23

query I rowsort
SELECT DISTINCT + col1 - - col1 AS col2 FROM tab2 cor0
----
102
134
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col0 + + 75 col1 FROM tab0 AS cor0 WHERE col2 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = - 5
----

query I rowsort
SELECT + col2 + - ( 58 ) AS col0 FROM tab1 AS cor0
----
1
10
38

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + - col0 * col1 ) IS NULL OR ( NULL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT ALL MIN( 95 ) - + + COUNT( * ) FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL MIN ( 95 ) - + + COUNT ( * ) FROM tab1 AS cor0
----
92

query I rowsort
SELECT col1 * - + col1 AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT DISTINCT - 31 - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-2971
SELECT DISTINCT - 31 - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-28

query I rowsort
SELECT col2 * + - col0 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT + 14 AS col0 FROM tab1 WHERE NOT NULL NOT IN ( - - 10 * + 5 * col0 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT 89 * - + COUNT( * ) FROM tab2
----
-267

skipif mysql # not compatible
query I rowsort label-2974
SELECT 89 * - + COUNT ( * ) FROM tab2
----
-267

onlyif mysql # DIV for integer division: 
query I rowsort label-2975
SELECT DISTINCT + col0 * 69 DIV - col2 FROM tab0
----
-22
-600
-67

skipif mysql # not compatible
query I rowsort label-2975
SELECT DISTINCT + col0 * 69 / - col2 FROM tab0
----
-22
-600
-67

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN - col1 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - - ( - - col1 ) AS col2 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + 34 * ( 5 ) FROM tab1 AS cor0 WHERE ( - 31 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT DISTINCT + - MIN( + col1 ) * COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2979
SELECT DISTINCT + - MIN ( + col1 ) * COUNT ( * ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT ( COUNT( + - 0 ) ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2980
SELECT ( COUNT ( + - 0 ) ) col1 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2981
SELECT + col1 * - 5 * + + col0 * - col2 + + CAST( + col2 AS SIGNED ) AS col1 FROM tab2
----
1457308
269813
985640

skipif mysql # not compatible
query I rowsort label-2981
SELECT + col1 * - 5 * + + col0 * - col2 + + CAST ( + col2 AS INTEGER ) AS col1 FROM tab2
----
1457308
269813
985640

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + + 48 + 41 BETWEEN col1 * col2 AND + 85
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT - + COUNT( * ) * - + 17 col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2983
SELECT - + COUNT ( * ) * - + 17 col1 FROM tab1 AS cor0
----
51

query I rowsort
SELECT col0 - + 59 / + col2 FROM tab0 AS cor0 WHERE NOT 73 * + - col2 - + 91 <= col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2985
SELECT col2 DIV - col0 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2985
SELECT col2 / - col0 AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT COUNT( col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2986
SELECT COUNT ( col0 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL < col0 * + 89
----

query I rowsort
SELECT ALL 75 FROM tab2 AS cor0 WHERE NOT - col0 >= ( + col0 * col2 )
----
75
75
75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 72 + - 82 + + 94 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT ALL + 12 + - MAX( col2 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL + 12 + - MAX ( col2 ) FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-2991
SELECT + 62, COUNT( DISTINCT + col1 ) + + COUNT( * ) + - COUNT( * ) AS col1 FROM tab1
----
62
3

skipif mysql # not compatible
query II rowsort label-2991
SELECT + 62, COUNT ( DISTINCT + col1 ) + + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1
----
62
3

query I rowsort
SELECT DISTINCT + col2 + + ( col1 ) AS col0 FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2993
SELECT - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab0, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2993
SELECT - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0
----
-9

query I rowsort
SELECT + 96 * + - 44 + - - 48 AS col2 FROM tab1
----
-4176
-4176
-4176

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2995
SELECT DISTINCT 33 FROM tab1 AS cor0 WHERE NOT - col2 + col2 + col1 * + CAST( NULL AS DECIMAL ) > + ( - 25 )
----

skipif mysql # not compatible
query I rowsort label-2995
SELECT DISTINCT 33 FROM tab1 AS cor0 WHERE NOT - col2 + col2 + col1 * + CAST ( NULL AS REAL ) > + ( - 25 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2996
SELECT - col0 DIV + col1 + + + col2 * + col1 + - 35 + + col1 + col1 AS col1 FROM tab2 AS cor0
----
1240
3199
3984

skipif mysql # not compatible
query I rowsort label-2996
SELECT - col0 / + col1 + + + col2 * + col1 + - 35 + + col1 + col1 AS col1 FROM tab2 AS cor0
----
1240
3199
3984

query I rowsort
SELECT ALL + - 30 + - + col2 FROM tab2 AS cor0
----
-53
-70
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-2998
SELECT DISTINCT + col1 DIV col0 - + 52 FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-2998
SELECT DISTINCT + col1 / col0 - + 52 FROM tab1 AS cor0
----
-52

query I rowsort
SELECT ALL - 23 - 47 - - 75 + + col1 + - - 10 + 57 * - 45 FROM tab1 AS cor0
----
-2503
-2536
-2545

query II rowsort
SELECT DISTINCT + + col1 AS col2, - col0 AS col0 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3001
SELECT ALL + + CAST( 75 AS SIGNED ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3001
SELECT ALL + + CAST ( 75 AS INTEGER ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT ALL - 89 + col1 * - col1 * + 20 AS col0 FROM tab2
----
-118669
-52109
-89869

query I rowsort
SELECT ALL - + 23 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT - col0 - - + 36 + - col2 - + + col2 FROM tab0 AS cor0
----
-259
-71
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-3005
SELECT - col0 DIV - ( - 6 ) - + col0 + - + col1 - - 79 DIV + col1 + col1 FROM tab1 AS cor0
----
-105
-54
-84

skipif mysql # not compatible
query I rowsort label-3005
SELECT - col0 / - ( - 6 ) - + col0 + - + col1 - - 79 / + col1 + col1 FROM tab1 AS cor0
----
-105
-54
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3006
SELECT - 93 FROM tab2 cor0 WHERE NOT + CAST( NULL AS SIGNED ) <= - - ( + + col2 )
----

skipif mysql # not compatible
query I rowsort label-3006
SELECT - 93 FROM tab2 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) <= - - ( + + col2 )
----

query I rowsort
SELECT DISTINCT - + 89 * + + col1 + + + 57 AS col1 FROM tab2 AS cor0
----
-4482
-5906
-6796

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3008
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= ( + CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3008
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= ( + CAST ( col1 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col2 )
----

query I rowsort
SELECT ( - col1 ) * - + col2 * - 60 FROM tab2 cor0
----
-184800
-233160
-70380

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT ( 97 ) * COUNT( * ) - - 24 AS col1 FROM tab2
----
315

skipif mysql # not compatible
query I rowsort label-3011
SELECT ( 97 ) * COUNT ( * ) - - 24 AS col1 FROM tab2
----
315

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + + col1 * - col1 / + 46 IS NOT NULL
----

query I rowsort
SELECT 69 * + 3 FROM tab2
----
207
207
207

onlyif mysql # aggregate syntax: 
query II rowsort label-3014
SELECT DISTINCT 35 AS col1, COUNT( * ) * 11 FROM tab1
----
35
33

skipif mysql # not compatible
query II rowsort label-3014
SELECT DISTINCT 35 AS col1, COUNT ( * ) * 11 FROM tab1
----
35
33

query I rowsort
SELECT 58 * col1 AS col0 FROM tab0
----
1218
4698
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT - COUNT( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3016
SELECT - COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT + col1, col0 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT ALL - 65 * - col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3315
4355
5005

query I rowsort
SELECT ALL + 91 AS col2 FROM tab2 cor0
----
91
91
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 73 ) NOT IN ( - col1 + col1 + ( + 16 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3021
SELECT ALL + 81 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL + 81 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT COUNT( + - 47 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3022
SELECT COUNT ( + - 47 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col1 * + 63 + + col2 AS col1 FROM tab0 AS cor0
----
-1313
-5056
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT + COUNT( col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3024
SELECT + COUNT ( col1 ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, - col0 / + + col0 * + col2 FROM tab2 AS cor0 WHERE NOT - col1 * col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - + col2 * + + 26 FROM tab2 AS cor0
----
-1040
-1508
-598

query II rowsort
SELECT ALL + + ( - ( - - col0 ) ) * - col1, - ( col2 ) AS col2 FROM tab2 AS cor0
----
2346
-23
4928
-40
5025
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3028
SELECT ALL + - CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + col0 * - col0 + - 50 * 12 AS col1 FROM tab1 cor0
----
-3201
-7825
-8881

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3030
SELECT + 94 * - CAST( + col0 AS SIGNED ) AS col1 FROM tab1 cor0 WHERE + col0 IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-3030
SELECT + 94 * - CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 cor0 WHERE + col0 IN ( col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3031
SELECT ALL + col2 + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3031
SELECT ALL + col2 + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3032
SELECT ALL + - 62 * - 95 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL + - 62 * - 95 * + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 64 + - col1 + - col0, - 28 AS col1 FROM tab1
----
-1
-28
-26
-28
-74
-28

query I rowsort
SELECT ALL col2 - + + col0 AS col2 FROM tab1 WHERE NOT NULL <> ( - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3035
SELECT MAX( ALL col0 ), SUM( + - 91 ) FROM tab0 WHERE NULL > col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3035
SELECT MAX ( ALL col0 ), SUM ( + - 91 ) FROM tab0 WHERE NULL > col0
----
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT NULL NOT BETWEEN + col2 AND ( col2 - - ( ( + - col1 ) ) + 67 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3037
SELECT + 1 * - 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-3037
SELECT + 1 * - CAST ( + + col2 AS INTEGER ) col1 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN col0 + + col2 * - ( + + col0 ) + + col2 AND - - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3039
SELECT ALL - ( + + 8 ) DIV col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3039
SELECT ALL - ( + + 8 ) / col0 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT - COUNT( 17 ) - 37 FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-3040
SELECT - COUNT ( 17 ) - 37 FROM tab0 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT DISTINCT COUNT( 80 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT COUNT ( 80 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - ( - - col1 ) AS col0 FROM tab2 WHERE col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3043
SELECT col2, + col1 DIV - 41 FROM tab2 AS cor0
----
23
-1
40
-1
58
-1

skipif mysql # not compatible
query II rowsort label-3043
SELECT col2, + col1 / - 41 FROM tab2 AS cor0
----
23
-1
40
-1
58
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3044
SELECT - COUNT( * ) DIV - COUNT( * ) * + + COUNT( * ) DIV + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 42 + col2 >= 62 DIV - + col2
----
-1

skipif mysql # not compatible
query I rowsort label-3044
SELECT - COUNT ( * ) / - COUNT ( * ) * + + COUNT ( * ) / + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 42 + col2 >= 62 / - + col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT + MIN( 79 ) col1 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3045
SELECT + MIN ( 79 ) col1 FROM tab1 AS cor0
----
79

query II rowsort
SELECT + col2 AS col0, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <= + col1
----

query II rowsort
SELECT + col2, col0 + + col0 FROM tab0 AS cor0
----
10
174
47
30
99
194

query II rowsort
SELECT - 80, 55 AS col1 FROM tab2 AS cor0
----
-80
55
-80
55
-80
55

query I rowsort
SELECT - - 58 * - - col1 * + 24 + + 34 FROM tab1 AS cor0
----
19522
65458
6994

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT DISTINCT - ( + + ( - MIN( col0 ) ) ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3052
SELECT DISTINCT - ( + + ( - MIN ( col0 ) ) ) FROM tab0
----
15

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND - col2 AND NOT + 25 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3054
SELECT CAST( + + 70 AS SIGNED ) col1 FROM tab0
----
70
70
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3054
SELECT CAST ( + + 70 AS INTEGER ) col1 FROM tab0
----
70
70
70

query I rowsort
SELECT + 38 * - col1 FROM tab1 cor0
----
-1786
-190
-532

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT DISTINCT + - COUNT( * ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3056
SELECT DISTINCT + - COUNT ( * ) col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN - 21 AND ( + - 6 / - ( + + col0 ) + + - ( + 98 ) + - 90 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 >= - - 88 + - col2 - - - 64
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 col2 FROM tab0
----
11

query I rowsort
SELECT - col1 * - col1 - + + col1 + + ( + - col2 ) FROM tab2 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL col1 + - 86 + - + col2 * - ( + col1 ) * col0 AS col0 FROM tab0
----
18205
57100
9518

query I rowsort
SELECT DISTINCT - col1 + + - col0 FROM tab1
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE + - ( + + col1 ) + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3063
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE + - ( + + col1 ) + col1 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3064
SELECT CAST( + col2 AS SIGNED ) * + + col0 * - CAST( + - col2 AS SIGNED ) * + - col2 + + - col0 AS col0 FROM tab2
----
-14633475
-4096064
-559728

skipif mysql # not compatible
query I rowsort label-3064
SELECT CAST ( + col2 AS INTEGER ) * + + col0 * - CAST ( + - col2 AS INTEGER ) * + - col2 + + - col0 AS col0 FROM tab2
----
-14633475
-4096064
-559728

query I rowsort
SELECT ( col0 ) * + col1 + + col1 - col1 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3066
SELECT DISTINCT col1 - CAST( NULL AS SIGNED ) / + col2 * + CAST( NULL AS SIGNED ) + - + ( - col2 ) * + 7 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3066
SELECT DISTINCT col1 - CAST ( NULL AS INTEGER ) / + col2 * + CAST ( NULL AS INTEGER ) + - + ( - col2 ) * + 7 AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT col2 + + 38 FROM tab0 cor0
----
137
48
85

query I rowsort
SELECT ALL + 69 - - + ( col2 ) FROM tab0 AS cor0
----
116
168
79

query I rowsort
SELECT - 19 AS col1 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * + 28 FROM tab1
----
1652
1904
2688

onlyif mysql # DIV for integer division: 
query I rowsort label-3071
SELECT 13 DIV - 42 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3071
SELECT 13 / - 42 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT ALL - COUNT( * ) * + COUNT( * ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-3072
SELECT ALL - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0
----
-9

query II rowsort
SELECT 23, - col0 * - + 2 AS col2 FROM tab2
----
23
128
23
150
23
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3074
SELECT ALL COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3074
SELECT ALL COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab2 cor0
----
-1

query I rowsort
SELECT ALL - col0 + - - col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-8
13
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3076
SELECT COUNT( * ) - 16 DIV + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-2

skipif mysql # not compatible
query I rowsort label-3076
SELECT COUNT ( * ) - 16 / + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-2

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 / - ( - col1 ) NOT BETWEEN col1 + + col0 + col0 - + 90 AND NULL
----

query II rowsort
SELECT ALL col1, + col0 * - + col1 FROM tab2
----
51
-2346
67
-5025
77
-4928

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT ALL + - COUNT( * ) FROM tab1 WHERE NOT NULL = + col2
----
0

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL + - COUNT ( * ) FROM tab1 WHERE NOT NULL = + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT ALL - 16 * - - COUNT( col1 ) FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-3080
SELECT ALL - 16 * - - COUNT ( col1 ) FROM tab1
----
-48

query I rowsort
SELECT - col1 * + + 30 * col0 AS col1 FROM tab0
----
-2910
-36450
-54810

query I rowsort
SELECT - 85 + - ( 27 ) FROM tab1
----
-112
-112
-112

query II rowsort
SELECT DISTINCT - - 89 AS col2, + col1 FROM tab1 AS cor0
----
89
14
89
47
89
5

query II rowsort
SELECT DISTINCT + col0 - + 16 * ( col1 ) AS col0, - ( + 87 ) FROM tab0 AS cor0 WHERE NOT + 94 * - col0 IS NULL
----
-1281
-87
-249
-87
81
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3086
SELECT DISTINCT - 67 + col1 + + CAST( col0 AS SIGNED ) FROM tab0
----
29
31
41

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT - 67 + col1 + + CAST ( col0 AS INTEGER ) FROM tab0
----
29
31
41

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 23 * + 41 IS NULL
----

query I rowsort
SELECT ALL - - col2 + - 67 * + 78 * - - 19 FROM tab2 AS cor0
----
-99236
-99254
-99271

onlyif mysql # DIV for integer division: 
query I rowsort label-3089
SELECT ALL + 71 + - - col2 DIV col1 FROM tab1 cor0
----
72
77
82

skipif mysql # not compatible
query I rowsort label-3089
SELECT ALL + 71 + - - col2 / col1 FROM tab1 cor0
----
72
77
82

query I rowsort
SELECT ALL 40 AS col0 FROM tab2 AS cor0
----
40
40
40

onlyif mysql # DIV for integer division: 
query I rowsort label-3091
SELECT + col1 DIV - ( + col1 ) AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3091
SELECT + col1 / - ( + col1 ) AS col1 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 4 > - + 61
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT - col1 * + + col1 AS col2 FROM tab1
----
-196
-2209
-25

query II rowsort
SELECT DISTINCT + - 56, - 37 AS col0 FROM tab1 AS cor0
----
-56
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT ALL - 48 * - COUNT( * ) + + 62 * + ( - - 30 ) FROM tab2 AS cor0
----
2004

skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL - 48 * - COUNT ( * ) + + 62 * + ( - - 30 ) FROM tab2 AS cor0
----
2004

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT COUNT( DISTINCT + col0 ) * - 87 FROM tab1 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-3097
SELECT COUNT ( DISTINCT + col0 ) * - 87 FROM tab1 AS cor0
----
-261

query I rowsort
SELECT ALL + 36 FROM tab2 AS cor0 WHERE NOT 25 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3099
SELECT ALL - CAST( NULL AS SIGNED ) + - MIN( DISTINCT + 44 ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL - CAST ( NULL AS INTEGER ) + - MIN ( DISTINCT + 44 ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3100
SELECT DISTINCT MAX( + CAST( - 14 AS SIGNED ) ) FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-3100
SELECT DISTINCT MAX ( + CAST ( - 14 AS INTEGER ) ) FROM tab2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( col2 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3101
SELECT + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( col2 IS NOT NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - - col2 * - col0 + - 26 col1 FROM tab1 AS cor0
----
25049
290810
68518

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3103
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - + col2 + col0 * + 42 + - + 51 / - col0 AS col0 FROM tab1 AS cor0 WHERE + 87 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 63 * + 25 * + col0 >= NULL
----

query I rowsort
SELECT DISTINCT - 56 * - + 1 FROM tab0
----
56

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 19 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT DISTINCT - COUNT( ALL + col1 ) * - - COUNT( * ) * + - MAX( + ( - col2 ) ) AS col1 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-3108
SELECT DISTINCT - COUNT ( ALL + col1 ) * - - COUNT ( * ) * + - MAX ( + ( - col2 ) ) AS col1 FROM tab0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3109
SELECT CAST( NULL AS SIGNED ), 7 AS col2 FROM tab0
----
NULL
7
NULL
7
NULL
7

skipif mysql # not compatible
query II rowsort label-3109
SELECT CAST ( NULL AS INTEGER ), 7 AS col2 FROM tab0
----
NULL
7
NULL
7
NULL
7

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3111
SELECT ALL + col1 * 47 DIV + - col1 AS col0 FROM tab2
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL + col1 * 47 / + - col1 AS col0 FROM tab2
----
-47
-47
-47

query I rowsort
SELECT DISTINCT + col0 * - 40 FROM tab0 WHERE NULL IS NULL
----
-3480
-3880
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT DISTINCT COUNT( ALL - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3113
SELECT DISTINCT COUNT ( ALL - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
3

query I rowsort
SELECT - - 13 * + 54 FROM tab2 AS cor0
----
702
702
702

onlyif mysql # aggregate syntax: 
query II rowsort label-3115
SELECT - 92 AS col0, - ( + + COUNT( * ) ) col0 FROM tab0 AS cor0
----
-92
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3115
SELECT - 92 AS col0, - ( + + COUNT ( * ) ) col0 FROM tab0 AS cor0
----
-92
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 59 + - col2 + - col0 + - 92 - + col1 + + col1 * col2 col2 FROM tab0 AS cor0
----
-131
3631
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT - MAX( ALL 12 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-12

skipif mysql # not compatible
query I rowsort label-3117
SELECT - MAX ( ALL 12 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-3118
SELECT DISTINCT - 24 AS col0, - SUM( DISTINCT - - 83 ) * + 33 FROM tab1
----
-24
-2739

skipif mysql # not compatible
query II rowsort label-3118
SELECT DISTINCT - 24 AS col0, - SUM ( DISTINCT - - 83 ) * + 33 FROM tab1
----
-24
-2739

query I rowsort
SELECT 52 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3120
SELECT col1 AS col2, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-3120
SELECT col1 AS col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT + + col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3122
SELECT DISTINCT + 0 AS col2, - COUNT( * ) FROM tab0, tab0 AS cor0
----
0
-9

skipif mysql # not compatible
query II rowsort label-3122
SELECT DISTINCT + 0 AS col2, - COUNT ( * ) FROM tab0, tab0 AS cor0
----
0
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT + 83 * SUM( ALL - 33 ) FROM tab0, tab0 AS cor0
----
-24651

skipif mysql # not compatible
query I rowsort label-3123
SELECT + 83 * SUM ( ALL - 33 ) FROM tab0, tab0 AS cor0
----
-24651

query I rowsort
SELECT - ( 7 ) AS col1 FROM tab0 AS cor0
----
-7
-7
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-3125
SELECT + + 68 * - - 0 DIV - + 21 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3125
SELECT + + 68 * - - 0 / - + 21 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 - col0 AS col2, col0 col2 FROM tab0 AS cor0
----
-196
97
-62
15
-97
87

query I rowsort
SELECT - col1 + col2 FROM tab0 AS cor0 WHERE col1 * col0 IS NOT NULL
----
-11
-34
98

query I rowsort
SELECT ALL 92 - - + col1 FROM tab2 AS cor0
----
143
159
169

query II rowsort
SELECT DISTINCT - + col2 AS col2, col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT + + COUNT( 51 ) - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3130
SELECT + + COUNT ( 51 ) - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT 42 - - + ( - 46 ) + + - COUNT( * ) AS col0 FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-3131
SELECT 42 - - + ( - 46 ) + + - COUNT ( * ) AS col0 FROM tab2
----
-7

query II rowsort
SELECT - col1 + - + col1 - - 73, - col0 AS col0 FROM tab1
----
-21
-91
45
-51
63
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3133
SELECT 49 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3133
SELECT 49 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3134
SELECT DISTINCT + + col1 col1 FROM tab1 WHERE - CAST( - 7 AS DECIMAL ) > + - col1 AND NOT 8 IS NULL
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3134
SELECT DISTINCT + + col1 col1 FROM tab1 WHERE - CAST ( - 7 AS REAL ) > + - col1 AND NOT 8 IS NULL
----
14
47
5

query I rowsort
SELECT col2 * - - col2 + - + col0 AS col1 FROM tab2
----
1536
3289
483

query I rowsort
SELECT DISTINCT + col2 * + col2 + + col0 + - col1 FROM tab0
----
166
2143
9897

query I rowsort
SELECT ALL + ( - col0 ) * + 26 AS col1 FROM tab1
----
-1326
-2210
-2366

query III rowsort
SELECT * FROM tab2 WHERE col0 * col0 * col2 IS NULL
----

query II rowsort
SELECT DISTINCT 40, col2 / + - ( + + col2 ) FROM tab2 AS cor0 WHERE NULL < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 20 <> - + 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT ALL + MIN( DISTINCT - col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL + MIN ( DISTINCT - col2 ) AS col2 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT + SUM( + col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3142
SELECT + SUM ( + col2 ) AS col1 FROM tab0
----
156

query I rowsort
SELECT + col1 * - 80 FROM tab2
----
-4080
-5360
-6160

onlyif mysql # aggregate syntax: 
query II rowsort label-3144
SELECT 90 AS col1, + COUNT( * ) FROM tab1
----
90
3

skipif mysql # not compatible
query II rowsort label-3144
SELECT 90 AS col1, + COUNT ( * ) FROM tab1
----
90
3

query III rowsort
SELECT * FROM tab0 WHERE NOT 9 * + ( - col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3146
SELECT - + 46 * + CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3146
SELECT - + 46 * + CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col0 * - - col2 * + 40 AS col0, + 36 * col0 FROM tab2 AS cor0
----
-102400
2304
-174000
2700
-42320
1656

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3148
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND ( col2 ) + + - col1 + + col0 * 61 * + CAST( NULL AS SIGNED ) * col2 * + 86 * + 43
----

skipif mysql # not compatible
query III rowsort label-3148
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND ( col2 ) + + - col1 + + col0 * 61 * + CAST ( NULL AS INTEGER ) * col2 * + 86 * + 43
----

query I rowsort
SELECT 26 * - - 61 + col1 AS col2 FROM tab1
----
1591
1600
1633

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3150
SELECT DISTINCT + col1 + + CAST( - + 1 AS SIGNED ) * ( + 37 ) * - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT + col1 + + CAST ( - + 1 AS INTEGER ) * ( + 37 ) * - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3151
SELECT ALL - MIN( + 52 ) col2, - 99 AS col2 FROM tab2
----
-52
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3151
SELECT ALL - MIN ( + 52 ) col2, - 99 AS col2 FROM tab2
----
-52
-99

query I rowsort
SELECT - col0 * col2 * ( + 67 ) + - col2 AS col1 FROM tab2
----
-171560
-291508
-70909

query I rowsort
SELECT col2 + - col0 * + ( 26 ) FROM tab1
----
-1230
-2151
-2298

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT DISTINCT - COUNT( col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3154
SELECT DISTINCT - COUNT ( col1 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - - 82 * + col2 * - col2 * + col0 FROM tab0 AS cor0
----
-2717070
-713400
-77957154

query I rowsort
SELECT - 46 * + col2 AS col2 FROM tab1
----
-2714
-3128
-4416

onlyif mysql # aggregate syntax: 
query II rowsort label-3157
SELECT 45 col0, COUNT( ALL + 10 ) + + + 6 FROM tab0
----
45
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3157
SELECT 45 col0, COUNT ( ALL + 10 ) + + + 6 FROM tab0
----
45
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3158
SELECT col1 * + + 71 * + + CAST( NULL AS DECIMAL ) - - + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3158
SELECT col1 * + + 71 * + + CAST ( NULL AS REAL ) - - + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col1 + col0 + - 11 + col2 AS col0 FROM tab1 AS cor0
----
138
150
195

onlyif mysql # DIV for integer division: 
query I rowsort label-3160
SELECT DISTINCT + 92 * - + col1 DIV col1 * + - col2 AS col2 FROM tab0 AS cor0
----
4324
9108
920

skipif mysql # not compatible
query I rowsort label-3160
SELECT DISTINCT + 92 * - + col1 / col1 * + - col2 AS col2 FROM tab0 AS cor0
----
4324
9108
920

query I rowsort
SELECT ALL - - 1 - 14 FROM tab0 AS cor0
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT DISTINCT - COUNT( * ) - - - 47 AS col2 FROM tab2 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-3162
SELECT DISTINCT - COUNT ( * ) - - - 47 AS col2 FROM tab2 AS cor0
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-3163
SELECT DISTINCT - - 5 DIV + + col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3163
SELECT DISTINCT - - 5 / + + col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3164
SELECT ALL + - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL + - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3

query II rowsort
SELECT - 33 AS col1, + col0 AS col1 FROM tab1 AS cor0
----
-33
51
-33
85
-33
91

query II rowsort
SELECT col1 AS col2, col0 AS col2 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3167
SELECT DISTINCT col2 / - 86 - - ( - col2 ) * + + col2 * + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3167
SELECT DISTINCT col2 / - 86 - - ( - col2 ) * + + col2 * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query II rowsort
SELECT ALL 37 AS col0, col2 * + col1 * - col1 FROM tab0
----
37
-308367
37
-4410
37
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 31 BETWEEN 84 AND - 40 * + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 80 * + ( - col2 ) AS col0 FROM tab1
----
-4720
-5440
-7680

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) col1 FROM tab1 WHERE - ( - col2 ) - col0 IS NOT NULL
----
59
68
96

query I rowsort
SELECT ( - col2 ) * - - 48 + 34 AS col2 FROM tab1
----
-2798
-3230
-4574

query III rowsort
SELECT ALL * FROM tab0 WHERE 12 NOT BETWEEN - col0 AND + col2
----
87
21
10

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= - 26
----

query II rowsort
SELECT DISTINCT + - 1 AS col1, 98 FROM tab1 AS cor0
----
-1
98

query I rowsort
SELECT - 60 FROM tab0 AS cor0 WHERE NOT col1 / 27 * 9 <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 NOT IN ( 24, col1 + - - col1, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + + col2 IS NOT NULL
----

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT - col1 + col1 + + + col2 + + col0 AS col0 FROM tab2 WHERE NOT + ( ( + col1 ) ) IS NULL
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT + - COUNT( * ) col0 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-3182
SELECT + - COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3183
SELECT + col0 * + - 76 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3183
SELECT + col0 * + - 76 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN 12 - 92 + - - ( + + 29 ) AND 51
----
64
77
40
75
67
58

query II rowsort
SELECT col0 * + 51, + col1 + col0 AS col1 FROM tab1 cor0
----
2601
65
4335
90
4641
138

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col1 / col2 * 74
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + + 53, col0 col2 FROM tab0 AS cor0
----
4611
87
5141
97
795
15

query I rowsort
SELECT + - 11 AS col2 FROM tab1 AS cor0
----
-11
-11
-11

query II rowsort
SELECT - ( col1 ) AS col2, col0 * - col0 AS col0 FROM tab1 AS cor0
----
-14
-2601
-47
-8281
-5
-7225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 53 col2 FROM tab2 WHERE - - col1 + + col1 IS NOT NULL
----
53
53
53

query I rowsort
SELECT DISTINCT 43 + - 42 AS col0 FROM tab0
----
1

query I rowsort
SELECT ALL - + col0 FROM tab2 WHERE - col0 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT ALL col1 * + 7 AS col0 FROM tab1 AS cor0
----
329
35
98

query I rowsort
SELECT col0 + - + col2 AS col2 FROM tab2 AS cor0
----
17
23
24

query II rowsort
SELECT col0 + + - 23 * + ( col0 ), + 89 * 48 AS col2 FROM tab0 cor0
----
-1914
4272
-2134
4272
-330
4272

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT - 26 + + + COUNT( * ) FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3196
SELECT - 26 + + + COUNT ( * ) FROM tab1 AS cor0
----
-23

query I rowsort
SELECT DISTINCT - col2 * + - col1 * 66 FROM tab1 AS cor0
----
19470
210936
88704

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT + COUNT( * ) + - - MAX( - ( 15 ) ) AS col2 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3198
SELECT + COUNT ( * ) + - - MAX ( - ( 15 ) ) AS col2 FROM tab1 AS cor0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-3199
SELECT ALL + col2 DIV - 79 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3199
SELECT ALL + col2 / - 79 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT + 93 + + ( + col0 ) AS col1 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
144
178
184

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3201
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE 62 IS NULL
----

query I rowsort
SELECT ALL col1 + - + col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + 10 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT DISTINCT 38 - - + col2 AS col0 FROM tab2 AS cor0
----
61
78
96

onlyif mysql # aggregate syntax: 
query II rowsort label-3206
SELECT ALL - - 11 - - COUNT( * ) * 75 * + - 1 AS col1, - COUNT( * ) + - 0 FROM tab2 AS cor0
----
-214
-3

skipif mysql # not compatible
query II rowsort label-3206
SELECT ALL - - 11 - - COUNT ( * ) * 75 * + - 1 AS col1, - COUNT ( * ) + - 0 FROM tab2 AS cor0
----
-214
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= col2
----

query I rowsort
SELECT + 52 - + + 21 + + col1 FROM tab0 AS cor0
----
112
32
52

query I rowsort
SELECT col0 - - 9 * + ( ( - + col0 ) ) FROM tab2 AS cor0
----
-368
-512
-600

query I rowsort
SELECT DISTINCT - ( ( + col2 ) ) FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - 71 * - - col2 - - ( + col1 ) FROM tab1 AS cor0
----
-4184
-4781
-6802

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT + 80 * - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3212
SELECT + 80 * - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT - COUNT( ALL - 73 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3213
SELECT - COUNT ( ALL - 73 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3214
SELECT + CAST( NULL AS SIGNED ) * col2 / + 8 * - - 29 * + - 95 AS col0, 0 AS col0 FROM tab2
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-3214
SELECT + CAST ( NULL AS INTEGER ) * col2 / + 8 * - - 29 * + - 95 AS col0, 0 AS col0 FROM tab2
----
NULL
0
NULL
0
NULL
0

query I rowsort
SELECT DISTINCT - col2 * + 94 AS col1 FROM tab0
----
-4418
-9306
-940

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT 32 IS NULL )
----

query I rowsort
SELECT + 58 AS col2 FROM tab2 WHERE NOT ( ( NULL ) IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3218
SELECT COUNT( * ) DIV COUNT( * ) * + + 37, + MIN( ALL - 79 ) AS col0 FROM tab2
----
37
-79

skipif mysql # not compatible
query II rowsort label-3218
SELECT COUNT ( * ) / COUNT ( * ) * + + 37, + MIN ( ALL - 79 ) AS col0 FROM tab2
----
37
-79

query I rowsort
SELECT DISTINCT 54 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( + col0 * + col0, 0 + - - col0, - col2, - col1 )
----

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL - 80 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

onlyif mysql # aggregate syntax: 
query II rowsort label-3223
SELECT DISTINCT + COUNT( * ) AS col0, + COUNT( * ) AS col2 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-3223
SELECT DISTINCT + COUNT ( * ) AS col0, + COUNT ( * ) AS col2 FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3224
SELECT DISTINCT COUNT( * ) AS col2, + 77 FROM tab2 AS cor0
----
3
77

skipif mysql # not compatible
query II rowsort label-3224
SELECT DISTINCT COUNT ( * ) AS col2, + 77 FROM tab2 AS cor0
----
3
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT ALL - + MIN( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3225
SELECT ALL - + MIN ( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 92 * + - 26 * - - col0 + col1 + + col2 FROM tab0 AS cor0
----
-208073
-231924
-35752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 5 col2 FROM tab1 AS cor0
----
-5
-5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 94 col2 FROM tab1 cor0
----
108
141
99

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE - 2 * - - 79 >= col1
----

query I rowsort
SELECT col2 * - col0 + - col2 FROM tab2
----
-1081
-2600
-4408

query III rowsort
SELECT * FROM tab1 WHERE NULL < 8
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3233
SELECT ALL 52 + - - MIN( + + col2 ) DIV - + CAST( + - SUM( ALL col0 ) AS SIGNED ) FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-3233
SELECT ALL 52 + - - MIN ( + + col2 ) / - + CAST ( + - SUM ( ALL col0 ) AS INTEGER ) FROM tab0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3234
SELECT - - 76 * - - col1 FROM tab0 AS cor0 WHERE + col2 * 35 + - + col0 + - CAST( NULL AS SIGNED ) + - col0 IS NULL
----
1596
6156
76

skipif mysql # not compatible
query I rowsort label-3234
SELECT - - 76 * - - col1 FROM tab0 AS cor0 WHERE + col2 * 35 + - + col0 + - CAST ( NULL AS INTEGER ) + - col0 IS NULL
----
1596
6156
76

query I rowsort
SELECT + + 32 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
32
32
32

onlyif mysql # DIV for integer division: 
query I rowsort label-3236
SELECT + col0 DIV + col2 + ( + col2 ) AS col1 FROM tab2 cor0
----
25
41
59

skipif mysql # not compatible
query I rowsort label-3236
SELECT + col0 / + col2 + ( + col2 ) AS col1 FROM tab2 cor0
----
25
41
59

query I rowsort
SELECT - 41 FROM tab0 WHERE + + 83 + 83 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT DISTINCT + COUNT( * ) + - 66 AS col1 FROM tab1 WHERE NULL <> ( NULL )
----
-66

skipif mysql # not compatible
query I rowsort label-3238
SELECT DISTINCT + COUNT ( * ) + - 66 AS col1 FROM tab1 WHERE NULL <> ( NULL )
----
-66

query I rowsort
SELECT DISTINCT + 57 + col2 AS col1 FROM tab1 AS cor0
----
116
125
153

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT ALL - + 40 * + 77 * + MIN( col1 ) - + 16 FROM tab1 AS cor0
----
-15416

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL - + 40 * + 77 * + MIN ( col1 ) - + 16 FROM tab1 AS cor0
----
-15416

query II rowsort
SELECT 97 - 33, - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
64
-23
64
-40
64
-58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = col1 * - col1
----

query II rowsort
SELECT - 7, col1 AS col0 FROM tab0 AS cor0
----
-7
1
-7
21
-7
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3244
SELECT ALL - + col1 DIV - - col0 AS col1 FROM tab0 cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL - + col1 / - - col0 AS col1 FROM tab0 cor0
----
-5
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT MAX( ALL - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3245
SELECT MAX ( ALL - col2 ) FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT + - COUNT( ALL + + col0 ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3246
SELECT + - COUNT ( ALL + + col0 ) col0 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3247
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - 94 NOT IN ( + CAST( NULL AS SIGNED ), + 76 )
----
0

skipif mysql # not compatible
query I rowsort label-3247
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - 94 NOT IN ( + CAST ( NULL AS INTEGER ), + 76 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3248
SELECT ALL + CAST( + - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL + CAST ( + - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT - ( - + col2 ) AS col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT - + MAX( ALL + 88 ) FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-3251
SELECT - + MAX ( ALL + 88 ) FROM tab1 AS cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT - + MIN( + col0 ) col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3252
SELECT - + MIN ( + col0 ) col0 FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3253
SELECT ALL + ( + CAST( + + ( - + CAST( NULL AS SIGNED ) ) AS SIGNED ) ) 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-3253
SELECT ALL + ( + CAST ( + + ( - + CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT DISTINCT + MIN( - 36 ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-3254
SELECT DISTINCT + MIN ( - 36 ) FROM tab0
----
-36

query I rowsort
SELECT DISTINCT 89 * + 83 FROM tab2
----
7387

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT DISTINCT COUNT( DISTINCT - col2 ) * + + 91 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-3256
SELECT DISTINCT COUNT ( DISTINCT - col2 ) * + + 91 FROM tab1
----
273

onlyif mysql # DIV for integer division: 
query I rowsort label-3257
SELECT DISTINCT + col2 DIV - + col0 AS col1 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-3257
SELECT DISTINCT + col2 / - + col0 AS col1 FROM tab0
----
-1
-3
0

query I rowsort
SELECT ALL col2 * - ( + - col2 ) AS col0 FROM tab1
----
3481
4624
9216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3259
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3259
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT ALL MIN( - - col1 ) col0 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3260
SELECT ALL MIN ( - - col1 ) col0 FROM tab2
----
51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT 43 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT 12 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT DISTINCT - 47 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3265
SELECT + CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3265
SELECT + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT - COUNT( ALL - + 1 ) * + 50 AS col0 FROM tab2 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-3266
SELECT - COUNT ( ALL - + 1 ) * + 50 AS col0 FROM tab2 AS cor0
----
-150

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3268
SELECT ( + + ( - col1 ) ) DIV - + col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3268
SELECT ( + + ( - col1 ) ) / - + col2 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT COUNT( * ) * + 25 * + COUNT( DISTINCT - - col1 ) FROM tab1 cor0
----
225

skipif mysql # not compatible
query I rowsort label-3269
SELECT COUNT ( * ) * + 25 * + COUNT ( DISTINCT - - col1 ) FROM tab1 cor0
----
225

query I rowsort
SELECT + col1 * - + col0 * - 36 + + col0 FROM tab0 AS cor0
----
3589
43755
65859

query I rowsort
SELECT ALL + col0 + 93 FROM tab0 WHERE ( NULL IS NULL )
----
108
180
190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3272
SELECT ALL 21 * + + col0 * + CAST( NULL AS SIGNED ) * + - 43 + + + ( + col2 ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL 21 * + + col0 * + CAST ( NULL AS INTEGER ) * + - 43 + + + ( + col2 ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT COUNT( DISTINCT + 83 ) * COUNT( * ) - - 54 AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND + 35 * col0
----
54

skipif mysql # not compatible
query I rowsort label-3273
SELECT COUNT ( DISTINCT + 83 ) * COUNT ( * ) - - 54 AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND + 35 * col0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3274
SELECT + col2 * - CAST( NULL AS SIGNED ) * + CAST( 15 AS SIGNED ) * + col2 + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3274
SELECT + col2 * - CAST ( NULL AS INTEGER ) * + CAST ( 15 AS INTEGER ) * + col2 + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 99 AS col2 FROM tab1 WHERE - + col1 IS NOT NULL
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT ALL - MAX( col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL - MAX ( col1 ) FROM tab0
----
-81

query II rowsort
SELECT DISTINCT 58 AS col1, col1 * - + col0 * - col0 AS col1 FROM tab2 AS cor0
----
58
107916
58
315392
58
376875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 18 col2 FROM tab1 AS cor0 WHERE NOT ( 64 * 53 ) IS NULL
----
18
18
18

query II rowsort
SELECT DISTINCT + col0, - col2 * - - col1 - - - 57 FROM tab1 AS cor0
----
51
-1401
85
-352
91
-3253

query I rowsort
SELECT DISTINCT - 40 AS col2 FROM tab1 cor0
----
-40

query I rowsort
SELECT ALL - 91 * - col1 FROM tab0 AS cor0
----
1911
7371
91

query III rowsort
SELECT * FROM tab2 WHERE NOT + 56 + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * - 92 FROM tab1
----
5428
6256
8832

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT COUNT( DISTINCT - 11 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3284
SELECT COUNT ( DISTINCT - 11 ) AS col1 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT MAX( - - 74 ) FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-3285
SELECT MAX ( - - 74 ) FROM tab1
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3286
SELECT + 86 * - COUNT( ALL CAST( - 6 AS SIGNED ) ) FROM tab1
----
-258

skipif mysql # not compatible
query I rowsort label-3286
SELECT + 86 * - COUNT ( ALL CAST ( - 6 AS INTEGER ) ) FROM tab1
----
-258

onlyif mysql # aggregate syntax: 
query II rowsort label-3287
SELECT COUNT( * ) * + SUM( col0 ) AS col0, - COUNT( * ) * - + 40 col2 FROM tab2
----
555
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3287
SELECT COUNT ( * ) * + SUM ( col0 ) AS col0, - COUNT ( * ) * - + 40 col2 FROM tab2
----
555
120

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab1 WHERE NOT ( col0 ) IS NULL OR NOT 95 + + col0 + col2 * + - 59 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT - 52 * - col0 * col0 AS col0 FROM tab2
----
110032
212992
292500

onlyif mysql # DIV for integer division: 
query I rowsort label-3290
SELECT ALL col1 DIV + + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL col1 / + + col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3291
SELECT + COUNT( * ) * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3291
SELECT + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3292
SELECT - 24 * COUNT( * ) DIV - + 44 col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3292
SELECT - 24 * COUNT ( * ) / - + 44 col1 FROM tab0 AS cor0
----
1

query II rowsort
SELECT ALL - 2 AS col0, + ( - - 77 ) FROM tab2 AS cor0
----
-2
77
-2
77
-2
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3294
SELECT * FROM tab0 WHERE NOT + col2 + + col0 * + 52 - - - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3294
SELECT * FROM tab0 WHERE NOT + col2 + + col0 * + 52 - - - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT DISTINCT - + COUNT( * ) col0 FROM tab2 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-3295
SELECT DISTINCT - + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 col1 FROM tab2 WHERE - ( + col0 ) IS NOT NULL
----
3
3
3

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT ALL - 73 AS col0 FROM tab0 AS cor0
----
-73
-73
-73

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NULL >= 17
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3301
SELECT - + 2 + - col2 DIV - + col0 FROM tab2 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3301
SELECT - + 2 + - col2 / - + col0 FROM tab2 AS cor0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT 51 AS col2 FROM tab2 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT DISTINCT - + COUNT( DISTINCT + col0 ) * + ( 19 ) FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-3303
SELECT DISTINCT - + COUNT ( DISTINCT + col0 ) * + ( 19 ) FROM tab1 AS cor0
----
-57

query I rowsort
SELECT ALL + AVG ( - col1 ) + 3 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - col0 * + + col2 * - ( - + col1 ) + + col0 + - 17 * + col2 * - + 17 AS col1 FROM tab1 AS cor0
----
-271093
-40749
-7939

query I rowsort
SELECT DISTINCT - + col2 + + col1 * 90 AS col2 FROM tab0 AS cor0 WHERE col1 BETWEEN col1 * - 35 + 66 AND + 4
----

query I rowsort
SELECT + + col1 + col2 * + 88 AS col1 FROM tab0 AS cor0
----
4217
8713
901

query I rowsort
SELECT 63 + + + 81 FROM tab0
----
144
144
144

query II rowsort
SELECT col0 + 91 + + - 77 AS col0, col2 + col0 + col1 FROM tab2
----
60
120
78
181
89
200

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT DISTINCT MAX( DISTINCT - col2 ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT MAX ( DISTINCT - col2 ) AS col2 FROM tab2
----
-23

query III rowsort
SELECT * FROM tab1 WHERE ( - + col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 + + col0 * 31 FROM tab1
----
1632
2720
2912

query I rowsort
SELECT DISTINCT + 77 FROM tab1 WHERE 66 IS NOT NULL
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT ALL + 81 + - COUNT( * ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL + 81 + - COUNT ( * ) FROM tab0
----
78

query I rowsort
SELECT DISTINCT 70 * col1 + + + col1 AS col1 FROM tab0
----
1491
5751
71

query I rowsort
SELECT DISTINCT col1 - - + col0 AS col2 FROM tab2
----
141
142
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + + 82 * + 74 IS NULL
----

query I rowsort
SELECT - 36 - + col1 FROM tab0 AS cor0
----
-117
-37
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT ALL COUNT( * ) + 92 FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-3319
SELECT ALL COUNT ( * ) + 92 FROM tab1 AS cor0
----
95

query I rowsort
SELECT - col1 - + + col0 AS col0 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT + - 24 - - COUNT( * ) FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-3321
SELECT + - 24 - - COUNT ( * ) FROM tab1 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT ALL + + MAX( + ( - - col1 ) ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3322
SELECT ALL + + MAX ( + ( - - col1 ) ) AS col1 FROM tab1 AS cor0
----
47

query II rowsort
SELECT DISTINCT col1, + col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3324
SELECT - 0 col0, - 20 + + 83 + + MAX( CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3324
SELECT - 0 col0, - 20 + + 83 + + MAX ( CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
0
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= col1
----

query II rowsort
SELECT DISTINCT 50 * - + col0 AS col0, col0 * - + col0 FROM tab2
----
-2300
-2116
-3200
-4096
-3750
-5625

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 / + - 57 IS NOT NULL
----

query I rowsort
SELECT + col1 * col2 * + - 63 * col0 * - + 77 + col0 + 73 * + col1 FROM tab0 AS cor0
----
277022283
46584323
88629390

query I rowsort
SELECT DISTINCT - 39 * col1 AS col0 FROM tab0 AS cor0
----
-3159
-39
-819

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 = 78 + - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 24 AS col0, + col0 - col2 col0 FROM tab1
----
-24
-45
-24
23
-24
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 78 * - ( - col0 ) col0, 8 col0 FROM tab2 AS cor0
----
3588
8
4992
8
5850
8

query I rowsort
SELECT ALL col0 * 54 FROM tab0 AS cor0
----
4698
5238
810

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT DISTINCT + - MIN( DISTINCT col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT - col2 <= + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-3334
SELECT DISTINCT + - MIN ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT - col2 <= + 91
----
NULL

query I rowsort
SELECT + - col1 * - 1 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 93 < + col0 )
----

query I rowsort
SELECT ALL - + ( - + 52 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col0 * - 76 + + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT - COUNT( * ) * + + 72 FROM tab0 WHERE 7 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3339
SELECT - COUNT ( * ) * + + 72 FROM tab0 WHERE 7 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3340
SELECT ( + col2 ) - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT ( + col2 ) - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT SUM( + 15 ) + - COUNT( ALL - 70 ) + - - 52 * - + COUNT( ALL + 91 ) FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-3341
SELECT SUM ( + 15 ) + - COUNT ( ALL - 70 ) + - - 52 * - + COUNT ( ALL + 91 ) FROM tab2
----
-114

query I rowsort
SELECT DISTINCT - + col0 + col1 AS col0 FROM tab1 WHERE NULL BETWEEN col2 AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3343
SELECT col1 DIV + 80 + + - 93 FROM tab1
----
-93
-93
-93

skipif mysql # not compatible
query I rowsort label-3343
SELECT col1 / + 80 + + - 93 FROM tab1
----
-93
-93
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-3344
SELECT DISTINCT col1 + + col1 + + col2 DIV + + col1 * - col1 FROM tab2
----
102
134
154

skipif mysql # not compatible
query I rowsort label-3344
SELECT DISTINCT col1 + + col1 + + col2 / + + col1 * - col1 FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT ( - + COUNT( * ) ) + + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3345
SELECT ( - + COUNT ( * ) ) + + COUNT ( * ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE - col2 <> - 36
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT 24 + - COUNT( * ) AS col0 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-3347
SELECT 24 + - COUNT ( * ) AS col0 FROM tab0
----
21

query I rowsort
SELECT ALL - col1 * + col2 - 80 * + + col0 AS col1 FROM tab0
----
-5007
-7170
-7859

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 6 / 97 = + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT DISTINCT - ( MIN( ALL col2 ) ) FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3350
SELECT DISTINCT - ( MIN ( ALL col2 ) ) FROM tab0 cor0
----
-10

query I rowsort
SELECT ALL + - col1 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT ALL COUNT( * ) col2 FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3352
SELECT ALL COUNT ( * ) col2 FROM tab0, tab0 AS cor0
----
9

query II rowsort
SELECT - 33 AS col1, - 45 AS col0 FROM tab1 cor0
----
-33
-45
-33
-45
-33
-45

query I rowsort
SELECT - - 71 * + ( - 88 ) * col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 * + + col2 + - col0 = + - col1
----
-318648
-531080
-568568

query I rowsort
SELECT DISTINCT col2 * + - col1 AS col1 FROM tab0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3356
SELECT ALL + ( - 40 ) AS col2, + CAST( - col2 AS SIGNED ) AS col1 FROM tab0
----
-40
-10
-40
-47
-40
-99

skipif mysql # not compatible
query II rowsort label-3356
SELECT ALL + ( - 40 ) AS col2, + CAST ( - col2 AS INTEGER ) AS col1 FROM tab0
----
-40
-10
-40
-47
-40
-99

query I rowsort
SELECT col0 + 53 + - col2 FROM tab0
----
130
21
51

query I rowsort
SELECT DISTINCT + col2 * - 56 * - - col0 AS col1 FROM tab2
----
-143360
-243600
-59248

query I rowsort
SELECT DISTINCT + + col1 FROM tab0 AS cor0 WHERE NOT 6 >= col1
----
21
81

query I rowsort
SELECT DISTINCT col2 * 34 * - - ( + 63 ) FROM tab2 AS cor0
----
124236
49266
85680

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT ALL + COUNT( ALL - + col2 ) + - + 96 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL + COUNT ( ALL - + col2 ) + - + 96 FROM tab0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3362
SELECT - ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3362
SELECT - ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab2 WHERE + + 30 > + ( + 37 )
----

query I rowsort
SELECT col0 + + + 66 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) = col1
----

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL - col2 * 19 FROM tab2 AS cor0
----
-1102
-437
-760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 + + 60 col1, col1 AS col1 FROM tab0 AS cor0
----
147
21
157
1
75
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3369
SELECT DISTINCT - - 36 DIV + COUNT( * ) AS col1 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-3369
SELECT DISTINCT - - 36 / + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 + - + col0 col1, 92 * - - col0 AS col1 FROM tab1 AS cor0
----
0
4692
0
7820
0
8372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3371
SELECT + COUNT( * ) * - CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3371
SELECT + COUNT ( * ) * - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT 63 * - - 7 FROM tab1
----
441
441
441

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT ALL MIN( - 11 ) AS col1 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL MIN ( - 11 ) AS col1 FROM tab2
----
-11

query I rowsort
SELECT - col1 + - col1 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 53 * + col2 * col2 * - 87 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 - - col2 + + 7 * + col2 AS col1 FROM tab2
----
207
360
522

onlyif mysql # DIV for integer division: 
query I rowsort label-3377
SELECT col1 DIV 58 DIV - 49 * - 89 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3377
SELECT col1 / 58 / - 49 * - 89 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT ALL + + MIN( + 44 ) AS col0 FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-3379
SELECT ALL + + MIN ( + 44 ) AS col0 FROM tab1 AS cor0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT - - MAX( + - 75 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3380
SELECT - - MAX ( + - 75 ) FROM tab2 AS cor0
----
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3381
SELECT - ( - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3381
SELECT - ( - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + - col2 AS col2, col2 AS col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT DISTINCT SUM( col2 ) + + COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
159

skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT SUM ( col2 ) + + COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
159

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( + col0 + 42 * 46 )
----

query I rowsort
SELECT ALL - ( 70 ) FROM tab2
----
-70
-70
-70

query I rowsort
SELECT + col0 * col2 - - 11 FROM tab0
----
716
881
9614

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 27 NOT IN ( + 95 )
----

query I rowsort
SELECT + 4 - + ( col0 ) AS col2 FROM tab0 WHERE col0 + 7 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT MIN( ALL col0 ) + + 74 * COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3389
SELECT MIN ( ALL col0 ) + + 74 * COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab0 WHERE ( ( col2 ) * col0 - - col1 * 22 ) IN ( 78 - + ( - 78 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT ALL MIN( ALL - 62 ) FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL MIN ( ALL - 62 ) FROM tab0
----
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab1 WHERE NULL = - 40
----

query I rowsort
SELECT ALL + col1 * col2 + ( col1 + ( 10 ) ) AS col0 FROM tab2
----
1234
3167
3963

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * col0 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 col0 FROM tab0
----
-17
-17
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3396
SELECT DISTINCT 45 AS col2 FROM tab0 WHERE NULL BETWEEN CAST( NULL AS SIGNED ) + - 95 AND col2 * ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-3396
SELECT DISTINCT 45 AS col2 FROM tab0 WHERE NULL BETWEEN CAST ( NULL AS INTEGER ) + - 95 AND col2 * ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE NULL BETWEEN - col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3397
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE NULL BETWEEN - col1 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT ALL COUNT( * ) * - COUNT( * ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3398
SELECT ALL COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT + 65 - - COUNT( DISTINCT - col1 ) FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-3399
SELECT + 65 - - COUNT ( DISTINCT - col1 ) FROM tab1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3400
SELECT ALL + 80 * - CAST( - col0 AS SIGNED ) AS col1 FROM tab0
----
1200
6960
7760

skipif mysql # not compatible
query I rowsort label-3400
SELECT ALL + 80 * - CAST ( - col0 AS INTEGER ) AS col1 FROM tab0
----
1200
6960
7760

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND - col0 + 13
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3402
SELECT ALL * FROM tab0 WHERE NOT ( + col1 * CAST( ( - col0 ) * - 59 AS SIGNED ) ) = ( 23 + col1 / 18 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3402
SELECT ALL * FROM tab0 WHERE NOT ( + col1 * CAST ( ( - col0 ) * - 59 AS INTEGER ) ) = ( 23 + col1 / 18 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 31 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( 56 + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE - col2 IN ( col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN + 65 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 + 63 ) > ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 NOT IN ( - 40 / - col1 + col2 * 73 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT + COUNT( * ) * COUNT( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-3408
SELECT + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT COUNT( * ) * + 16 FROM tab0 WHERE ( col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3409
SELECT COUNT ( * ) * + 16 FROM tab0 WHERE ( col2 ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 59 col0 FROM tab0 AS cor0
----
-5133
-5723
-885

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT - 57 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-3411
SELECT - 57 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 0 ) col1 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( 41 / 46 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 12 * + col0 + - ( col2 - + col2 ) col0 FROM tab1 AS cor0
----
1020
1092
612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3415
SELECT DISTINCT 47 * - col0 + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-2411
-4000
-4324

skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT 47 * - col0 + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-2411
-4000
-4324

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( col1 ) AND NULL
----

query I rowsort
SELECT ALL + 20 - + 42 FROM tab0 AS cor0
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT MIN( - col0 ) col1 FROM tab2 cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3418
SELECT MIN ( - col0 ) col1 FROM tab2 cor0
----
-75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN 99 AND - ( col2 ) + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3420
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3420
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 ) - col2 col2 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT ALL - 55 AS col1 FROM tab1 cor0
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT COUNT( * ) - - 17 col0 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3423
SELECT COUNT ( * ) - - 17 col0 FROM tab1 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT ALL - - COUNT( 69 ) * 89 - + 30 FROM tab2 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL - - COUNT ( 69 ) * 89 - + 30 FROM tab2 AS cor0
----
237

query I rowsort
SELECT ALL + - 3 AS col2 FROM tab1 AS cor0
----
-3
-3
-3

query I rowsort
SELECT col1 * - 81 AS col2 FROM tab1 AS cor0 WHERE ( 67 ) IS NOT NULL
----
-1134
-3807
-405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col1 col2 FROM tab0 WHERE NOT ( NULL ) >= ( col1 * - col2 )
----

query I rowsort
SELECT ( col2 ) + - ( - 20 ) AS col2 FROM tab1
----
116
79
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT 32 * COUNT( * ) * - 13 AS col1 FROM tab2
----
-1248

skipif mysql # not compatible
query I rowsort label-3429
SELECT 32 * COUNT ( * ) * - 13 AS col1 FROM tab2
----
-1248

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT MIN( ALL - - col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-3430
SELECT MIN ( ALL - - col0 ) FROM tab1
----
51

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT ( - col0 + - col2 ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 10 col2 FROM tab1
----
-140
-470
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-3433
SELECT DISTINCT - col2 DIV - 90 AS col2 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-3433
SELECT DISTINCT - col2 / - 90 AS col2 FROM tab0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3434
SELECT ALL CAST( - - col1 AS SIGNED ) * + 20 AS col2 FROM tab1
----
100
280
940

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL CAST ( - - col1 AS INTEGER ) * + 20 AS col2 FROM tab1
----
100
280
940

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT MIN( - - col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3435
SELECT MIN ( - - col2 ) FROM tab1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3436
SELECT DISTINCT + COUNT( * ) DIV 30 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT + COUNT ( * ) / 30 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3437
SELECT - 60 DIV + col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3437
SELECT - 60 / + col0 FROM tab2
----
-1
0
0

query I rowsort
SELECT ALL ( 56 ) FROM tab0 AS cor0
----
56
56
56

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE col0 + + 32 / + ( + col0 ) IS NULL AND ( + ( 87 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT MIN( 9 ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3440
SELECT MIN ( 9 ) AS col1 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT 70 * + MIN( - - col2 ) col2 FROM tab2
----
1610

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3441
SELECT 70 * + MIN ( - - col2 ) col2 FROM tab2
----
1610

query I rowsort
SELECT ALL col1 * - + 50 * - 57 FROM tab0
----
230850
2850
59850

query I rowsort
SELECT 57 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3444
SELECT ALL + CAST( + 87 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( + 36 )
----

skipif mysql # not compatible
query I rowsort label-3444
SELECT ALL + CAST ( + 87 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( + 36 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3445
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 29 * + col2 BETWEEN + CAST( NULL AS SIGNED ) * col2 AND 72
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3445
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 29 * + col2 BETWEEN + CAST ( NULL AS INTEGER ) * col2 AND 72
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 - + col0 + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3447
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, + col2 AS col0 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-3447
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, + col2 AS col0 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3448
SELECT DISTINCT - CAST( + 23 AS SIGNED ) FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3448
SELECT DISTINCT - CAST ( + 23 AS INTEGER ) FROM tab1 AS cor0
----
-23

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - ( col1 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 48 + + - col1 col2 FROM tab0 AS cor0
----
-33
27
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT MIN( - - 27 ) + - 39 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3451
SELECT MIN ( - - 27 ) + - 39 FROM tab1 AS cor0
----
-12

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT MAX( col0 ) FROM tab2 AS cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3453
SELECT MAX ( col0 ) FROM tab2 AS cor0 WHERE NULL < NULL
----
NULL

query I rowsort
SELECT ALL + col0 * - + 98 * - col1 FROM tab0
----
119070
179046
9506

query I rowsort
SELECT col0 + - + col2 AS col2 FROM tab2
----
17
23
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + + col1 * - col1 col2 FROM tab1
----
-2277
-292
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 * + 41 + col1 * - col1 col2 FROM tab1
----
2018
2189
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT MAX( - - col1 ) + + - 71 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3458
SELECT MAX ( - - col1 ) + + - 71 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT ALL COUNT( * ) * - COUNT( * ) col2 FROM tab0 WHERE + col2 NOT IN ( 18 )
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3459
SELECT ALL COUNT ( * ) * - COUNT ( * ) col2 FROM tab0 WHERE + col2 NOT IN ( 18 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT ALL - 92 + + + MAX( 87 ) + - COUNT( * ) FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL - 92 + + + MAX ( 87 ) + - COUNT ( * ) FROM tab1
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3461
SELECT - col2 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3461
SELECT - col2 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col1 + - - col0, + col2 AS col2 FROM tab0
----
108
10
96
47
98
99

query II rowsort
SELECT + col0 + + 26 AS col0, col0 * 22 AS col1 FROM tab2
----
101
1650
72
1012
90
1408

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 NOT BETWEEN + - col0 AND NULL
----

query I rowsort
SELECT ALL - col2 - - col1 * + ( col2 ) AS col0 FROM tab1 AS cor0
----
1248
236
3128

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + - col1 ) NOT IN ( + 61 * 10 + + col1 * col1 )
----

query I rowsort
SELECT DISTINCT 51 FROM tab2 cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3468
SELECT DISTINCT col2 - - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT col2 - - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
100
128
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab0 AS cor0 WHERE - ( + col1 ) / - + col1 - - col0 = ( col1 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 63 = NULL
----

query I rowsort
SELECT - 66 - - col2 FROM tab0
----
-19
-56
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3472
SELECT DISTINCT CAST( + - COUNT( - 14 ) AS SIGNED ) + 27 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-3472
SELECT DISTINCT CAST ( + - COUNT ( - 14 ) AS INTEGER ) + 27 FROM tab2
----
24

query I rowsort
SELECT DISTINCT - 13 + 4 AS col2 FROM tab1
----
-9

query I rowsort
SELECT 26 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT DISTINCT + 31 * + col2 + + 35 - + - ( + 94 ) FROM tab2 cor0
----
1369
1927
842

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 38 IS NULL
----

query I rowsort
SELECT + col0 * col0 + col0 AS col0 FROM tab2 AS cor0
----
2162
4160
5700

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT - + MAX( DISTINCT + col2 ) FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3478
SELECT - + MAX ( DISTINCT + col2 ) FROM tab1 cor0
----
-96

query I rowsort
SELECT - ( - - 26 ) FROM tab1 AS cor0
----
-26
-26
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-3480
SELECT col2 DIV 61 DIV - 90 - - col0 * + col1 * - 48 FROM tab1 AS cor0
----
-20400
-205296
-34272

skipif mysql # not compatible
query I rowsort label-3480
SELECT col2 / 61 / - 90 - - col0 * + col1 * - 48 FROM tab1 AS cor0
----
-20400
-205296
-34272

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT DISTINCT + MAX( DISTINCT - - col2 ) * - COUNT( DISTINCT + 55 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3481
SELECT DISTINCT + MAX ( DISTINCT - - col2 ) * - COUNT ( DISTINCT + 55 ) FROM tab1
----
-96

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 BETWEEN - 97 * col0 AND col2 )
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE - + col1 NOT IN ( col1 )
----
1
21
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3484
SELECT + 56 DIV + 62 * - COUNT( * ) + + 52 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-3484
SELECT + 56 / + 62 * - COUNT ( * ) + + 52 FROM tab0 AS cor0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3485
SELECT - + CAST( NULL AS SIGNED ), + ( + + COUNT( * ) ) + COUNT( - 43 ) + - 9 AS col0 FROM tab0 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-3485
SELECT - + CAST ( NULL AS INTEGER ), + ( + + COUNT ( * ) ) + COUNT ( - 43 ) + - 9 AS col0 FROM tab0 AS cor0
----
NULL
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - + col2 - - col2 AND + col2 / + col0 + col2 + - col2 / + 43
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 53 + + + 40 <> + + 36 / - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT ALL ( - - MAX( - 18 ) ) * + - MAX( + col0 ) FROM tab1
----
1638

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL ( - - MAX ( - 18 ) ) * + - MAX ( + col0 ) FROM tab1
----
1638

query I rowsort
SELECT DISTINCT 92 + - - col0 + + col0 FROM tab0
----
122
266
286

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT 39 + + COUNT( * ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-3490
SELECT 39 + + COUNT ( * ) FROM tab2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT ( - - COUNT( * ) ) * MIN( ALL - col1 ) FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-3491
SELECT ( - - COUNT ( * ) ) * MIN ( ALL - col1 ) FROM tab0
----
-243

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * + 86 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3493
SELECT + CAST( NULL AS SIGNED ) * - 71 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3493
SELECT + CAST ( NULL AS INTEGER ) * - 71 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT + MAX( - - 0 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3494
SELECT + MAX ( - - 0 ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3495
SELECT DISTINCT - - CAST( - ( + col2 ) AS SIGNED ) * - col2 * + col1 AS col0 FROM tab2 AS cor0
----
123200
225388
26979

skipif mysql # not compatible
query I rowsort label-3495
SELECT DISTINCT - - CAST ( - ( + col2 ) AS INTEGER ) * - col2 * + col1 AS col0 FROM tab2 AS cor0
----
123200
225388
26979

onlyif mysql # DIV for integer division: 
query I rowsort label-3496
SELECT - + col0 DIV + col2 col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3496
SELECT - + col0 / + col2 col2 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL col2 * + col1 * + col2 FROM tab1 AS cor0
----
129024
17405
217328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3498
SELECT ALL COUNT( * ) DIV + + COUNT( * ) + 19 AS col1 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL COUNT ( * ) / + + COUNT ( * ) + 19 AS col1 FROM tab0
----
20

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3499
SELECT * FROM tab2 WHERE NULL IN ( CAST( NULL AS DECIMAL ) - + + col0 )
----

skipif mysql # not compatible
query III rowsort label-3499
SELECT * FROM tab2 WHERE NULL IN ( CAST ( NULL AS REAL ) - + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT + + 97 + - 89 - - - COUNT( + + col0 ) * + + COUNT( * ) * 90 FROM tab1 WHERE + 17 IS NULL
----
8

skipif mysql # not compatible
query I rowsort label-3500
SELECT + + 97 + - 89 - - - COUNT ( + + col0 ) * + + COUNT ( * ) * 90 FROM tab1 WHERE + 17 IS NULL
----
8

query I rowsort
SELECT + col0 + 2 AS col1 FROM tab2
----
48
66
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3502
SELECT ALL COUNT( * ) * + - 96 DIV - 46 + - 28 + SUM( DISTINCT - 41 ) AS col2 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-3502
SELECT ALL COUNT ( * ) * + - 96 / - 46 + - 28 + SUM ( DISTINCT - 41 ) AS col2 FROM tab0
----
-63

query I rowsort
SELECT - - 9 * - 24 - col1 AS col2 FROM tab2 WHERE - 92 IS NOT NULL
----
-267
-283
-293

query I rowsort
SELECT - - 12 * - 62 * - col2 + col0 AS col0 FROM tab1 AS cor0
----
43981
50683
71475

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 * - + 6 = + col0 AND - col1 IS NULL
----

query I rowsort
SELECT col1 + - col2 + + 71 FROM tab2 AS cor0
----
108
80
99

query I rowsort
SELECT DISTINCT + 43 FROM tab0 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT - 39 FROM tab2, tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col1 * - 30 + + + 15 FROM tab2
----
-1515
-1995
-2295

query I rowsort
SELECT - 49 * + 62 AS col2 FROM tab0 cor0
----
-3038
-3038
-3038

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3511
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= + 29 + CAST( + + 77 AS DECIMAL ) * - 40 + - - col1 * col2
----

skipif mysql # not compatible
query III rowsort label-3511
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= + 29 + CAST ( + + 77 AS REAL ) * - 40 + - - col1 * col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 / + + col2 <> + 87 * - 30 + + 98 + + 73 + + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3513
SELECT - MIN( DISTINCT + - 36 ) * - COUNT( * ) + + + CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE NOT NULL = - 92 * + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3513
SELECT - MIN ( DISTINCT + - 36 ) * - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE NOT NULL = - 92 * + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT DISTINCT - 63 * + - 35 - - + COUNT( * ) FROM tab0 AS cor0
----
2208

skipif mysql # not compatible
query I rowsort label-3514
SELECT DISTINCT - 63 * + - 35 - - + COUNT ( * ) FROM tab0 AS cor0
----
2208

query I rowsort
SELECT + ( + ( + - 47 ) ) FROM tab1
----
-47
-47
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3516
SELECT - CAST( 14 AS SIGNED ) * + col0 AS col1 FROM tab2
----
-1050
-644
-896

skipif mysql # not compatible
query I rowsort label-3516
SELECT - CAST ( 14 AS INTEGER ) * + col0 AS col1 FROM tab2
----
-1050
-644
-896

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3517
SELECT ALL COUNT( * ) * - COUNT( * ) DIV COUNT( 77 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3517
SELECT ALL COUNT ( * ) * - COUNT ( * ) / COUNT ( 77 ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + - col0 AS col1 FROM tab1 WHERE NOT - - 30 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT DISTINCT - COUNT( * ) * - 78 * 42 FROM tab2
----
9828

skipif mysql # not compatible
query I rowsort label-3519
SELECT DISTINCT - COUNT ( * ) * - 78 * 42 FROM tab2
----
9828

query I rowsort
SELECT + 88 * 28 AS col2 FROM tab1
----
2464
2464
2464

query I rowsort
SELECT + ( - 43 ) FROM tab2
----
-43
-43
-43

query I rowsort
SELECT - col2 / - col1 + - - 14 + - 55 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col1 FROM tab2 WHERE NOT - col0 = NULL
----

query I rowsort
SELECT ALL - ( + 10 ) AS col0 FROM tab2
----
-10
-10
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3525
SELECT + + col0 col2 FROM tab2 AS cor0 WHERE NOT CAST( + - col0 AS SIGNED ) <> 63
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3525
SELECT + + col0 col2 FROM tab2 AS cor0 WHERE NOT CAST ( + - col0 AS INTEGER ) <> 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT ALL + COUNT( * ) * - MAX( + col1 ) FROM tab2 cor0
----
-231

skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL + COUNT ( * ) * - MAX ( + col1 ) FROM tab2 cor0
----
-231

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3528
SELECT + COUNT( * ), 77 - - + 68 - + + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 / + col0 NOT BETWEEN - col1 AND NULL
----
0
145

skipif mysql # not compatible
query II rowsort label-3528
SELECT + COUNT ( * ), 77 - - + 68 - + + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 / + col0 NOT BETWEEN - col1 AND NULL
----
0
145

onlyif mysql # DIV for integer division: 
query I rowsort label-3529
SELECT ( + col1 ) DIV + - ( + col0 ) FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3529
SELECT ( + col1 ) / + - ( + col0 ) FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT ALL 74 + COUNT( * ) + MAX( + - col1 ) AS col1 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL 74 + COUNT ( * ) + MAX ( + - col1 ) AS col1 FROM tab2
----
26

query I rowsort
SELECT ALL col1 + col0 * - + col0 AS col2 FROM tab1
----
-2587
-7220
-8234

query I rowsort
SELECT DISTINCT + ( col0 ) * - + col2 + col0 AS col2 FROM tab0
----
-690
-783
-9506

onlyif mysql # aggregate syntax: 
query II rowsort label-3533
SELECT ALL 57, + COUNT( * ) AS col2 FROM tab2 cor0
----
57
3

skipif mysql # not compatible
query II rowsort label-3533
SELECT ALL 57, + COUNT ( * ) AS col2 FROM tab2 cor0
----
57
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3534
SELECT - col0 * - - CAST( NULL AS SIGNED ) * - + 10 * - col0 + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3534
SELECT - col0 * - - CAST ( NULL AS INTEGER ) * - + 10 * - col0 + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 17 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3536
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) * - 41 + - col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3536
SELECT DISTINCT + + CAST ( NULL AS REAL ) * - 41 + - col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 93 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT + - 39 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-3538
SELECT + - 39 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3539
SELECT DISTINCT + - COUNT( * ) DIV + - MAX( - col2 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3539
SELECT DISTINCT + - COUNT ( * ) / + - MAX ( - col2 ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT + COUNT( * ) FROM tab2 WHERE - ( col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3540
SELECT + COUNT ( * ) FROM tab2 WHERE - ( col2 ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3541
SELECT ALL + col1 DIV + 96 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3541
SELECT ALL + col1 / + 96 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT col0 + + + col1 FROM tab1
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3543
SELECT - 75 + + col1 * + CAST( NULL AS SIGNED ) + col0 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3543
SELECT - 75 + + col1 * + CAST ( NULL AS INTEGER ) + col0 col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + - + col1 - - 10 * col2 + + col1 FROM tab1
----
595
727
974

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT ( COUNT( col2 ) ) * + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3545
SELECT ( COUNT ( col2 ) ) * + COUNT ( * ) FROM tab0
----
9

query III rowsort
SELECT * FROM tab0 cor0 WHERE 75 * + col0 + 66 > - col1 - + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 10 - - col2 * - - col1 FROM tab1 AS cor0
----
1354
305
3206

query II rowsort
SELECT ALL - 33, 49 + - 33 AS col0 FROM tab1
----
-33
16
-33
16
-33
16

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 12 + - 47 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT - 89 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT DISTINCT - COUNT( * ) * + 51 FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-3551
SELECT DISTINCT - COUNT ( * ) * + 51 FROM tab2
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT ALL + SUM( ALL - - 84 ) * COUNT( * ) FROM tab2 cor0
----
756

skipif mysql # not compatible
query I rowsort label-3552
SELECT ALL + SUM ( ALL - - 84 ) * COUNT ( * ) FROM tab2 cor0
----
756

onlyif mysql # DIV for integer division: 
query I rowsort label-3553
SELECT ALL - + col2 DIV 13 FROM tab1 AS cor0
----
-4
-5
-7

skipif mysql # not compatible
query I rowsort label-3553
SELECT ALL - + col2 / 13 FROM tab1 AS cor0
----
-4
-5
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, + col1 - 63 AS col2 FROM tab1 cor0
----
14
-49
47
-16
5
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT DISTINCT + MIN( - 49 ) col1 FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3555
SELECT DISTINCT + MIN ( - 49 ) col1 FROM tab0 AS cor0
----
-49

query I rowsort
SELECT - col2 * - + ( col1 ) FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT - - COUNT( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3557
SELECT - - COUNT ( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL col1, + col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query II rowsort
SELECT ALL + col2, col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT DISTINCT + + SUM( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3560
SELECT DISTINCT + + SUM ( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-223

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3561
SELECT CAST( - col1 AS SIGNED ) DIV - col2 + - + 19 * 3 AS col2 FROM tab2
----
-55
-56
-56

skipif mysql # not compatible
query I rowsort label-3561
SELECT CAST ( - col1 AS INTEGER ) / - col2 + - + 19 * 3 AS col2 FROM tab2
----
-55
-56
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + - ( - - col1 ) ) col0 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT ALL SUM( ALL + + 40 ) AS col1 FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL SUM ( ALL + + 40 ) AS col1 FROM tab2
----
120

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 col2 FROM tab1 AS cor0
----
29
29
29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3566
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN - CAST( - 59 AS SIGNED ) AND + + col2 / 39
----

skipif mysql # not compatible
query III rowsort label-3566
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN - CAST ( - 59 AS INTEGER ) AND + + col2 / 39
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + ( - col1 ) col0, col2 + col2 FROM tab2 cor0
----
51
46
67
116
77
80

query I rowsort
SELECT + 87 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT ALL MIN( DISTINCT - + 14 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-14

skipif mysql # not compatible
query I rowsort label-3569
SELECT ALL MIN ( DISTINCT - + 14 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3570
SELECT ALL + + CAST( - + AVG ( col2 ) AS SIGNED ) + 1 AS col1, - 18 FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 AND - ( + + col2 ) - + col2
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-3570
SELECT ALL + + CAST ( - + AVG ( col2 ) AS INTEGER ) + 1 AS col1, - 18 FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 AND - ( + + col2 ) - + col2
----
NULL
-18

query I rowsort
SELECT + col1 * - + col0 AS col2 FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 91 BETWEEN - col1 + - + ( + col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3573
SELECT ALL * FROM tab2 cor0 WHERE NOT col1 - - CAST( - col0 AS SIGNED ) >= - col0
----

skipif mysql # not compatible
query III rowsort label-3573
SELECT ALL * FROM tab2 cor0 WHERE NOT col1 - - CAST ( - col0 AS INTEGER ) >= - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 83 col0 FROM tab2 AS cor0
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT DISTINCT + ( - - COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3575
SELECT DISTINCT + ( - - COUNT ( * ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT ALL + 74 + + COUNT( * ) FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-3576
SELECT ALL + 74 + + COUNT ( * ) FROM tab1
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3577
SELECT 36 DIV - + 82 + - - COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3577
SELECT 36 / - + 82 + - - COUNT ( * ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT + col2 + - 91 AS col1 FROM tab1
----
-23
-32
5

query I rowsort
SELECT ALL col1 + 18 FROM tab0
----
19
39
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT 7 + + + COUNT( * ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3580
SELECT 7 + + + COUNT ( * ) AS col0 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT ALL 56 - + + COUNT( + - col2 ) + + - COUNT( DISTINCT - col0 ) FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-3581
SELECT ALL 56 - + + COUNT ( + - col2 ) + + - COUNT ( DISTINCT - col0 ) FROM tab2
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - - col1 ) - - + ( + 70 ) * + col0 col1 FROM tab2
----
3271
4557
5317

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( col0, ( - ( - - col0 ) ) * col1 + - col0 )
----

query I rowsort
SELECT - ( col1 ) + - col2 * - - col2 * col1 AS col1 FROM tab0
----
-179010
-2121
-9802

query I rowsort
SELECT - - col1 + - + col2 AS col2 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT ALL col2 - + + 55 * col0 FROM tab1 cor0
----
-2709
-4616
-4937

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3587
SELECT DISTINCT 45 - + + CAST( col2 AS SIGNED ) + - CAST( + ( - - col0 ) AS SIGNED ) DIV + - col0 AS col2 FROM tab0 AS cor0
----
-1
-53
36

skipif mysql # not compatible
query I rowsort label-3587
SELECT DISTINCT 45 - + + CAST ( col2 AS INTEGER ) + - CAST ( + ( - - col0 ) AS INTEGER ) / + - col0 AS col2 FROM tab0 AS cor0
----
-1
-53
36

query I rowsort
SELECT ALL 82 + + 59 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f127c88dbadbed59c64310450c6f0695

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT DISTINCT - - ( - COUNT( * ) ) * + + 23 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-207

skipif mysql # not compatible
query I rowsort label-3589
SELECT DISTINCT - - ( - COUNT ( * ) ) * + + 23 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-207

onlyif mysql # DIV for integer division: 
query I rowsort label-3590
SELECT ALL + col2 DIV + - 34 AS col1 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3590
SELECT ALL + col2 / + - 34 AS col1 FROM tab2 AS cor0
----
-1
-1
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 85 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + col1 ) * - + col1 * + - col2 * col0 FROM tab0 AS cor0
----
-383670
-4625505
-9603

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + col1 AND NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - 56 AS col1, ( - col1 ) FROM tab1
----
-56
-14
-56
-47
-56
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3596
SELECT DISTINCT - CAST( - MAX( 37 ) AS SIGNED ) col1 FROM tab0
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3596
SELECT DISTINCT - CAST ( - MAX ( 37 ) AS INTEGER ) col1 FROM tab0
----
37

query II rowsort
SELECT + col2 AS col1, + col1 + + ( - 15 ) AS col1 FROM tab0
----
10
6
47
66
99
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT MIN( ALL + - col0 ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-3598
SELECT MIN ( ALL + - col0 ) AS col2 FROM tab0
----
-97

query II rowsort
SELECT 22, col1 + - col0 AS col2 FROM tab2
----
22
-8
22
13
22
5

query I rowsort
SELECT + 92 FROM tab0 WHERE NOT ( NOT NULL > col2 )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col0 NOT BETWEEN - 73 + + col2 AND + 24
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, + col1 AS col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT + + COUNT( 70 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3603
SELECT + + COUNT ( 70 ) FROM tab0 cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 5 + + - col2 <> + + ( - 37 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IS NOT NULL AND NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3606
SELECT DISTINCT - CAST( + + 49 AS SIGNED ) - + col1 FROM tab1 cor0
----
-54
-63
-96

skipif mysql # not compatible
query I rowsort label-3606
SELECT DISTINCT - CAST ( + + 49 AS INTEGER ) - + col1 FROM tab1 cor0
----
-54
-63
-96

query I rowsort
SELECT - col0 + + - 13 AS col2 FROM tab2 AS cor0
----
-59
-77
-88

query I rowsort
SELECT DISTINCT + 34 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
34

query I rowsort
SELECT DISTINCT col1 FROM tab1 cor0 WHERE NOT - col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3610
SELECT ALL col0 - - + col1 * CAST( + col1 AS SIGNED ) col2 FROM tab0 cor0
----
528
6576
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3610
SELECT ALL col0 - - + col1 * CAST ( + col1 AS INTEGER ) col2 FROM tab0 cor0
----
528
6576
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT DISTINCT ( - MAX( - + 51 ) ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT ( - MAX ( - + 51 ) ) AS col1 FROM tab2 AS cor0
----
51

query II rowsort
SELECT DISTINCT - col2 + - col1 AS col2, - 58 FROM tab1 AS cor0
----
-110
-58
-115
-58
-64
-58

query I rowsort
SELECT - col0 * + col0 + - col2 FROM tab0 AS cor0
----
-272
-7579
-9508

onlyif mysql # DIV for integer division: 
query I rowsort label-3614
SELECT + 76 + + col1 DIV + 4 FROM tab2 AS cor0
----
88
92
95

skipif mysql # not compatible
query I rowsort label-3614
SELECT + 76 + + col1 / + 4 FROM tab2 AS cor0
----
88
92
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT ( - - ( - COUNT( * ) ) ) FROM tab0 cor0 WHERE ( NOT ( ( NOT ( NOT NULL IS NULL ) ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-3615
SELECT ( - - ( - COUNT ( * ) ) ) FROM tab0 cor0 WHERE ( NOT ( ( NOT ( NOT NULL IS NULL ) ) ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3616
SELECT col1 DIV 80 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3616
SELECT col1 / 80 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3618
SELECT * FROM tab2 WHERE NULL NOT BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3618
SELECT * FROM tab2 WHERE NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NULL IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3620
SELECT 14 AS col2, - 20 / + ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
14
NULL
14
NULL
14
NULL

skipif mysql # not compatible
query II rowsort label-3620
SELECT 14 AS col2, - 20 / + ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
14
NULL
14
NULL
14
NULL

query I rowsort
SELECT + col0 * + + 5 FROM tab1
----
255
425
455

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT + COUNT( + col2 ) * + 93 AS col2 FROM tab2 WHERE col0 * + - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3622
SELECT + COUNT ( + col2 ) * + 93 AS col2 FROM tab2 WHERE col0 * + - col0 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 17 col1 FROM tab0 WHERE - col1 = + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT - + MAX( ALL - col1 ) * SUM( - 99 ) FROM tab2 AS cor0
----
-15147

skipif mysql # not compatible
query I rowsort label-3624
SELECT - + MAX ( ALL - col1 ) * SUM ( - 99 ) FROM tab2 AS cor0
----
-15147

query I rowsort
SELECT ALL + + 16 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT DISTINCT + + COUNT( * ) FROM tab2 WHERE NOT ( ( NOT - col2 * col1 - + col2 IS NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-3626
SELECT DISTINCT + + COUNT ( * ) FROM tab2 WHERE NOT ( ( NOT - col2 * col1 - + col2 IS NULL ) )
----
0

query I rowsort
SELECT DISTINCT - + 77 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3628
SELECT ALL ( - SUM( DISTINCT + + 20 ) ) DIV COUNT( * ) FROM tab1 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL ( - SUM ( DISTINCT + + 20 ) ) / COUNT ( * ) FROM tab1 cor0
----
-6

query I rowsort
SELECT - col0 * - 15 AS col1 FROM tab0 AS cor0
----
1305
1455
225

query II rowsort
SELECT ALL - - ( - 98 ) AS col0, 15 - - + col0 - + 10 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3631
SELECT DISTINCT - + col2 AS col1, - CAST( - + col0 AS SIGNED ) * col0 * - - col0 FROM tab0 AS cor0
----
-10
658503
-47
3375
-99
912673

skipif mysql # not compatible
query II rowsort label-3631
SELECT DISTINCT - + col2 AS col1, - CAST ( - + col0 AS INTEGER ) * col0 * - - col0 FROM tab0 AS cor0
----
-10
658503
-47
3375
-99
912673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col2, col2 col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT - 63 * + MAX( col1 ) * COUNT( * ) - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-8880

skipif mysql # not compatible
query I rowsort label-3633
SELECT - 63 * + MAX ( col1 ) * COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-8880

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3634
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( + 79 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3634
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( + 79 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3635
SELECT - + SUM( + - CAST( - col1 AS SIGNED ) ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-3635
SELECT - + SUM ( + - CAST ( - col1 AS INTEGER ) ) FROM tab2 AS cor0
----
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3636
SELECT MIN( ALL - + ( 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-3636
SELECT MIN ( ALL - + ( CAST ( NULL AS INTEGER ) ) ) col1 FROM tab0
----
NULL

query II rowsort
SELECT ALL + col0 * + col2 AS col1, 46 FROM tab0
----
705
46
870
46
9603
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3638
SELECT ALL + ( COUNT( * ) ) DIV + - COUNT( * ) + + 56 AS col2 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL + ( COUNT ( * ) ) / + - COUNT ( * ) + + 56 AS col2 FROM tab2
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * col2 * + 36 col1, col0 AS col2 FROM tab2
----
-121104
75
-19044
46
-57600
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3640
SELECT ALL ( - col0 ) + - + col2 DIV col0 * - col1 - - + col0 * + col0 * - 81 FROM tab1
----
-210718
-585310
-670852

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL ( - col0 ) + - + col2 / col0 * - col1 - - + col0 * + col0 * - 81 FROM tab1
----
-210718
-585310
-670852

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE - col1 > + col0
----

query II rowsort
SELECT DISTINCT + ( col2 ) AS col2, + 9 + - - 18 FROM tab1
----
59
27
68
27
96
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT DISTINCT - SUM( 96 ) FROM tab0
----
-288

skipif mysql # not compatible
query I rowsort label-3643
SELECT DISTINCT - SUM ( 96 ) FROM tab0
----
-288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3644
SELECT DISTINCT - + col0 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( col2 - + + CAST( NULL AS SIGNED ) * + col2 * + + ( 62 ), 25 - CAST( NULL AS SIGNED ) * + col2 )
----

skipif mysql # not compatible
query I rowsort label-3644
SELECT DISTINCT - + col0 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( col2 - + + CAST ( NULL AS INTEGER ) * + col2 * + + ( 62 ), 25 - CAST ( NULL AS INTEGER ) * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT DISTINCT + MAX( - col0 ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3645
SELECT DISTINCT + MAX ( - col0 ) AS col1 FROM tab2 AS cor0
----
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3646
SELECT - col1 * + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3646
SELECT - col1 * + + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * - ( + + 33 ) BETWEEN - 7 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3648
SELECT ALL CAST( NULL AS SIGNED ) + + 40 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL CAST ( NULL AS INTEGER ) + + 40 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT col1 AS col2, col2 + - 65 FROM tab2
----
51
-42
67
-7
77
-25

query I rowsort
SELECT ALL + 46 + + - ( - col2 ) - - + col1 * + col1 + + + 14 FROM tab1 AS cor0
----
144
2337
352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3651
SELECT DISTINCT - + col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3651
SELECT DISTINCT - + col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 - + 80 * - - col2 FROM tab1 cor0
----
-4805
-5531
-7731

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT + 5 * COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) > ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3653
SELECT + 5 * COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) > ( col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT + + COUNT( * ) FROM tab1 WHERE + col0 NOT BETWEEN + - 68 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3654
SELECT + + COUNT ( * ) FROM tab1 WHERE + col0 NOT BETWEEN + - 68 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT ALL + COUNT( ALL - + col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL + COUNT ( ALL - + col1 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT + COUNT( * ) * 60 + + 39 AS col2 FROM tab0
----
219

skipif mysql # not compatible
query I rowsort label-3656
SELECT + COUNT ( * ) * 60 + + 39 AS col2 FROM tab0
----
219

query I rowsort
SELECT ( - 50 ) + + + col0 + + + col2 + - col2 AS col0 FROM tab2
----
-4
14
25

query I rowsort
SELECT DISTINCT 28 AS col1 FROM tab1 cor0
----
28

query I rowsort
SELECT DISTINCT 90 * + + 23 AS col1 FROM tab1 AS cor0
----
2070

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT MIN( ALL + + 75 ) FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-3660
SELECT MIN ( ALL + + 75 ) FROM tab0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3661
SELECT + COUNT( * ) DIV - + 44 * - - 79 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3661
SELECT + COUNT ( * ) / - + 44 * - - 79 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN - - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT DISTINCT + MAX( - 26 ) FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-3663
SELECT DISTINCT + MAX ( - 26 ) FROM tab0 AS cor0
----
-26

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 66 IS NULL
----

query I rowsort
SELECT ALL + - 17 * + col0 AS col0 FROM tab2 AS cor0
----
-1088
-1275
-782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3666
SELECT DISTINCT col1 * - CAST( 80 AS SIGNED ) FROM tab1
----
-1120
-3760
-400

skipif mysql # not compatible
query I rowsort label-3666
SELECT DISTINCT col1 * - CAST ( 80 AS INTEGER ) FROM tab1
----
-1120
-3760
-400

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3667
SELECT * FROM tab0 WHERE NOT + ( - CAST( NULL AS SIGNED ) ) NOT BETWEEN 20 AND - 46
----

skipif mysql # not compatible
query III rowsort label-3667
SELECT * FROM tab0 WHERE NOT + ( - CAST ( NULL AS INTEGER ) ) NOT BETWEEN 20 AND - 46
----

query I rowsort
SELECT ALL + col0 + - col0 + - col0 * + col0 * + 39 * + col1 * + + col0 FROM tab0
----
-10661625
-35594247
-539313957

query I rowsort
SELECT + 3 + + - 60 * - + col1 FROM tab0
----
1263
4863
63

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( + 97 ) ) + - + col1 + + + 95 * + col0 + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3671
SELECT - col1 / + col0 - + + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT 93 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3671
SELECT - col1 / + col0 - + + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT 93 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * - col1 + + 35 FROM tab0
----
1250
132
1862

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT 58 * + ( + MAX( 26 ) ) + - 74 FROM tab1
----
1434

skipif mysql # not compatible
query I rowsort label-3673
SELECT 58 * + ( + MAX ( 26 ) ) + - 74 FROM tab1
----
1434

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3674
SELECT - col1 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3674
SELECT - col1 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT - ( - 66 ), - col1 AS col2 FROM tab2
----
66
-51
66
-67
66
-77

query I rowsort
SELECT DISTINCT col1 * + - 69 FROM tab1 WHERE NOT NULL IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - ( - col0 ) ) col1 FROM tab0
----
-15
-87
-97

query II rowsort
SELECT DISTINCT col0, col1 AS col0 FROM tab0 AS cor0
----
15
81
87
21
97
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3680
SELECT DISTINCT + - ( - CAST( + col2 AS SIGNED ) ) AS col2 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3680
SELECT DISTINCT + - ( - CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab1 cor0
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3681
SELECT + CAST( NULL AS SIGNED ) * MIN( col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3681
SELECT + CAST ( NULL AS INTEGER ) * MIN ( col1 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3682
SELECT CAST( NULL AS DECIMAL ) - - COUNT( DISTINCT col2 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3682
SELECT CAST ( NULL AS REAL ) - - COUNT ( DISTINCT col2 ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT - ( - MIN( DISTINCT + col1 ) ) FROM tab1 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3683
SELECT - ( - MIN ( DISTINCT + col1 ) ) FROM tab1 WHERE col1 IS NULL
----
NULL

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3685
SELECT ALL - - CAST( + COUNT( * ) AS SIGNED ) + 99 + - 12 FROM tab0 AS cor0 WHERE NOT NULL < - col2
----
87

skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL - - CAST ( + COUNT ( * ) AS INTEGER ) + 99 + - 12 FROM tab0 AS cor0 WHERE NOT NULL < - col2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-3686
SELECT ALL + ( + 46 ) DIV col2 DIV - col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL + ( + 46 ) / col2 / - col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT + - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <= col0
----
0

skipif mysql # not compatible
query I rowsort label-3687
SELECT + - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <= col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 col2 FROM tab1 AS cor0
----
22
22
22

query I rowsort
SELECT ALL + col0 - col2 * + - 10 AS col2 FROM tab2 AS cor0
----
276
464
655

query II rowsort
SELECT ( + col2 ), col1 AS col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT - + 30 AS col0 FROM tab0 cor0
----
-30
-30
-30

query I rowsort
SELECT - col2 * - ( - col2 ) AS col2 FROM tab2
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT DISTINCT - ( - + COUNT( * ) ) AS col0 FROM tab1 WHERE NOT - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3693
SELECT DISTINCT - ( - + COUNT ( * ) ) AS col0 FROM tab1 WHERE NOT - col1 IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 8 + + + col1 NOT BETWEEN - col2 AND - + col2 * 62
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT DISTINCT + 55 * - COUNT( * ) * 41 FROM tab0 AS cor0
----
-6765

skipif mysql # not compatible
query I rowsort label-3696
SELECT DISTINCT + 55 * - COUNT ( * ) * 41 FROM tab0 AS cor0
----
-6765

query II rowsort
SELECT col1, 2 FROM tab1 AS cor0
----
14
2
47
2
5
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3698
SELECT - + MIN( CAST( 81 AS SIGNED ) ) FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3698
SELECT - + MIN ( CAST ( 81 AS INTEGER ) ) FROM tab2 AS cor0
----
-81

query I rowsort
SELECT ALL + ( ( 44 ) ) AS col1 FROM tab1 AS cor0 WHERE 10 NOT BETWEEN - + col2 AND NULL
----

query I rowsort
SELECT DISTINCT + col1 * 17 AS col2 FROM tab1
----
238
799
85

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < col0 + - - 21 * - col0 * - col1 - - + col1 * + + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 66 - ( - + 4 ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3703
SELECT + - col2 DIV + 64 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3703
SELECT + - col2 / + 64 AS col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3704
SELECT + - col2 * - col0, + CAST( NULL AS SIGNED ) * + 17 col0 FROM tab1 AS cor0
----
4896
NULL
5015
NULL
6188
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3704
SELECT + - col2 * - col0, + CAST ( NULL AS INTEGER ) * + 17 col0 FROM tab1 AS cor0
----
4896
NULL
5015
NULL
6188
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 94 + - col0 >= - 32 + - col0
----

query I rowsort
SELECT ALL + ( + col2 ) * + - col1 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < 35
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + AVG ( DISTINCT - - 92 ) col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3710
SELECT - CAST( 82 AS SIGNED ) FROM tab0
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-3710
SELECT - CAST ( 82 AS INTEGER ) FROM tab0
----
-82
-82
-82

query I rowsort
SELECT ALL col1 + - 22 FROM tab0
----
-1
-21
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3712
SELECT ALL - CAST( NULL AS SIGNED ) * 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-3712
SELECT ALL - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - + col2 col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3714
SELECT DISTINCT - + col0 * + + CAST( NULL AS SIGNED ) + + col0 + + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3714
SELECT DISTINCT - + col0 * + + CAST ( NULL AS INTEGER ) + + col0 + + col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 92 + - col2 + - col2 AS col1 FROM tab0 cor0
----
-112
-186
-290

onlyif mysql # DIV for integer division: 
query I rowsort label-3716
SELECT ALL + ( + col0 ) DIV + 35 FROM tab0 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-3716
SELECT ALL + ( + col0 ) / + 35 FROM tab0 AS cor0
----
0
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3717
SELECT DISTINCT col0 - + - col2 DIV col2 AS col2 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-3717
SELECT DISTINCT col0 - + - col2 / col2 AS col2 FROM tab0 AS cor0
----
16
88
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 39 IS NULL
----

query I rowsort
SELECT ALL + 70 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT DISTINCT 52 + col1 AS col2 FROM tab2
----
103
119
129

query I rowsort
SELECT ALL 37 + - 3 AS col2 FROM tab1
----
34
34
34

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col0 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * - col0 + + col2 AS col0 FROM tab1
----
-366
-4209
-618

query I rowsort
SELECT DISTINCT + col2 - 16 FROM tab2
----
24
42
7

query I rowsort
SELECT + - 37 - - + 19 AS col2 FROM tab2 AS cor0
----
-18
-18
-18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3726
SELECT DISTINCT - CAST( + + col1 AS SIGNED ) + + col2 - + - col1, 86 col0 FROM tab1 AS cor0
----
59
86
68
86
96
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3726
SELECT DISTINCT - CAST ( + + col1 AS INTEGER ) + + col2 - + - col1, 86 col0 FROM tab1 AS cor0
----
59
86
68
86
96
86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3727
SELECT ALL CAST( - col1 AS SIGNED ) DIV + col2 + + + col0 - + col2 AS col2 FROM tab1 AS cor0
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL CAST ( - col1 AS INTEGER ) / + col2 + + + col0 - + col2 AS col2 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT ALL + ( - 32 ) FROM tab0 AS cor0 WHERE ( NOT NULL BETWEEN + 5 AND - ( - 50 ) )
----

query I rowsort
SELECT DISTINCT + ( + 8 ) FROM tab0 AS cor0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3730
SELECT ALL * FROM tab2 AS cor0 WHERE col1 NOT IN ( - + CAST( + col1 AS SIGNED ), + 39 / col0 * - + 16 * - col2, + 73 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3730
SELECT ALL * FROM tab2 AS cor0 WHERE col1 NOT IN ( - + CAST ( + col1 AS INTEGER ), + 39 / col0 * - + 16 * - col2, + 73 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3731
SELECT ALL - ( + COUNT( * ) ) DIV - - ( - COUNT( * ) ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3731
SELECT ALL - ( + COUNT ( * ) ) / - - ( - COUNT ( * ) ) AS col1 FROM tab2
----
1

query I rowsort
SELECT DISTINCT ( + ( + ( col2 ) ) ) AS col0 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3733
SELECT - 38 / + + 63 / - + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3733
SELECT - 38 / + + 63 / - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3734
SELECT CAST( - CAST( 60 AS SIGNED ) AS SIGNED ) * + - col0 FROM tab2
----
2760
3840
4500

skipif mysql # not compatible
query I rowsort label-3734
SELECT CAST ( - CAST ( 60 AS INTEGER ) AS INTEGER ) * + - col0 FROM tab2
----
2760
3840
4500

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 64 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + - col2 AS col1, - 54 col2 FROM tab1
----
-4896
-54
-5015
-54
-6188
-54

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < - - col2 * col0 + ( + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3738
SELECT CAST( NULL AS SIGNED ) * - - 33 AS col0, col0 * col2 FROM tab2
----
NULL
1058
NULL
2560
NULL
4350

skipif mysql # not compatible
query II rowsort label-3738
SELECT CAST ( NULL AS INTEGER ) * - - 33 AS col0, col0 * col2 FROM tab2
----
NULL
1058
NULL
2560
NULL
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT - MIN( + col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-3739
SELECT - MIN ( + col1 ) AS col1 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
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-3740
SELECT - SUM ( ALL - col1 ) col2 FROM tab0
----
103

query I rowsort
SELECT ALL - 0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT DISTINCT MAX( + - col2 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT MAX ( + - col2 ) AS col0 FROM tab0
----
-10

query I rowsort
SELECT DISTINCT - ( + 22 ) AS col1 FROM tab1
----
-22

query I rowsort
SELECT + - col1 + col2 AS col0 FROM tab2 AS cor0 WHERE NOT col0 * col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col2 * + + 76 * col0 + + - col2 FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN + 57 AND NULL
----
-194600
-330658
-80431

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE - 25 * - col1 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - col1 * + + 20 FROM tab2 cor0
----
-1020
-1340
-1540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 74 col0 FROM tab1 AS cor0
----
-74

query I rowsort
SELECT - col1 + - + 0 + - col2 * + col1 FROM tab1 AS cor0
----
-1358
-300
-3243

onlyif mysql # DIV for integer division: 
query I rowsort label-3751
SELECT + - 33 * col1 + + ( + col1 ) + + - 6 DIV + + ( + 61 ) FROM tab2 cor0
----
-1632
-2144
-2464

skipif mysql # not compatible
query I rowsort label-3751
SELECT + - 33 * col1 + + ( + col1 ) + + - 6 / + + ( + 61 ) FROM tab2 cor0
----
-1632
-2144
-2464

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= - - ( - 6 )
----

query I rowsort
SELECT + col1 + - 33 AS col2 FROM tab2
----
18
34
44

onlyif mysql # DIV for integer division: 
query I rowsort label-3754
SELECT - col1 * - + col2 + - 3 DIV col0 + + - 59 AS col0 FROM tab2
----
1114
3021
3827

skipif mysql # not compatible
query I rowsort label-3754
SELECT - col1 * - + col2 + - 3 / col0 + + - 59 AS col0 FROM tab2
----
1114
3021
3827

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3755
SELECT DISTINCT CAST( NULL AS SIGNED ) + 0 * - 65 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3755
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 0 * - 65 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL 28 + - 84 AS col2 FROM tab0
----
-56
-56
-56

query III rowsort
SELECT * FROM tab1 WHERE NULL <= ( + + col0 )
----

query II rowsort
SELECT ALL - - 20 + + + col2, + 9 AS col2 FROM tab1 AS cor0
----
116
9
79
9
88
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 73 IS NULL
----

query I rowsort
SELECT 1 - + + col2 FROM tab0 AS cor0
----
-46
-9
-98

query I rowsort
SELECT - col1 - - + col2 AS col2 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT + 0 + + col0 FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT + col2 - + + col2 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3764
SELECT ALL + col0 DIV - 5 FROM tab2 cor0
----
-12
-15
-9

skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL + col0 / - 5 FROM tab2 cor0
----
-12
-15
-9

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT - + ( 52 ) FROM tab2 AS cor0
----
-52
-52
-52

query I rowsort
SELECT ALL - ( - - 5 ) FROM tab2 AS cor0
----
-5
-5
-5

query II rowsort
SELECT - col1, + 15 * 11 * + col2 AS col2 FROM tab0 AS cor0
----
-1
16335
-21
1650
-81
7755

query I rowsort
SELECT ALL + 94 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
94
94
94

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 72 col1 FROM tab0 AS cor0
----
72
72
72

query II rowsort
SELECT + col2, + col2 AS col2 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3773
SELECT DISTINCT + CAST( + - col0 AS SIGNED ) * - + col1 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-3773
SELECT DISTINCT + CAST ( + - col0 AS INTEGER ) * - + col1 FROM tab1
----
425
4277
714

query I rowsort
SELECT col1 * + col1 * - col0 AS col1 FROM tab2
----
-119646
-336675
-379456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col0, col1 FROM tab2
----
-51
51
-67
67
-77
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 61 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3777
SELECT ALL + - col1 DIV + 25 AS col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL + - col1 / + 25 AS col0 FROM tab1 AS cor0
----
-1
0
0

query II rowsort
SELECT + col1, - 52 + - + col1 AS col0 FROM tab2 AS cor0
----
51
-103
67
-119
77
-129

onlyif mysql # aggregate syntax: 
query II rowsort label-3779
SELECT + + COUNT( * ), COUNT( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3779
SELECT + + COUNT ( * ), COUNT ( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3780
SELECT DISTINCT + - CAST( - - 39 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-3780
SELECT DISTINCT + - CAST ( - - 39 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3781
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3782
SELECT - CAST( col2 AS SIGNED ) + + col0 + 23 AS col1 FROM tab0
----
-9
100
21

skipif mysql # not compatible
query I rowsort label-3782
SELECT - CAST ( col2 AS INTEGER ) + + col0 + 23 AS col1 FROM tab0
----
-9
100
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col0 * col0, - 46 + 0 * + 22 col0, col2 * + col2 AS col2 FROM tab2
----
9 values hashing to c789c19658be13403301b9fbcc9ba128

query I rowsort
SELECT - + col1 * - col2 + + 77 FROM tab2 AS cor0
----
1250
3157
3963

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT + COUNT( + ( + - col2 ) ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3785
SELECT + COUNT ( + ( + - col2 ) ) col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + col0 * + - col0 AS col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

query II rowsort
SELECT - col1 AS col2, 52 AS col0 FROM tab0 AS cor0 WHERE ( NOT + + 29 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE col2 * - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT ALL + + MAX( ALL - col0 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL + + MAX ( ALL - col0 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT ALL COUNT( ALL 36 ) + + MIN( ALL - col2 ) AS col0 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL COUNT ( ALL 36 ) + + MIN ( ALL - col2 ) AS col0 FROM tab0
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-3791
SELECT DISTINCT COUNT( * ) AS col0, + 91 FROM tab1
----
3
91

skipif mysql # not compatible
query II rowsort label-3791
SELECT DISTINCT COUNT ( * ) AS col0, + 91 FROM tab1
----
3
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT - COUNT( - col2 ) + COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3792
SELECT - COUNT ( - col2 ) + COUNT ( * ) AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3793
SELECT 83 + + - 81 + CAST( NULL AS SIGNED ) * 98 col2 FROM tab1 WHERE - 23 * - col2 + - + col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3793
SELECT 83 + + - 81 + CAST ( NULL AS INTEGER ) * 98 col2 FROM tab1 WHERE - 23 * - col2 + - + col0 IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT 60 + + - ( + col2 ) AS col2, col2 AS col2 FROM tab2
----
2
58
20
40
37
23

query I rowsort
SELECT DISTINCT + ( - col1 ) - + col1 FROM tab0
----
-162
-2
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 52 col1 FROM tab0 AS cor0
----
-42
-5
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 31 * + - col0 + + + col1 + - 58 * + ( - col1 ) AS col2, col2 col1 FROM tab1 AS cor0
----
2407
96
2930
59
5594
68

query II rowsort
SELECT DISTINCT + col1 * col1 AS col1, col1 AS col1 FROM tab0
----
1
1
441
21
6561
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3799
SELECT - 26 * - CAST( NULL AS SIGNED ) / + 15 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3799
SELECT - 26 * - CAST ( NULL AS INTEGER ) / + 15 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 49 * - + ( col1 ) FROM tab2
----
-2499
-3283
-3773

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT + + ( + SUM( ALL + col2 ) ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3801
SELECT + + ( + SUM ( ALL + col2 ) ) FROM tab0 AS cor0
----
156

query I rowsort
SELECT ALL + + 80 AS col1 FROM tab1 AS cor0
----
80
80
80

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 21 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3804
SELECT DISTINCT + - CAST( + col1 AS SIGNED ), + col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

skipif mysql # not compatible
query II rowsort label-3804
SELECT DISTINCT + - CAST ( + col1 AS INTEGER ), + col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT ALL - COUNT( * ) * - 95 FROM tab1 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-3805
SELECT ALL - COUNT ( * ) * - 95 FROM tab1 AS cor0
----
285

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 68 * - 35 col2 FROM tab0
----
207060
230860
35700

query I rowsort
SELECT ALL 78 * + 19 FROM tab0
----
1482
1482
1482

onlyif mysql # DIV for integer division: 
query I rowsort label-3808
SELECT DISTINCT - col0 DIV + 55 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT - col0 / + 55 FROM tab2
----
-1
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col0 < - 61
----
15
81
47

query I rowsort
SELECT - 58 * 56 FROM tab2
----
-3248
-3248
-3248

query I rowsort
SELECT - col2 * + + col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT col1 * - - col1 FROM tab1
----
196
2209
25

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > - col2 + - col1
----

query I rowsort
SELECT + col1 * + col1 * - 45 FROM tab2
----
-117045
-202005
-266805

onlyif mysql # aggregate syntax: 
query II rowsort label-3815
SELECT COUNT( * ), - 50 AS col2 FROM tab1 AS cor0
----
3
-50

skipif mysql # not compatible
query II rowsort label-3815
SELECT COUNT ( * ), - 50 AS col2 FROM tab1 AS cor0
----
3
-50

query I rowsort
SELECT DISTINCT + ( - - col1 ) AS col0 FROM tab0 WHERE col0 = NULL
----

query I rowsort
SELECT DISTINCT col2 + - - col0 + 42 FROM tab1
----
186
189
201

query I rowsort
SELECT DISTINCT - ( - + 65 ) AS col1 FROM tab0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3819
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE - + 1 + - 83 <> + CAST( + - col1 AS SIGNED )
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3819
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE - + 1 + - 83 <> + CAST ( + - col1 AS INTEGER )
----
51
85
91

query I rowsort
SELECT DISTINCT - - col2 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 + - + 89 NOT BETWEEN 90 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT ALL COUNT( ALL 84 ) col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3821
SELECT ALL COUNT ( ALL 84 ) col0 FROM tab2 cor0
----
3

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-3823
SELECT + COUNT( * ) + - + COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3823
SELECT + COUNT ( * ) + - + COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col1 + - col1 * col2 * 22 FROM tab1
----
-29554
-6485
-70265

query II rowsort
SELECT col1 * - 60, col1 AS col2 FROM tab1
----
-2820
47
-300
5
-840
14

onlyif mysql # aggregate syntax: 
query II rowsort label-3826
SELECT COUNT( * ) * - + 12 AS col1, + 73 col2 FROM tab0
----
-36
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3826
SELECT COUNT ( * ) * - + 12 AS col1, + 73 col2 FROM tab0
----
-36
73

query I rowsort
SELECT 41 + + - 23 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # aggregate syntax: 
query II rowsort label-3828
SELECT - SUM( + 63 ) AS col2, ( + ( - - 24 ) ) FROM tab2
----
-189
24

skipif mysql # not compatible
query II rowsort label-3828
SELECT - SUM ( + 63 ) AS col2, ( + ( - - 24 ) ) FROM tab2
----
-189
24

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND - col1 + - col0
----

query I rowsort
SELECT - 68 * - + col1 AS col2 FROM tab2
----
3468
4556
5236

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT - SUM( DISTINCT + 93 ) AS col0 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-3831
SELECT - SUM ( DISTINCT + 93 ) AS col0 FROM tab1 AS cor0
----
-93

query II rowsort
SELECT ALL 88, col1 * + 85 AS col0 FROM tab1 AS cor0
----
88
1190
88
3995
88
425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3833
SELECT - MAX( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3833
SELECT - MAX ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3834
SELECT DISTINCT 41 FROM tab2 cor0 WHERE - CAST( + + 97 AS SIGNED ) IS NOT NULL
----
41

skipif mysql # not compatible
query I rowsort label-3834
SELECT DISTINCT 41 FROM tab2 cor0 WHERE - CAST ( + + 97 AS INTEGER ) IS NOT NULL
----
41

query I rowsort
SELECT ALL + + col0 * - 9 AS col1 FROM tab1 AS cor0
----
-459
-765
-819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3836
SELECT ALL CAST( + - col1 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3836
SELECT ALL CAST ( + - col1 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( + + 32 ) AS col2 FROM tab1
----
32
32
32

query I rowsort
SELECT DISTINCT + col2 + 47 AS col0 FROM tab0
----
146
57
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( - 93 ) col2 FROM tab2 AS cor0
----
-35
-53
-70

query II rowsort
SELECT ALL col0 * - col0 AS col2, - 41 * - 74 AS col0 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-2601
3034
-7225
3034
-8281
3034

query I rowsort
SELECT - ( + 84 ) + + col0 FROM tab1 AS cor0
----
-33
1
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3842
SELECT DISTINCT + col2 + + ( + - 58 ) * - CAST( + col2 AS SIGNED ) + + + col0 - - col2 FROM tab1
----
3625
4171
5811

skipif mysql # not compatible
query I rowsort label-3842
SELECT DISTINCT + col2 + + ( + - 58 ) * - CAST ( + col2 AS INTEGER ) + + + col0 - - col2 FROM tab1
----
3625
4171
5811

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3843
SELECT ALL - 58 DIV - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
6

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL - 58 / - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT + MIN( + 83 ) AS col0 FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-3844
SELECT + MIN ( + 83 ) AS col0 FROM tab1 AS cor0
----
83

query I rowsort
SELECT + - 37 * + - col2 AS col1 FROM tab0 cor0
----
1739
3663
370

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 > - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT COUNT( * ) AS col0 FROM tab2 cor0 WHERE - col1 = col1 + + col1
----
0

skipif mysql # not compatible
query I rowsort label-3847
SELECT COUNT ( * ) AS col0 FROM tab2 cor0 WHERE - col1 = col1 + + col1
----
0

query I rowsort
SELECT DISTINCT + col1 * + + ( 81 ) FROM tab1 AS cor0
----
1134
3807
405

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3849
SELECT COUNT( * ) DIV + - 81 - + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3849
SELECT COUNT ( * ) / + - 81 - + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT DISTINCT + + ( + MAX( col1 ) ) col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3850
SELECT DISTINCT + + ( + MAX ( col1 ) ) col2 FROM tab0 AS cor0
----
81

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3852
SELECT - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * - 28 + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3852
SELECT - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * - 28 + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3853
SELECT + col0 + ( + - CAST( NULL AS DECIMAL ) ) - 1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3853
SELECT + col0 + ( + - CAST ( NULL AS REAL ) ) - 1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col0 AS col2 FROM tab1 WHERE + col1 * - - col1 NOT BETWEEN NULL AND + - col2 + + 46
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + 4 + - + col2 AS col2 FROM tab1
----
-55
-64
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT ALL + + COUNT( * ) * 68 + + + COUNT( col1 ) FROM tab0 WHERE NULL IS NULL
----
207

skipif mysql # not compatible
query I rowsort label-3856
SELECT ALL + + COUNT ( * ) * 68 + + + COUNT ( col1 ) FROM tab0 WHERE NULL IS NULL
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT ALL - 76 + + MIN( ALL col1 ) + - - COUNT( * ) col2 FROM tab1
----
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3857
SELECT ALL - 76 + + MIN ( ALL col1 ) + - - COUNT ( * ) col2 FROM tab1
----
-68

query I rowsort
SELECT DISTINCT col1 + - 90 + + 54 FROM tab0
----
-15
-35
45

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 NOT BETWEEN NULL AND - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - col2 col0 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT - - 70 AS col1 FROM tab1 AS cor0 WHERE - col0 > 89
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 43 * 78 BETWEEN col2 AND - 37
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NOT - col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT ALL - MAX( DISTINCT ( + col2 ) ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL - MAX ( DISTINCT ( + col2 ) ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT + col2 * + 79 - col0 + col0 + col2 / col2 FROM tab0 AS cor0 WHERE NOT + 51 >= NULL
----

query II rowsort
SELECT col0 AS col0, + ( 70 ) AS col0 FROM tab1 cor0
----
51
70
85
70
91
70

query I rowsort
SELECT ALL - ( - + 44 ) FROM tab2 AS cor0
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT COUNT( * ) * + COUNT( * ) * 87 * + + 39 * + - 71 FROM tab2
----
-2168127

skipif mysql # not compatible
query I rowsort label-3868
SELECT COUNT ( * ) * + COUNT ( * ) * 87 * + + 39 * + - 71 FROM tab2
----
-2168127

query II rowsort
SELECT 87 * + col1 AS col2, - col2 FROM tab0
----
1827
-10
7047
-47
87
-99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 - col1 > + col2 + + 72
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT ALL + + COUNT( + col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL + + COUNT ( + col2 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3872
SELECT - + SUM( 88 ) AS col1, + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
-264
NULL

skipif mysql # not compatible
query II rowsort label-3872
SELECT - + SUM ( 88 ) AS col1, + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
-264
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3873
SELECT DISTINCT + CAST( - 81 AS SIGNED ) AS col0, + col0 DIV + 21 AS col0 FROM tab0 AS cor0
----
-81
0
-81
4

skipif mysql # not compatible
query II rowsort label-3873
SELECT DISTINCT + CAST ( - 81 AS INTEGER ) AS col0, + col0 / + 21 AS col0 FROM tab0 AS cor0
----
-81
0
-81
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + - col2 * + + 94 col2, - col0 AS col1 FROM tab1
----
-5551
-85
-6439
-91
-9038
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT DISTINCT + 70 + + - COUNT( * ) FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-3875
SELECT DISTINCT + 70 + + - COUNT ( * ) FROM tab2
----
67

query II rowsort
SELECT ALL col1 + - col1 - - 56 AS col2, col0 FROM tab1
----
56
51
56
85
56
91

query I rowsort
SELECT col0 * - + 93 + - col2 FROM tab2
----
-4301
-5992
-7033

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT - 37 + COUNT( * ) FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-3878
SELECT - 37 + COUNT ( * ) FROM tab1
----
-34

query I rowsort
SELECT ALL + ( col1 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

query I rowsort
SELECT - 51 / + - col2 / 24 AS col1 FROM tab0 WHERE NOT + col1 <> + + col0
----

query I rowsort
SELECT 57 * - - 86 AS col1 FROM tab1 AS cor0
----
4902
4902
4902

query I rowsort
SELECT ALL + 1 * - col0 AS col1 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3883
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-3883
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 7 + + 74 FROM tab0
----
81
81
81

query I rowsort
SELECT ALL - 35 * col1 FROM tab0
----
-2835
-35
-735

query I rowsort
SELECT - 80 - + col2 * col1 AS col0 FROM tab2
----
-1253
-3160
-3966

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > - 14
----

query I rowsort
SELECT - 52 * - 50 FROM tab1
----
2600
2600
2600

query I rowsort
SELECT + 69 - - col1 FROM tab1
----
116
74
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT + COUNT( * ) - + 50 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-3890
SELECT + COUNT ( * ) - + 50 FROM tab0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3891
SELECT + CAST( col0 AS SIGNED ) * + col0 FROM tab1
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-3891
SELECT + CAST ( col0 AS INTEGER ) * + col0 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE NOT col1 NOT IN ( - 2 + col1 )
----

query I rowsort
SELECT + AVG ( DISTINCT 56 ) AS col2 FROM tab0 WHERE - col2 IN ( col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3894
SELECT * FROM tab1 WHERE NOT + ( CAST( 74 AS SIGNED ) ) * - 98 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3894
SELECT * FROM tab1 WHERE NOT + ( CAST ( 74 AS INTEGER ) ) * - 98 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3895
SELECT ALL * FROM tab0 WHERE CAST( NULL AS SIGNED ) + + ( col2 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3895
SELECT ALL * FROM tab0 WHERE CAST ( NULL AS INTEGER ) + + ( col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3896
SELECT * FROM tab1 WHERE NULL NOT BETWEEN col1 + - CAST( NULL AS SIGNED ) * col1 AND 43 * - col0
----

skipif mysql # not compatible
query III rowsort label-3896
SELECT * FROM tab1 WHERE NULL NOT BETWEEN col1 + - CAST ( NULL AS INTEGER ) * col1 AND 43 * - col0
----

query I rowsort
SELECT - 95 FROM tab2 WHERE NULL BETWEEN ( col1 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 IN ( 88 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 36 * - col1 AS col2 FROM tab0
----
-2916
-36
-756

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN col2 - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT COUNT( * ) * + 81 FROM tab2
----
243

skipif mysql # not compatible
query I rowsort label-3901
SELECT COUNT ( * ) * + 81 FROM tab2
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT 48 - + COUNT( * ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-3902
SELECT 48 - + COUNT ( * ) FROM tab1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT COUNT( * ) * 99 AS col1 FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-3903
SELECT COUNT ( * ) * 99 AS col1 FROM tab1
----
297

query I rowsort
SELECT col1 - col1 * + 31 AS col0 FROM tab0
----
-2430
-30
-630

query I rowsort
SELECT DISTINCT - 40 + 97 AS col2 FROM tab2 WHERE NOT - col1 IS NULL
----
57

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 67 IS NOT NULL
----

query I rowsort
SELECT col0 + - 30 FROM tab0
----
-15
57
67

query I rowsort
SELECT DISTINCT col1 + + col2 FROM tab0 WHERE ( - col0 ) NOT IN ( + ( - col1 ) + + col2 )
----
100
128
31

query I rowsort
SELECT ALL col2 * - ( 50 ) FROM tab0
----
-2350
-4950
-500

query I rowsort
SELECT ALL 10 * col2 + + col0 * col1 FROM tab2 WHERE ( NULL ) < ( col1 / - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT DISTINCT - MAX( + 54 ) * COUNT( * ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3912
SELECT DISTINCT - MAX ( + 54 ) * COUNT ( * ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT + SUM( DISTINCT - 18 ) AS col1 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-3913
SELECT + SUM ( DISTINCT - 18 ) AS col1 FROM tab2
----
-18

query I rowsort
SELECT ALL col0 * - 55 + - col1 AS col0 FROM tab1
----
-2819
-4680
-5052

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col0 ) NOT BETWEEN 47 AND ( 31 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + + 6 NOT IN ( - 81 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT DISTINCT - COUNT( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 )
----
-9

skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT - COUNT ( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-3918
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3919
SELECT ALL + col2 FROM tab2 WHERE NOT CAST( col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL + col2 FROM tab2 WHERE NOT CAST ( col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT ALL COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0
----
9

query I rowsort
SELECT + 81 * 89 FROM tab2
----
7209
7209
7209

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT col1 - + 6 = col1 * - 64
----
-51
-85
-91

query I rowsort
SELECT - 9 * col0 AS col0 FROM tab2 AS cor0
----
-414
-576
-675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3924
SELECT ALL - col1 * - 12 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + 37 / + 10 + ( col1 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL - col1 * - 12 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + 37 / + 10 + ( col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3925
SELECT ALL - SUM( ALL + 85 ) AS col2 FROM tab0 AS cor0 WHERE ( + ( col2 ) + + ( ( + CAST( col0 AS DECIMAL ) ) ) ) IS NOT NULL
----
-255

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL - SUM ( ALL + 85 ) AS col2 FROM tab0 AS cor0 WHERE ( + ( col2 ) + + ( ( + CAST ( col0 AS REAL ) ) ) ) IS NOT NULL
----
-255

query I rowsort
SELECT ALL - ( 81 ) FROM tab1 AS cor0
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT MAX( - col1 ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-3927
SELECT MAX ( - col1 ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-153

query I rowsort
SELECT DISTINCT - + ( + col0 ) * + col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT - + MAX( col1 ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3929
SELECT - + MAX ( col1 ) AS col2 FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3930
SELECT DISTINCT 31 + 51 DIV - CAST( + COUNT( DISTINCT col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE 29 < ( col0 )
----
6

skipif mysql # not compatible
query I rowsort label-3930
SELECT DISTINCT 31 + 51 / - CAST ( + COUNT ( DISTINCT col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE 29 < ( col0 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT DISTINCT + SUM( DISTINCT 21 ) col1 FROM tab0
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3931
SELECT DISTINCT + SUM ( DISTINCT 21 ) col1 FROM tab0
----
21

query I rowsort
SELECT DISTINCT col0 + - 94 * 26 FROM tab2
----
-2369
-2380
-2398

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT DISTINCT - 10 + MAX( DISTINCT 80 ) + 33 col0 FROM tab2
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3933
SELECT DISTINCT - 10 + MAX ( DISTINCT 80 ) + 33 col0 FROM tab2
----
103

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( col0 * - col0 )
----

query I rowsort
SELECT ALL + col2 + + col2 + - 32 * + col1 FROM tab1
----
-1368
-256
-42

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE ( 29 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 * 75 AS col0 FROM tab0
----
1575
6075
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT MAX( ALL + + col1 ) * COUNT( * ) AS col2 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-3938
SELECT MAX ( ALL + + col1 ) * COUNT ( * ) AS col2 FROM tab0
----
243

query I rowsort
SELECT 56 * - - 40 + col0 AS col1 FROM tab2
----
2286
2304
2315

query I rowsort
SELECT DISTINCT 63 + - + col2 + 68 AS col2 FROM tab0 AS cor0
----
121
32
84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * col2 IN ( col2 )
----

query I rowsort
SELECT - - 73 + + 57 FROM tab2 AS cor0
----
130
130
130

query I rowsort
SELECT ALL + 13 - - col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3944
SELECT + 29 * CAST( NULL AS SIGNED ) + + col2 * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3944
SELECT + 29 * CAST ( NULL AS INTEGER ) + + col2 * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT DISTINCT MAX( 14 ) FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-3945
SELECT DISTINCT MAX ( 14 ) FROM tab1
----
14

query I rowsort
SELECT 7 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3947
SELECT - col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3947
SELECT - col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 4 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT 16 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT SUM( + - 91 ) AS col0 FROM tab0
----
-273

skipif mysql # not compatible
query I rowsort label-3950
SELECT SUM ( + - 91 ) AS col0 FROM tab0
----
-273

query I rowsort
SELECT DISTINCT + 82 + - + col0 + col2 AS col2 FROM tab1 AS cor0
----
127
56
59

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN ( + col2 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col1 - - 40 FROM tab2 AS cor0
----
107
117
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN ( NULL ) AND 30
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3955
SELECT ALL - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0 WHERE ( 87 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0 WHERE ( 87 ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + 74 + + 62 + + 31 * col1 ) <> + col1
----

query I rowsort
SELECT - col1 * 5 FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND - 64 + col1 + + col2 * col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + + ( + col1 ) + + ( 2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3959
SELECT ALL + col1 DIV col2, col2 DIV - col2 AS col2 FROM tab1
----
0
-1
0
-1
0
-1

skipif mysql # not compatible
query II rowsort label-3959
SELECT ALL + col1 / col2, col2 / - col2 AS col2 FROM tab1
----
0
-1
0
-1
0
-1

query II rowsort
SELECT DISTINCT col1 * - col1 AS col1, - col0 AS col0 FROM tab1
----
-196
-51
-2209
-91
-25
-85

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3962
SELECT col0 DIV col1 * 33 FROM tab2
----
0
0
33

skipif mysql # not compatible
query I rowsort label-3962
SELECT col0 / col1 * 33 FROM tab2
----
0
0
33

query II rowsort
SELECT ALL col1 * + col1 AS col1, col2 AS col0 FROM tab0
----
1
99
441
10
6561
47

query I rowsort
SELECT DISTINCT + 21 FROM tab1 cor0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3965
SELECT DISTINCT * FROM tab0 WHERE NOT ( CAST( NULL AS SIGNED ) * col1 ) > col2 OR NOT + col1 * + col0 > NULL
----

skipif mysql # not compatible
query III rowsort label-3965
SELECT DISTINCT * FROM tab0 WHERE NOT ( CAST ( NULL AS INTEGER ) * col1 ) > col2 OR NOT + col1 * + col0 > NULL
----

query I rowsort
SELECT DISTINCT - col1 * - col0 / + col0 * - col2 / - 1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT COUNT( + 60 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3967
SELECT COUNT ( + 60 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3968
SELECT ALL col1 * + CAST( NULL AS SIGNED ) / - 94 FROM tab1 AS cor0 WHERE NOT 57 + + - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3968
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) / - 94 FROM tab1 AS cor0 WHERE NOT 57 + + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT ALL + - ( + COUNT( * ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL + - ( + COUNT ( * ) ) FROM tab1 cor0
----
-3

query I rowsort
SELECT ( 53 ) + + + col0 AS col1 FROM tab2 AS cor0
----
117
128
99

query I rowsort
SELECT ALL - 60 AS col2 FROM tab1 AS cor0
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT ALL COUNT( * ) + - + 7 AS col2 FROM tab0 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL COUNT ( * ) + - + 7 AS col2 FROM tab0 cor0
----
-4

query I rowsort
SELECT col1 * + ( 97 ) + + 24 AS col1 FROM tab2 cor0
----
4971
6523
7493

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3974
SELECT + COUNT( * ) - 97 * 60 FROM tab2 AS cor0 WHERE NOT 98 + + col2 * - + CAST( NULL AS SIGNED ) IS NOT NULL
----
-5817

skipif mysql # not compatible
query I rowsort label-3974
SELECT + COUNT ( * ) - 97 * 60 FROM tab2 AS cor0 WHERE NOT 98 + + col2 * - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-5817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3975
SELECT - - col0 * - col2 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3975
SELECT - - col0 * - col2 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3976
SELECT + COUNT( * ) DIV + + 68 + 49 * + - 43 FROM tab1 AS cor0
----
-2107

skipif mysql # not compatible
query I rowsort label-3976
SELECT + COUNT ( * ) / + + 68 + 49 * + - 43 FROM tab1 AS cor0
----
-2107

query I rowsort
SELECT 15 + col1 AS col0 FROM tab1
----
20
29
62

query II rowsort
SELECT col1 + + 62, - col2 AS col2 FROM tab2
----
113
-23
129
-58
139
-40

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( + col2 NOT BETWEEN 39 AND NULL ) )
----
87
21
10

query III rowsort
SELECT * FROM tab1 WHERE ( - - col2 * + col0 + - 10 + + col1 ) BETWEEN ( - col1 / col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT - col1 * - + col1 + col2 AS col1 FROM tab1
----
2277
292
84

query II rowsort
SELECT col1 AS col1, - col2 + - ( col0 ) FROM tab2
----
51
-69
67
-133
77
-104

query II rowsort
SELECT ALL + col2 + + col0, col2 FROM tab0
----
196
99
62
47
97
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3984
SELECT DISTINCT ( 83 ) DIV + - 91 + - col2 - col1 + - col2 * 15 FROM tab2
----
-419
-717
-995

skipif mysql # not compatible
query I rowsort label-3984
SELECT DISTINCT ( 83 ) / + - 91 + - col2 - col1 + - col2 * 15 FROM tab2
----
-419
-717
-995

query I rowsort
SELECT DISTINCT + + col2 + col1 AS col0 FROM tab2 WHERE NOT NULL >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) FROM tab1, tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-3986
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) FROM tab1, tab0 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT MAX( ALL col1 ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3987
SELECT MAX ( ALL col1 ) AS col1 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-3988
SELECT DISTINCT - 0 AS col1, ( - + 96 ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
0
-288

skipif mysql # not compatible
query II rowsort label-3988
SELECT DISTINCT - 0 AS col1, ( - + 96 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0
-288

query I rowsort
SELECT DISTINCT - col0 * - 14 + - 83 - - + col0 + 91 FROM tab0 AS cor0
----
1313
1463
233

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT - MAX( ALL + col2 ) * - - COUNT( * ) FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-3990
SELECT - MAX ( ALL + col2 ) * - - COUNT ( * ) FROM tab1 AS cor0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT - COUNT( * ) FROM tab2 cor0 WHERE NULL >= 95
----
0

skipif mysql # not compatible
query I rowsort label-3991
SELECT - COUNT ( * ) FROM tab2 cor0 WHERE NULL >= 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT + + 42 - + 49 + + + MAX( - + ( + - 2 ) ) FROM tab0 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3992
SELECT + + 42 - + 49 + + + MAX ( - + ( + - 2 ) ) FROM tab0 cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE - col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-3993
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE - col2 > NULL
----
0

query II rowsort
SELECT col0 + + 82 * + col2, - 65 AS col1 FROM tab2
----
1932
-65
3344
-65
4831
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT - + ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3995
SELECT - + ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 + - 58 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT DISTINCT - COUNT( + - col2 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3997
SELECT DISTINCT - COUNT ( + - col2 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT DISTINCT + MAX( ALL + col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT + MAX ( ALL + col2 ) FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT - + COUNT( ALL - col0 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3999
SELECT - + COUNT ( ALL - col0 ) AS col0 FROM tab2 cor0
----
-3

query II rowsort
SELECT + col1 + - 4 AS col0, + col1 FROM tab1 AS cor0 WHERE NOT + col2 >= - 60
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 42 col0 FROM tab0 AS cor0 WHERE col2 * + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4002
SELECT ALL 44 * - + 73 + - - 23 + + CAST( NULL AS SIGNED ) * + col0 - - + 98 + 78 * col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4002
SELECT ALL 44 * - + 73 + - - 23 + + CAST ( NULL AS INTEGER ) * + col0 - - + 98 + 78 * col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT DISTINCT + COUNT( DISTINCT - 16 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4003
SELECT DISTINCT + COUNT ( DISTINCT - 16 ) FROM tab1
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT + 46 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col0 * 44 FROM tab1
----
-2244
-3740
-4004

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 + col2 IN ( col1 + + + 47 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4007
SELECT DISTINCT + COUNT( * ) DIV - - 74 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT + COUNT ( * ) / - - 74 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + - col0 ) NOT IN ( + - 70 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4009
SELECT col2 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) / + + ( col2 ) IN ( + col0 * + 19 * col2 )
----

skipif mysql # not compatible
query I rowsort label-4009
SELECT col2 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) / + + ( col2 ) IN ( + col0 * + 19 * col2 )
----

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab1 WHERE NOT - - col1 * col2 + - col0 IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT ALL + SUM( - col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL + SUM ( - col0 ) AS col2 FROM tab2 AS cor0
----
-185

onlyif mysql # DIV for integer division: 
query I rowsort label-4012
SELECT - - 61 DIV + 77 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4012
SELECT - - 61 / + 77 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT ALL SUM( DISTINCT - - col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL SUM ( DISTINCT - - col2 ) AS col0 FROM tab0 AS cor0
----
156

query I rowsort
SELECT DISTINCT - col0 * 36 FROM tab2 cor0
----
-1656
-2304
-2700

query II rowsort
SELECT DISTINCT + 77 AS col0, - col1 + + - col2 AS col0 FROM tab1 AS cor0
----
77
-110
77
-115
77
-64

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 53 NOT BETWEEN + - col2 AND NULL
----

query I rowsort
SELECT DISTINCT - 88 * - col2 AS col2 FROM tab2 AS cor0
----
2024
3520
5104

query I rowsort
SELECT DISTINCT + 38 + + 27 * + ( col0 ) * + col2 AS col0 FROM tab1
----
132230
135443
167114

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4019
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < + col1
----

query II rowsort
SELECT ALL - col1 AS col0, - col1 AS col1 FROM tab2 WHERE NOT - col1 = 16
----
-51
-51
-67
-67
-77
-77

query II rowsort
SELECT DISTINCT + ( - col1 ) + - ( 73 ) AS col2, 65 + - col2 + + - ( + + col2 ) * + - 58 AS col1 FROM tab2
----
-124
1376
-140
3371
-150
2345

query II rowsort
SELECT - - col1 * - col2 AS col2, 50 FROM tab2 AS cor0
----
-1173
50
-3080
50
-3886
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4024
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - AVG ( - ( - col1 ) ) * + + SUM( - col0 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4024
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - AVG ( - ( - col1 ) ) * + + SUM ( - col0 ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4025
SELECT + CAST( - col0 AS SIGNED ) DIV col2 * + + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
-40
-46
-58

skipif mysql # not compatible
query I rowsort label-4025
SELECT + CAST ( - col0 AS INTEGER ) / col2 * + + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
-40
-46
-58

query I rowsort
SELECT - 42 FROM tab1 WHERE - - col2 IS NULL
----

query I rowsort
SELECT col1 * + + 47 FROM tab1 WHERE NULL IS NULL
----
2209
235
658

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4028
SELECT - ( ( + - col1 ) ) + - CAST( - - col1 AS SIGNED ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4028
SELECT - ( ( + - col1 ) ) + - CAST ( - - col1 AS INTEGER ) FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - 73 + col1 col2 FROM tab0 AS cor0
----
-139
-169
-7

query I rowsort
SELECT - + 79 * + 44 FROM tab0 AS cor0
----
-3476
-3476
-3476

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT DISTINCT + MAX( ALL + col0 ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-4031
SELECT DISTINCT + MAX ( ALL + col0 ) FROM tab1 cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT ( COUNT( DISTINCT - col0 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4032
SELECT ( COUNT ( DISTINCT - col0 ) ) AS col1 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4033
SELECT ALL + 20 AS col0 FROM tab0 WHERE + - CAST( - - col0 AS SIGNED ) <> + col0 + + col0
----
20
20
20

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL + 20 AS col0 FROM tab0 WHERE + - CAST ( - - col0 AS INTEGER ) <> + col0 + + col0
----
20
20
20

query II rowsort
SELECT - col2, + col1 + - col0 AS col2 FROM tab2 AS cor0
----
-23
5
-40
13
-58
-8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4035
SELECT MAX( - - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4035
SELECT MAX ( - - CAST ( NULL AS REAL ) ) AS col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + 38 AS col0, col2 + + col2 * + col1 * + - 35 FROM tab2 AS cor0
----
38
-107760
38
-135952
38
-41032

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 39 * - 91 > - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + + col0 AS col2, - col1 AS col1 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT ALL + + COUNT( - col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL + + COUNT ( - col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4040
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4040
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 34 * - col1 AS col1 FROM tab2 WHERE NOT ( - + 97 ) BETWEEN + col1 AND col1
----
1734
2278
2618

query I rowsort
SELECT ALL + - 96 * col0 FROM tab2 WHERE NOT NULL NOT BETWEEN - + col0 AND + 78
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + + + col0 - col1 >= - - col2
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT ALL - MAX( 50 ) FROM tab2 cor0
----
-50

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL - MAX ( 50 ) FROM tab2 cor0
----
-50

query I rowsort
SELECT DISTINCT + col2 * + col0 * ( 21 ) FROM tab1 AS cor0
----
102816
105315
129948

query I rowsort
SELECT + 99 * + col1 AS col1 FROM tab1
----
1386
4653
495

query I rowsort
SELECT ALL - 36 * + col1 + - col1 + - + col2 FROM tab0 cor0
----
-136
-3044
-787

query I rowsort
SELECT ALL + col1 * + - 19 FROM tab2 AS cor0
----
-1273
-1463
-969

query I rowsort
SELECT DISTINCT - 52 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT ALL + - SUM( DISTINCT - 17 ) * COUNT( * ) AS col0 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL + - SUM ( DISTINCT - 17 ) * COUNT ( * ) AS col0 FROM tab1 cor0
----
51

query I rowsort
SELECT DISTINCT + - col2 * + 57 AS col2 FROM tab0 AS cor0
----
-2679
-5643
-570

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4052
SELECT + CAST( NULL AS DECIMAL ) + + + COUNT( col1 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4052
SELECT + CAST ( NULL AS REAL ) + + + COUNT ( col1 ) AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 1 > + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4054
SELECT DISTINCT col2 * col0 + - ( + 31 ) DIV + col0 + - + col0 AS col1 FROM tab1 AS cor0
----
4845
4930
6097

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT col2 * col0 + - ( + 31 ) / + col0 + - + col0 AS col1 FROM tab1 AS cor0
----
4845
4930
6097

query I rowsort
SELECT ALL col2 * - ( - col2 ) + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> 96
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 IN ( 66 )
----

query II rowsort
SELECT - 97 - + + col2, col2 FROM tab0 AS cor0
----
-107
10
-144
47
-196
99

query I rowsort
SELECT - + 26 - 71 FROM tab0 AS cor0
----
-97
-97
-97

query I rowsort
SELECT + - col1 - + - col2 * col1 FROM tab0 AS cor0
----
189
3726
98

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 6 > + col1 - - 10 AND 6 NOT BETWEEN - col1 AND + + 74 / + 83 / + - 36 + - + col1
----

query I rowsort
SELECT col2 + 84 * - 95 AS col1 FROM tab0 AS cor0
----
-7881
-7933
-7970

query I rowsort
SELECT 88 * + - 3 * + col2 + + + col0 * + - col0 FROM tab0 AS cor0
----
-10209
-12633
-35545

query I rowsort
SELECT DISTINCT 57 + - col0 + - col2 * + - col0 AS col2 FROM tab1
----
4902
4987
6154

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT ALL + COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

query II rowsort
SELECT ALL - + col0 AS col2, col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query I rowsort
SELECT 96 * + - 4 * + col0 FROM tab1 cor0
----
-19584
-32640
-34944

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT DISTINCT - + SUM( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT - + SUM ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT DISTINCT - 97 * + COUNT( * ) + - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-4068
SELECT DISTINCT - 97 * + COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-294

query I rowsort
SELECT - - col1 * - + col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT + MIN( + + ( + - 78 ) ) AS col2 FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-4070
SELECT + MIN ( + + ( + - 78 ) ) AS col2 FROM tab2
----
-78

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT - 54 IS NULL
----
23
40
58

query I rowsort
SELECT ALL + ( 0 ) / col2 FROM tab1 WHERE NOT col0 * 60 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT + SUM( - col2 ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-4073
SELECT + SUM ( - col2 ) AS col2 FROM tab2
----
-121

onlyif mysql # DIV for integer division: 
query II rowsort label-4074
SELECT 91 AS col1, col1 DIV + col2 FROM tab0
----
91
0
91
1
91
2

skipif mysql # not compatible
query II rowsort label-4074
SELECT 91 AS col1, col1 / + col2 FROM tab0
----
91
0
91
1
91
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT DISTINCT - + COUNT( * ) col2 FROM tab2 WHERE NOT NULL BETWEEN - col1 + 99 * - col1 / - - 71 AND - col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4075
SELECT DISTINCT - + COUNT ( * ) col2 FROM tab2 WHERE NOT NULL BETWEEN - col1 + 99 * - col1 / - - 71 AND - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4076
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col2 )
----
0

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE 52 <> NULL
----

query I rowsort
SELECT col1 * col2 * + - col1 * + - col2 AS col2 FROM tab1 AS cor0
----
10214416
1806336
87025

query II rowsort
SELECT - col1 * 27 AS col2, 86 AS col0 FROM tab1 AS cor0
----
-1269
86
-135
86
-378
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4080
SELECT ALL - - col0 * - - col0 / - col2 * + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL - - col0 * - - col0 / - col2 * + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col2 >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4082
SELECT ALL + col1 DIV - + col0 + col1 + 71 * - col0 * 7 * + + col2 * + col0 FROM tab0
----
-37617909
-462951026
-5255699

skipif mysql # not compatible
query I rowsort label-4082
SELECT ALL + col1 / - + col0 + col1 + 71 * - col0 * 7 * + + col2 * + col0 FROM tab0
----
-37617909
-462951026
-5255699

query I rowsort
SELECT ALL - col1 - - + 79 - + - col2 AS col1 FROM tab2
----
42
51
70

query II rowsort
SELECT ( - + col1 ) + + col2 AS col0, - col2 + - col2 FROM tab2
----
-28
-46
-37
-80
-9
-116

query I rowsort
SELECT + col2 * + 21 AS col1 FROM tab0
----
2079
210
987

query I rowsort
SELECT - 70 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query II rowsort
SELECT - col1 * col0, col1 FROM tab1 AS cor0
----
-425
5
-4277
47
-714
14

query I rowsort
SELECT DISTINCT + 51 AS col1 FROM tab0 cor0
----
51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 78 BETWEEN NULL AND 57
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 44 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 95 / - ( AVG ( DISTINCT + ( - col1 ) ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 65 * col0 col2 FROM tab1
----
-3219
-5466
-5847

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT DISTINCT + COUNT( col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4094
SELECT DISTINCT + COUNT ( col2 ) FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4095
SELECT ALL CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4095
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * + + col0 IN ( col0 * - col1 + 67, col0 * 84 * + + col1 * + + col2 - + - col0, + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4097
SELECT DISTINCT - 24 FROM tab2 AS cor0 WHERE NOT ( CAST( + - 73 AS SIGNED ) ) IS NULL
----
-24

skipif mysql # not compatible
query I rowsort label-4097
SELECT DISTINCT - 24 FROM tab2 AS cor0 WHERE NOT ( CAST ( + - 73 AS INTEGER ) ) IS NULL
----
-24

query I rowsort
SELECT DISTINCT - 25 FROM tab0 cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NULL > 62 * - 89
----
0

skipif mysql # not compatible
query I rowsort label-4099
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NULL > 62 * - 89
----
0

query III rowsort
SELECT * FROM tab1 WHERE col0 >= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4102
SELECT - 96 DIV + - col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4102
SELECT - 96 / + - col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
1
1
1

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4104
SELECT - col1 + 40 + + col1 DIV - + 96 AS col0 FROM tab2 AS cor0
----
-11
-27
-37

skipif mysql # not compatible
query I rowsort label-4104
SELECT - col1 + 40 + + col1 / - + 96 AS col0 FROM tab2 AS cor0
----
-11
-27
-37

query I rowsort
SELECT DISTINCT - col1 * - 6 * + + col1 * + - col1 FROM tab2 AS cor0 WHERE NOT + col0 / + col0 * col2 BETWEEN + + 54 + 8 AND - col0
----
-1804578
-2739198
-795906

query I rowsort
SELECT DISTINCT + - ( + 68 ) AS col2 FROM tab1 AS cor0
----
-68

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 IN ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT COUNT( * ) * - - 8 FROM tab1 cor0
----
24

skipif mysql # not compatible
query I rowsort label-4108
SELECT COUNT ( * ) * - - 8 FROM tab1 cor0
----
24

query I rowsort
SELECT ALL + ( col2 ) * 61 + - - 49 FROM tab2
----
1452
2489
3587

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4110
SELECT DISTINCT - 72 * - + CAST( NULL AS SIGNED ) - col2 * + col2 * + - col1, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-4110
SELECT DISTINCT - 72 * - + CAST ( NULL AS INTEGER ) - col2 * + col2 * + - col1, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT + 40 AS col2 FROM tab1 cor0
----
40
40
40

query II rowsort
SELECT 57, col1 * + col1 FROM tab2 AS cor0 WHERE NOT 99 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 98 * + 67 AS col2 FROM tab1 AS cor0
----
6566

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 <> + 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT ALL MAX( DISTINCT + col2 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL MAX ( DISTINCT + col2 ) AS col0 FROM tab1
----
96

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 72 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4117
SELECT + ( - + MAX( ALL CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4117
SELECT + ( - + MAX ( ALL CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT ALL ( SUM( DISTINCT + + col2 ) ) AS col1 FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL ( SUM ( DISTINCT + + col2 ) ) AS col1 FROM tab1 cor0
----
223

query II rowsort
SELECT DISTINCT + 55, col1 FROM tab0 AS cor0
----
55
1
55
21
55
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * col2 - - + 77 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 7 col1, col0 AS col0 FROM tab0 AS cor0
----
7
15
7
87
7
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4122
SELECT - CAST( - 41 AS SIGNED ) FROM tab1 AS cor0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-4122
SELECT - CAST ( - 41 AS INTEGER ) FROM tab1 AS cor0
----
41
41
41

query I rowsort
SELECT ALL ( - - 69 ) AS col2 FROM tab1 AS cor0
----
69
69
69

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 * - col0 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + ( + col0 ) AS col2 FROM tab2 cor0
----
-46
-64
-75

query II rowsort
SELECT + col1 AS col1, + 18 * col1 * col0 + 97 FROM tab1 AS cor0
----
14
12949
47
77083
5
7747

query II rowsort
SELECT 53, - col1 AS col1 FROM tab1 AS cor0
----
53
-14
53
-47
53
-5

query I rowsort
SELECT - - col2 FROM tab1 WHERE NOT - 34 + + col1 NOT BETWEEN + 41 AND - 51
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 26 * + - col0 * - - 77 NOT BETWEEN + + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT DISTINCT COUNT( * ) + - ( + - 70 ) AS col1 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-4130
SELECT DISTINCT COUNT ( * ) + - ( + - 70 ) AS col1 FROM tab2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT ALL - SUM( ALL - col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL - SUM ( ALL - col1 ) FROM tab2
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 + - + col2 col1, - 44 FROM tab2
----
28
-44
37
-44
9
-44

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col0 * - col1 + + + col1 + - 97 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4134
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - col2 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - col2 AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4135
SELECT DISTINCT - - col2, CAST( - col1 AS SIGNED ) AS col0 FROM tab1 WHERE NULL <> NULL
----

skipif mysql # not compatible
query II rowsort label-4135
SELECT DISTINCT - - col2, CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT - SUM( - 31 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
279

skipif mysql # not compatible
query I rowsort label-4136
SELECT - SUM ( - 31 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
279

query I rowsort
SELECT ALL - 0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT - MAX( - + 43 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
43

skipif mysql # not compatible
query I rowsort label-4138
SELECT - MAX ( - + 43 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
43

query II rowsort
SELECT + col0, 90 AS col1 FROM tab1
----
51
90
85
90
91
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 / col1 * + col0 col0 FROM tab2 WHERE ( - col1 + - - col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4141
SELECT * FROM tab0 cor0 WHERE col2 * - 75 / col1 NOT IN ( - + 44 - CAST( + col1 AS SIGNED ), + col1 * + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4141
SELECT * FROM tab0 cor0 WHERE col2 * - 75 / col1 NOT IN ( - + 44 - CAST ( + col1 AS INTEGER ), + col1 * + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4142
SELECT + 7 * + 67 - - COUNT( * ) + - COUNT( * ) DIV ( - + 26 ) FROM tab1 AS cor0
----
472

skipif mysql # not compatible
query I rowsort label-4142
SELECT + 7 * + 67 - - COUNT ( * ) + - COUNT ( * ) / ( - + 26 ) FROM tab1 AS cor0
----
472

query I rowsort
SELECT ALL 7 * - 50 - - col2 + + - 43 + + col0 AS col0 FROM tab1 AS cor0
----
-234
-246
-249

query I rowsort
SELECT + - 34 - + 65 FROM tab0 AS cor0
----
-99
-99
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * - 82 col2 FROM tab2 cor0 WHERE NULL <> - col1 / col2
----

query I rowsort
SELECT - ( + col2 ) - - + col0 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT - ( + - col2 ) * - col1 - - col1 AS col1 FROM tab1 AS cor0
----
-1330
-290
-3149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + col1 - + col1 + col1 col1 FROM tab1 cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT ALL - SUM( ALL col2 ) FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL - SUM ( ALL col2 ) FROM tab2 cor0
----
-121

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 68 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 36 * col2 * col1 AS col1 FROM tab2 AS cor0
----
110880
139896
42228

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT COUNT( * ) + + 79 AS col0 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-4152
SELECT COUNT ( * ) + + 79 AS col0 FROM tab1
----
82

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN 84 AND - 45 * 1 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT COUNT( * ) + - 33 AS col0 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-4154
SELECT COUNT ( * ) + - 33 AS col0 FROM tab2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4155
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 9 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 9 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 40 AS col1 FROM tab1
----
40

query I rowsort
SELECT ALL col0 * - ( - col2 ) FROM tab0 AS cor0 WHERE NOT 95 - - + 71 <= - - col2
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * + - 17 + col2 col2 FROM tab1 cor0
----
1504
1615
963

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( - + ( - + 66 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 58 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query II rowsort
SELECT - 88 * + 87 AS col1, + 60 + + + col1 AS col1 FROM tab0
----
-7656
141
-7656
61
-7656
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT ALL + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + + col2 * + col2 * - ( - 1 ) + 72, 35 * 21, + col1 * - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + + col2 * + col2 * - ( - 1 ) + 72, 35 * 21, + col1 * - col2 )
----
0

query I rowsort
SELECT ( col1 ) + 5 * 72 + + col2 * col2 AS col2 FROM tab1
----
3846
5031
9590

query I rowsort
SELECT col1 * 23 + + - col2 AS col0 FROM tab0
----
-76
1816
473

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( col2 ) + - ( - 32 ) AS col1, - col2 * - col0 col1 FROM tab0
----
131
9603
42
870
79
705

query I rowsort
SELECT col2 + - - 46 FROM tab0
----
145
56
93

query I rowsort
SELECT col0 + - col0 * + + col1 AS col1 FROM tab1
----
-340
-4186
-663

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4168
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab0
----
9

query I rowsort
SELECT ALL col1 + - col0 * + col0 * - + col2 AS col0 FROM tab2
----
163917
326317
48719

query III rowsort
SELECT * FROM tab1 WHERE + 23 IS NULL
----

query I rowsort
SELECT col1 * - 57 * + col0 AS col1 FROM tab2
----
-133722
-280896
-286425

query III rowsort
SELECT * FROM tab0 WHERE - col2 + + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4173
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( - CAST( + + col0 AS SIGNED ) AS SIGNED ) / 84 < NULL
----

skipif mysql # not compatible
query III rowsort label-4173
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( - CAST ( + + col0 AS INTEGER ) AS INTEGER ) / 84 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4174
SELECT + COUNT( * ) / - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4174
SELECT + COUNT ( * ) / - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT DISTINCT + + 42 + + COUNT( * ) FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-4175
SELECT DISTINCT + + 42 + + COUNT ( * ) FROM tab2 AS cor0
----
45

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col1 * + col0 + + 7 + + col0 * col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT + COUNT( * ) - COUNT( * ) + 93 - - COUNT( * ) * + 51 FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-4177
SELECT + COUNT ( * ) - COUNT ( * ) + 93 - - COUNT ( * ) * + 51 FROM tab0 AS cor0
----
246

query I rowsort
SELECT + col0 - - col1 + col1 FROM tab2
----
148
209
218

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT + COUNT( * ) + + + MIN( 45 ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-4179
SELECT + COUNT ( * ) + + + MIN ( 45 ) FROM tab2
----
48

query I rowsort
SELECT ALL + col1 + + - col0 + - col1 AS col2 FROM tab1
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - - 3 ) * col0 + - - 87, col1 + + col2 col2 FROM tab2
----
-105
117
-138
125
-51
74

query I rowsort
SELECT DISTINCT - 57 + + col2 AS col0 FROM tab2
----
-17
-34
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4183
SELECT DISTINCT + + 68 + - 93 * CAST( NULL AS SIGNED ) FROM tab1 WHERE col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4183
SELECT DISTINCT + + 68 + - 93 * CAST ( NULL AS INTEGER ) FROM tab1 WHERE col0 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 32 - 17 * - col2 FROM tab0
----
1715
202
831

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT ALL - + COUNT( * ) - - COUNT( * ) + + - 4 AS col1 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL - + COUNT ( * ) - - COUNT ( * ) + + - 4 AS col1 FROM tab0 AS cor0
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 - + col0 col0 FROM tab2 AS cor0
----
-103
-121
-132

query I rowsort
SELECT ALL - - col1 - 55 * col0 AS col0 FROM tab2 AS cor0
----
-2479
-3443
-4058

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT DISTINCT 3 * - + MAX( + col2 ) AS col0 FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-4188
SELECT DISTINCT 3 * - + MAX ( + col2 ) AS col0 FROM tab0 AS cor0
----
-297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 col1 FROM tab1 cor0
----
-73
-73
-73

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 + 86 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * + + 67 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT col1 IS NULL )
----

query I rowsort
SELECT ALL + 4 AS col0 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 90 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4195
SELECT ALL + 55 * + col1 * + 61 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL + 55 * + col1 * + 61 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4196
SELECT ALL - col2 * + CAST( NULL AS DECIMAL ) * + + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL - col2 * + CAST ( NULL AS REAL ) * + + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + - 11 FROM tab1 AS cor0
----
-1056
-649
-748

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT ALL - + MAX( DISTINCT + col0 ) * + COUNT( * ) FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-4198
SELECT ALL - + MAX ( DISTINCT + col0 ) * + COUNT ( * ) FROM tab1 AS cor0
----
-273

query II rowsort
SELECT - col0 AS col1, col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4200
SELECT DISTINCT MAX( + col0 ) DIV 77 + + 73 AS col1 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-4200
SELECT DISTINCT MAX ( + col0 ) / 77 + + 73 AS col1 FROM tab0 AS cor0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4201
SELECT ALL - col2 * + col1 * CAST( NULL AS SIGNED ) * - + col1 + - col1 - + col2 + + 46 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL - col2 * + col1 * CAST ( NULL AS INTEGER ) * - + col1 + - col1 - + col2 + + 46 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 99 * - 2 FROM tab2 cor0
----
-198
-198
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT ALL - + COUNT( ALL - - ( 25 ) ) * + + 58 FROM tab2 cor0
----
-174

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL - + COUNT ( ALL - - ( 25 ) ) * + + 58 FROM tab2 cor0
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT + SUM( col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-4204
SELECT + SUM ( col2 ) FROM tab1
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 62 * + col2 col1 FROM tab2
----
-190960
-240932
-72726

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NULL IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT DISTINCT 2 + - MIN( + 21 ) AS col2 FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT 2 + - MIN ( + 21 ) AS col2 FROM tab0
----
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 * col2 + col2 col0 FROM tab2
----
1200
1740
690

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4209
SELECT + CAST( NULL AS SIGNED ) + + + ( + ( + 76 ) ) - 41 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4209
SELECT + CAST ( NULL AS INTEGER ) + + + ( + ( + 76 ) ) - 41 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4210
SELECT DISTINCT col1 * col0 DIV col1 DIV + col2 + col0 FROM tab1
----
51
86
92

skipif mysql # not compatible
query I rowsort label-4210
SELECT DISTINCT col1 * col0 / col1 / + col2 + col0 FROM tab1
----
51
86
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT + - COUNT( * ) + - 73 * COUNT( * ) FROM tab0 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-4211
SELECT + - COUNT ( * ) + - 73 * COUNT ( * ) FROM tab0 AS cor0
----
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT DISTINCT + COUNT( * ) * - 16 AS col0 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-4212
SELECT DISTINCT + COUNT ( * ) * - 16 AS col0 FROM tab2 AS cor0
----
-48

query I rowsort
SELECT col1 + + 66 AS col2 FROM tab2 AS cor0
----
117
133
143

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND col0
----

query II rowsort
SELECT - 45 + + 39, 27 AS col1 FROM tab1 AS cor0
----
-6
27
-6
27
-6
27

query II rowsort
SELECT ALL col1 + - - col2 + - col0 AS col0, 79 AS col2 FROM tab1
----
-21
79
24
79
59
79

query I rowsort
SELECT ALL - + 90 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT ALL COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4219
SELECT + col1 * + - ( 44 ) / + 84 - - col1 + col2 * + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4219
SELECT + col1 * + - ( 44 ) / + 84 - - col1 + col2 * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4220
SELECT COUNT( ALL CAST( NULL AS SIGNED ) ) - COUNT( * ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4220
SELECT COUNT ( ALL CAST ( NULL AS INTEGER ) ) - COUNT ( * ) col2 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 30 ) col1 FROM tab0 AS cor0
----
-30
-30
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-4222
SELECT DISTINCT 6 DIV - col0 AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4222
SELECT DISTINCT 6 / - col0 AS col0 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4223
SELECT - CAST( NULL AS SIGNED ) / + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4223
SELECT - CAST ( NULL AS INTEGER ) / + col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= col1
----

query II rowsort
SELECT - col1 * + col0, + 68 AS col2 FROM tab2
----
-2346
68
-4928
68
-5025
68

query I rowsort
SELECT + 28 * + + col1 FROM tab2
----
1428
1876
2156

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = + 43
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4228
SELECT - CAST( 69 AS SIGNED ) * col1 * - 99 + 63 + - col0 FROM tab0
----
143427
553359
6797

skipif mysql # not compatible
query I rowsort label-4228
SELECT - CAST ( 69 AS INTEGER ) * col1 * - 99 + 63 + - col0 FROM tab0
----
143427
553359
6797

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4229
SELECT + col0 col1 FROM tab2 WHERE NOT - + col2 * - CAST( + col2 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4229
SELECT + col0 col1 FROM tab2 WHERE NOT - + col2 * - CAST ( + col2 AS INTEGER ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4230
SELECT col0 DIV + + col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4230
SELECT col0 / + + col0 FROM tab1
----
1
1
1

query II rowsort
SELECT DISTINCT + ( col0 ), 25 FROM tab1
----
51
25
85
25
91
25

query I rowsort
SELECT - col1 * - - col2 * 8 AS col0 FROM tab0
----
-1680
-30456
-792

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT - + MAX( - - col0 ) FROM tab1 cor0 WHERE NOT ( + + col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4233
SELECT - + MAX ( - - col0 ) FROM tab1 cor0 WHERE NOT ( + + col1 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT + SUM( ALL 92 ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
828

skipif mysql # not compatible
query I rowsort label-4234
SELECT + SUM ( ALL 92 ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 89 col2 FROM tab0 AS cor0
----
-89
-89
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + col2 ) col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT + 93 + - SUM( - + 46 ) AS col1 FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-4237
SELECT + 93 + - SUM ( - + 46 ) AS col1 FROM tab2 AS cor0
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT DISTINCT ( - COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4238
SELECT DISTINCT ( - COUNT ( * ) ) FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 col1 FROM tab0 cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4240
SELECT - CAST( NULL AS SIGNED ) col0, - col2 - + 54 + - col1 AS col1 FROM tab0
----
NULL
-154
NULL
-182
NULL
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4240
SELECT - CAST ( NULL AS INTEGER ) col0, - col2 - + 54 + - col1 AS col1 FROM tab0
----
NULL
-154
NULL
-182
NULL
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT ALL - 73 + MIN( - col1 ) FROM tab2
----
-150

skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL - 73 + MIN ( - col1 ) FROM tab2
----
-150

query I rowsort
SELECT ALL 20 + - 99 FROM tab0
----
-79
-79
-79

query I rowsort
SELECT ALL col2 + - col1 + + - col2 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT ALL - SUM( - + 57 ) FROM tab2 WHERE NOT ( col2 IS NULL )
----
171

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL - SUM ( - + 57 ) FROM tab2 WHERE NOT ( col2 IS NULL )
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT ALL + ( ( + 43 ) ) / + - 28 + + MIN( DISTINCT + col1 ) FROM tab2 WHERE + + 34 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL + ( ( + 43 ) ) / + - 28 + + MIN ( DISTINCT + col1 ) FROM tab2 WHERE + + 34 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT + COUNT( * ) col1 FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4246
SELECT + COUNT ( * ) col1 FROM tab0, tab1 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 + - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4248
SELECT ALL - - CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= - col0
----

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL - - CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= - col0
----

query I rowsort
SELECT col2 * ( + 13 ) + - col1 FROM tab1
----
1234
762
837

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT - COUNT( * ) + - MIN( ALL col0 ) col2 FROM tab0
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4250
SELECT - COUNT ( * ) + - MIN ( ALL col0 ) col2 FROM tab0
----
-18

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 37 / - col0 * + + col1 * - col0 + col2 ) IS NULL
----

query II rowsort
SELECT DISTINCT + + col1 * + 82, - 43 + + - 46 AS col1 FROM tab1 cor0
----
1148
-89
3854
-89
410
-89

query I rowsort
SELECT + ( + - col2 ) FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT + + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT col2 * - 90 * + - col2 * - col0 AS col1 FROM tab2 AS cor0
----
-2190060
-22707000
-9216000

onlyif mysql # DIV for integer division: 
query I rowsort label-4256
SELECT ALL - ( - col1 ) DIV + 95 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL - ( - col1 ) / + 95 AS col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL <= col1
----

query II rowsort
SELECT DISTINCT - col2 AS col2, + 29 FROM tab1
----
-59
29
-68
29
-96
29

query I rowsort
SELECT - ( - 16 ) AS col2 FROM tab1
----
16
16
16

query III rowsort
SELECT * FROM tab0 WHERE NOT - 73 > + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4261
SELECT DISTINCT 70 AS col0, - COUNT( * ) DIV + 76 FROM tab1
----
70
0

skipif mysql # not compatible
query II rowsort label-4261
SELECT DISTINCT 70 AS col0, - COUNT ( * ) / + 76 FROM tab1
----
70
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT DISTINCT - COUNT( + 80 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4262
SELECT DISTINCT - COUNT ( + 80 ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT ( + 62 ) FROM tab2
----
62

query I rowsort
SELECT DISTINCT col2 * - 89 AS col0 FROM tab2
----
-2047
-3560
-5162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4265
SELECT ALL - CAST( NULL AS SIGNED ) * - - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL - CAST ( NULL AS INTEGER ) * - - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * 18 FROM tab0
----
-1458
-18
-378

onlyif mysql # DIV for integer division: 
query I rowsort label-4267
SELECT DISTINCT + col0 DIV col1 * - + col0 FROM tab1
----
-1445
-153
-91

skipif mysql # not compatible
query I rowsort label-4267
SELECT DISTINCT + col0 / col1 * - + col0 FROM tab1
----
-1445
-153
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4268
SELECT ALL - 78 DIV CAST( MIN( ALL - 74 ) AS SIGNED ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL - 78 / CAST ( MIN ( ALL - 74 ) AS INTEGER ) FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4269
SELECT col1 + - 72 DIV + col2 FROM tab2
----
48
66
76

skipif mysql # not compatible
query I rowsort label-4269
SELECT col1 + - 72 / + col2 FROM tab2
----
48
66
76

query I rowsort
SELECT 85 + - 6 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) NOT IN ( + - 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT DISTINCT + MIN( DISTINCT + 96 ) * + 69 col1 FROM tab1 WHERE NULL <= + - 20
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4271
SELECT DISTINCT + MIN ( DISTINCT + 96 ) * + 69 col1 FROM tab1 WHERE NULL <= + - 20
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4272
SELECT COUNT( * ), - COUNT( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( - + col1 )
----
0
0

skipif mysql # not compatible
query II rowsort label-4272
SELECT COUNT ( * ), - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( - + col1 )
----
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4274
SELECT + ( + 12 ) * + 1 + - + col0 DIV col2 AS col1 FROM tab2 AS cor0
----
10
11
11

skipif mysql # not compatible
query I rowsort label-4274
SELECT + ( + 12 ) * + 1 + - + col0 / col2 AS col1 FROM tab2 AS cor0
----
10
11
11

query I rowsort
SELECT - + 99 * - 18 + - + col2 * - col1 + + + col2 FROM tab0 cor0
----
1980
2002
5636

query II rowsort
SELECT - 60 * - + 25 AS col0, 61 AS col1 FROM tab2 AS cor0
----
1500
61
1500
61
1500
61

query I rowsort
SELECT col1 * col1 - - col1 + + 81 + ( + 55 ) FROM tab0
----
138
598
6778

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 IS NOT NULL AND NOT + col2 / col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4279
SELECT DISTINCT 77 DIV + ( 11 ) + - col1 FROM tab0
----
-14
-74
6

skipif mysql # not compatible
query I rowsort label-4279
SELECT DISTINCT 77 / + ( 11 ) + - col1 FROM tab0
----
-14
-74
6

query I rowsort
SELECT DISTINCT 64 + - + col0 AS col0 FROM tab1
----
-21
-27
13

query I rowsort
SELECT col1 + + + col1 + col0 FROM tab2
----
148
209
218

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 81 + col1 col0 FROM tab1
----
-118
-125
-161

query I rowsort
SELECT ALL - col0 * - + ( + col0 ) - - 41 FROM tab0
----
266
7610
9450

query I rowsort
SELECT - 29 + + col1 FROM tab0 AS cor0
----
-28
-8
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4285
SELECT DISTINCT ( COUNT( CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4285
SELECT DISTINCT ( COUNT ( CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col2 * - + col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT DISTINCT - MIN( + col0 ) col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4287
SELECT DISTINCT - MIN ( + col0 ) col1 FROM tab0 AS cor0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 12 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + ( col1 ) FROM tab1 cor0
----
-14
-47
-5

query I rowsort
SELECT ALL - 72 AS col2 FROM tab2 AS cor0
----
-72
-72
-72

query I rowsort
SELECT ALL 62 * + + col1 * col0 FROM tab1 cor0
----
26350
265174
44268

query I rowsort
SELECT ALL - - col2 * - - col0 * - - ( + + col1 ) + - + col0 FROM tab1 AS cor0
----
24990
290745
68493

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 91 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 * + 35 + + col2 FROM tab0 AS cor0
----
1692
3564
360

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT ALL COUNT( 72 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4295
SELECT ALL COUNT ( 72 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT ALL - col2 * + col2 * - + 71 AS col2 FROM tab2
----
113600
238844
37559

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT 47 * - + COUNT( * ) * - COUNT( * ) FROM tab2
----
423

skipif mysql # not compatible
query I rowsort label-4297
SELECT 47 * - + COUNT ( * ) * - COUNT ( * ) FROM tab2
----
423

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4298
SELECT DISTINCT CAST( NULL AS SIGNED ) * CAST( col2 AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4298
SELECT DISTINCT CAST ( NULL AS INTEGER ) * CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT - col2 * col2, col1 FROM tab1
----
-3481
5
-4624
47
-9216
14

query I rowsort
SELECT 88 * + - 70 AS col1 FROM tab2
----
-6160
-6160
-6160

onlyif mysql # DIV for integer division: 
query I rowsort label-4301
SELECT ALL 21 DIV - col2 col1 FROM tab0
----
-2
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4301
SELECT ALL 21 / - col2 col1 FROM tab0
----
-2
0
0

query I rowsort
SELECT col2 * - + col2 * + col1 FROM tab0
----
-178929
-2100
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT ALL + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT - MAX( DISTINCT - + ( 15 ) ) AS col0 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4304
SELECT - MAX ( DISTINCT - + ( 15 ) ) AS col0 FROM tab1 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4305
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4305
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - - 16 + + 13 AS col2 FROM tab0 cor0
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT ALL - MIN( - col2 ) AS col0 FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-4307
SELECT ALL - MIN ( - col2 ) AS col0 FROM tab1 cor0
----
96

query I rowsort
SELECT - - col0 * + col0 AS col2 FROM tab0 AS cor0 WHERE ( - col0 NOT IN ( - - 92, + 61 ) )
----
225
7569
9409

query I rowsort
SELECT ALL 8 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4310
SELECT 48 DIV 55 + - - 54 AS col1 FROM tab0 AS cor0
----
54
54
54

skipif mysql # not compatible
query I rowsort label-4310
SELECT 48 / 55 + - - 54 AS col1 FROM tab0 AS cor0
----
54
54
54

query III rowsort
SELECT * FROM tab1 WHERE col2 NOT BETWEEN - ( - - col2 ) * + + 38 + - col2 AND - 40 * + - col0 / 96
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * - - ( 0 ) FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4313
SELECT DISTINCT CAST( - + col0 AS SIGNED ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4313
SELECT DISTINCT CAST ( - + col0 AS INTEGER ) + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT + col2 FROM tab1 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT + 95 + col0 FROM tab2
----
141
159
170

query I rowsort
SELECT col2 * + col2 - + - col2 FROM tab1 WHERE + - 44 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4317
SELECT CAST( + col1 AS SIGNED ) - + 24 AS col1 FROM tab1 AS cor0
----
-10
-19
23

skipif mysql # not compatible
query I rowsort label-4317
SELECT CAST ( + col1 AS INTEGER ) - + 24 AS col1 FROM tab1 AS cor0
----
-10
-19
23

query II rowsort
SELECT DISTINCT 80 - + col1, - col1 AS col1 FROM tab0 AS cor0
----
-1
-81
59
-21
79
-1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT + col0 IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4320
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) * + 7 AS col2 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) * + 7 AS col2 FROM tab2
----
-21

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 64 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 60, col0 FROM tab0
----
60
15
60
87
60
97

query I rowsort
SELECT + col2 * 52 + + + 57 AS col2 FROM tab1 AS cor0
----
3125
3593
5049

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + + col2 col0 FROM tab0 AS cor0
----
210
3807
99

query II rowsort
SELECT col1, - col2 + ( ( - 43 ) ) FROM tab1 AS cor0
----
14
-139
47
-111
5
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT DISTINCT + SUM( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4327
SELECT DISTINCT + SUM ( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT DISTINCT 33 * 78 + + 99 FROM tab2 AS cor0
----
2673

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT MIN( ALL - - col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4329
SELECT MIN ( ALL - - col1 ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 5 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4331
SELECT DISTINCT 36 AS col1, COUNT( * ) FROM tab0
----
36
3

skipif mysql # not compatible
query II rowsort label-4331
SELECT DISTINCT 36 AS col1, COUNT ( * ) FROM tab0
----
36
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT ALL COUNT( * ) * - + MIN( ALL + + col2 ) FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL COUNT ( * ) * - + MIN ( ALL + + col2 ) FROM tab1
----
-177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 45 * + col1 col2 FROM tab0
----
-3645
-45
-945

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE NOT + col0 * - col2 IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4335
SELECT ALL + CAST( 51 AS SIGNED ) FROM tab1
----
51
51
51

skipif mysql # not compatible
query I rowsort label-4335
SELECT ALL + CAST ( 51 AS INTEGER ) FROM tab1
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT DISTINCT + MAX( + + col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4336
SELECT DISTINCT + MAX ( + + col0 ) FROM tab1
----
91

query I rowsort
SELECT - col0 * - ( + 76 ) FROM tab1
----
3876
6460
6916

query I rowsort
SELECT 77 * - - col0 * - - col2 - col0 FROM tab0 AS cor0
----
54270
66903
739334

query I rowsort
SELECT + - col1 + + - col2 AS col1 FROM tab0 cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT ALL + 81 * + MAX( DISTINCT - col0 ) FROM tab0 AS cor0
----
-1215

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL + 81 * + MAX ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-1215

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT DISTINCT - MIN( col1 ) * + COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT - MIN ( col1 ) * + COUNT ( * ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT ALL + ( 10 ) - - 45 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4344
SELECT + 3 + + col2 + CAST( NULL AS SIGNED ) FROM tab2 WHERE + + 23 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4344
SELECT + 3 + + col2 + CAST ( NULL AS INTEGER ) FROM tab2 WHERE + + 23 IS NULL
----

query I rowsort
SELECT ALL 50 + + col0 FROM tab0
----
137
147
65

query I rowsort
SELECT DISTINCT - 28 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-28

query II rowsort
SELECT - ( + col2 ), + col1 FROM tab2
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT ALL MAX( - - 93 ) * 85 AS col1 FROM tab0 AS cor0
----
7905

skipif mysql # not compatible
query I rowsort label-4348
SELECT ALL MAX ( - - 93 ) * 85 AS col1 FROM tab0 AS cor0
----
7905

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT DISTINCT - + MAX( 82 ) AS col0 FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-4349
SELECT DISTINCT - + MAX ( 82 ) AS col0 FROM tab0 AS cor0
----
-82

query I rowsort
SELECT ALL - col2 - col1 FROM tab0 cor0
----
-100
-128
-31

query I rowsort
SELECT 86 - ( col2 ) + + 12 FROM tab2 AS cor0
----
40
58
75

query II rowsort
SELECT ALL - col1 * 30 AS col0, 0 + - 86 AS col0 FROM tab1 AS cor0
----
-1410
-86
-150
-86
-420
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4353
SELECT DISTINCT 23 DIV + COUNT( * ) FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT 23 / + COUNT ( * ) FROM tab0
----
7

query I rowsort
SELECT DISTINCT col2 * col2 + 75 FROM tab2 WHERE NOT 95 + col2 NOT BETWEEN - + col2 AND - + 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT - COUNT( * ) AS col2 FROM tab2, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4355
SELECT - COUNT ( * ) AS col2 FROM tab2, tab0 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 74 col1 FROM tab0
----
-59
13
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT SUM( - - col1 ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4357
SELECT SUM ( - - col1 ) AS col0 FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT DISTINCT + COUNT( * ) + + - ( + COUNT( * ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4358
SELECT DISTINCT + COUNT ( * ) + + - ( + COUNT ( * ) ) FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - 30 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4360
SELECT ALL - col2 * - col1 + - - 43 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL - col2 * - col1 + - - 43 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 - + + 3 AS col2 FROM tab2 AS cor0
----
-49
-67
-78

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) >= + col2 * - col2 / - 84
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 + col0 * + col0 col2 FROM tab1
----
2651
7275
8331

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4364
SELECT - col1 * + CAST( NULL AS SIGNED ) - col2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4364
SELECT - col1 * + CAST ( NULL AS INTEGER ) - col2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT - ( COUNT( * ) ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4365
SELECT - ( COUNT ( * ) ) col1 FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 63 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT + MIN( ALL - col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-4367
SELECT + MIN ( ALL - col2 ) FROM tab0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 45 ) col2 FROM tab1
----
-45
-45
-45

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT DISTINCT - MIN( DISTINCT 93 ) AS col1 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-4370
SELECT DISTINCT - MIN ( DISTINCT 93 ) AS col1 FROM tab0
----
-93

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT - col1 <= ( + 69 / col2 )
----

query I rowsort
SELECT col0 - + 31 AS col0 FROM tab2
----
15
33
44

query III rowsort
SELECT * FROM tab0 WHERE + col1 NOT BETWEEN - 99 AND ( + 56 )
----
15
81
47

query I rowsort
SELECT ALL ( + 96 ) AS col1 FROM tab1
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT ALL + COUNT( DISTINCT col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL + COUNT ( DISTINCT col2 ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 39 + + col0 * - col2 ) NOT BETWEEN 79 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 <= + col0 * - 15
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4378
SELECT ALL CAST( + col0 AS SIGNED ) AS col2 FROM tab1 WHERE NOT col0 + CAST( NULL AS DECIMAL ) BETWEEN NULL AND - 22
----

skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 WHERE NOT col0 + CAST ( NULL AS REAL ) BETWEEN NULL AND - 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT + COUNT( * ) * - 14 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-4379
SELECT + COUNT ( * ) * - 14 FROM tab1
----
-42

query III rowsort
SELECT * FROM tab0 WHERE - col0 / col2 >= ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - col2 ) + col0 AS col2 FROM tab1
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4382
SELECT CAST( - 29 AS DECIMAL ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4382
SELECT CAST ( - 29 AS REAL ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( + col1 - + col1 / col1 )
----

query I rowsort
SELECT + col0 * 79 FROM tab1
----
4029
6715
7189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4385
SELECT ALL 12 + + CAST( - 65 AS SIGNED ) FROM tab1 WHERE - CAST( col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4385
SELECT ALL 12 + + CAST ( - 65 AS INTEGER ) FROM tab1 WHERE - CAST ( col2 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT ALL SUM( + 22 ) + - 37 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL SUM ( + 22 ) + - 37 FROM tab1
----
29

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 <> NULL
----

query I rowsort
SELECT DISTINCT + 6 + col1 AS col2 FROM tab1 AS cor0
----
11
20
53

query I rowsort
SELECT ALL + col0 * 72 AS col0 FROM tab0 AS cor0
----
1080
6264
6984

query I rowsort
SELECT ALL - 91 + col2 FROM tab2
----
-33
-51
-68

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL ( - col2 ) + - col2 AS col1 FROM tab1
----
-118
-136
-192

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4393
SELECT DISTINCT * FROM tab1 WHERE 15 >= + CAST( 52 AS SIGNED ) + + col0
----

skipif mysql # not compatible
query III rowsort label-4393
SELECT DISTINCT * FROM tab1 WHERE 15 >= + CAST ( 52 AS INTEGER ) + + col0
----

query III rowsort
SELECT * FROM tab2 WHERE 38 * + col2 <> - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * col1 AS col2 FROM tab2 AS cor0 WHERE NULL < + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT DISTINCT + + MIN( ALL col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT + + MIN ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL 93 - - 8 AS col0 FROM tab1 AS cor0
----
101
101
101

query I rowsort
SELECT DISTINCT 94 - col0 FROM tab1 AS cor0
----
3
43
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 94 < col0
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4400
SELECT * FROM tab2 AS cor0 WHERE ( 45 ) IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4400
SELECT * FROM tab2 AS cor0 WHERE ( 45 ) IN ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4401
SELECT - COUNT( * ) DIV 46 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4401
SELECT - COUNT ( * ) / 46 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 79 * - ( - col0 ) FROM tab2 AS cor0
----
3634
5056
5925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4403
SELECT ALL COUNT( * ) DIV - 91 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4403
SELECT ALL COUNT ( * ) / - 91 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + 62 + - col1 FROM tab1
----
15
48
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4405
SELECT + CAST( NULL AS SIGNED ) / col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4405
SELECT + CAST ( NULL AS INTEGER ) / col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 38 * - 74 FROM tab1
----
-2812
-2812
-2812

query I rowsort
SELECT col1 * + - 9 - - col0 * + 52 AS col0 FROM tab0
----
4335
5035
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT - 47 - + + ( COUNT( * ) ) * 53 FROM tab2
----
-206

skipif mysql # not compatible
query I rowsort label-4408
SELECT - 47 - + + ( COUNT ( * ) ) * 53 FROM tab2
----
-206

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4409
SELECT DISTINCT + 68 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4409
SELECT DISTINCT + 68 + + CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT + MAX( - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4410
SELECT + MAX ( - col0 ) FROM tab2
----
-46

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 87 * ( - col0 ) + col0 ) BETWEEN + col0 + ( - col1 ) AND ( - col2 )
----

query I rowsort
SELECT + ( col2 ) AS col0 FROM tab2 WHERE NOT col2 * 44 <> ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4413
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4414
SELECT - ( - 35 ) DIV 26 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4414
SELECT - ( - 35 ) / 26 FROM tab2 cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4415
SELECT - - ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4415
SELECT - - ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - 70 ) + + col1 * 21 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT - + SUM( + + col2 ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4417
SELECT - + SUM ( + + col2 ) AS col1 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT DISTINCT - - 32 AS col2 FROM tab0 AS cor0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4419
SELECT DISTINCT - 61 FROM tab2 WHERE NULL NOT IN ( - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4419
SELECT DISTINCT - 61 FROM tab2 WHERE NULL NOT IN ( - - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4420
SELECT DISTINCT - 14 AS col1, col2 DIV + ( col2 ) AS col1 FROM tab0
----
-14
1

skipif mysql # not compatible
query II rowsort label-4420
SELECT DISTINCT - 14 AS col1, col2 / + ( col2 ) AS col1 FROM tab0
----
-14
1

query I rowsort
SELECT 76 - 96 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT + COUNT( * ) FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4422
SELECT + COUNT ( * ) FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > + 23 + col1
----

query II rowsort
SELECT - col2, col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT - 81 * - + 65 FROM tab1 AS cor0
----
5265
5265
5265

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + ( 83 ) ) FROM tab0 AS cor0
----
-83
-83
-83

query I rowsort
SELECT + + ( + + 81 ) FROM tab2 AS cor0
----
81
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4429
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( - ( - 98 ) AS SIGNED ) * CAST( col2 AS SIGNED ) BETWEEN ( - 90 ) AND col0 / 38
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4429
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( - ( - 98 ) AS INTEGER ) * CAST ( col2 AS INTEGER ) BETWEEN ( - 90 ) AND col0 / 38
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * - 90 * - - col1 FROM tab2 AS cor0
----
-211140
-443520
-452250

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT - - MAX( - - 50 ) AS col1 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-4431
SELECT - - MAX ( - - 50 ) AS col1 FROM tab1 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT COUNT( * ) + + 30 FROM tab2 AS cor0 WHERE NOT ( col2 + col1 ) IS NOT NULL
----
30

skipif mysql # not compatible
query I rowsort label-4432
SELECT COUNT ( * ) + + 30 FROM tab2 AS cor0 WHERE NOT ( col2 + col1 ) IS NOT NULL
----
30

query I rowsort
SELECT DISTINCT + + ( + + col0 ) FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL col1 * col2 + + + col0 AS col1 FROM tab2
----
1219
3144
3961

query I rowsort
SELECT ALL 25 * - col0 FROM tab1
----
-1275
-2125
-2275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4436
SELECT - col0 + 81 AS col0 FROM tab1 WHERE NULL < - CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4436
SELECT - col0 + 81 AS col0 FROM tab1 WHERE NULL < - CAST ( col1 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4437
SELECT DISTINCT + ( - col2 ) DIV + col2 + + 71 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-4437
SELECT DISTINCT + ( - col2 ) / + col2 + + 71 FROM tab2
----
70

query I rowsort
SELECT ALL col0 FROM tab1 WHERE + - 32 / ( - col1 ) * + col1 + - 70 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT DISTINCT MIN( + 84 ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-4439
SELECT DISTINCT MIN ( + 84 ) FROM tab0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT ALL + 65 * - 29 * - COUNT( * ) col0 FROM tab2 AS cor0
----
5655

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4440
SELECT ALL + 65 * - 29 * - COUNT ( * ) col0 FROM tab2 AS cor0
----
5655

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT COUNT( * ) - 92 FROM tab1 AS cor0 WHERE ( NOT ( - col2 * 84 IN ( 89 + 30 * 18 ) ) )
----
-89

skipif mysql # not compatible
query I rowsort label-4441
SELECT COUNT ( * ) - 92 FROM tab1 AS cor0 WHERE ( NOT ( - col2 * 84 IN ( 89 + 30 * 18 ) ) )
----
-89

query I rowsort
SELECT + + col2 + - col1 + 18 FROM tab0 AS cor0
----
-16
116
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT DISTINCT + + ( - COUNT( * ) ) - - COUNT( * ) + SUM( DISTINCT 34 ) FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-4443
SELECT DISTINCT + + ( - COUNT ( * ) ) - - COUNT ( * ) + SUM ( DISTINCT 34 ) FROM tab1 AS cor0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4444
SELECT - col2 * - ( + CAST( NULL AS SIGNED ) ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4444
SELECT - col2 * - ( + CAST ( NULL AS INTEGER ) ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 91 AS col1 FROM tab2 cor0
----
91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4446
SELECT col2, + col2 + - CAST( NULL AS DECIMAL ), + col1 AS col0 FROM tab1
----
9 values hashing to 889bedb7cd03ac990d2f01cb001c5e70

skipif mysql # not compatible
query III rowsort label-4446
SELECT col2, + col2 + - CAST ( NULL AS REAL ), + col1 AS col0 FROM tab1
----
9 values hashing to 889bedb7cd03ac990d2f01cb001c5e70

query I rowsort
SELECT - col1 * - col0 - 70 * + col1 AS col0 FROM tab2 cor0
----
-1224
-462
335

onlyif mysql # DIV for integer division: 
query I rowsort label-4448
SELECT ALL + + col1 - ( col2 ) + col0 * col0 + 69 DIV col1 AS col0 FROM tab0 AS cor0
----
259
7583
9380

skipif mysql # not compatible
query I rowsort label-4448
SELECT ALL + + col1 - ( col2 ) + col0 * col0 + 69 / col1 AS col0 FROM tab0 AS cor0
----
259
7583
9380

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT COUNT( ALL - - col2 ) * COUNT( * ) - - 24 AS col0 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-4449
SELECT COUNT ( ALL - - col2 ) * COUNT ( * ) - - 24 AS col0 FROM tab0 AS cor0
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 36 - 1 * col2 col2 FROM tab1 AS cor0
----
-23
-32
-60

query I rowsort
SELECT - + 30 * + + 22 * + col0 - ( - 15 ) + 56 AS col2 FROM tab0 AS cor0
----
-57349
-63949
-9829

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * - col2 * + 10 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL AND NOT NULL IN ( + col2 )
----

query II rowsort
SELECT DISTINCT col0, col0 * + - col0 AS col1 FROM tab1
----
51
-2601
85
-7225
91
-8281

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 44 <> + + col1 + - col1 + - col0 + col1 * ( + col1 )
----

query I rowsort
SELECT - col1 * - col2 FROM tab2 WHERE NOT ( + - 10 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 78 * - col0 AS col2 FROM tab0
----
-1170
-6786
-7566

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NOT NULL IN ( - 96 )
----

query I rowsort
SELECT DISTINCT + ( + 42 ) FROM tab1
----
42

query I rowsort
SELECT ALL + col0 * 23 FROM tab2
----
1058
1472
1725

query I rowsort
SELECT DISTINCT 63 * + col1 * + 41 FROM tab2
----
131733
173061
198891

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT MIN( ALL + 10 ) * + - 29 FROM tab0
----
-290

skipif mysql # not compatible
query I rowsort label-4462
SELECT MIN ( ALL + 10 ) * + - 29 FROM tab0
----
-290

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4463
SELECT CAST( + col2 AS SIGNED ), - col1 AS col0 FROM tab1
----
59
-5
68
-47
96
-14

skipif mysql # not compatible
query II rowsort label-4463
SELECT CAST ( + col2 AS INTEGER ), - col1 AS col0 FROM tab1
----
59
-5
68
-47
96
-14

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + 98 IN ( col1 * + col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4465
SELECT - col1 DIV - 25 FROM tab2 AS cor0
----
2
2
3

skipif mysql # not compatible
query I rowsort label-4465
SELECT - col1 / - 25 FROM tab2 AS cor0
----
2
2
3

query II rowsort
SELECT DISTINCT - + 2 AS col1, - col1 FROM tab0 AS cor0
----
-2
-1
-2
-21
-2
-81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 63 <= ( + col0 )
----
15
81
47

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT + ( - COUNT( * ) ) * 97 AS col1 FROM tab0 AS cor0 WHERE NOT ( + 66 ) = - 41 + col2 + - 72
----
-291

skipif mysql # not compatible
query I rowsort label-4469
SELECT + ( - COUNT ( * ) ) * 97 AS col1 FROM tab0 AS cor0 WHERE NOT ( + 66 ) = - 41 + col2 + - 72
----
-291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 44 col0 FROM tab1
----
2596
2992
4224

onlyif mysql # aggregate syntax: 
query II rowsort label-4471
SELECT ALL + + 80 AS col2, + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
80
9

skipif mysql # not compatible
query II rowsort label-4471
SELECT ALL + + 80 AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
80
9

query I rowsort
SELECT DISTINCT - 29 * 24 FROM tab2
----
-696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4473
SELECT DISTINCT + 4 + - 98 AS col0 FROM tab2 WHERE - col1 * + col0 NOT BETWEEN + CAST( NULL AS SIGNED ) + - - col0 AND ( - - col2 )
----

skipif mysql # not compatible
query I rowsort label-4473
SELECT DISTINCT + 4 + - 98 AS col0 FROM tab2 WHERE - col1 * + col0 NOT BETWEEN + CAST ( NULL AS INTEGER ) + - - col0 AND ( - - col2 )
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE NOT ( - col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4475
SELECT DISTINCT + 27 DIV 69 col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4475
SELECT DISTINCT + 27 / 69 col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + 80 + + - col0 IS NULL )
----

query I rowsort
SELECT - 67 + - 8 FROM tab1 AS cor0
----
-75
-75
-75

query I rowsort
SELECT + col2 * - + col2 * - 50 * 15 * - - ( - + col2 ) + - col0 * col0 + col0 * + col1 FROM tab2 AS cor0
----
-146334600
-47999168
-9125020

onlyif mysql # DIV for integer division: 
query I rowsort label-4480
SELECT col1 DIV - col0 - - 27 + 74 - + 54 FROM tab2 AS cor0
----
46
46
47

skipif mysql # not compatible
query I rowsort label-4480
SELECT col1 / - col0 - - 27 + 74 - + 54 FROM tab2 AS cor0
----
46
46
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT - COUNT( * ) + - 55 * SUM( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
3627

skipif mysql # not compatible
query I rowsort label-4481
SELECT - COUNT ( * ) + - 55 * SUM ( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
3627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4482
SELECT - 50 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4482
SELECT - 50 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4483
SELECT DISTINCT * FROM tab1 WHERE - col0 * 48 * 13 + - col2 + + col1 + - ( - CAST( + col2 AS SIGNED ) ) * 6 BETWEEN ( NULL ) AND 13 / + col0
----

skipif mysql # not compatible
query III rowsort label-4483
SELECT DISTINCT * FROM tab1 WHERE - col0 * 48 * 13 + - col2 + + col1 + - ( - CAST ( + col2 AS INTEGER ) ) * 6 BETWEEN ( NULL ) AND 13 / + col0
----

query I rowsort
SELECT - 82 * + + col1 FROM tab1
----
-1148
-3854
-410

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT DISTINCT + COUNT( col0 ) FROM tab0 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4485
SELECT DISTINCT + COUNT ( col0 ) FROM tab0 WHERE col0 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4486
SELECT DISTINCT + 1 + + col1 * + CAST( NULL AS SIGNED ) - - 28 + - col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT + 1 + + col1 * + CAST ( NULL AS INTEGER ) - - 28 + - col0 FROM tab2
----
NULL

query II rowsort
SELECT col0, - 37 AS col0 FROM tab1
----
51
-37
85
-37
91
-37

query I rowsort
SELECT ALL 36 + + col1 FROM tab2
----
103
113
87

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( + ( col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 54 + + col1 col0 FROM tab1
----
101
59
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4491
SELECT col0 * + - CAST( + + 61 AS SIGNED ) * + col1 AS col1 FROM tab2
----
-143106
-300608
-306525

skipif mysql # not compatible
query I rowsort label-4491
SELECT col0 * + - CAST ( + + 61 AS INTEGER ) * + col1 AS col1 FROM tab2
----
-143106
-300608
-306525

query I rowsort
SELECT - col1 * - 23 + + col2 + - - col1 AS col2 FROM tab2 AS cor0
----
1247
1666
1888

query I rowsort
SELECT + col2 + - 19 FROM tab0 AS cor0
----
-9
28
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4494
SELECT col2 + + CAST( - - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
116
46
80

skipif mysql # not compatible
query I rowsort label-4494
SELECT col2 + + CAST ( - - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT + col0 + - - 34 AS col0 FROM tab1
----
119
125
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT ALL - COUNT( * ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4496
SELECT ALL - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT ALL - + 62 - - COUNT( * ) * - 72 * + COUNT( * ) col1 FROM tab0 cor0
----
-710

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4497
SELECT ALL - + 62 - - COUNT ( * ) * - 72 * + COUNT ( * ) col1 FROM tab0 cor0
----
-710

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 <> 25
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT DISTINCT - COUNT( - ( - 16 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4499
SELECT DISTINCT - COUNT ( - ( - 16 ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + - 29 AS col2 FROM tab0 AS cor0
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-4501
SELECT DISTINCT + MAX( DISTINCT 43 ), COUNT( * ) col0 FROM tab2 AS cor0
----
43
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4501
SELECT DISTINCT + MAX ( DISTINCT 43 ), COUNT ( * ) col0 FROM tab2 AS cor0
----
43
3

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 cor0 WHERE NULL > col2 + col0
----

query II rowsort
SELECT + + ( + col0 ), - col0 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4504
SELECT ALL + - 84 * CAST( - 98 AS SIGNED ) FROM tab1 AS cor0
----
8232
8232
8232

skipif mysql # not compatible
query I rowsort label-4504
SELECT ALL + - 84 * CAST ( - 98 AS INTEGER ) FROM tab1 AS cor0
----
8232
8232
8232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4505
SELECT ALL CAST( NULL AS SIGNED ) * - 20 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL CAST ( NULL AS INTEGER ) * - 20 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - 14 * + - col0, + col1 AS col0 FROM tab0 AS cor0
----
1218
21
1358
1
210
81

query I rowsort
SELECT 68 * + 33 + ( + col1 ) FROM tab2 AS cor0
----
2295
2311
2321

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 NOT BETWEEN ( col0 * - - col2 / + col0 + + col1 + - 73 + + 92 / - 11 ) AND ( + col0 )
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4509
SELECT + col1 col0 FROM tab2 WHERE NOT - - ( - col0 ) BETWEEN + CAST( - + 78 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4509
SELECT + col1 col0 FROM tab2 WHERE NOT - - ( - col0 ) BETWEEN + CAST ( - + 78 AS INTEGER ) AND NULL
----

query II rowsort
SELECT + + col0 * col1 AS col1, col1 / - col2 FROM tab0 WHERE NOT + ( - - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4511
SELECT DISTINCT 27 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT 27 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4512
SELECT DISTINCT + col2 + - - 67 AS col1 FROM tab0 WHERE NOT CAST( + col0 AS SIGNED ) > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4512
SELECT DISTINCT + col2 + - - 67 AS col1 FROM tab0 WHERE NOT CAST ( + col0 AS INTEGER ) > ( NULL )
----

query I rowsort
SELECT + - 5 AS col1 FROM tab0 AS cor0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT 38 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-4515
SELECT - - 9 DIV - col2 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4515
SELECT - - 9 / - col2 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4516
SELECT - ( + 80 ) * ( - - col0 ) DIV + col1 FROM tab0 AS cor0
----
-14
-331
-7760

skipif mysql # not compatible
query I rowsort label-4516
SELECT - ( + 80 ) * ( - - col0 ) / + col1 FROM tab0 AS cor0
----
-14
-331
-7760

query I rowsort
SELECT DISTINCT - 25 AS col0 FROM tab0 AS cor0 WHERE NOT NULL > - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT ALL ( + - MIN( ALL 59 ) ) FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL ( + - MIN ( ALL 59 ) ) FROM tab0 AS cor0
----
-59

query I rowsort
SELECT - col1 * + - col2 AS col0 FROM tab1 AS cor0
----
1344
295
3196

query II rowsort
SELECT - col2, + col2 AS col1 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 - + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT ALL COUNT( + + col1 ) FROM tab2 AS cor0 WHERE ( + 88 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL COUNT ( + + col1 ) FROM tab2 AS cor0 WHERE ( + 88 ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4523
SELECT DISTINCT ( + + col0 ) * - - CAST( + col1 AS SIGNED ) * + ( + col1 ) + col2 FROM tab0 AS cor0
----
196
38377
98462

skipif mysql # not compatible
query I rowsort label-4523
SELECT DISTINCT ( + + col0 ) * - - CAST ( + col1 AS INTEGER ) * + ( + col1 ) + col2 FROM tab0 AS cor0
----
196
38377
98462

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col2 BETWEEN - 7 * col1 * - 28 * col0 AND 80 + - 22
----

query I rowsort
SELECT - + col1 FROM tab1 WHERE - - 6 IS NOT NULL
----
-14
-47
-5

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col1 + + - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 * + 33 AS col1 FROM tab0 WHERE + 32 - + col0 - 82 NOT IN ( - - col0 * + - col2, 19 * + col2 )
----
-2673
-33
-693

onlyif mysql # DIV for integer division: 
query I rowsort label-4529
SELECT 19 DIV 95 + col0 AS col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4529
SELECT 19 / 95 + col0 AS col2 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT - COUNT( * ) * + 55 + - - COUNT( * ) FROM tab2 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-4530
SELECT - COUNT ( * ) * + 55 + - - COUNT ( * ) FROM tab2 AS cor0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT DISTINCT - ( COUNT( ALL - + 46 ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4531
SELECT DISTINCT - ( COUNT ( ALL - + 46 ) ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + 99 + - - col2 FROM tab0 cor0
----
109
146
198

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 BETWEEN NULL AND + - col2
----

query I rowsort
SELECT - ( ( col2 ) ) - ( col1 ) AS col2 FROM tab0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT ALL - ( - SUM( - col0 ) ) FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL - ( - SUM ( - col0 ) ) FROM tab2 cor0
----
-185

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 37 + - 90 - + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT + COUNT( ALL - + 78 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4537
SELECT + COUNT ( ALL - + 78 ) col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL + col0, 40 FROM tab1 AS cor0
----
51
40
85
40
91
40

onlyif mysql # aggregate syntax: 
query II rowsort label-4539
SELECT - COUNT( * ), - 24 AS col0 FROM tab2 AS cor0
----
-3
-24

skipif mysql # not compatible
query II rowsort label-4539
SELECT - COUNT ( * ), - 24 AS col0 FROM tab2 AS cor0
----
-3
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 7, + col0 col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-7
46
-7
64
-7
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 col1 FROM tab0 cor0
----
69
69
69

onlyif mysql # aggregate syntax: 
query II rowsort label-4542
SELECT DISTINCT + COUNT( ALL + + col1 ) * - 21 AS col1, - 67 FROM tab0 AS cor0
----
-63
-67

skipif mysql # not compatible
query II rowsort label-4542
SELECT DISTINCT + COUNT ( ALL + + col1 ) * - 21 AS col1, - 67 FROM tab0 AS cor0
----
-63
-67

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4544
SELECT DISTINCT col1 * + + CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4544
SELECT DISTINCT col1 * + + CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4545
SELECT * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-4545
SELECT * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + + 21 + col1 IS NOT NULL
----

query II rowsort
SELECT ALL - col1 * + col0 * + col1 AS col1, 46 * - col1 AS col2 FROM tab0
----
-38367
-966
-97
-46
-98415
-3726

query II rowsort
SELECT DISTINCT col2 + ( - col1 ), col0 FROM tab1
----
21
91
54
85
82
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4549
SELECT ALL col0 DIV + 14 AS col1 FROM tab2
----
3
4
5

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL col0 / + 14 AS col1 FROM tab2
----
3
4
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4550
SELECT ALL + - CAST( - 13 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL + - CAST ( - 13 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT + 35 FROM tab1 AS cor0 WHERE NULL >= col2 * - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 73 * - - col2 col1 FROM tab1 AS cor0
----
-4307
-4964
-7008

query I rowsort
SELECT DISTINCT col1 * 4 + + col2 AS col2 FROM tab1 AS cor0
----
152
256
79

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT + 8 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4555
SELECT + 8 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
5

query I rowsort
SELECT 15 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
15
15

onlyif mysql # DIV for integer division: 
query I rowsort label-4557
SELECT ALL - ( - + col2 ) DIV + col0 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL - ( - + col2 ) / + col0 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 12 * + 90 col2 FROM tab1
----
1080
1080
1080

query I rowsort
SELECT DISTINCT + 94 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4560
SELECT DISTINCT + col1 DIV + - col1 col1, 40 FROM tab0
----
-1
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4560
SELECT DISTINCT + col1 / + - col1 col1, 40 FROM tab0
----
-1
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT COUNT( * ) * + 29 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-4561
SELECT COUNT ( * ) * + 29 FROM tab1
----
87

onlyif mysql # DIV for integer division: 
query II rowsort label-4562
SELECT + col1 col2, col1 DIV + col1 - + - col2 FROM tab0
----
1
100
21
11
81
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4562
SELECT + col1 col2, col1 / + col1 - + - col2 FROM tab0
----
1
100
21
11
81
48

query III rowsort
SELECT * FROM tab1 WHERE ( - - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + + ( + ( col0 ) ) AS col0, + col0 FROM tab0 WHERE - col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4565
SELECT ALL + col0 * col0 * + col1 - + CAST( + - col0 AS SIGNED ) * col0 FROM tab1 AS cor0
----
39015
397488
43350

skipif mysql # not compatible
query I rowsort label-4565
SELECT ALL + col0 * col0 * + col1 - + CAST ( + - col0 AS INTEGER ) * col0 FROM tab1 AS cor0
----
39015
397488
43350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - + col1 col1 FROM tab0 AS cor0
----
-162
-2
-42

query I rowsort
SELECT DISTINCT - 22 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-22

query I rowsort
SELECT DISTINCT 38 + - - col2 * - 75 FROM tab0 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT ALL MIN( col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL MIN ( col0 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT - 86 AS col1 FROM tab0 cor0
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT 43 * COUNT( * ) FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-4571
SELECT 43 * COUNT ( * ) FROM tab0
----
129

query I rowsort
SELECT ALL col2 * - - 20 AS col0 FROM tab2
----
1160
460
800

query I rowsort
SELECT ALL - col0 + - col0 FROM tab0 WHERE NOT ( 55 ) IS NULL
----
-174
-194
-30

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT NULL >= ( + col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + 80
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4576
SELECT col2 DIV col1 * - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4576
SELECT col2 / col1 * - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 52 - col1 = - col1 OR ( - 33 * col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 + + col0 + col2 AS col0 FROM tab1
----
198
229
250

query I rowsort
SELECT - col2 + - 58 * + + 13 FROM tab2
----
-777
-794
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT ALL + + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL + + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + ( - 63 ) * + 5 + - 68 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # DIV for integer division: 
query I rowsort label-4582
SELECT ALL - col2 DIV + - col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4582
SELECT ALL - col2 / + - col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT + MIN( col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4583
SELECT + MIN ( col1 ) AS col2 FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4584
SELECT + col0 DIV + col1 AS col2, + col0 + + - CAST( NULL AS SIGNED ) + - - 85 AS col0 FROM tab0 AS cor0
----
0
NULL
4
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-4584
SELECT + col0 / + col1 AS col2, + col0 + + - CAST ( NULL AS INTEGER ) + - - 85 AS col0 FROM tab0 AS cor0
----
0
NULL
4
NULL
97
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4585
SELECT ALL - col0 DIV + - 2 FROM tab2 AS cor0
----
23
32
37

skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL - col0 / + - 2 FROM tab2 AS cor0
----
23
32
37

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 cor0 WHERE NOT ( NOT - col0 IS NOT NULL )
----
59
68
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 85 * + - col2 NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT - 62 * ( + + 30 ) FROM tab1 cor0
----
-1860
-1860
-1860

query I rowsort
SELECT ALL col0 - 30 FROM tab1 AS cor0
----
21
55
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4590
SELECT ( + + col0 ) + col2 * - + 24 AS col0, CAST( - col0 AS SIGNED ) + col0 FROM tab1 AS cor0
----
-1331
0
-1541
0
-2253
0

skipif mysql # not compatible
query II rowsort label-4590
SELECT ( + + col0 ) + col2 * - + 24 AS col0, CAST ( - col0 AS INTEGER ) + col0 FROM tab1 AS cor0
----
-1331
0
-1541
0
-2253
0

query II rowsort
SELECT DISTINCT + col1 AS col0, 88 * + col2 + + - 81 AS col2 FROM tab2
----
51
1943
67
5023
77
3439

onlyif mysql # DIV for integer division: 
query I rowsort label-4592
SELECT + col0 + - + col0 DIV + col1 AS col1 FROM tab2
----
46
64
74

skipif mysql # not compatible
query I rowsort label-4592
SELECT + col0 + - + col0 / + col1 AS col1 FROM tab2
----
46
64
74

onlyif mysql # aggregate syntax: 
query II rowsort label-4593
SELECT DISTINCT + 37, COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 = NULL
----
37
0

skipif mysql # not compatible
query II rowsort label-4593
SELECT DISTINCT + 37, COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 = NULL
----
37
0

query I rowsort
SELECT DISTINCT + 39 + - + ( + - 54 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
93

query I rowsort
SELECT DISTINCT col2 * - 50 FROM tab1
----
-2950
-3400
-4800

query II rowsort
SELECT ALL 68, + col2 AS col1 FROM tab1
----
68
59
68
68
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 * + ( - col1 ) col2 FROM tab2
----
-4845
-6365
-7315

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT ALL COUNT( - 69 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL COUNT ( - 69 ) AS col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT + + col1 * - - col2, + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT ALL - COUNT( * ) * + 50 * - 6 AS col1 FROM tab2 AS cor0
----
900

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL - COUNT ( * ) * + 50 * - 6 AS col1 FROM tab2 AS cor0
----
900

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 * + ( - col2 ) col1 FROM tab0
----
-33135
-8700
-950697

query I rowsort
SELECT col0 * 28 * 51 FROM tab1
----
121380
129948
72828

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT DISTINCT + MIN( ALL + col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-4604
SELECT DISTINCT + MIN ( ALL + col0 ) AS col0 FROM tab2
----
46

query I rowsort
SELECT ALL 97 * - 33 + - col2 AS col0 FROM tab2
----
-3224
-3241
-3259

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT DISTINCT COUNT( * ) * - 32 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND + 94
----
0

skipif mysql # not compatible
query I rowsort label-4606
SELECT DISTINCT COUNT ( * ) * - 32 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND + 94
----
0

query I rowsort
SELECT - col1 * ( + ( + col1 ) ) FROM tab2 AS cor0
----
-2601
-4489
-5929

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + - col1 + - 27 <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT ALL COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4609
SELECT ALL COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4610
SELECT + CAST( + + COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4610
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT - COUNT( * ) + - ( - - ( - 61 ) ) col1 FROM tab0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4611
SELECT - COUNT ( * ) + - ( - - ( - 61 ) ) col1 FROM tab0
----
58

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col2 > ( ( + col0 ) + + - col0 + col1 * + col2 + + 81 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT ALL COUNT( + + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL COUNT ( + + col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + 30 AS col1 FROM tab0 AS cor0 WHERE 3 NOT BETWEEN + col1 AND col0
----
30
30

query I rowsort
SELECT + + 89 AS col1 FROM tab0 AS cor0
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT DISTINCT - COUNT( * ) * 49 + - - 42 - + - 49 AS col1 FROM tab2 cor0
----
-56

skipif mysql # not compatible
query I rowsort label-4616
SELECT DISTINCT - COUNT ( * ) * 49 + - - 42 - + - 49 AS col1 FROM tab2 cor0
----
-56

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 52, 69 col0 FROM tab2 AS cor0
----
52
69
52
69
52
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT + COUNT( * ) * + + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4619
SELECT + COUNT ( * ) * + + COUNT ( * ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT - 63 - - COUNT( * ) AS col0 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-4620
SELECT - 63 - - COUNT ( * ) AS col0 FROM tab1
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col0 * col0 col2 FROM tab1
----
-2550
-7140
-8190

query II rowsort
SELECT - 81 - + - col0, ( + + col1 ) AS col1 FROM tab0
----
-66
81
16
1
6
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE ( NOT 4 IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-4623
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE ( NOT 4 IS NULL )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT ALL MIN( - col0 ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-4624
SELECT ALL MIN ( - col0 ) AS col0 FROM tab2
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-4625
SELECT ALL + - 55 DIV + + 75 * - - col2 + col0 + - 15 AS col2 FROM tab2 AS cor0
----
31
49
60

skipif mysql # not compatible
query I rowsort label-4625
SELECT ALL + - 55 / + + 75 * - - col2 + col0 + - 15 AS col2 FROM tab2 AS cor0
----
31
49
60

query I rowsort
SELECT - - col2 * + + col2 AS col2 FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT + 92 AS col2 FROM tab1 cor0
----
92
92
92

query I rowsort
SELECT - + 71 * + 54 AS col1 FROM tab2 cor0
----
-3834
-3834
-3834

query I rowsort
SELECT ALL 68 * + col1 FROM tab0
----
1428
5508
68

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE NOT + - 26 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT - COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT ( NOT NULL <= + - 23 * - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4631
SELECT - COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT ( NOT NULL <= + - 23 * - col0 )
----
0

query I rowsort
SELECT - + col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4633
SELECT DISTINCT COUNT( * ) DIV - ( + COUNT( * ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4633
SELECT DISTINCT COUNT ( * ) / - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT COUNT( - + 46 ) FROM tab2 AS cor0 WHERE NOT col0 * - col2 + - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4634
SELECT COUNT ( - + 46 ) FROM tab2 AS cor0 WHERE NOT col0 * - col2 + - col0 IS NOT NULL
----
0

query II rowsort
SELECT - 95, - col2 AS col0 FROM tab0 cor0
----
-95
-10
-95
-47
-95
-99

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + col0 + col0 AND + + ( - col0 )
----

query I rowsort
SELECT - col1 * col2 + + + ( + ( ( - 40 ) ) ) AS col0 FROM tab1 AS cor0
----
-1384
-3236
-335

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT + 40 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-4638
SELECT + 40 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
120

query II rowsort
SELECT ALL col2, col2 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4640
SELECT DISTINCT - ( - 78 ) DIV COUNT( * ) AS col0 FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-4640
SELECT DISTINCT - ( - 78 ) / COUNT ( * ) AS col0 FROM tab0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4641
SELECT ALL ( + - SUM( + CAST( + CAST( CAST( + - 82 AS SIGNED ) AS SIGNED ) AS SIGNED ) ) ) FROM tab2
----
246

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL ( + - SUM ( + CAST ( + CAST ( CAST ( + - 82 AS INTEGER ) AS INTEGER ) AS INTEGER ) ) ) FROM tab2
----
246

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + col2 + - - col2 AS col2 FROM tab1
----
118
136
192

query I rowsort
SELECT + - 90 + 77 FROM tab1 AS cor0
----
-13
-13
-13

query I rowsort
SELECT DISTINCT - + 23 * + col0 FROM tab0 AS cor0
----
-2001
-2231
-345

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4646
SELECT DISTINCT + + col2 * + + CAST( + 70 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1610
2800
4060

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT + + col2 * + + CAST ( + 70 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1610
2800
4060

onlyif mysql # aggregate syntax: 
query II rowsort label-4647
SELECT DISTINCT - MIN( - 75 ) col2, - 19 FROM tab2 AS cor0
----
75
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4647
SELECT DISTINCT - MIN ( - 75 ) col2, - 19 FROM tab2 AS cor0
----
75
-19

query I rowsort
SELECT col0 + - - 90 AS col2 FROM tab0 AS cor0
----
105
177
187

query I rowsort
SELECT ALL 57 * col0 - + - 46 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
2668
3694
4321

query I rowsort
SELECT - col1 FROM tab2 WHERE - col2 NOT BETWEEN NULL AND 87
----

query I rowsort
SELECT ALL - - 99 * 25 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 665ed90edce0a3b1ba5a6ee01a267072

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE col0 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - col1 + + 49 FROM tab2 AS cor0
----
-18
-2
-28

query I rowsort
SELECT ALL col2 * - + col0 + + - col2 - col1 * - 38 * ( - col2 ) + - col0 FROM tab2 AS cor0
----
-119704
-152151
-45701

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 24 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT DISTINCT 22 - SUM( ALL - 64 ) + + COUNT( * ) FROM tab1 AS cor0
----
217

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT 22 - SUM ( ALL - 64 ) + + COUNT ( * ) FROM tab1 AS cor0
----
217

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 * - + 47 + - col1 - + + col0 col1 FROM tab1 AS cor0
----
-2744
-2769
-2817

query I rowsort
SELECT ALL + col2 - - col0 + + - col0 FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT + - col0 / 68 - + - 55 + 72 FROM tab1 AS cor0 WHERE NULL > 14
----

query I rowsort
SELECT + ( - - col2 ) + 39 + - col2 * 88 FROM tab2 AS cor0
----
-1962
-3441
-5007

query I rowsort
SELECT DISTINCT - - 53 FROM tab1 AS cor0 WHERE NOT 7 IS NOT NULL
----

query II rowsort
SELECT ALL - 85 AS col1, col1 + - + 41 FROM tab1
----
-85
-27
-85
-36
-85
6

query I rowsort
SELECT ALL 94 FROM tab0 WHERE NOT - + col2 IS NULL
----
94
94
94

onlyif mysql # DIV for integer division: 
query I rowsort label-4664
SELECT + 98 DIV + col0 AS col0 FROM tab0
----
1
1
6

skipif mysql # not compatible
query I rowsort label-4664
SELECT + 98 / + col0 AS col0 FROM tab0
----
1
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT COUNT( * ) * - 78 col2 FROM tab2
----
-234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4665
SELECT COUNT ( * ) * - 78 col2 FROM tab2
----
-234

query I rowsort
SELECT ALL + col1 * - 50 FROM tab2
----
-2550
-3350
-3850

query I rowsort
SELECT + + col0 FROM tab1 WHERE NOT - col1 + - col0 IS NULL
----
51
85
91

query III rowsort
SELECT * FROM tab1 WHERE NOT - 43 - + - 43 * - col2 * - col1 NOT BETWEEN 18 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT - MAX( ALL - col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4669
SELECT - MAX ( ALL - col0 ) AS col2 FROM tab0
----
15

query I rowsort
SELECT + col0 * + - col0 AS col2 FROM tab1
----
-2601
-7225
-8281

query II rowsort
SELECT - col2 AS col0, col2 FROM tab0
----
-10
10
-47
47
-99
99

query II rowsort
SELECT ALL - col2 AS col1, col1 + - col0 AS col1 FROM tab0 AS cor0
----
-10
-66
-47
66
-99
-96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= col2 / + col0
----

query I rowsort
SELECT DISTINCT + + ( 87 ) AS col2 FROM tab1 AS cor0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4675
SELECT DISTINCT CAST( - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT - 32 AS col1 FROM tab0 WHERE NOT col2 = - - col2 OR NULL <> + - 8
----

query I rowsort
SELECT + + ( + 62 ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT + 11 * - COUNT( * ) AS col0 FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-4678
SELECT + 11 * - COUNT ( * ) AS col0 FROM tab2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT ALL - - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL - - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 * + - col0 > - - 58
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 49 < - 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT ALL + MAX( col1 ) + + + COUNT( * ) * 43 FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL + MAX ( col1 ) + + + COUNT ( * ) * 43 FROM tab0
----
210

query I rowsort
SELECT - col0 * - ( col1 ) FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT ALL - COUNT( * ) - MIN( - + col2 ) AS col0 FROM tab0 WHERE + col1 NOT BETWEEN col0 AND + col0
----
96

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL - COUNT ( * ) - MIN ( - + col2 ) AS col0 FROM tab0 WHERE + col1 NOT BETWEEN col0 AND + col0
----
96

query I rowsort
SELECT + 27 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT ALL col1 + - 91 FROM tab1
----
-44
-77
-86

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 <> + ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT ALL ( - - MAX( + col2 ) ) AS col0 FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-4688
SELECT ALL ( - - MAX ( + col2 ) ) AS col0 FROM tab2 cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4689
SELECT AVG ( - 8 ) * - 51 - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + + 71 / 19 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4689
SELECT AVG ( - 8 ) * - 51 - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + + 71 / 19 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 59 - + ( 22 ) * + - col2 AS col1 FROM tab1 AS cor0
----
1357
1555
2171

query I rowsort
SELECT 99 + - 66 AS col0 FROM tab2
----
33
33
33

query I rowsort
SELECT + 18 + col1 FROM tab1
----
23
32
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT DISTINCT - + SUM( col2 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-223

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT - + SUM ( col2 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT ALL MAX( col0 ) + + + 25 * + - ( + - COUNT( * ) ) + 2 FROM tab2
----
152

skipif mysql # not compatible
query I rowsort label-4694
SELECT ALL MAX ( col0 ) + + + 25 * + - ( + - COUNT ( * ) ) + 2 FROM tab2
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT DISTINCT - + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4695
SELECT DISTINCT - + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-9

query I rowsort
SELECT DISTINCT + + ( - col2 ) + - col2 FROM tab0 AS cor0
----
-198
-20
-94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + + 35
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 IN ( col0 + + - 22, 91, 97, + + col2 + - 43 )
----
91
47
68

query II rowsort
SELECT ALL col0 AS col1, + 22 AS col0 FROM tab0 AS cor0
----
15
22
87
22
97
22

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 - + col2 IN ( + + 89 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + + col1, + 16 + col2 + + ( - 34 ) FROM tab1 AS cor0
----
14
78
47
50
5
41

onlyif mysql # DIV for integer division: 
query I rowsort label-4702
SELECT - 89 DIV col2 col1 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4702
SELECT - 89 / col2 col1 FROM tab2
----
-1
-2
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4703
SELECT - 55 DIV - COUNT( - col1 ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-4703
SELECT - 55 / - COUNT ( - col1 ) FROM tab2
----
18

query I rowsort
SELECT 44 * - 64 AS col0 FROM tab0
----
-2816
-2816
-2816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 - - col2 col0 FROM tab1 AS cor0
----
2277
292
84

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 <= NULL
----

query II rowsort
SELECT DISTINCT col2 * + + col0 AS col0, - col2 * + + col0 FROM tab1 AS cor0
----
4896
-4896
5015
-5015
6188
-6188

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * + col1 IN ( - col2, 86 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4709
SELECT col2 * - CAST( - 28 AS SIGNED ) AS col0 FROM tab2
----
1120
1624
644

skipif mysql # not compatible
query I rowsort label-4709
SELECT col2 * - CAST ( - 28 AS INTEGER ) AS col0 FROM tab2
----
1120
1624
644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4710
SELECT - + CAST( NULL AS SIGNED ) + + COUNT( * ) * - - AVG ( ALL - CAST( - - col1 AS DECIMAL ) ) + 49 AS col2 FROM tab2 AS cor0 WHERE NOT col0 * 30 >= col1 + - CAST( NULL AS SIGNED ) + + - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-4710
SELECT - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * - - AVG ( ALL - CAST ( - - col1 AS REAL ) ) + 49 AS col2 FROM tab2 AS cor0 WHERE NOT col0 * 30 >= col1 + - CAST ( NULL AS INTEGER ) + + - 90
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4711
SELECT 66 AS col1, - SUM( - col2 ) AS col1 FROM tab2 AS cor0
----
66
121

skipif mysql # not compatible
query II rowsort label-4711
SELECT 66 AS col1, - SUM ( - col2 ) AS col1 FROM tab2 AS cor0
----
66
121

query II rowsort
SELECT - col1 AS col0, 80 AS col2 FROM tab0 AS cor0
----
-1
80
-21
80
-81
80

query I rowsort
SELECT DISTINCT + 72 * 78 AS col1 FROM tab0 cor0
----
5616

query I rowsort
SELECT + col1 * - + col2 FROM tab0 AS cor0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( - col0 - + 25 + - col1 * + + 99 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col1 * col0 * + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 12 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT + 0 + - MIN( DISTINCT 88 ) FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-4718
SELECT + 0 + - MIN ( DISTINCT 88 ) FROM tab2
----
-88

query I rowsort
SELECT col1 + + - 19 * col0 AS col0 FROM tab0
----
-1632
-1842
-204

onlyif mysql # DIV for integer division: 
query I rowsort label-4720
SELECT + col0 DIV 84 + 90 FROM tab2
----
90
90
90

skipif mysql # not compatible
query I rowsort label-4720
SELECT + col0 / 84 + 90 FROM tab2
----
90
90
90

onlyif mysql # DIV for integer division: 
query I rowsort label-4721
SELECT ALL - 62 DIV col1 + + col1 FROM tab1 AS cor0
----
-7
10
46

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL - 62 / col1 + + col1 FROM tab1 AS cor0
----
-7
10
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4722
SELECT DISTINCT col0 - - CAST( NULL AS SIGNED ) * + ( + CAST( NULL AS SIGNED ) ) + + ( col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) = - CAST( NULL AS SIGNED ) * - col1 - - col1
----

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT col0 - - CAST ( NULL AS INTEGER ) * + ( + CAST ( NULL AS INTEGER ) ) + + ( col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) = - CAST ( NULL AS INTEGER ) * - col1 - - col1
----

query I rowsort
SELECT - col1 * + - col0 AS col1 FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4724
SELECT - + 57 - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4724
SELECT - + 57 - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4725
SELECT + COUNT( * ) * - CAST( - + ( + - MIN( - - 35 ) ) AS SIGNED ) FROM tab0 cor0
----
-105

skipif mysql # not compatible
query I rowsort label-4725
SELECT + COUNT ( * ) * - CAST ( - + ( + - MIN ( - - 35 ) ) AS INTEGER ) FROM tab0 cor0
----
-105

query I rowsort
SELECT DISTINCT + 17 * + col1 AS col2 FROM tab1 AS cor0
----
238
799
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4727
SELECT - ( - - CAST( NULL AS SIGNED ) ) * + 8 + - col1 + + 95 + - col0 * + 77 * - col0 AS col0, col2 FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4727
SELECT - ( - - CAST ( NULL AS INTEGER ) ) * + 8 + - col1 + + 95 + - col0 * + 77 * - col0 AS col0, col2 FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT DISTINCT + COUNT( * ) FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4728
SELECT DISTINCT + COUNT ( * ) FROM tab0, tab1 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 75 col0, + col0 * + - col0 FROM tab2
----
-75
-2116
-75
-4096
-75
-5625

query II rowsort
SELECT ALL + 16, + col2 FROM tab1
----
16
59
16
68
16
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, col0 col2 FROM tab1
----
51
51
85
85
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, + col2 FROM tab0
----
-1
99
-21
10
-81
47

query II rowsort
SELECT 13 * + - 65, col2 FROM tab1
----
-845
59
-845
68
-845
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4734
SELECT COUNT( * ), + 15 col2 FROM tab0
----
3
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4734
SELECT COUNT ( * ), + 15 col2 FROM tab0
----
3
15

query II rowsort
SELECT col2 AS col1, 95 * - col1 * + 18 AS col0 FROM tab0 AS cor0
----
10
-35910
47
-138510
99
-1710

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT DISTINCT SUM( ALL col2 ) + - 39 FROM tab1 AS cor0
----
184

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT SUM ( ALL col2 ) + - 39 FROM tab1 AS cor0
----
184

query I rowsort
SELECT DISTINCT + 15 - - 29 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4738
SELECT ALL + + COUNT( ALL + col0 ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL + + COUNT ( ALL + col0 ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT DISTINCT + MIN( ALL - + 23 ) + - SUM( col2 ) col2 FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4739
SELECT DISTINCT + MIN ( ALL - + 23 ) + - SUM ( col2 ) col2 FROM tab2 AS cor0
----
-144

query I rowsort
SELECT - 50 * col2 * - col0 FROM tab2 cor0
----
128000
217500
52900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4741
SELECT - CAST( NULL AS SIGNED ) * - 78 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4741
SELECT - CAST ( NULL AS INTEGER ) * - 78 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE col2 * - 57 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 40 AS col1 FROM tab1
----
-40
-40
-40

query III rowsort
SELECT ALL + col2 + - col1 - + col1, 39 AS col1, - 56 AS col0 FROM tab1
----
9 values hashing to c4753736c5dcd6d2006edf058737523a

query III rowsort
SELECT * FROM tab2 WHERE col1 * - 49 + + - 82 = - + 90
----

query II rowsort
SELECT + col0, 36 AS col2 FROM tab0
----
15
36
87
36
97
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4747
SELECT ALL CAST( NULL AS SIGNED ) * SUM( col2 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4747
SELECT ALL CAST ( NULL AS INTEGER ) * SUM ( col2 ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 13 col2 FROM tab2 AS cor0
----
-13

query II rowsort
SELECT DISTINCT - col1 - - 9 - + col1 AS col1, col0 AS col0 FROM tab0 AS cor0
----
-153
15
-33
87
7
97

query I rowsort
SELECT DISTINCT 51 AS col0 FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT 92 AS col1 FROM tab2, tab2 AS cor0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4752
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * col0 / - col1 * - CAST( NULL AS SIGNED ) * + col2 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4752
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * col0 / - col1 * - CAST ( NULL AS INTEGER ) * + col2 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4753
SELECT DISTINCT + MIN( DISTINCT - 30 ) AS col2, COUNT( * ) FROM tab1 AS cor0
----
-30
3

skipif mysql # not compatible
query II rowsort label-4753
SELECT DISTINCT + MIN ( DISTINCT - 30 ) AS col2, COUNT ( * ) FROM tab1 AS cor0
----
-30
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT - SUM( - col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-4754
SELECT - SUM ( - col0 ) AS col0 FROM tab1 AS cor0
----
227

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 / col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 6 FROM tab0 cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query II rowsort label-4757
SELECT ALL COUNT( DISTINCT + 38 ) AS col2, - COUNT( * ) FROM tab0 AS cor0
----
1
-3

skipif mysql # not compatible
query II rowsort label-4757
SELECT ALL COUNT ( DISTINCT + 38 ) AS col2, - COUNT ( * ) FROM tab0 AS cor0
----
1
-3

query I rowsort
SELECT DISTINCT 40 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + 85 * - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4759
SELECT ALL + 11 DIV - COUNT( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL + 11 / - COUNT ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT - MAX( + 89 ) AS col1 FROM tab0 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-4760
SELECT - MAX ( + 89 ) AS col1 FROM tab0 AS cor0
----
-89

query I rowsort
SELECT DISTINCT ( 93 ) FROM tab2
----
93

query I rowsort
SELECT - 77 * - - col0 FROM tab0
----
-1155
-6699
-7469

query I rowsort
SELECT DISTINCT col1 * 18 FROM tab0
----
1458
18
378

query III rowsort
SELECT * FROM tab2 WHERE NOT + 10 + - 72 = - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + + col0 + + + col2 * - 16 - - + 10 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4766
SELECT col0 / col1 + + + CAST( NULL AS SIGNED ), col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-4766
SELECT col0 / col1 + + + CAST ( NULL AS INTEGER ), col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT DISTINCT + COUNT( + - col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT + COUNT ( + - col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT + - 67 + - 97 + + - COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
-155

skipif mysql # not compatible
query I rowsort label-4768
SELECT + - 67 + - 97 + + - COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT ALL MAX( + 92 ) col2 FROM tab1 AS cor0
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4769
SELECT ALL MAX ( + 92 ) col2 FROM tab1 AS cor0
----
92

query I rowsort
SELECT - + col1 * - 16 + + + 99 + - col0 FROM tab0 AS cor0
----
1380
18
348

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT 14 + - COUNT( * ) FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-4771
SELECT 14 + - COUNT ( * ) FROM tab1 AS cor0
----
11

query I rowsort
SELECT - + col0 FROM tab1 cor0 WHERE NOT + ( 40 ) IS NULL
----
-51
-85
-91

query I rowsort
SELECT ALL ( 39 ) AS col0 FROM tab2
----
39
39
39

query I rowsort
SELECT ALL + 65 + + col0 FROM tab0
----
152
162
80

query I rowsort
SELECT - 97 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT DISTINCT MIN( + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4776
SELECT DISTINCT MIN ( + col2 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT ( + 83 ) AS col2 FROM tab1 AS cor0
----
83
83
83

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < + 26
----

query II rowsort
SELECT ALL - - 51 AS col1, + 56 FROM tab0 AS cor0
----
51
56
51
56
51
56

query II rowsort
SELECT DISTINCT - 21 AS col2, - col1 AS col2 FROM tab1 AS cor0
----
-21
-14
-21
-47
-21
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 67 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 56 col1 FROM tab0 AS cor0
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT DISTINCT + + SUM( ALL + ( - + col0 ) ) col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4783
SELECT DISTINCT + + SUM ( ALL + ( - + col0 ) ) col2 FROM tab2 AS cor0
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 col1, ( - + col2 ) + 89 FROM tab2 AS cor0
----
-51
66
-67
31
-77
49

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4785
SELECT 36 * col1 AS col0, CAST( NULL AS DECIMAL ) + + - 79 FROM tab0 AS cor0
----
2916
NULL
36
NULL
756
NULL

skipif mysql # not compatible
query II rowsort label-4785
SELECT 36 * col1 AS col0, CAST ( NULL AS REAL ) + + - 79 FROM tab0 AS cor0
----
2916
NULL
36
NULL
756
NULL

query I rowsort
SELECT ( + + col1 ) - + ( + col1 ) + + 56 + - 58 * - col1 AS col0 FROM tab1 AS cor0
----
2782
346
868

query I rowsort
SELECT DISTINCT ( 10 ) AS col0 FROM tab1 cor0
----
10

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( col1 ) NOT BETWEEN + 14 AND + + col1 + - + 25
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4790
SELECT DISTINCT col1 + - - col1 DIV + + col2 + + col0 FROM tab2
----
142
143
99

skipif mysql # not compatible
query I rowsort label-4790
SELECT DISTINCT col1 + - - col1 / + + col2 + + col0 FROM tab2
----
142
143
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT ALL COUNT( * ) * 1 * - + 61 + 18 FROM tab1
----
-165

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL COUNT ( * ) * 1 * - + 61 + 18 FROM tab1
----
-165

query I rowsort
SELECT DISTINCT - col1 + - ( + col0 ) AS col1 FROM tab2
----
-141
-142
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4793
SELECT - ( + ( SUM( + - col2 ) ) ) * + COUNT( 53 ) + + MIN( ALL ( - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4793
SELECT - ( + ( SUM ( + - col2 ) ) ) * + COUNT ( 53 ) + + MIN ( ALL ( - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT 81 + - 84 FROM tab0
----
-3
-3
-3

query I rowsort
SELECT DISTINCT - 2 * col2 FROM tab1 AS cor0
----
-118
-136
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT ALL + - MAX( DISTINCT col1 ) FROM tab1 cor0 WHERE NOT ( NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL + - MAX ( DISTINCT col1 ) FROM tab1 cor0 WHERE NOT ( NULL IS NULL )
----
NULL

query II rowsort
SELECT + - col1 AS col0, + 49 + - 82 + - 1 - - col0 * + col2 AS col1 FROM tab1 AS cor0
----
-14
4862
-47
6154
-5
4981

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 * 56 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 BETWEEN + 43 AND NULL
----
87
21
10
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4800
SELECT + 25 * col1 DIV - - ( + - col2 ) FROM tab1
----
-17
-2
-3

skipif mysql # not compatible
query I rowsort label-4800
SELECT + 25 * col1 / - - ( + - col2 ) FROM tab1
----
-17
-2
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-4801
SELECT DISTINCT col2 DIV col1 AS col0, col0 AS col1 FROM tab0
----
0
15
0
87
99
97

skipif mysql # not compatible
query II rowsort label-4801
SELECT DISTINCT col2 / col1 AS col0, col0 AS col1 FROM tab0
----
0
15
0
87
99
97

query II rowsort
SELECT - col1 * - col0, col2 FROM tab0
----
1215
47
1827
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT ALL 13 * - ( + COUNT( * ) ) FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL 13 * - ( + COUNT ( * ) ) FROM tab1
----
-39

query I rowsort
SELECT + 92 * + 7 AS col2 FROM tab1
----
644
644
644

onlyif mysql # DIV for integer division: 
query I rowsort label-4805
SELECT DISTINCT - 53 DIV col1 * - col2 * col2 col0 FROM tab0
----
0
200
519453

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4805
SELECT DISTINCT - 53 / col1 * - col2 * col2 col0 FROM tab0
----
0
200
519453

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4806
SELECT ALL col0 col1 FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4806
SELECT ALL col0 col1 FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4807
SELECT ALL * FROM tab1 cor0 WHERE + 94 BETWEEN - + CAST( NULL AS DECIMAL ) AND ( col0 )
----

skipif mysql # not compatible
query III rowsort label-4807
SELECT ALL * FROM tab1 cor0 WHERE + 94 BETWEEN - + CAST ( NULL AS REAL ) AND ( col0 )
----

query I rowsort
SELECT ALL - 77 * - - col1 AS col1 FROM tab2 AS cor0 WHERE NULL < NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 <> - + col1 + - ( - + col2 )
----

query I rowsort
SELECT DISTINCT - - ( + 17 ) AS col1 FROM tab1 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT ALL - SUM( 38 ) FROM tab0 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL - SUM ( 38 ) FROM tab0 AS cor0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT COUNT( * ) * 62 col1 FROM tab1 AS cor0
----
186

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4812
SELECT COUNT ( * ) * 62 col1 FROM tab1 AS cor0
----
186

query I rowsort
SELECT DISTINCT - 90 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT 25 * COUNT( ALL ( + col1 ) ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4814
SELECT 25 * COUNT ( ALL ( + col1 ) ) FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT 56 * - - COUNT( * ) FROM tab1
----
168

skipif mysql # not compatible
query I rowsort label-4815
SELECT 56 * - - COUNT ( * ) FROM tab1
----
168

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 11 IS NULL
----

query I rowsort
SELECT - + 13 * + col1 / - + col2 FROM tab2 WHERE 56 BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4818
SELECT 60 AS col0, CAST( col2 AS SIGNED ) col2 FROM tab2
----
60
23
60
40
60
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4818
SELECT 60 AS col0, CAST ( col2 AS INTEGER ) col2 FROM tab2
----
60
23
60
40
60
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4819
SELECT - 78 DIV - col2 FROM tab2
----
1
1
3

skipif mysql # not compatible
query I rowsort label-4819
SELECT - 78 / - col2 FROM tab2
----
1
1
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4820
SELECT + 69 AS col0, col2 DIV 82 FROM tab1
----
69
0
69
0
69
1

skipif mysql # not compatible
query II rowsort label-4820
SELECT + 69 AS col0, col2 / 82 FROM tab1
----
69
0
69
0
69
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4821
SELECT - 97 - + col1 DIV col2 DIV + - 59 AS col1 FROM tab2
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-4821
SELECT - 97 - + col1 / col2 / + - 59 AS col1 FROM tab2
----
-97
-97
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4822
SELECT - 76 * + - 54 * - - col2 DIV + col2 AS col2 FROM tab2 WHERE 49 IS NOT NULL
----
4104
4104
4104

skipif mysql # not compatible
query I rowsort label-4822
SELECT - 76 * + - 54 * - - col2 / + col2 AS col2 FROM tab2 WHERE 49 IS NOT NULL
----
4104
4104
4104

query III rowsort
SELECT * FROM tab1 WHERE - 31 IS NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT - 33 > NULL AND NOT col2 BETWEEN col0 AND - 22
----

query I rowsort
SELECT ALL + + col1 - 81 FROM tab0 AS cor0
----
-60
-80
0

query I rowsort
SELECT 13 * col2 AS col1 FROM tab2 AS cor0
----
299
520
754

onlyif mysql # DIV for integer division: 
query I rowsort label-4827
SELECT + + col0 DIV + 98 + ( ( + + col1 ) ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4827
SELECT + + col0 / + 98 + ( ( + + col1 ) ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + - 64 * + + 46 + + - ( - + col0 ) FROM tab2 AS cor0
----
-2869
-2880
-2898

query I rowsort
SELECT col2 * + 73 FROM tab2
----
1679
2920
4234

query I rowsort
SELECT DISTINCT 70 * + 54 FROM tab2
----
3780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4831
SELECT DISTINCT - MIN( + 52 ) FROM tab1 WHERE NOT - col0 * + CAST( + col1 AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4831
SELECT DISTINCT - MIN ( + 52 ) FROM tab1 WHERE NOT - col0 * + CAST ( + col1 AS INTEGER ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT 95 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 18 IS NOT NULL
----

query I rowsort
SELECT ALL 11 * - col0 * + 97 FROM tab2 AS cor0
----
-49082
-68288
-80025

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT ALL MIN( DISTINCT 74 ) * + ( - - SUM( DISTINCT + + 36 ) ) col0 FROM tab0 AS cor0
----
2664

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4835
SELECT ALL MIN ( DISTINCT 74 ) * + ( - - SUM ( DISTINCT + + 36 ) ) col0 FROM tab0 AS cor0
----
2664

onlyif mysql # DIV for integer division: 
query I rowsort label-4836
SELECT + 96 DIV + col0 col1 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4836
SELECT + 96 / + col0 col1 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 68 * + ( + - col0 ) AS col1 FROM tab0
----
-1020
-5916
-6596

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * - col0 * - + 80 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 WHERE - - col1 BETWEEN + col2 AND NULL
----

query II rowsort
SELECT ALL - 75, col1 FROM tab1
----
-75
14
-75
47
-75
5

query I rowsort
SELECT DISTINCT 66 * col2 AS col1 FROM tab1 AS cor0
----
3894
4488
6336

onlyif mysql # DIV for integer division: 
query I rowsort label-4843
SELECT ALL + 8 DIV - col2 AS col1 FROM tab2 AS cor0 WHERE NOT col1 + col0 DIV - col1 + 39 <= col0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL + 8 / - col2 AS col1 FROM tab2 AS cor0 WHERE NOT col1 + col0 / - col1 + 39 <= col0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT - + 27 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-4844
SELECT - + 27 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( - col1 ) AND ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4845
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( - col1 ) AND ( col1 )
----
0

query I rowsort
SELECT + 46 + col0 FROM tab2 AS cor0
----
110
121
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT + - 58 + - - COUNT( * ) FROM tab1 cor0
----
-55

skipif mysql # not compatible
query I rowsort label-4847
SELECT + - 58 + - - COUNT ( * ) FROM tab1 cor0
----
-55

query II rowsort
SELECT ALL 86 AS col0, col2 FROM tab2 AS cor0
----
86
23
86
40
86
58

query I rowsort
SELECT 79 + 50 FROM tab1
----
129
129
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4850
SELECT CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4850
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( col1 )
----

query I rowsort
SELECT - col0 / + 92 AS col0 FROM tab1 WHERE NOT col1 <> ( 94 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 * 43 ) = NULL
----

query I rowsort
SELECT DISTINCT + col2 * ( + ( 97 ) * col1 ) FROM tab1
----
130368
28615
310012

query I rowsort
SELECT 63 / + col1 + + 55 FROM tab2 WHERE NOT - 40 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT COUNT( - col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4856
SELECT COUNT ( - col2 ) AS col0 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 1 >= ( - col2 )
----

query I rowsort
SELECT DISTINCT + 80 FROM tab1 WHERE NOT + 6 * + col1 + + col0 IS NOT NULL
----

query I rowsort
SELECT + 99 + - ( col1 ) AS col1 FROM tab1 WHERE NOT ( NULL ) NOT IN ( col1 )
----

query I rowsort
SELECT ALL col1 * 21 FROM tab1
----
105
294
987

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4861
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + col2 * + col1 <= 96
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + col2 * + col1 <= 96
----
NULL
NULL
NULL

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT col0 - - col1 NOT BETWEEN NULL AND ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4863
SELECT ( + col0 ) / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT ( + col0 ) / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( 95 ) FROM tab1
----
95
95
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4865
SELECT DISTINCT * FROM tab1 WHERE ( col1 ) IN ( + col2 / + ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-4865
SELECT DISTINCT * FROM tab1 WHERE ( col1 ) IN ( + col2 / + ( CAST ( NULL AS INTEGER ) ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * 92 IS NULL
----

query I rowsort
SELECT 26 * - ( col1 ) FROM tab2
----
-1326
-1742
-2002

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NULL IS NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 54 col1 FROM tab2
----
54

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 NOT BETWEEN ( col2 * col1 ) AND + col2 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + col0 ) * - col1 AS col1 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT 88 * col1 AS col0 FROM tab2
----
4488
5896
6776

query I rowsort
SELECT col0 FROM tab2 WHERE NOT - ( - 23 ) * col1 < ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 98 + + col1 = 39 / col0 + 30
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT 37 > col0
----
3

skipif mysql # not compatible
query I rowsort label-4875
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT 37 > col0
----
3

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4877
SELECT DISTINCT CAST( + 25 AS SIGNED ) FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-4877
SELECT DISTINCT CAST ( + 25 AS INTEGER ) FROM tab1 AS cor0
----
25

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NULL <> - col1 * col2
----

query I rowsort
SELECT ALL + 87 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 > + col2 * ( col0 * + col2 ) + + col0 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) > + 12 + + col2 * + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 * - 25 < + col0 - 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT DISTINCT + + SUM( - col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT + + SUM ( - col2 ) AS col0 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT COUNT( * ) FROM tab2 cor0 WHERE NOT 75 * + col0 BETWEEN NULL AND + col1 * - col0
----
3

skipif mysql # not compatible
query I rowsort label-4884
SELECT COUNT ( * ) FROM tab2 cor0 WHERE NOT 75 * + col0 BETWEEN NULL AND + col1 * - col0
----
3

query I rowsort
SELECT DISTINCT + - 94 FROM tab1 cor0
----
-94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 36 ) NOT IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4887
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = ( CAST( NULL AS SIGNED ) - - CAST( - 44 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4887
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = ( CAST ( NULL AS INTEGER ) - - CAST ( - 44 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * ( col0 ) BETWEEN ( - col1 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 89 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4890
SELECT CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 95 * - col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4890
SELECT CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 95 * - col1 )
----

query I rowsort
SELECT + + col2 + 23 FROM tab1 AS cor0
----
119
82
91

query I rowsort
SELECT - 84 + - 57 * - col1 AS col2 FROM tab1 AS cor0
----
201
2595
714

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 WHERE 47 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 99 ) + 65 * + col0 col0 FROM tab2
----
2891
4061
4776

query I rowsort
SELECT DISTINCT col1 + + ( col2 ) + + col2 * - 98 FROM tab0
----
-4478
-949
-9602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4896
SELECT DISTINCT 51 * CAST( + COUNT( * ) * 25 AS SIGNED ) FROM tab0 WHERE NOT - col0 BETWEEN 35 * + col0 AND - col1 / - CAST( NULL AS SIGNED )
----
3825

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT 51 * CAST ( + COUNT ( * ) * 25 AS INTEGER ) FROM tab0 WHERE NOT - col0 BETWEEN 35 * + col0 AND - col1 / - CAST ( NULL AS INTEGER )
----
3825

query I rowsort
SELECT ALL 62 * col1 FROM tab0 WHERE 6 * + 54 IS NOT NULL
----
1302
5022
62

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4899
SELECT DISTINCT + col2 + - col0 DIV col2 FROM tab0
----
2
47
99

skipif mysql # not compatible
query I rowsort label-4899
SELECT DISTINCT + col2 + - col0 / col2 FROM tab0
----
2
47
99

query I rowsort
SELECT ALL - 58 + - - col0 AS col1 FROM tab2
----
-12
17
6

query I rowsort
SELECT 3 * + col2 - 42 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT ( + + COUNT( * ) ) * - 34 FROM tab1
----
-102

skipif mysql # not compatible
query I rowsort label-4903
SELECT ( + + COUNT ( * ) ) * - 34 FROM tab1
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4904
SELECT DISTINCT + CAST( NULL AS SIGNED ) * ( + col0 ) - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT col1 / 37 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4904
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * ( + col0 ) - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT col1 / 37 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 78 col2 FROM tab2 AS cor0 WHERE NOT 67 * + col2 NOT BETWEEN + col2 AND ( + col2 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT ALL - 82 * SUM( - col1 ) col2 FROM tab0 AS cor0
----
8446

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4906
SELECT ALL - 82 * SUM ( - col1 ) col2 FROM tab0 AS cor0
----
8446

onlyif mysql # DIV for integer division: 
query I rowsort label-4907
SELECT col1 + - 10 + col2 + - col1 DIV col0 DIV col1 FROM tab2
----
107
115
64

skipif mysql # not compatible
query I rowsort label-4907
SELECT col1 + - 10 + col2 + - col1 / col0 / col1 FROM tab2
----
107
115
64

query I rowsort
SELECT DISTINCT + 54 + - col0 AS col0 FROM tab0
----
-33
-43
39

query I rowsort
SELECT ALL + + 32 + col0 * col1 AS col1 FROM tab2 AS cor0
----
2378
4960
5057

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT DISTINCT COUNT( * ) + + - COUNT( - col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4910
SELECT DISTINCT COUNT ( * ) + + - COUNT ( - col0 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + 10 - - col2 + col0 AS col1 FROM tab1 AS cor0
----
154
157
169

query I rowsort
SELECT + - ( ( - + col0 ) ) * + 39 FROM tab1 AS cor0
----
1989
3315
3549

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4913
SELECT + col2 * - CAST( + col1 AS SIGNED ) * 51 col1 FROM tab0 AS cor0
----
-10710
-194157
-5049

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4913
SELECT + col2 * - CAST ( + col1 AS INTEGER ) * 51 col1 FROM tab0 AS cor0
----
-10710
-194157
-5049

query I rowsort
SELECT DISTINCT - col2 - + 74 FROM tab2 AS cor0
----
-114
-132
-97

query I rowsort
SELECT + + col1 * - + col1 AS col2 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4916
SELECT + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL AND ( NOT NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4916
SELECT + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL AND ( NOT NULL IS NOT NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT ALL COUNT( + 44 ) col0 FROM tab1 WHERE col2 * - col1 IS NULL AND col2 NOT IN ( col0 * - 87 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4917
SELECT ALL COUNT ( + 44 ) col0 FROM tab1 WHERE col2 * - col1 IS NULL AND col2 NOT IN ( col0 * - 87 )
----
0

query I rowsort
SELECT ALL - 52 FROM tab0 WHERE NOT + + 14 <= + 69
----

query I rowsort
SELECT + ( + + col2 ) FROM tab0
----
10
47
99

query II rowsort
SELECT ALL + ( - - col2 ), - col1 AS col1 FROM tab1
----
59
-5
68
-47
96
-14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4921
SELECT DISTINCT * FROM tab2 cor0 WHERE CAST( + + 25 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4921
SELECT DISTINCT * FROM tab2 cor0 WHERE CAST ( + + 25 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT COUNT( - col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4922
SELECT COUNT ( - col1 ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - - col2 + col0 * - col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - 81 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 > col0 / - col2
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - ( - 26 ) * col0 ) <> ( col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4927
SELECT 69 col1, - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
69
NULL
69
NULL
69
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4927
SELECT 69 col1, - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
69
NULL
69
NULL
69
NULL

query I rowsort
SELECT - + ( 69 ) FROM tab2 AS cor0
----
-69
-69
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4929
SELECT + + CAST( - 19 AS SIGNED ) FROM tab0 cor0
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-4929
SELECT + + CAST ( - 19 AS INTEGER ) FROM tab0 cor0
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT - MIN( - ( col1 ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4930
SELECT - MIN ( - ( col1 ) ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL + 9 + + - col1 AS col1 FROM tab0 AS cor0
----
-12
-72
8

query I rowsort
SELECT + + 71 * + + 37 + - 4 FROM tab2 cor0 WHERE NOT col0 * + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 93 + + - 77 + + + col1 + - col0 + + col0 FROM tab2
----
-103
-119
-93

query I rowsort
SELECT + + 31 AS col1 FROM tab1 WHERE + 75 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4935
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM tab2 WHERE - 54 * + + ( - col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4935
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab2 WHERE - 54 * + + ( - col0 ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + ( + + ( + 41 ) ) <= ( - col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 55 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT - MAX( + + col2 ) + - 53 FROM tab1 AS cor0
----
-149

skipif mysql # not compatible
query I rowsort label-4938
SELECT - MAX ( + + col2 ) + - 53 FROM tab1 AS cor0
----
-149

query I rowsort
SELECT ALL + col2 - col0 * + - 22 FROM tab1
----
1218
1929
2070

query I rowsort
SELECT DISTINCT - + 5 - col1 FROM tab0 AS cor0
----
-26
-6
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT + COUNT( * ) - + - ( + 34 ) AS col2 FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-4941
SELECT + COUNT ( * ) - + - ( + 34 ) AS col2 FROM tab0 AS cor0
----
37

query I rowsort
SELECT col2 - + - 74 FROM tab2 AS cor0
----
114
132
97

query II rowsort
SELECT + + col1 - - - col2 AS col2, col0 * - 38 + + ( ( + 99 ) ) * col2 AS col2 FROM tab0 AS cor0
----
-98
6115
11
-2316
34
4083

query I rowsort
SELECT - ( + col0 ) + - ( - col0 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + col2 * + 9 * 32 + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-17287
-22780
-28992

query I rowsort
SELECT + 61 + + col1 AS col2 FROM tab0 AS cor0
----
142
62
82

query I rowsort
SELECT ALL - col0 * - 68 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
3468
5780
6188

query I rowsort
SELECT ALL + + 33 FROM tab0 cor0
----
33
33
33

query II rowsort
SELECT col1 * col2, + col0 FROM tab0 cor0
----
210
87
3807
15
99
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4950
SELECT + 90 col1, + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
90
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4950
SELECT + 90 col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
90
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT ALL + 92 * - COUNT( * ) FROM tab0
----
-276

skipif mysql # not compatible
query I rowsort label-4951
SELECT ALL + 92 * - COUNT ( * ) FROM tab0
----
-276

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT NULL >= - col1
----

query I rowsort
SELECT + 6 / col2 AS col1 FROM tab0 WHERE NOT NULL >= col0 + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 71 IS NULL
----

query II rowsort
SELECT col0 AS col1, - 81 FROM tab0
----
15
-81
87
-81
97
-81

query I rowsort
SELECT - col2 * - - 88 FROM tab1
----
-5192
-5984
-8448

onlyif mysql # DIV for integer division: 
query I rowsort label-4957
SELECT - - 49 DIV + - 49 + col1 col2 FROM tab1 AS cor0
----
13
4
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4957
SELECT - - 49 / + - 49 + col1 col2 FROM tab1 AS cor0
----
13
4
46

query I rowsort
SELECT DISTINCT 44 FROM tab2 cor0
----
44

query I rowsort
SELECT ALL 83 FROM tab0 WHERE - 48 * + + col0 + - + col2 NOT IN ( col0 )
----
83
83
83

query I rowsort
SELECT ALL - col0 + + 87 + col0 AS col2 FROM tab1
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT MAX( DISTINCT col2 ) FROM tab2 WHERE NOT - 22 + + - col2 IN ( ( - 29 ) + - + col2 * + + 8 )
----
58

skipif mysql # not compatible
query I rowsort label-4961
SELECT MAX ( DISTINCT col2 ) FROM tab2 WHERE NOT - 22 + + - col2 IN ( ( - 29 ) + - + col2 * + + 8 )
----
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + 31 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + + 97 + - + col1 * + col1 col0 FROM tab0 AS cor0
----
-323
-6383
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT ALL MIN( DISTINCT - + col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL MIN ( DISTINCT - + col2 ) FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT ALL MAX( DISTINCT ( + col1 ) ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL MAX ( DISTINCT ( + col1 ) ) AS col2 FROM tab1
----
47

query I rowsort
SELECT DISTINCT + col1 + 16 + 26 * + - col1 * col0 FROM tab0
----
-2505
-31493
-47465

query I rowsort
SELECT DISTINCT + - 4 FROM tab0 WHERE + col1 IS NOT NULL
----
-4

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 IN ( + col0, 23 * - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT - MAX( + col0 ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-4970
SELECT - MAX ( + col0 ) AS col2 FROM tab0
----
-97

query II rowsort
SELECT col1 AS col1, - col1 AS col1 FROM tab1
----
14
-14
47
-47
5
-5

query I rowsort
SELECT DISTINCT - 82 + - 86 FROM tab2
----
-168

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4973
SELECT ALL * FROM tab0 WHERE NOT 78 + CAST( + col1 AS DECIMAL ) / 74 + + 43 IN ( - col0 * - CAST( NULL AS SIGNED ) * + + 62 / + col2 - + 98 )
----

skipif mysql # not compatible
query III rowsort label-4973
SELECT ALL * FROM tab0 WHERE NOT 78 + CAST ( + col1 AS REAL ) / 74 + + 43 IN ( - col0 * - CAST ( NULL AS INTEGER ) * + + 62 / + col2 - + 98 )
----

query II rowsort
SELECT ALL + col2, col0 AS col0 FROM tab0 WHERE ( + ( - col0 ) * + 87 + 93 * + + col2 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT DISTINCT - COUNT( * ) col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4975
SELECT DISTINCT - COUNT ( * ) col0 FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4976
SELECT CAST( + col0 AS SIGNED ) FROM tab2 AS cor0 WHERE ( + 29 + 81 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4976
SELECT CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0 WHERE ( + 29 + 81 ) IS NULL
----

query I rowsort
SELECT DISTINCT + + ( - ( + col0 ) ) FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT - + col2 AS col1 FROM tab1 cor0 WHERE 20 / 68 IS NOT NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 20 + - col1 * - col1 FROM tab1 AS cor0
----
216
2229
45

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4981
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1, 66 * + - 7 AS col2 FROM tab2
----
NULL
-462

skipif mysql # not compatible
query II rowsort label-4981
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1, 66 * + - 7 AS col2 FROM tab2
----
NULL
-462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4982
SELECT - - col0 * + col1 * - - CAST( NULL AS SIGNED ) * + 35 + col0 FROM tab1 AS cor0 WHERE - col1 IN ( col2, - col2 / + + col2, - - 41 + - + 1 )
----

skipif mysql # not compatible
query I rowsort label-4982
SELECT - - col0 * + col1 * - - CAST ( NULL AS INTEGER ) * + 35 + col0 FROM tab1 AS cor0 WHERE - col1 IN ( col2, - col2 / + + col2, - - 41 + - + 1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4983
SELECT ALL + CAST( NULL AS SIGNED ) * - + COUNT( - ( + + col2 ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4983
SELECT ALL + CAST ( NULL AS INTEGER ) * - + COUNT ( - ( + + col2 ) ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 * 47 col1 FROM tab1 AS cor0
----
1410
1410
1410

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT ALL - + SUM( - 2 ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL - + SUM ( - 2 ) AS col1 FROM tab2 AS cor0
----
6

query I rowsort
SELECT + - 78 AS col0 FROM tab0 AS cor0
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT DISTINCT - - ( + COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4987
SELECT DISTINCT - - ( + COUNT ( * ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT DISTINCT 16 * - COUNT( ALL + col2 ) FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-4988
SELECT DISTINCT 16 * - COUNT ( ALL + col2 ) FROM tab0 AS cor0
----
-48

query I rowsort
SELECT ALL + 75 * col2 AS col0 FROM tab2
----
1725
3000
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 col0 FROM tab0
----
13
13
13

query I rowsort
SELECT DISTINCT - col2 * + - col0 AS col1 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT ALL - COUNT( * ) * - 89 FROM tab1
----
267

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL - COUNT ( * ) * - 89 FROM tab1
----
267

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL >= col2 )
----

query I rowsort
SELECT + col1 - + 17 AS col0 FROM tab1 WHERE NOT ( - 45 IS NULL )
----
-12
-3
30

onlyif mysql # DIV for integer division: 
query I rowsort label-4995
SELECT DISTINCT - col1 DIV + - col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4995
SELECT DISTINCT - col1 / + - col2 FROM tab0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - - col0 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - + 83 FROM tab1 cor0
----
-83
-83
-83

query I rowsort
SELECT DISTINCT + 98 FROM tab0 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - 44 - + - 34 + - 69 * + col1 * - col0
----

query I rowsort
SELECT DISTINCT + col0 + + 77 AS col1 FROM tab1 cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT DISTINCT + MAX( ALL col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5000
SELECT DISTINCT + MAX ( ALL col1 ) AS col2 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-5001
SELECT + 65 + COUNT( * ) col0, MIN( col1 ) FROM tab1 AS cor0
----
68
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5001
SELECT + 65 + COUNT ( * ) col0, MIN ( col1 ) FROM tab1 AS cor0
----
68
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5002
SELECT DISTINCT COUNT( * ) DIV + 72 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5002
SELECT DISTINCT COUNT ( * ) / + 72 FROM tab2
----
0

query II rowsort
SELECT - - 6 AS col1, - col0 AS col0 FROM tab1 AS cor0
----
6
-51
6
-85
6
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5004
SELECT ALL CAST( 77 AS SIGNED ) FROM tab0 AS cor0
----
77
77
77

skipif mysql # not compatible
query I rowsort label-5004
SELECT ALL CAST ( 77 AS INTEGER ) FROM tab0 AS cor0
----
77
77
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 43 * col1 >= NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col1, col0 AS col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL BETWEEN + 39 * + col1 AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5008
SELECT col1 DIV + 88 col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5008
SELECT col1 / + 88 col2 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - col0 * col2 col0 FROM tab0 AS cor0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT + COUNT( * ) + + - MIN( DISTINCT col2 ) FROM tab1 cor0 WHERE ( NOT NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5010
SELECT + COUNT ( * ) + + - MIN ( DISTINCT col2 ) FROM tab1 cor0 WHERE ( NOT NULL IS NULL )
----
NULL

query I rowsort
SELECT DISTINCT + ( + 41 ) AS col1 FROM tab2 cor0
----
41

query III rowsort
SELECT * FROM tab0 WHERE - col0 IN ( 25, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT + 61 * - COUNT( * ) + + 63 AS col1 FROM tab0
----
-120

skipif mysql # not compatible
query I rowsort label-5013
SELECT + 61 * - COUNT ( * ) + + 63 AS col1 FROM tab0
----
-120

query I rowsort
SELECT - + 64 / + col2 FROM tab1 WHERE + + 40 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT + 23 + - - MIN( ALL + col0 ) col0 FROM tab1
----
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5015
SELECT + 23 + - - MIN ( ALL + col0 ) col0 FROM tab1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT COUNT( * ) + - - 85 AS col2 FROM tab0 cor0
----
88

skipif mysql # not compatible
query I rowsort label-5016
SELECT COUNT ( * ) + - - 85 AS col2 FROM tab0 cor0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5017
SELECT ALL + CAST( - 83 AS SIGNED ) + 15 - + - col2 AS col0, + col0 * col0 AS col2 FROM tab0 AS cor0
----
-21
225
-58
7569
31
9409

skipif mysql # not compatible
query II rowsort label-5017
SELECT ALL + CAST ( - 83 AS INTEGER ) + 15 - + - col2 AS col0, + col0 * col0 AS col2 FROM tab0 AS cor0
----
-21
225
-58
7569
31
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 * - 35 col2 FROM tab1 WHERE NOT - col1 + + - col1 * col0 + col1 - + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT DISTINCT + MIN( col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5019
SELECT DISTINCT + MIN ( col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - + 48 * - col2 col1 FROM tab0 AS cor0
----
-106032
-470448
-4800

query I rowsort
SELECT - - col0 * - 50 FROM tab1 AS cor0 WHERE NOT - col2 + + + col1 BETWEEN col1 AND NULL
----
-2550
-4250
-4550

query II rowsort
SELECT ALL - col1 AS col0, 1 * col1 AS col2 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5023
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * + 34 + - - col0 NOT BETWEEN ( + CAST( NULL AS SIGNED ) * 10 + + col0 + + 68 + - 43 ) AND - col0
----

skipif mysql # not compatible
query III rowsort label-5023
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * + 34 + - - col0 NOT BETWEEN ( + CAST ( NULL AS INTEGER ) * 10 + + col0 + + 68 + - 43 ) AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT ALL - COUNT( * ) * + - 63 FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-5024
SELECT ALL - COUNT ( * ) * + - 63 FROM tab1
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT + COUNT( 27 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5025
SELECT + COUNT ( 27 ) AS col2 FROM tab1
----
3

query II rowsort
SELECT DISTINCT + 73 AS col1, + 46 * col2 + - col0 * col1 * col0 AS col0 FROM tab2
----
73
-106858
73
-313552
73
-374207

query III rowsort
SELECT * FROM tab1 WHERE NOT + 79 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT + MAX( ALL + col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5028
SELECT + MAX ( ALL + col0 ) FROM tab1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5029
SELECT + col0 DIV + 6 FROM tab0
----
14
16
2

skipif mysql # not compatible
query I rowsort label-5029
SELECT + col0 / + 6 FROM tab0
----
14
16
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5030
SELECT + - ( + + COUNT( * ) ) AS col0, 38 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3
38

skipif mysql # not compatible
query II rowsort label-5030
SELECT + - ( + + COUNT ( * ) ) AS col0, 38 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3
38

query I rowsort
SELECT 88 * - 66 AS col1 FROM tab1
----
-5808
-5808
-5808

onlyif mysql # aggregate syntax: 
query II rowsort label-5032
SELECT - MAX( + - col1 ) AS col1, 65 AS col1 FROM tab2
----
51
65

skipif mysql # not compatible
query II rowsort label-5032
SELECT - MAX ( + - col1 ) AS col1, 65 AS col1 FROM tab2
----
51
65

query II rowsort
SELECT col0, + 34 AS col0 FROM tab1 AS cor0
----
51
34
85
34
91
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, + col1 + - + col1 - + ( - - 96 ) + 49 * + - col0 * col0 - - - col1 * - col1 col1 FROM tab0 AS cor0 WHERE NOT 59 + + col1 BETWEEN - col1 AND - - 14
----
15
-4560
87
-370536
97
-461136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5035
SELECT DISTINCT - COUNT( * ) DIV COUNT( * ) col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5035
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) col0 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 AND col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5036
SELECT COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 AND col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT DISTINCT - + COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5037
SELECT DISTINCT - + COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

query III rowsort
SELECT * FROM tab0 WHERE + col0 * + col1 + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5039
SELECT CAST( NULL AS SIGNED ) / col0 + - col1 / - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT CAST ( NULL AS INTEGER ) / col0 + - col1 / - col0 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col1 + + col2 AS col0, + 44 FROM tab2 AS cor0
----
117
44
125
44
74
44

onlyif mysql # DIV for integer division: 
query I rowsort label-5041
SELECT + col2 * + col2 * col2 * col2 + - col0 DIV 54 col0 FROM tab2 AS cor0
----
11316495
2559999
279841

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5041
SELECT + col2 * + col2 * col2 * col2 + - col0 / 54 col0 FROM tab2 AS cor0
----
11316495
2559999
279841

query I rowsort
SELECT - 66 + 89 FROM tab0 AS cor0
----
23
23
23

query I rowsort
SELECT ALL + - col2 * + - col1 - + - col2 * + - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5044
SELECT + col0 DIV + 26 + - col1 FROM tab0 AS cor0
----
-18
-81
2

skipif mysql # not compatible
query I rowsort label-5044
SELECT + col0 / + 26 + - col1 FROM tab0 AS cor0
----
-18
-81
2

query III rowsort
SELECT * FROM tab0 WHERE col0 + + - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5046
SELECT + - COUNT( * ) FROM tab1 WHERE - col1 BETWEEN NULL AND + col1 + ( - - col2 ) + - col1 * - CAST( 57 AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-5046
SELECT + - COUNT ( * ) FROM tab1 WHERE - col1 BETWEEN NULL AND + col1 + ( - - col2 ) + - col1 * - CAST ( 57 AS REAL )
----
0

query III rowsort
SELECT * FROM tab2 WHERE - 21 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5048
SELECT + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5048
SELECT + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT + MAX( ALL + - col0 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-5049
SELECT + MAX ( ALL + - col0 ) AS col0 FROM tab0
----
-15

query II rowsort
SELECT DISTINCT 52 * + ( + col1 ) + 46 AS col1, + 48 - col0 + + 73 * col2 * + col1 AS col0 FROM tab2
----
2698
85631
3530
283651
4050
224824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5051
SELECT DISTINCT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + + 75 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5051
SELECT DISTINCT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + + 75 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE 17 IS NOT NULL
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-5053
SELECT ALL - col2 DIV + col2 + + - col0 AS col2, col2 FROM tab1
----
-52
96
-86
59
-92
68

skipif mysql # not compatible
query II rowsort label-5053
SELECT ALL - col2 / + col2 + + - col0 AS col2, col2 FROM tab1
----
-52
96
-86
59
-92
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT DISTINCT - ( + - ( + COUNT( - 35 ) ) ) * - MIN( ALL + - 59 ) + + - 49 FROM tab0
----
128

skipif mysql # not compatible
query I rowsort label-5054
SELECT DISTINCT - ( + - ( + COUNT ( - 35 ) ) ) * - MIN ( ALL + - 59 ) + + - 49 FROM tab0
----
128

query II rowsort
SELECT ALL col2 AS col2, + 82 AS col2 FROM tab1 cor0
----
59
82
68
82
96
82

query I rowsort
SELECT ALL - + col2 - + col0 + - col0 FROM tab1 AS cor0
----
-198
-229
-250

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5057
SELECT ALL * FROM tab1 WHERE NOT - col2 + - col2 - - col2 BETWEEN + - CAST( NULL AS SIGNED ) AND + col2
----

skipif mysql # not compatible
query III rowsort label-5057
SELECT ALL * FROM tab1 WHERE NOT - col2 + - col2 - - col2 BETWEEN + - CAST ( NULL AS INTEGER ) AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT ( - MAX( - 41 ) ) AS col2 FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-5058
SELECT ( - MAX ( - 41 ) ) AS col2 FROM tab1 AS cor0
----
41

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 58 NOT IN ( - col1 + - col2 + - - col0, - col0 ) )
----

query I rowsort
SELECT DISTINCT - 21 AS col2 FROM tab1 cor0
----
-21

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 cor0 WHERE NULL IN ( col0, col0, col1 * - 49 - - - col0 / - col0 * + + 78, 4 + 21 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT SUM( ALL 33 ) FROM tab2 cor0
----
99

skipif mysql # not compatible
query I rowsort label-5062
SELECT SUM ( ALL 33 ) FROM tab2 cor0
----
99

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE col2 >= - 73 + col1 * + 13
----
-97

query I rowsort
SELECT DISTINCT 71 * 73 * - 84 AS col1 FROM tab2
----
-435372

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT ALL + + 24 - - + COUNT( * ) + + COUNT( DISTINCT + 77 ) FROM tab1 WHERE NOT + - 5 = + ( col1 ) * + 62
----
28

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL + + 24 - - + COUNT ( * ) + + COUNT ( DISTINCT + 77 ) FROM tab1 WHERE NOT + - 5 = + ( col1 ) * + 62
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5066
SELECT DISTINCT ( - col0 ) + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT ( - col0 ) + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT + col0, col0 AS col1 FROM tab1 WHERE NOT + col0 - - - col0 + - + col2 * - + col0 * - 48 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5068
SELECT col2 DIV - ( - col2 ) FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5068
SELECT col2 / - ( - col2 ) FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT COUNT( DISTINCT col0 ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5069
SELECT COUNT ( DISTINCT col0 ) AS col0 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5070
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND CAST( + + col1 AS SIGNED ) + + col0
----

skipif mysql # not compatible
query III rowsort label-5070
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND CAST ( + + col1 AS INTEGER ) + + col0
----

query I rowsort
SELECT + + col2 + - 2 FROM tab1 AS cor0
----
57
66
94

onlyif mysql # DIV for integer division: 
query II rowsort label-5072
SELECT ALL - col0 DIV + 14 - - + col2, col2 FROM tab2 AS cor0
----
20
23
36
40
53
58

skipif mysql # not compatible
query II rowsort label-5072
SELECT ALL - col0 / + 14 - - + col2, col2 FROM tab2 AS cor0
----
20
23
36
40
53
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT + + COUNT( * ) + + COUNT( * ) + - COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5073
SELECT + + COUNT ( * ) + + COUNT ( * ) + - COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT - 93 + - + col0 AS col1 FROM tab2 AS cor0
----
-139
-157
-168

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5075
SELECT ALL * FROM tab2 WHERE + + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5075
SELECT ALL * FROM tab2 WHERE + + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 2 AS col2, - 19 - + 16 AS col1 FROM tab0 AS cor0
----
-2
-35
-2
-35
-2
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT ALL + COUNT( + 20 ) + + + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL + COUNT ( + 20 ) + + + COUNT ( * ) FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT ALL + COUNT( * ) - 73 AS col2 FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-5078
SELECT ALL + COUNT ( * ) - 73 AS col2 FROM tab1 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT ALL + - COUNT( * ) * + 57 AS col2 FROM tab0 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL + - COUNT ( * ) * + 57 AS col2 FROM tab0 AS cor0
----
-171

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 * - col1 > NULL
----

query I rowsort
SELECT col0 - col2 + - col2 AS col0 FROM tab2 AS cor0
----
-16
-41
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col0 col1 FROM tab0 AS cor0
----
225
7569
9409

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( col2 + - col1 * + - col1 ) AND + col2 + + + col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5084
SELECT DISTINCT 47 DIV col1 AS col2, 38 AS col2 FROM tab2 AS cor0
----
0
38

skipif mysql # not compatible
query II rowsort label-5084
SELECT DISTINCT 47 / col1 AS col2, 38 AS col2 FROM tab2 AS cor0
----
0
38

query I rowsort
SELECT DISTINCT - col1 + + - 76 - + 49 * - 85 - 4 FROM tab1 cor0
----
4038
4071
4080

query I rowsort
SELECT DISTINCT 29 + + + col2 FROM tab2
----
52
69
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5087
SELECT DISTINCT - MAX( DISTINCT - CAST( - col0 AS SIGNED ) ) + 41 AS col1 FROM tab2
----
-34

skipif mysql # not compatible
query I rowsort label-5087
SELECT DISTINCT - MAX ( DISTINCT - CAST ( - col0 AS INTEGER ) ) + 41 AS col1 FROM tab2
----
-34

query II rowsort
SELECT col1 * + + col2 AS col0, 44 FROM tab1
----
1344
44
295
44
3196
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5089
SELECT DISTINCT ( CAST( - COUNT( * ) AS SIGNED ) ) - - - COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-5089
SELECT DISTINCT ( CAST ( - COUNT ( * ) AS INTEGER ) ) - - - COUNT ( * ) FROM tab0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * - col1 + col2 col0 FROM tab0 AS cor0
----
1262
1837
196

query I rowsort
SELECT ALL - 24 - - col2 AS col1 FROM tab0 cor0
----
-14
23
75

query I rowsort
SELECT DISTINCT ( 43 ) AS col2 FROM tab2 AS cor0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5093
SELECT ALL CAST( NULL AS SIGNED ) / - col0 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-5093
SELECT ALL CAST ( NULL AS INTEGER ) / - col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + + col2 ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5095
SELECT ALL + col2 DIV - + col1 FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL + col2 / - + col1 FROM tab1 AS cor0
----
-1
-11
-6

query II rowsort
SELECT col1, + 99 + col2 AS col1 FROM tab1 AS cor0
----
14
195
47
167
5
158

onlyif mysql # aggregate syntax: 
query II rowsort label-5097
SELECT ALL + + 53, MAX( - col2 ) AS col2 FROM tab1 AS cor0
----
53
-59

skipif mysql # not compatible
query II rowsort label-5097
SELECT ALL + + 53, MAX ( - col2 ) AS col2 FROM tab1 AS cor0
----
53
-59

query I rowsort
SELECT DISTINCT + ( col0 ) + - - 17 FROM tab2
----
63
81
92

query I rowsort
SELECT ALL ( ( + col1 ) ) AS col1 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE - col1 <= 26
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT SUM( DISTINCT - + 19 ) FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-5101
SELECT SUM ( DISTINCT - + 19 ) FROM tab2
----
-19

query I rowsort
SELECT ALL ( + + ( + - 6 ) ) AS col1 FROM tab1
----
-6
-6
-6

query II rowsort
SELECT + col2 * col2 AS col0, col2 AS col1 FROM tab0
----
100
10
2209
47
9801
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5104
SELECT ALL CAST( NULL AS DECIMAL ) * - ( + - 22 ) * - COUNT( - - 30 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL CAST ( NULL AS REAL ) * - ( + - 22 ) * - COUNT ( - - 30 ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 30 IS NULL
----

query I rowsort
SELECT DISTINCT - 31 AS col2 FROM tab1 cor0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5107
SELECT + CAST( NULL AS SIGNED ) * - col2 col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5107
SELECT + CAST ( NULL AS INTEGER ) * - col2 col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5108
SELECT 31 + - ( - + 25 ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5108
SELECT 31 + - ( - + 25 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + - - col2 FROM tab0 cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT DISTINCT MIN( + + col0 ) col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5110
SELECT DISTINCT MIN ( + + col0 ) col0 FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5111
SELECT - COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5111
SELECT - COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5112
SELECT ALL + col0 / - ( + + CAST( NULL AS SIGNED ) ) * col0 + - + 50 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL + col0 / - ( + + CAST ( NULL AS INTEGER ) ) * col0 + - + 50 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT + MAX( col2 ) - + COUNT( * ) col1 FROM tab1
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5113
SELECT + MAX ( col2 ) - + COUNT ( * ) col1 FROM tab1
----
93

query I rowsort
SELECT col0 - col1 + - ( - col2 ) AS col0 FROM tab2
----
18
27
66

onlyif mysql # DIV for integer division: 
query I rowsort label-5115
SELECT col0 - 99 DIV + col0 FROM tab0
----
86
9
96

skipif mysql # not compatible
query I rowsort label-5115
SELECT col0 - 99 / + col0 FROM tab0
----
86
9
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT ALL COUNT( * ) * 65 * 13 FROM tab0
----
2535

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL COUNT ( * ) * 65 * 13 FROM tab0
----
2535

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5117
SELECT ALL COUNT( ALL col2 ) DIV + 11 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5117
SELECT ALL COUNT ( ALL col2 ) / + 11 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 32 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col1 AS col2, 1 AS col2 FROM tab1 AS cor0
----
14
1
47
1
5
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT - COUNT( * ) + MIN( ALL + 33 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
24

skipif mysql # not compatible
query I rowsort label-5120
SELECT - COUNT ( * ) + MIN ( ALL + 33 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
24

query I rowsort
SELECT ALL - - 17 AS col2 FROM tab2 AS cor0
----
17
17
17

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2 / - 60 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5123
SELECT ALL + col0 DIV + col1 + - + col1 AS col0 FROM tab1 AS cor0 WHERE - col1 DIV + col2 IS NOT NULL
----
-11
-46
12

skipif mysql # not compatible
query I rowsort label-5123
SELECT ALL + col0 / + col1 + - + col1 AS col0 FROM tab1 AS cor0 WHERE - col1 / + col2 IS NOT NULL
----
-11
-46
12

query II rowsort
SELECT + col0, col0 AS col2 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT - col1 * - + col1 AS col2 FROM tab1
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5126
SELECT ALL CAST( NULL AS SIGNED ) + + - col0 + + 64 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL CAST ( NULL AS INTEGER ) + + - col0 + + 64 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT DISTINCT + COUNT( ALL - + 55 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5127
SELECT DISTINCT + COUNT ( ALL - + 55 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT ALL - SUM( DISTINCT - col2 ) col2 FROM tab2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5128
SELECT ALL - SUM ( DISTINCT - col2 ) col2 FROM tab2
----
121

query I rowsort
SELECT col2 + + 56 * + - col0 AS col0 FROM tab2
----
-2553
-3544
-4142

query I rowsort
SELECT 16 + - col0 AS col1 FROM tab0
----
-71
-81
1

query II rowsort
SELECT DISTINCT - col2 * col0 * 91 + + ( 15 ) * + + col2 AS col1, + ( + 26 ) AS col2 FROM tab1
----
-444096
26
-455480
26
-562088
26

query I rowsort
SELECT - col2 + + + col0 AS col1 FROM tab0 AS cor0
----
-2
-32
77

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT - ( col0 ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5134
SELECT ALL col2 DIV + col0 + - col1 FROM tab1
----
-13
-47
-5

skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL col2 / + col0 + - col1 FROM tab1
----
-13
-47
-5

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 49 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT ALL + COUNT( DISTINCT ( - 27 ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL + COUNT ( DISTINCT ( - 27 ) ) FROM tab1
----
1

query I rowsort
SELECT + col0 - ( + col0 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 75 * - col0 * + - 90 - + col2 AS col2 FROM tab0 AS cor0
----
-101297
-587260
-654849

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5139
SELECT col1 / CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5139
SELECT col1 / CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - 78 + + 12 FROM tab1 AS cor0
----
-4590
-5292
-7476

query I rowsort
SELECT DISTINCT - + ( col2 ) AS col0 FROM tab1 cor0
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 > col1 * + - col1
----
97
1
99

query II rowsort
SELECT DISTINCT col2, ( + + ( col0 ) ) + - col0 AS col2 FROM tab1
----
59
0
68
0
96
0

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE NOT - 99 > - col2 / - col0 + + 35
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 46 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 7 * + 65 FROM tab0
----
455
455
455

query I rowsort
SELECT ALL 84 * 9 FROM tab1
----
756
756
756

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT + MAX( DISTINCT col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-5148
SELECT + MAX ( DISTINCT col2 ) AS col0 FROM tab2
----
58

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( + 74 ) FROM tab0 AS cor0
----
74
74
74

query I rowsort
SELECT - col1 / 75 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5152
SELECT - col1 DIV + 91 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5152
SELECT - col1 / + 91 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5154
SELECT DISTINCT - CAST( + + col1 AS SIGNED ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5154
SELECT DISTINCT - CAST ( + + col1 AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5155
SELECT + 22 + + - col1 * col0 * + col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5155
SELECT + 22 + + - col1 * col0 * + col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * + + col0 FROM tab0 AS cor0
----
1215
1827
97

query II rowsort
SELECT DISTINCT + + 80 + + col2 AS col0, 71 * - + ( 31 ) * - 76 - + col2 FROM tab2 cor0
----
103
167253
120
167236
138
167218

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5158
SELECT ALL col1 * CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5158
SELECT ALL col1 * CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 86 + 32 + - 19 FROM tab2 WHERE NULL >= + col0
----

query I rowsort
SELECT ALL - 83 + + + 95 - 88 FROM tab1
----
-76
-76
-76

query I rowsort
SELECT ALL + 84 * - col2 + 84 AS col0 FROM tab1
----
-4872
-5628
-7980

query I rowsort
SELECT DISTINCT 75 + + 16 FROM tab0
----
91

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 WHERE - 86 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5164
SELECT ALL CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 40 > + 89
----

query II rowsort
SELECT ALL + ( + col1 ) AS col0, - 4 * 20 FROM tab2 AS cor0
----
51
-80
67
-80
77
-80

query I rowsort
SELECT + + col0 AS col0 FROM tab2 WHERE - col0 IS NOT NULL
----
46
64
75

query I rowsort
SELECT ALL + ( - col2 ) + col2 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT - col0 AS col1, col2 * - - col1 + 69 * - ( + col1 ) AS col0 FROM tab2 AS cor0
----
-46
-2346
-64
-2233
-75
-737

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT - MIN( - + 36 ) FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-5171
SELECT - MIN ( - + 36 ) FROM tab2 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT - + 74 * - - SUM( + col0 ) * + MAX( + 1 ) AS col1 FROM tab0 AS cor0
----
-14726

skipif mysql # not compatible
query I rowsort label-5172
SELECT - + 74 * - - SUM ( + col0 ) * + MAX ( + 1 ) AS col1 FROM tab0 AS cor0
----
-14726

query II rowsort
SELECT 2, col1 AS col1 FROM tab1 AS cor0
----
2
14
2
47
2
5

query I rowsort
SELECT ALL - col1 * + ( 5 ) FROM tab1
----
-235
-25
-70

query I rowsort
SELECT DISTINCT + - col1 / + col2 FROM tab1 WHERE NOT - - col0 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT + 22 * - col1, col2 AS col2 FROM tab1
----
-1034
68
-110
59
-308
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + - col0 * col1 col1 FROM tab0
----
-38367
-97
-98415

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col2 * - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - + 11 AS col2, + col1 FROM tab2 WHERE NOT - 1 * + 26 * - 66 - 93 IS NULL
----
-11
51
-11
67
-11
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 58 col2 FROM tab1
----
-58
-58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5182
SELECT DISTINCT 52 * - CAST( - + ( - 24 ) AS SIGNED ) col1 FROM tab2
----
-1248

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5182
SELECT DISTINCT 52 * - CAST ( - + ( - 24 ) AS INTEGER ) col1 FROM tab2
----
-1248

query II rowsort
SELECT + 78 * - - col2 * + 3 AS col1, - col0 AS col2 FROM tab1 AS cor0
----
13806
-85
15912
-91
22464
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT - COUNT( * ) * + + COUNT( * ) - - COUNT( * ) AS col0 FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5184
SELECT - COUNT ( * ) * + + COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab2 cor0
----
-6

query I rowsort
SELECT ALL + + 86 * - col2 * - - 92 + col2 FROM tab0 AS cor0
----
-371817
-783189
-79110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5186
SELECT DISTINCT - col1 * + CAST( + - col2 AS SIGNED ) + + col0 * 96 col0 FROM tab2 AS cor0
----
11086
5589
9224

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5186
SELECT DISTINCT - col1 * + CAST ( + - col2 AS INTEGER ) + + col0 * 96 col0 FROM tab2 AS cor0
----
11086
5589
9224

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT - COUNT( * ) * 63 col1 FROM tab2 AS cor0
----
-189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5187
SELECT - COUNT ( * ) * 63 col1 FROM tab2 AS cor0
----
-189

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 cor0 WHERE NOT NULL >= 49 + + - col0
----

query I rowsort
SELECT 26 FROM tab0 AS cor0 WHERE NULL IS NULL
----
26
26
26

query I rowsort
SELECT ALL ( - + col2 ) + col2 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE + col1 * 35 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5192
SELECT DISTINCT - ( - CAST( + col0 AS SIGNED ) ) * - col1 AS col0 FROM tab0 WHERE ( NOT + col1 IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-5192
SELECT DISTINCT - ( - CAST ( + col0 AS INTEGER ) ) * - col1 AS col0 FROM tab0 WHERE ( NOT + col1 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT - + COUNT( * ) col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5194
SELECT - + COUNT ( * ) col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + 39 * - 0 + - ( + - 71 ) FROM tab1
----
71
71
71

query I rowsort
SELECT + col0 + + - col2 * - col2 AS col2 FROM tab2
----
1664
3439
575

query I rowsort
SELECT ALL + - 33 AS col2 FROM tab0 WHERE + 71 * + col0 * + - 4 IS NULL
----

query I rowsort
SELECT ALL 25 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT - col2 * 43 * - - col1 + col2 FROM tab1
----
-12626
-137360
-57696

query I rowsort
SELECT ALL - 73 * 54 - + col0 AS col1 FROM tab2 AS cor0
----
-3988
-4006
-4017

query II rowsort
SELECT - col1 AS col2, col2 AS col0 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5202
SELECT col1 AS col0 FROM tab2 cor0 WHERE 22 * + col2 <> + + CAST( + + 94 AS SIGNED )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5202
SELECT col1 AS col0 FROM tab2 cor0 WHERE 22 * + col2 <> + + CAST ( + + 94 AS INTEGER )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT ALL + 1 * + + COUNT( + 45 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL + 1 * + + COUNT ( + 45 ) FROM tab0 cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - ( + 46 ) NOT IN ( + - col2, + 67 * + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 * ( - col0 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT ALL - COUNT( - + 9 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5206
SELECT ALL - COUNT ( - + 9 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT ALL + 87 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query II rowsort
SELECT DISTINCT 18, 6 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
18
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5209
SELECT DISTINCT - MIN( - ( + - col1 ) ) DIV + 49 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5209
SELECT DISTINCT - MIN ( - ( + - col1 ) ) / + 49 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5210
SELECT SUM( + + col0 ), + COUNT( * ) AS col0 FROM tab0 AS cor0
----
199
3

skipif mysql # not compatible
query II rowsort label-5210
SELECT SUM ( + + col0 ), + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
199
3

query I rowsort
SELECT + ( + 5 ) AS col0 FROM tab2 cor0
----
5
5
5

query I rowsort
SELECT + ( - 51 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-51
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5213
SELECT + CAST( 2 AS SIGNED ) AS col2 FROM tab0 WHERE NOT - - 49 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5213
SELECT + CAST ( 2 AS INTEGER ) AS col2 FROM tab0 WHERE NOT - - 49 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5214
SELECT DISTINCT + 15 col0, + COUNT( * ) DIV COUNT( * ) FROM tab0
----
15
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5214
SELECT DISTINCT + 15 col0, + COUNT ( * ) / COUNT ( * ) FROM tab0
----
15
1

query III rowsort
SELECT * FROM tab0 WHERE NOT + 8 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( - - col2 ) AS col1 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT ( - - col1 ) FROM tab1
----
14
47
5

query I rowsort
SELECT + col0 * + + col0 FROM tab2
----
2116
4096
5625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5219
SELECT - 30 DIV + COUNT( * ) AS col0 FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-5219
SELECT - 30 / + COUNT ( * ) AS col0 FROM tab2
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5220
SELECT + 85 AS col1, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
85
NULL
85
NULL
85
NULL

skipif mysql # not compatible
query II rowsort label-5220
SELECT + 85 AS col1, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
85
NULL
85
NULL
85
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT MIN( DISTINCT + col1 ) AS col2 FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-5221
SELECT MIN ( DISTINCT + col1 ) AS col2 FROM tab2 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT DISTINCT - - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5222
SELECT DISTINCT - - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT - col1 * - ( - col2 ) FROM tab2
----
-1173
-3080
-3886

query II rowsort
SELECT ALL + + col1 + - 27, + col0 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 col0 FROM tab0 AS cor0
----
10

query I rowsort
SELECT DISTINCT 90 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
90

query I rowsort
SELECT + - 26 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 BETWEEN + ( - ( - col2 ) ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + + 47 BETWEEN NULL AND + col2
----

query I rowsort
SELECT DISTINCT - - 15 * 43 FROM tab1 AS cor0
----
645

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( - col0 ) < NULL
----

query I rowsort
SELECT DISTINCT - + 19 * + col2 * + - 10 FROM tab1 cor0
----
11210
12920
18240

query I rowsort
SELECT DISTINCT - 60 * + col1 + + 19 FROM tab0 AS cor0
----
-1241
-41
-4841

query I rowsort
SELECT - + col1 * + 6 FROM tab0 AS cor0
----
-126
-486
-6

query I rowsort
SELECT DISTINCT + + 45 FROM tab2 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT ALL + 97 * MAX( ALL + + col2 ) + - ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
5629

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL + 97 * MAX ( ALL + + col2 ) + - ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
5629

onlyif mysql # DIV for integer division: 
query I rowsort label-5237
SELECT 4 DIV - col0 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5237
SELECT 4 / - col0 AS col0 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5238
SELECT DISTINCT CAST( - col1 AS SIGNED ) * + col2 + + col1 + + - 2 * col1 AS col0 FROM tab0
----
-100
-231
-3888

skipif mysql # not compatible
query I rowsort label-5238
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * + col2 + + col1 + + - 2 * col1 AS col0 FROM tab0
----
-100
-231
-3888

query I rowsort
SELECT - 37 AS col2 FROM tab1 WHERE NULL > col2 / + col1
----

query II rowsort
SELECT - col2 AS col2, + col0 FROM tab1
----
-59
85
-68
91
-96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT DISTINCT COUNT( * ) + + - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5241
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ) FROM tab2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5242
SELECT ALL + 70 * - CAST( NULL AS DECIMAL ) + - 74 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5242
SELECT ALL + 70 * - CAST ( NULL AS REAL ) + - 74 col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 - 21 * - ( col0 ) col0 FROM tab1
----
1143
1857
1983

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT COUNT( * ) - + 12 + - COUNT( * ) + - 32 * COUNT( * ) FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-5244
SELECT COUNT ( * ) - + 12 + - COUNT ( * ) + - 32 * COUNT ( * ) FROM tab2
----
-108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col0 col2 FROM tab1
----
102
170
182

query I rowsort
SELECT DISTINCT + col2 + 89 FROM tab0 AS cor0
----
136
188
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5247
SELECT DISTINCT - col1 - 30 * + CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1491
-2971
-321

skipif mysql # not compatible
query I rowsort label-5247
SELECT DISTINCT - col1 - 30 * + CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1491
-2971
-321

query I rowsort
SELECT col2 * + - ( - col1 ) + - col0 FROM tab0 AS cor0
----
123
2
3792

query I rowsort
SELECT DISTINCT + ( - 3 ) AS col1 FROM tab0
----
-3

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab2 cor1 ON NULL IS NOT NULL
----

query I rowsort
SELECT ALL ( + col0 ) * - + col0 * col0 AS col2 FROM tab2 AS cor0
----
-262144
-421875
-97336

onlyif mysql # aggregate syntax: 
query II rowsort label-5252
SELECT COUNT( * ) AS col1, - COUNT( * ) FROM tab0 cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-5252
SELECT COUNT ( * ) AS col1, - COUNT ( * ) FROM tab0 cor0
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5253
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( - col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5253
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( - col0 AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, col2 col0 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5255
SELECT ALL + - CAST( + 89 AS SIGNED ) FROM tab1 AS cor0
----
-89
-89
-89

skipif mysql # not compatible
query I rowsort label-5255
SELECT ALL + - CAST ( + 89 AS INTEGER ) FROM tab1 AS cor0
----
-89
-89
-89

query I rowsort
SELECT ALL + col0 * - 47 * 65 AS col2 FROM tab0 AS cor0
----
-265785
-296335
-45825

query I rowsort
SELECT col1 * - - col1 AS col0 FROM tab1
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT - 87 * - MIN( ALL - + col1 ) AS col2 FROM tab0
----
-7047

skipif mysql # not compatible
query I rowsort label-5258
SELECT - 87 * - MIN ( ALL - + col1 ) AS col2 FROM tab0
----
-7047

query I rowsort
SELECT + + 41 * - col0 * col2 AS col0 FROM tab0 WHERE NOT + col2 <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IS NOT NULL OR NOT + col1 * col0 + + col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 60 * - col0 + 55, col1 AS col2 FROM tab0
----
-5165
21
-5765
1
-845
81

query I rowsort
SELECT DISTINCT - col0 * + - 48 FROM tab1
----
2448
4080
4368

query I rowsort
SELECT ALL + col2 * + 7 + + 21 AS col1 FROM tab1 AS cor0
----
434
497
693

onlyif mysql # aggregate syntax: 
query II rowsort label-5264
SELECT + COUNT( * ), COUNT( 97 ) FROM tab2 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5264
SELECT + COUNT ( * ), COUNT ( 97 ) FROM tab2 cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT + MIN( 63 ) * 24 AS col2 FROM tab2 AS cor0
----
1512

skipif mysql # not compatible
query I rowsort label-5265
SELECT + MIN ( 63 ) * 24 AS col2 FROM tab2 AS cor0
----
1512

query I rowsort
SELECT - 41 * - col0 - - - 27 AS col2 FROM tab2 AS cor0
----
1859
2597
3048

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 17 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT + - col1 + - + 44 > col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT DISTINCT COUNT( ALL + - col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT COUNT ( ALL + - col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5270
SELECT + CAST( NULL AS SIGNED ) + - col2 * - 42, + col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-5270
SELECT + CAST ( NULL AS INTEGER ) + - col2 * - 42, + col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5271
SELECT ALL - col0 * + - 84 + col2 col1 FROM tab1 AS cor0 WHERE NOT ( col2 ) BETWEEN - - col1 + + col1 - CAST( - - 32 AS SIGNED ) + - col1 / + + col2 AND + col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5271
SELECT ALL - col0 * + - 84 + col2 col1 FROM tab1 AS cor0 WHERE NOT ( col2 ) BETWEEN - - col1 + + col1 - CAST ( - - 32 AS INTEGER ) + - col1 / + + col2 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT + COUNT( * ) + - - ( COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE + col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5272
SELECT + COUNT ( * ) + - - ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE + col2 > NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( - col2 ) IN ( + ( 49 ), - col1, + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5274
SELECT DISTINCT + COUNT( * ) DIV - + 29 AS col0 FROM tab2 WHERE col2 NOT BETWEEN 12 DIV - col0 AND - - 76
----
0

skipif mysql # not compatible
query I rowsort label-5274
SELECT DISTINCT + COUNT ( * ) / - + 29 AS col0 FROM tab2 WHERE col2 NOT BETWEEN 12 / - col0 AND - - 76
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col1 * 34 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT 42 + + + COUNT( * ) AS col1 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-5276
SELECT 42 + + + COUNT ( * ) AS col1 FROM tab1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT ALL SUM( DISTINCT - 41 ) - - + 94 AS col1 FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL SUM ( DISTINCT - 41 ) - - + 94 AS col1 FROM tab0
----
53

query I rowsort
SELECT DISTINCT + 51 + - + col0 AS col2 FROM tab0
----
-36
-46
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT DISTINCT - COUNT( * ) - + - COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5279
SELECT DISTINCT - COUNT ( * ) - + - COUNT ( * ) AS col0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col1 + - col2 col2 FROM tab2
----
-2624
-4547
-5969

onlyif mysql # DIV for integer division: 
query I rowsort label-5281
SELECT ALL + + 37 * col1 - + col2 DIV + col1 col1 FROM tab1 AS cor0
----
1738
174
512

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5281
SELECT ALL + + 37 * col1 - + col2 / + col1 col1 FROM tab1 AS cor0
----
1738
174
512

query I rowsort
SELECT ALL - ( + 45 ) FROM tab2 AS cor0
----
-45
-45
-45

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 < 99
----

query I rowsort
SELECT ALL col1 * 39 * - 77 FROM tab1
----
-141141
-15015
-42042

query II rowsort
SELECT col1, - col0 AS col1 FROM tab2
----
51
-46
67
-75
77
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # DIV for integer division: 
query I rowsort label-5287
SELECT DISTINCT col1 DIV - + 32 AS col0 FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT col1 / - + 32 AS col0 FROM tab0
----
-2
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 BETWEEN + col2 AND + col1
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT + + COUNT( - col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5289
SELECT + + COUNT ( - col2 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT ALL - SUM( - col2 ) AS col0 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL - SUM ( - col2 ) AS col0 FROM tab0 cor0
----
156

query I rowsort
SELECT ALL - - 14 AS col0 FROM tab0 AS cor0
----
14
14
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5292
SELECT DISTINCT + col1 * + + CAST( col0 AS SIGNED ) FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-5292
SELECT DISTINCT + col1 * + + CAST ( col0 AS INTEGER ) FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT SUM( DISTINCT 78 ) AS col0 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-5293
SELECT SUM ( DISTINCT 78 ) AS col0 FROM tab0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT MAX( DISTINCT col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-5294
SELECT MAX ( DISTINCT col2 ) FROM tab0
----
99

query II rowsort
SELECT ALL col0 AS col0, + col2 FROM tab1
----
51
96
85
59
91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 99 col2 FROM tab2
----
-5049
-6633
-7623

onlyif mysql # DIV for integer division: 
query I rowsort label-5297
SELECT DISTINCT - col0 DIV + + col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-5297
SELECT DISTINCT - col0 / + + col2 FROM tab1
----
-1
0

query I rowsort
SELECT col1 * + 21 AS col1 FROM tab0
----
1701
21
441

onlyif mysql # DIV for integer division: 
query I rowsort label-5299
SELECT ALL + col2 DIV col1 * + col0 * - col0 * col1 - + col1 + col1 AS col2 FROM tab1 AS cor0
----
-218484
-389207
-397375

skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL + col2 / col1 * + col0 * - col0 * col1 - + col1 + col1 AS col2 FROM tab1 AS cor0
----
-218484
-389207
-397375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 * + col0 col1 FROM tab1 AS cor0
----
3468
5780
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col0, - col2 col1 FROM tab1 cor0
----
-14
-96
-47
-68
-5
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5302
SELECT - MIN( ALL - 73 ) + + ( CAST( + CAST( 71 AS SIGNED ) AS SIGNED ) ) AS col2 FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-5302
SELECT - MIN ( ALL - 73 ) + + ( CAST ( + CAST ( 71 AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab0
----
144

query I rowsort
SELECT + 4 + col1 AS col0 FROM tab0
----
25
5
85

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 54 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col0 * - 82 ) NOT BETWEEN col2 AND - 79
----

query II rowsort
SELECT ALL + col1 - - 19 * + 61 AS col2, col2 FROM tab1 cor0
----
1164
59
1173
96
1206
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5307
SELECT ALL - col2 DIV + col1 + - col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL - col2 / + col1 + - col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

query II rowsort
SELECT + + col2 * + + col1, col0 AS col0 FROM tab2 AS cor0
----
1173
46
3080
64
3886
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + 92 col1 FROM tab0
----
-5
5
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5310
SELECT DISTINCT + 78 + 21 DIV col1 AS col1 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-5310
SELECT DISTINCT + 78 + 21 / col1 AS col1 FROM tab2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT 52 - - COUNT( * ) AS col0 FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-5311
SELECT 52 - - COUNT ( * ) AS col0 FROM tab0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT ALL MIN( 77 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5312
SELECT ALL MIN ( 77 ) FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5313
SELECT + + CAST( NULL AS SIGNED ) * + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5313
SELECT + + CAST ( NULL AS INTEGER ) * + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * - col0 + - col1 AS col0 FROM tab2
----
-2167
-4173
-5692

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT + 68 * COUNT( * ) + 38 FROM tab2
----
242

skipif mysql # not compatible
query I rowsort label-5315
SELECT + 68 * COUNT ( * ) + 38 FROM tab2
----
242

onlyif mysql # DIV for integer division: 
query I rowsort label-5316
SELECT ALL - col1 + - 42 DIV - 16 FROM tab0
----
-19
-79
1

skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL - col1 + - 42 / - 16 FROM tab0
----
-19
-79
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = ( 44 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT DISTINCT COUNT( * ) col1 FROM tab1 WHERE 52 + col2 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5318
SELECT DISTINCT COUNT ( * ) col1 FROM tab1 WHERE 52 + col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT - 77 * + 65 + - 13 AS col1 FROM tab1
----
-5018

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5320
SELECT * FROM tab1 WHERE NOT ( 11 ) < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5320
SELECT * FROM tab1 WHERE NOT ( 11 ) < CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col1 FROM tab2 WHERE + col0 * + 68 IS NOT NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab1 WHERE NOT ( - col2 * + col0 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN col0 + col0 AND col1 * 92
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - col1 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT ALL COUNT( ALL + 61 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5325
SELECT ALL COUNT ( ALL + 61 ) AS col2 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) col0 FROM tab1 WHERE NOT 64 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT + ( COUNT( * ) ) - - COUNT( * ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-5327
SELECT + ( COUNT ( * ) ) - - COUNT ( * ) AS col0 FROM tab1
----
6

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5328
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( NULL ) <= + CAST( col2 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-5328
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( NULL ) <= + CAST ( col2 AS REAL )
----

query I rowsort
SELECT ALL col2 * + 13 FROM tab1
----
1248
767
884

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT ALL + MIN( col0 ) + COUNT( * ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-5330
SELECT ALL + MIN ( col0 ) + COUNT ( * ) FROM tab1
----
54

query I rowsort
SELECT AVG ( ALL - col0 ) FROM tab0 WHERE - col1 * col0 - col0 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( col0 + - 75 )
----

query I rowsort
SELECT + 10 * - 12 FROM tab1
----
-120
-120
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5334
SELECT ALL + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) + - 22 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 22 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col1 + - col2 * - 31 AS col0 FROM tab2 AS cor0
----
1163
1731
662

query I rowsort
SELECT DISTINCT - 87 * col2 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 * col2 IN ( 39 * col1 )
----
-2001
-3480
-5046

query I rowsort
SELECT DISTINCT - 88 * ( col2 * + col0 ) FROM tab2 AS cor0
----
-225280
-382800
-93104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 - col2 * + col1 col1 FROM tab0
----
-1080
-4512
-9702

query I rowsort
SELECT + 64 AS col1 FROM tab2 AS cor0 WHERE ( col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT ( COUNT( * ) ) - COUNT( * ) * + 87 AS col0 FROM tab1 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-5340
SELECT ( COUNT ( * ) ) - COUNT ( * ) * + 87 AS col0 FROM tab1 AS cor0
----
-258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5341
SELECT - CAST( NULL AS SIGNED ) - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5341
SELECT - CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 83 + + col1 FROM tab0 AS cor0
----
104
164
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5343
SELECT - col0 * + CAST( - CAST( 74 AS SIGNED ) AS SIGNED ) - - col1 FROM tab1 AS cor0
----
3788
6295
6781

skipif mysql # not compatible
query I rowsort label-5343
SELECT - col0 * + CAST ( - CAST ( 74 AS INTEGER ) AS INTEGER ) - - col1 FROM tab1 AS cor0
----
3788
6295
6781

query I rowsort
SELECT ALL + + col0 * col1 - col2 AS col2 FROM tab0 AS cor0
----
-2
1168
1817

query I rowsort
SELECT DISTINCT - 52 + - col1 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
-103
-119
-129

query I rowsort
SELECT col1 + 9 FROM tab0 AS cor0
----
10
30
90

query I rowsort
SELECT DISTINCT ( - 93 ) * 51 - col0 AS col1 FROM tab2 AS cor0
----
-4789
-4807
-4818

query I rowsort
SELECT 94 + - col0 * - 95 FROM tab1 AS cor0
----
4939
8169
8739

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE 37 + col2 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5349
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE 37 + col2 BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT + 72 + - col2 * + 28 AS col1 FROM tab0 AS cor0
----
-1244
-208
-2700

query I rowsort
SELECT - 77 + col0 * col0 AS col1 FROM tab2 AS cor0
----
2039
4019
5548

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col1 + - col0 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + + col1 * + col0 NOT IN ( col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5356
SELECT * FROM tab0 WHERE + CAST( NULL AS SIGNED ) * + 20 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5356
SELECT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) * + 20 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5357
SELECT DISTINCT - 49 + - MIN( ALL + ( col0 ) ) DIV + 5 FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-5357
SELECT DISTINCT - 49 + - MIN ( ALL + ( col0 ) ) / + 5 FROM tab0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5358
SELECT + ( - - CAST( - 53 AS SIGNED ) ) AS col2 FROM tab2
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-5358
SELECT + ( - - CAST ( - 53 AS INTEGER ) ) AS col2 FROM tab2
----
-53
-53
-53

query I rowsort
SELECT col0 FROM tab2 WHERE NOT col0 IS NULL
----
46
64
75

query I rowsort
SELECT ALL - 68 * col1 FROM tab0 cor0 WHERE NULL <> ( - 76 ) * - col1
----

query I rowsort
SELECT DISTINCT - 22 * col0 FROM tab2 AS cor0
----
-1012
-1408
-1650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 + - 36 col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( + 85 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + - 12 IN ( + col1 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - 44 + + 53 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5365
SELECT DISTINCT CAST( 81 AS SIGNED ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5365
SELECT DISTINCT CAST ( 81 AS INTEGER ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 38 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5367
SELECT 79 + col1 * + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5367
SELECT 79 + col1 * + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( + 60 ) AND NULL OR NOT NULL > col1 - + col1 * - 59
----

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 * col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT DISTINCT COUNT( DISTINCT col2 ) * + 36 FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-5371
SELECT DISTINCT COUNT ( DISTINCT col2 ) * + 36 FROM tab1
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5372
SELECT - ( SUM( DISTINCT + + CAST( + + 97 AS SIGNED ) ) ) * - COUNT( * ) FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-5372
SELECT - ( SUM ( DISTINCT + + CAST ( + + 97 AS INTEGER ) ) ) * - COUNT ( * ) FROM tab0
----
291

query I rowsort
SELECT + ( - + col2 ) * col2 FROM tab0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT DISTINCT - COUNT( * ) * - 23 AS col1 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-5374
SELECT DISTINCT - COUNT ( * ) * - 23 AS col1 FROM tab0
----
69

query I rowsort
SELECT - 57 * - - col1 FROM tab0
----
-1197
-4617
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT - SUM( DISTINCT 19 ) AS col1 FROM tab1 cor0
----
-19

skipif mysql # not compatible
query I rowsort label-5376
SELECT - SUM ( DISTINCT 19 ) AS col1 FROM tab1 cor0
----
-19

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( - + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5378
SELECT DISTINCT CAST( NULL AS SIGNED ) / + + COUNT( * ) / - 45 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5378
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + + COUNT ( * ) / - 45 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 + col2 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 / - - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT ALL + 63 * - - SUM( DISTINCT + 54 ) FROM tab1 AS cor0
----
3402

skipif mysql # not compatible
query I rowsort label-5380
SELECT ALL + 63 * - - SUM ( DISTINCT + 54 ) FROM tab1 AS cor0
----
3402

query I rowsort
SELECT DISTINCT + 14 * + 45 + col2 FROM tab0 AS cor0
----
640
677
729

onlyif mysql # DIV for integer division: 
query I rowsort label-5382
SELECT DISTINCT + ( - col0 ) DIV + col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5382
SELECT DISTINCT + ( - col0 ) / + col0 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT + 69 * - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5383
SELECT + 69 * - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----
0

query I rowsort
SELECT ALL col1 + - col1 * + col2 + + col2 FROM tab2
----
-1099
-2963
-3761

query I rowsort
SELECT ALL + 75 AS col0 FROM tab0 WHERE NOT + + 25 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 + - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + col0, + col1 )
----

query I rowsort
SELECT + 52 * + 3 FROM tab1 AS cor0
----
156
156
156

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT ALL - COUNT( * ) - + 90 FROM tab0 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL - COUNT ( * ) - + 90 FROM tab0 cor0
----
-93

query I rowsort
SELECT col1 * + - col1 + - 19 FROM tab2 AS cor0
----
-2620
-4508
-5948

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT ALL - MAX( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0 WHERE - 35 IN ( - ( + + 62 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5391
SELECT ALL - MAX ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0 WHERE - 35 IN ( - ( + + 62 ) )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - 57 * + 63 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT - MAX( + + 4 ) AS col0 FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-5393
SELECT - MAX ( + + 4 ) AS col0 FROM tab2 AS cor0
----
-4

query I rowsort
SELECT ALL col0 * + col2 + + 52 FROM tab2 AS cor0 WHERE NOT NULL <= col0 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT + ( - 82 ) + - SUM( - col0 ) col2 FROM tab2 cor0 WHERE - 88 IS NOT NULL
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5395
SELECT + ( - 82 ) + - SUM ( - col0 ) col2 FROM tab2 cor0 WHERE - 88 IS NOT NULL
----
103

query I rowsort
SELECT DISTINCT - 82 AS col1 FROM tab1 AS cor0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-5397
SELECT ALL - col1 * col2 - col1 + + col1 - col0 - - col1 DIV 60 FROM tab2 AS cor0
----
-1219
-3143
-3960

skipif mysql # not compatible
query I rowsort label-5397
SELECT ALL - col1 * col2 - col1 + + col1 - col0 - - col1 / 60 FROM tab2 AS cor0
----
-1219
-3143
-3960

query I rowsort
SELECT DISTINCT col2 + + + col0 AS col2 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5399
SELECT DISTINCT col1 DIV - 86 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5399
SELECT DISTINCT col1 / - 86 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5400
SELECT DISTINCT - col1, - ( - - CAST( + - col0 AS SIGNED ) ) AS col2 FROM tab2
----
-51
46
-67
75
-77
64

skipif mysql # not compatible
query II rowsort label-5400
SELECT DISTINCT - col1, - ( - - CAST ( + - col0 AS INTEGER ) ) AS col2 FROM tab2
----
-51
46
-67
75
-77
64

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT + 83 BETWEEN col0 AND - + col0 * - 63 - 64 )
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT SUM( ALL + + col0 ) col0 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5402
SELECT SUM ( ALL + + col0 ) col0 FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT - MAX( + 7 ) FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-5403
SELECT - MAX ( + 7 ) FROM tab1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT + MAX( - + 59 ) FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-5404
SELECT + MAX ( - + 59 ) FROM tab2
----
-59

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 NOT BETWEEN NULL AND ( - - 2 )
----

query I rowsort
SELECT DISTINCT + + 1 AS col2 FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL IN ( - 8 * + col2 / - - col1 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT + MIN( ALL + 39 ) FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-5408
SELECT + MIN ( ALL + 39 ) FROM tab2 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT ALL + - MIN( - 67 ) AS col0 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL + - MIN ( - 67 ) AS col0 FROM tab0 AS cor0
----
67

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > - 94 - + 34
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5411
SELECT - CAST( NULL AS SIGNED ) col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5411
SELECT - CAST ( NULL AS INTEGER ) col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL > col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5413
SELECT - + col1 / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5413
SELECT - + col1 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + 56 AS col2 FROM tab1 AS cor0
----
2632
280
784

onlyif mysql # aggregate syntax: 
query II rowsort label-5415
SELECT ( + COUNT( * ) ) AS col0, + COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5415
SELECT ( + COUNT ( * ) ) AS col0, + COUNT ( * ) FROM tab2 AS cor0
----
3
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT ALL - MIN( DISTINCT - - col1 ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-5

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL - MIN ( DISTINCT - - col1 ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT ALL - 40 * + COUNT( * ) FROM tab1 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-5418
SELECT ALL - 40 * + COUNT ( * ) FROM tab1 AS cor0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT DISTINCT - - ( COUNT( * ) ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT - - ( COUNT ( * ) ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT + ( - 47 ) FROM tab2
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT - COUNT( * ) * - COUNT( * ) * + 74 * + + COUNT( * ) * 94 + ( 10 ) FROM tab0
----
187822

skipif mysql # not compatible
query I rowsort label-5421
SELECT - COUNT ( * ) * - COUNT ( * ) * + 74 * + + COUNT ( * ) * 94 + ( 10 ) FROM tab0
----
187822

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT ALL - MAX( ALL 24 ) FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL - MAX ( ALL 24 ) FROM tab2
----
-24

query I rowsort
SELECT ALL - col1 * + col2 + - 75 FROM tab1
----
-1419
-3271
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT ALL - COUNT( * ) AS col2 FROM tab0 WHERE NOT + col2 NOT BETWEEN col1 + + + col2 + + - col0 + + 89 AND - 63 - col2 OR ( col0 ) <> col2 + col2
----
-3

skipif mysql # not compatible
query I rowsort label-5424
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 WHERE NOT + col2 NOT BETWEEN col1 + + + col2 + + - col0 + + 89 AND - 63 - col2 OR ( col0 ) <> col2 + col2
----
-3

query I rowsort
SELECT - 40 + - - col1 FROM tab0
----
-19
-39
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT ALL + MAX( - - col1 ) * + 15 FROM tab1
----
705

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL + MAX ( - - col1 ) * + 15 FROM tab1
----
705

query I rowsort
SELECT + 6 + - col1 AS col1 FROM tab1
----
-41
-8
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 3 col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5429
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5429
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT DISTINCT + + MAX( ALL col0 ) * - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT + + MAX ( ALL col0 ) * - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-291

query II rowsort
SELECT DISTINCT - - col1, + col2 + - + 45 + - col0 + ( col0 ) AS col1 FROM tab1 AS cor0
----
14
51
47
23
5
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT ALL - + COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5432
SELECT ALL - + COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query III rowsort
SELECT * FROM tab0 WHERE - 25 / + + 37 + - 13 + - + 54 * col2 + - col0 < col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5434
SELECT ALL CAST( + + 5 AS SIGNED ) + + col1 AS col1 FROM tab0
----
26
6
86

skipif mysql # not compatible
query I rowsort label-5434
SELECT ALL CAST ( + + 5 AS INTEGER ) + + col1 AS col1 FROM tab0
----
26
6
86

query II rowsort
SELECT DISTINCT - col1 - + + col2, + ( + + col1 ) FROM tab1 AS cor0
----
-110
14
-115
47
-64
5

query I rowsort
SELECT ALL col2 - - col0 - - - col0 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( + col1 ) IS NOT NULL
----

query I rowsort
SELECT - 16 FROM tab0 AS cor0 WHERE NOT ( + 14 ) NOT IN ( ( col2 ), - col1 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT ALL - MIN( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL - MIN ( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL 46 * + + col2 AS col2 FROM tab0
----
2162
4554
460

onlyif mysql # DIV for integer division: 
query I rowsort label-5442
SELECT + col2 DIV - + col1 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-5442
SELECT + col2 / - + col1 FROM tab0
----
-99
0
0

query I rowsort
SELECT DISTINCT - ( + + col1 ) * col0 FROM tab2
----
-2346
-4928
-5025

query II rowsort
SELECT col2, col1 * - - 58 * 11 * 85 AS col0 FROM tab0
----
10
1138830
47
4392630
99
54230

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT SUM( - col2 ) AS col1 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-5445
SELECT SUM ( - col2 ) AS col1 FROM tab0
----
-156

query II rowsort
SELECT ALL - col0 AS col0, col1 AS col1 FROM tab1
----
-51
14
-85
5
-91
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5447
SELECT col2 / - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5447
SELECT col2 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT ALL + SUM( 29 ) FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-5448
SELECT ALL + SUM ( 29 ) FROM tab0 AS cor0
----
87

query I rowsort
SELECT col0 * ( + col2 ) * - col2 FROM tab1
----
-295885
-420784
-470016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5450
SELECT + COUNT( - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5450
SELECT + COUNT ( - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col1 * 53 FROM tab0
----
1113
4293
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + ( + + col0 ) col1 FROM tab0
----
1215
1827
97

query III rowsort
SELECT DISTINCT - col0 AS col1, 43 AS col0, - - 24 AS col1 FROM tab2 cor0
----
9 values hashing to bbd6e5f82cf56318cc3093411374528b

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT + 20 + - - MAX( - col0 ) FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-5454
SELECT + 20 + - - MAX ( - col0 ) FROM tab1 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT ALL SUM( ALL col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL SUM ( ALL col0 ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT DISTINCT col2 * col1 + - col0 AS col0 FROM tab0 cor0
----
123
2
3792

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 IN ( + col1 * - + col0 + col2 - + 73 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 41 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5459
SELECT + col2 DIV + 86 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5459
SELECT + col2 / + 86 FROM tab2
----
0
0
0

query I rowsort
SELECT ( - - 8 ) FROM tab0
----
8
8
8

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT 48 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 64 + + + col2 FROM tab1
----
123
132
160

query I rowsort
SELECT ALL + col2 + - 19 * + - 35 * - - col2 FROM tab2
----
15318
26640
38628

query I rowsort
SELECT ALL + col1 + 94 AS col2 FROM tab1
----
108
141
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5465
SELECT ALL 62 + - col1 * - 39 * + + CAST( NULL AS SIGNED ) col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5465
SELECT ALL 62 + - col1 * - 39 * + + CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
10
47
99

query I rowsort
SELECT 98 + + 78 FROM tab0 AS cor0
----
176
176
176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5468
SELECT - CAST( - MAX( + col1 ) AS SIGNED ) * + + 66 + - 81 + + + 37 + + - 93 AS col2 FROM tab1
----
2965

skipif mysql # not compatible
query I rowsort label-5468
SELECT - CAST ( - MAX ( + col1 ) AS INTEGER ) * + + 66 + - 81 + + + 37 + + - 93 AS col2 FROM tab1
----
2965

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5469
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 > + CAST( - - ( 21 ) AS SIGNED ) + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5469
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 > + CAST ( - - ( 21 ) AS INTEGER ) + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 49 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT DISTINCT + SUM( - - col0 ) col2 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5471
SELECT DISTINCT + SUM ( - - col0 ) col2 FROM tab0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5472
SELECT DISTINCT col1 * - ( - CAST( + col1 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-5472
SELECT DISTINCT col1 * - ( - CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5473
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 IN ( - + 69 + + CAST( + - col1 AS DECIMAL ) + + 89 - - + 54, col0 + - + col0, 60 )
----
-3

skipif mysql # not compatible
query I rowsort label-5473
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 IN ( - + 69 + + CAST ( + - col1 AS REAL ) + + 89 - - + 54, col0 + - + col0, 60 )
----
-3

query II rowsort
SELECT ALL 47 AS col1, col1 FROM tab1 AS cor0
----
47
14
47
47
47
5

query I rowsort
SELECT - + 42 FROM tab1 cor0
----
-42
-42
-42

query I rowsort
SELECT DISTINCT + ( + 1 ) AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5477
SELECT + 89 * 39 DIV + 25 FROM tab0
----
138
138
138

skipif mysql # not compatible
query I rowsort label-5477
SELECT + 89 * 39 / + 25 FROM tab0
----
138
138
138

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5478
SELECT + CAST( - + 62 AS SIGNED ) FROM tab2 WHERE NOT ( NULL ) = 46 - col1 * + CAST( NULL AS DECIMAL ) / - col1 * - col2
----

skipif mysql # not compatible
query I rowsort label-5478
SELECT + CAST ( - + 62 AS INTEGER ) FROM tab2 WHERE NOT ( NULL ) = 46 - col1 * + CAST ( NULL AS REAL ) / - col1 * - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5479
SELECT ALL 55 DIV - + col1 AS col1 FROM tab0
----
-2
-55
0

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL 55 / - + col1 AS col1 FROM tab0
----
-2
-55
0

query I rowsort
SELECT DISTINCT - col1 * + - col2 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT - + COUNT( * ) FROM tab2 WHERE NOT col0 + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5481
SELECT - + COUNT ( * ) FROM tab2 WHERE NOT col0 + col2 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5482
SELECT DISTINCT MAX( ALL + CAST( col2 AS SIGNED ) ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-5482
SELECT DISTINCT MAX ( ALL + CAST ( col2 AS INTEGER ) ) FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT ALL - 94 * + SUM( + col1 ) col1 FROM tab0
----
-9682

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5483
SELECT ALL - 94 * + SUM ( + col1 ) col1 FROM tab0
----
-9682

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( + col2, + 0 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT DISTINCT SUM( - 76 ) AS col0 FROM tab1
----
-228

skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT SUM ( - 76 ) AS col0 FROM tab1
----
-228

query I rowsort
SELECT - 27 AS col0 FROM tab2 WHERE NOT col1 + + 97 < ( + 82 - - 85 )
----
-27

query I rowsort
SELECT + 80 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT + SUM( 30 ) FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-5489
SELECT + SUM ( 30 ) FROM tab2
----
90

query I rowsort
SELECT ALL - ( - + col1 ) FROM tab0 cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5491
SELECT - 92 DIV + 31 col0 FROM tab1 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5491
SELECT - 92 / + 31 col0 FROM tab1 AS cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT DISTINCT + + SUM( + - 1 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5492
SELECT DISTINCT + + SUM ( + - 1 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 1 * - col1 - col1 AS col0 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-5494
SELECT - + 21 DIV + col2 AS col0 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5494
SELECT - + 21 / + col2 AS col0 FROM tab0 AS cor0
----
-2
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT + 1 * MIN( - - col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5495
SELECT + 1 * MIN ( - - col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL - 13 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-13
-13
-13

query II rowsort
SELECT ALL 1 AS col1, + 98 FROM tab2 AS cor0
----
1
98
1
98
1
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 58 col2 FROM tab1
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT COUNT( * ) AS col0 FROM tab0 WHERE + - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5499
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE + - col0 IS NULL
----
0

query II rowsort
SELECT DISTINCT + 99, - col2 * 19 AS col1 FROM tab0
----
99
-1881
99
-190
99
-893

query I rowsort
SELECT DISTINCT col0 * + 10 + - 34 AS col1 FROM tab2
----
426
606
716

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT ( - + COUNT( * ) ) + - COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-5502
SELECT ( - + COUNT ( * ) ) + - COUNT ( * ) FROM tab1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT DISTINCT - MAX( 69 ) + 19 + + ( + + 16 ) AS col2 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-5503
SELECT DISTINCT - MAX ( 69 ) + 19 + + ( + + 16 ) AS col2 FROM tab0
----
-34

query I rowsort
SELECT col0 FROM tab1 WHERE ( + col1 * + 79 * - 68 ) IS NULL
----

query I rowsort
SELECT 55 + col2 AS col0 FROM tab2
----
113
78
95

query II rowsort
SELECT 93, 23 * col0 AS col2 FROM tab0
----
93
2001
93
2231
93
345

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + ( + col1 ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5508
SELECT col0 / col0 AS col1, - col2 AS col1 FROM tab2 cor0 WHERE - col2 >= - + CAST( NULL AS SIGNED ) * + col1
----

skipif mysql # not compatible
query II rowsort label-5508
SELECT col0 / col0 AS col1, - col2 AS col1 FROM tab2 cor0 WHERE - col2 >= - + CAST ( NULL AS INTEGER ) * + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5509
SELECT ALL + col2 DIV 43 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5509
SELECT ALL + col2 / 43 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT - SUM( + + col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5510
SELECT - SUM ( + + col1 ) AS col1 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT - ( - + ( + col1 ) ) AS col1 FROM tab0 cor0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 6 <= - + col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 - + 73 = ( - col0 ) * + col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( ( NOT + - col0 + + + 24 / - + col0 IS NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5515
SELECT COUNT( * ) AS col0, - COUNT( ALL + CAST( NULL AS SIGNED ) ) + - + COUNT( * ) FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-5515
SELECT COUNT ( * ) AS col0, - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) + - + COUNT ( * ) FROM tab0
----
3
-3

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT ( + col0 * + 89 + - col0 ) = col0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT 47 * + + ( - COUNT( * ) ) * - COUNT( * ) AS col0 FROM tab2
----
423

skipif mysql # not compatible
query I rowsort label-5517
SELECT 47 * + + ( - COUNT ( * ) ) * - COUNT ( * ) AS col0 FROM tab2
----
423

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT - COUNT( + col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5518
SELECT - COUNT ( + col0 ) FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 2 col1 FROM tab1
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE + 12 / - col2 < - col0
----
0

skipif mysql # not compatible
query I rowsort label-5520
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE + 12 / - col2 < - col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0, ( + col0 ) * - 90 + + col1 col0 FROM tab2 AS cor0
----
-46
-4089
-64
-5683
-75
-6683

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5522
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 23 + col1 AS col0, - col1 col0 FROM tab1
----
28
-5
37
-14
70
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5524
SELECT + CAST( NULL AS SIGNED ) * 51 + + col2 * 53 AS col0, 8 AS col0 FROM tab2
----
NULL
8
NULL
8
NULL
8

skipif mysql # not compatible
query II rowsort label-5524
SELECT + CAST ( NULL AS INTEGER ) * 51 + + col2 * 53 AS col0, 8 AS col0 FROM tab2
----
NULL
8
NULL
8
NULL
8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( + - ( col2 ) ) - + - col2 IS NULL )
----

query I rowsort
SELECT DISTINCT + + 41 AS col2 FROM tab1 cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT MIN( 60 ) FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-5527
SELECT MIN ( 60 ) FROM tab2 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT - COUNT( * ) * - + 11 AS col1 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-5528
SELECT - COUNT ( * ) * - + 11 AS col1 FROM tab0 AS cor0
----
33

query II rowsort
SELECT DISTINCT 78 AS col0, + 59 + col0 + + 92 + col0 + - ( + 84 ) + + col1 * + 73 FROM tab2
----
78
3882
78
5108
78
5816

query III rowsort
SELECT * FROM tab0 WHERE - 21 + - - col0 + + 51 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5531
SELECT - CAST( + + ( 3 ) AS SIGNED ) * - - 26 FROM tab2 WHERE NULL IS NULL
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-5531
SELECT - CAST ( + + ( 3 ) AS INTEGER ) * - - 26 FROM tab2 WHERE NULL IS NULL
----
-78
-78
-78

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + + col1 ) / col2 * - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5533
SELECT DISTINCT col1 + + CAST( 54 AS SIGNED ) + col2 * - col2 AS col1 FROM tab2
----
-1469
-3243
-424

skipif mysql # not compatible
query I rowsort label-5533
SELECT DISTINCT col1 + + CAST ( 54 AS INTEGER ) + col2 * - col2 AS col1 FROM tab2
----
-1469
-3243
-424

onlyif mysql # DIV for integer division: 
query I rowsort label-5534
SELECT DISTINCT - col1 DIV - ( 27 ) + + - 77 + - 31 AS col0 FROM tab2 AS cor0
----
-106
-107

skipif mysql # not compatible
query I rowsort label-5534
SELECT DISTINCT - col1 / - ( 27 ) + + - 77 + - 31 AS col0 FROM tab2 AS cor0
----
-106
-107

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 29 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT DISTINCT + - SUM( + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5536
SELECT DISTINCT + - SUM ( + col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT ALL - COUNT( + ( 26 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5537
SELECT ALL - COUNT ( + ( 26 ) ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT MIN( ALL - - col1 ) * + 25 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-5538
SELECT MIN ( ALL - - col1 ) * + 25 FROM tab0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5539
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT SUM( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5540
SELECT SUM ( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 30 AS col2, col0 col0 FROM tab2 AS cor0
----
30
46
30
64
30
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> - 57
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5543
SELECT DISTINCT - col1 AS col1, CAST( NULL AS SIGNED ) * - col1 * + col0 FROM tab1 cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-5543
SELECT DISTINCT - col1 AS col1, CAST ( NULL AS INTEGER ) * - col1 * + col0 FROM tab1 cor0
----
-14
NULL
-47
NULL
-5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT SUM( ALL + + 24 ) * + 17 AS col0 FROM tab2 AS cor0
----
1224

skipif mysql # not compatible
query I rowsort label-5544
SELECT SUM ( ALL + + 24 ) * + 17 AS col0 FROM tab2 AS cor0
----
1224

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT ALL - + MIN( - + col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL - + MIN ( - + col0 ) AS col0 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT - COUNT( DISTINCT - - col1 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5546
SELECT - COUNT ( DISTINCT - - col1 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col2 * - - col2 AS col1 FROM tab1
----
3481
4624
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab2 WHERE NOT - col1 IS NULL
----
23
40
58

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 47 / + - col0 + col1 - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT ALL SUM( ALL col0 ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-5550
SELECT ALL SUM ( ALL col0 ) AS col0 FROM tab1
----
227

query I rowsort
SELECT col0 + - - col2 AS col1 FROM tab2 AS cor0
----
104
133
69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + 30 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5553
SELECT col2 + - col1 + + 78 + - col0 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5553
SELECT col2 + - col1 + + 78 + - col0 * - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 86 * - - col1 AS col1 FROM tab1 AS cor0
----
1204
4042
430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5555
SELECT - + CAST( NULL AS SIGNED ) - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5555
SELECT - + CAST ( NULL AS INTEGER ) - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT ALL - - 66 * - - COUNT( * ) FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL - - 66 * - - COUNT ( * ) FROM tab1 AS cor0
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5557
SELECT - col2 / + CAST( NULL AS SIGNED ) - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5557
SELECT - col2 / + CAST ( NULL AS INTEGER ) - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col2 ) - + col1 * col1 FROM tab0 cor0
----
-431
-6514
98

query I rowsort
SELECT + col2 + + 15 + + 76 * + + 44 FROM tab0 AS cor0
----
3369
3406
3458

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - - col0 + + - 99 BETWEEN col0 * ( col0 ) AND + 57 AND NULL > 14
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5561
SELECT + col1 + + 44 DIV 25 * + - col2 * + col0 AS col1 FROM tab0 AS cor0
----
-624
-849
-9602

skipif mysql # not compatible
query I rowsort label-5561
SELECT + col1 + + 44 / 25 * + - col2 * + col0 AS col1 FROM tab0 AS cor0
----
-624
-849
-9602

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT DISTINCT - COUNT( * ) * COUNT( * ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5562
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1
----
-9

query I rowsort
SELECT ALL + 70 FROM tab0 WHERE NULL = + - col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * + ( - 21 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 + + col1 + col0 AS col0 FROM tab1
----
149
161
206

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT ALL 45 * - COUNT( * ) + + - COUNT( * ) FROM tab1
----
-138

skipif mysql # not compatible
query I rowsort label-5566
SELECT ALL 45 * - COUNT ( * ) + + - COUNT ( * ) FROM tab1
----
-138

onlyif mysql # DIV for integer division: 
query I rowsort label-5567
SELECT ALL col1 DIV - + col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL col1 / - + col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT 20 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
20
20
20

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 19 >= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 66 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - col2 col0 FROM tab1
----
4896
5015
6188

query II rowsort
SELECT - - col0 AS col1, + 69 * + 85 AS col2 FROM tab0 AS cor0
----
15
5865
87
5865
97
5865

onlyif mysql # aggregate syntax: 
query II rowsort label-5573
SELECT DISTINCT - + COUNT( * ) AS col2, 86 FROM tab0 AS cor0
----
-3
86

skipif mysql # not compatible
query II rowsort label-5573
SELECT DISTINCT - + COUNT ( * ) AS col2, 86 FROM tab0 AS cor0
----
-3
86

query II rowsort
SELECT - 95, - 95 AS col0 FROM tab0 AS cor0
----
-95
-95
-95
-95
-95
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-5575
SELECT DISTINCT - COUNT( * ) AS col0, - COUNT( * ) FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-5575
SELECT DISTINCT - COUNT ( * ) AS col0, - COUNT ( * ) FROM tab0 AS cor0
----
-3
-3

query I rowsort
SELECT ALL - 76 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5577
SELECT ALL + - ( + + CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL + - ( + + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 31 FROM tab1 cor0
----
-31
-31
-31

query I rowsort
SELECT + 33 * + 46 FROM tab1 AS cor0
----
1518
1518
1518

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5581
SELECT DISTINCT 15 AS col2, ( - ( COUNT( DISTINCT + + ( col2 ) ) ) ) AS col1 FROM tab1 cor0
----
15
-3

skipif mysql # not compatible
query II rowsort label-5581
SELECT DISTINCT 15 AS col2, ( - ( COUNT ( DISTINCT + + ( col2 ) ) ) ) AS col1 FROM tab1 cor0
----
15
-3

query II rowsort
SELECT ALL + col0, col1 AS col2 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT + MIN( DISTINCT + + col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5583
SELECT + MIN ( DISTINCT + + col0 ) FROM tab1
----
51

query II rowsort
SELECT ALL col1 + + 73 AS col1, - col1 AS col0 FROM tab2
----
124
-51
140
-67
150
-77

query I rowsort
SELECT DISTINCT 45 + col2 FROM tab1
----
104
113
141

query I rowsort
SELECT ALL + col0 * + - col1 AS col0 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT ALL + 91 + 56 * - 61 FROM tab0
----
-3325
-3325
-3325

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT MAX( 14 ) FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-5588
SELECT MAX ( 14 ) FROM tab1
----
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 * col0 * + - 1 col0 FROM tab2
----
-4140
-5760
-6750

query II rowsort
SELECT 27 AS col1, - 17 * 33 FROM tab1
----
27
-561
27
-561
27
-561

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT DISTINCT + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 33 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5592
SELECT DISTINCT + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 33 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5593
SELECT ALL + 0 + CAST( - 22 AS SIGNED ) FROM tab1 AS cor0
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL + 0 + CAST ( - 22 AS INTEGER ) FROM tab1 AS cor0
----
-22
-22
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5594
SELECT ALL CAST( - ( + AVG ( - + ( - 23 ) ) ) AS SIGNED ) + + - COUNT( * ) AS col2, COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-32
9

skipif mysql # not compatible
query II rowsort label-5594
SELECT ALL CAST ( - ( + AVG ( - + ( - 23 ) ) ) AS INTEGER ) + + - COUNT ( * ) AS col2, COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-32
9

query III rowsort
SELECT * FROM tab1 WHERE + 67 - + 45 * col2 < + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 93 - + col2 AS col0 FROM tab2 AS cor0
----
-116
-133
-151

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
46
64
75

query I rowsort
SELECT DISTINCT ( - ( - 18 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 64 - + 86 FROM tab2
----
-150
-150
-150

query I rowsort
SELECT col2 - - - col1 * + - 19 * + - col1 FROM tab1
----
-3628
-416
-41903

query I rowsort
SELECT + col2 - - 0 + 5 * + + 24 + col1 + + col1 AS col0 FROM tab2
----
245
312
314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5602
SELECT - 19 * + + col0 - - + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5602
SELECT - 19 * + + col0 - - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 < NULL AND NOT NULL NOT BETWEEN ( - col0 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 * + col2 col1 FROM tab2
----
1449
2520
3654

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 < col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( + 40 ) * + col1 FROM tab1
----
1880
200
560

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5607
SELECT * FROM tab1 WHERE NOT - CAST( 49 AS SIGNED ) >= - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5607
SELECT * FROM tab1 WHERE NOT - CAST ( 49 AS INTEGER ) >= - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 - + + col2 NOT IN ( + col2, - col2 * + col2 + col2, + - col2, - col1, - 35 + - 55 )
----

query I rowsort
SELECT ALL + 55 FROM tab0 AS cor0 WHERE NULL IS NULL
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT ALL COUNT( ALL - col2 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5610
SELECT ALL COUNT ( ALL - col2 ) col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 16 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-16

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + 79 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5613
SELECT ALL col0 DIV - 25 FROM tab1 AS cor0
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL col0 / - 25 FROM tab1 AS cor0
----
-2
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5614
SELECT + ( CAST( + col0 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5614
SELECT + ( CAST ( + col0 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT DISTINCT + MAX( + col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5615
SELECT DISTINCT + MAX ( + col1 ) AS col0 FROM tab0 AS cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5616
SELECT - 6 DIV - col0 * col2 * 77 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5616
SELECT - 6 / - col0 * col2 * 77 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( + 32 ) AS col0 FROM tab2 AS cor0
----
-32

query I rowsort
SELECT ALL + col1 * + col1 * ( - col0 ) * col0 + col1 AS col2 FROM tab0
----
-1476144
-3337908
-9408

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT COUNT( * ) FROM tab1 WHERE NOT NULL < 29
----
0

skipif mysql # not compatible
query I rowsort label-5619
SELECT COUNT ( * ) FROM tab1 WHERE NOT NULL < 29
----
0

query I rowsort
SELECT ALL + col0 + + col0 + - - 5 AS col2 FROM tab2
----
133
155
97

query I rowsort
SELECT ALL + + col0 FROM tab0 WHERE NOT - 11 IS NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5622
SELECT * FROM tab0 AS cor0 WHERE + CAST( - 26 AS SIGNED ) - - 83 * 17 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5622
SELECT * FROM tab0 AS cor0 WHERE + CAST ( - 26 AS INTEGER ) - - 83 * 17 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 79 + col1 AS col0 FROM tab2 AS cor0
----
130
146
156

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5624
SELECT - - 54 * - col0 + - col2 * CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5624
SELECT - - 54 * - col0 + - col2 * CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5625
SELECT + 48 DIV + - 51 + + - COUNT( * ) * 38 FROM tab0 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-5625
SELECT + 48 / + - 51 + + - COUNT ( * ) * 38 FROM tab0 AS cor0
----
-114

query I rowsort
SELECT + 52 * - ( - col2 ) FROM tab2 AS cor0
----
1196
2080
3016

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5627
SELECT * FROM tab2 AS cor0 WHERE col1 * CAST( NULL AS SIGNED ) * - 52 < - CAST( NULL AS SIGNED ) + + + 78
----

skipif mysql # not compatible
query III rowsort label-5627
SELECT * FROM tab2 AS cor0 WHERE col1 * CAST ( NULL AS INTEGER ) * - 52 < - CAST ( NULL AS INTEGER ) + + + 78
----

query I rowsort
SELECT col0 - - - ( - col1 ) FROM tab2
----
141
142
97

query III rowsort
SELECT * FROM tab1 WHERE col0 NOT BETWEEN + col0 AND - - col2
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5630
SELECT ALL - CAST( MIN( DISTINCT 39 ) AS SIGNED ) + + COUNT( * ) - + 93 AS col0 FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL - CAST ( MIN ( DISTINCT 39 ) AS INTEGER ) + + COUNT ( * ) - + 93 AS col0 FROM tab1 AS cor0
----
-129

query I rowsort
SELECT DISTINCT + 42 + - col0 FROM tab1 AS cor0
----
-43
-49
-9

query I rowsort
SELECT ALL 94 - - 98 FROM tab0 AS cor0
----
192
192
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5633
SELECT COUNT( * ) * - ( + CAST( + - COUNT( * ) AS SIGNED ) ) - - 16 FROM tab1 cor0 WHERE 77 <= NULL
----
16

skipif mysql # not compatible
query I rowsort label-5633
SELECT COUNT ( * ) * - ( + CAST ( + - COUNT ( * ) AS INTEGER ) ) - - 16 FROM tab1 cor0 WHERE 77 <= NULL
----
16

query II rowsort
SELECT ALL - col0, col1 * + col2 AS col1 FROM tab1 AS cor0
----
-51
1344
-85
295
-91
3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5635
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5635
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 0 NOT BETWEEN - 74 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 74 <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5638
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + + CAST( + col2 AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5638
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + + CAST ( + col2 AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT SUM( DISTINCT + col2 ) col0 FROM tab1 AS cor0 WHERE NOT 21 * + col1 <= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5639
SELECT SUM ( DISTINCT + col2 ) col0 FROM tab1 AS cor0 WHERE NOT 21 * + col1 <= NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < - 48 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * - - 88 col0, col1 col0 FROM tab2
----
4488
51
5896
67
6776
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 0 NOT IN ( - 56, - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 28 ) <