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 ) < + col1 / 83
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-5644
SELECT ALL col1 / + CAST ( NULL AS REAL ) / + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5645
SELECT MIN( + 72 ) AS col0, CAST( NULL AS SIGNED ) FROM tab0
----
72
NULL

skipif mysql # not compatible
query II rowsort label-5645
SELECT MIN ( + 72 ) AS col0, CAST ( NULL AS INTEGER ) FROM tab0
----
72
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5646
SELECT - ( - - COUNT( * ) ) AS col1, 44 FROM tab0
----
-3
44

skipif mysql # not compatible
query II rowsort label-5646
SELECT - ( - - COUNT ( * ) ) AS col1, 44 FROM tab0
----
-3
44

query I rowsort
SELECT + 13 * - col0 * col1 AS col2 FROM tab1
----
-5525
-55601
-9282

query I rowsort
SELECT ALL + col1 * - - 43 * + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-10197880
-11195566
-2572389

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - - ( + + col2 ) BETWEEN + 84 AND NULL
----
85
5
59
91
47
68

query I rowsort
SELECT + 99 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT - ( - 14 ) + - - COUNT( * ) FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-5658
SELECT - ( - 14 ) + - - COUNT ( * ) FROM tab2 AS cor0
----
17

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5659
SELECT DISTINCT + - SUM ( col1 ) col0 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT - col2 + + 99 FROM tab0 AS cor0
----
0
52
89

query I rowsort
SELECT 52 * + 40 AS col0 FROM tab0 cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT ALL - COUNT( * ) * 75 FROM tab1 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-5662
SELECT ALL - COUNT ( * ) * 75 FROM tab1 AS cor0
----
-225

onlyif mysql # aggregate syntax: 
query II rowsort label-5663
SELECT DISTINCT COUNT( * ) AS col1, 94 + 56 FROM tab2 AS cor0
----
3
150

skipif mysql # not compatible
query II rowsort label-5663
SELECT DISTINCT COUNT ( * ) AS col1, 94 + 56 FROM tab2 AS cor0
----
3
150

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> 98 + 91 + + col2 * + col0 * + col1
----

query II rowsort
SELECT DISTINCT col2 + + col2 AS col0, col0 FROM tab2
----
116
75
46
46
80
64

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

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

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

query I rowsort
SELECT DISTINCT col1 + - + col0 AS col2 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT ALL col2 + - - col2 * + col1 FROM tab0
----
198
220
3854

query II rowsort
SELECT - col0 * + 95, col1 FROM tab0
----
-1425
81
-8265
21
-9215
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5671
SELECT DISTINCT 65 + - MAX( ALL - 34 ) FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-5671
SELECT DISTINCT 65 + - MAX ( ALL - 34 ) FROM tab2
----
99

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5673
SELECT + col1 + col2 DIV - 73 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5673
SELECT + col1 + col2 / - 73 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT DISTINCT MAX( ALL + col1 ) * - 79 FROM tab1 cor0
----
-3713

skipif mysql # not compatible
query I rowsort label-5674
SELECT DISTINCT MAX ( ALL + col1 ) * - 79 FROM tab1 cor0
----
-3713

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT - + COUNT( * ) + - - 79 FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-5675
SELECT - + COUNT ( * ) + - - 79 FROM tab0 AS cor0
----
76

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5677
SELECT - 50 + - CAST( NULL AS SIGNED ) / 8 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5677
SELECT - 50 + - CAST ( NULL AS INTEGER ) / 8 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col1 * + col1 AS col0, - col2 AS col0 FROM tab2 WHERE + - col0 IS NOT NULL
----
2601
-23
4489
-58
5929
-40

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

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

query I rowsort
SELECT ALL - col1 - + col1 + col0 AS col2 FROM tab2 AS cor0
----
-56
-59
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-5682
SELECT DISTINCT col1 + + 95 DIV 48 + col2 FROM tab2 AS cor0
----
118
126
75

skipif mysql # not compatible
query I rowsort label-5682
SELECT DISTINCT col1 + + 95 / 48 + col2 FROM tab2 AS cor0
----
118
126
75

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 4 * + col0 BETWEEN NULL AND - + col1
----
15
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5685
SELECT ALL + col1 DIV col0 AS col2 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
0
0
5

skipif mysql # not compatible
query I rowsort label-5685
SELECT ALL + col1 / col0 AS col2 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
0
0
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * + ( 92 ) AS col2, col0 col0 FROM tab1 AS cor0
----
-4692
51
-7820
85
-8372
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5687
SELECT col1 DIV col0 * col1 + col2 AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5687
SELECT col1 / col0 * col1 + col2 AS col0 FROM tab1 AS cor0
----
59
68
96

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5688
SELECT - MAX ( DISTINCT + - col0 ) col0 FROM tab1 AS cor0
----
51

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

skipif mysql # not compatible
query I rowsort label-5689
SELECT DISTINCT + 80 * - COUNT ( * ) FROM tab1
----
-240

onlyif mysql # aggregate syntax: 
query II rowsort label-5690
SELECT ( COUNT( ALL 59 ) ) * + COUNT( * ) AS col1, 65 FROM tab1
----
9
65

skipif mysql # not compatible
query II rowsort label-5690
SELECT ( COUNT ( ALL 59 ) ) * + COUNT ( * ) AS col1, 65 FROM tab1
----
9
65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5691
SELECT CAST( - 86 AS SIGNED ) DIV col2 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5691
SELECT CAST ( - 86 AS INTEGER ) / col2 FROM tab2
----
-1
-2
-3

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5694
SELECT DISTINCT - col0 AS col1, - col2 DIV + 36 FROM tab2 AS cor0
----
-46
0
-64
-1
-75
-1

skipif mysql # not compatible
query II rowsort label-5694
SELECT DISTINCT - col0 AS col1, - col2 / + 36 FROM tab2 AS cor0
----
-46
0
-64
-1
-75
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - col0 col2 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

query II rowsort
SELECT ALL - col0 * col1 AS col2, - col2 - - ( - + col0 ) + + col2 AS col2 FROM tab1 AS cor0
----
-425
-85
-4277
-91
-714
-51

query I rowsort
SELECT + col2 * - + 28 + + 55 FROM tab1 AS cor0
----
-1597
-1849
-2633

query II rowsort
SELECT ALL + col0 AS col0, 81 AS col2 FROM tab1 AS cor0
----
51
81
85
81
91
81

query II rowsort
SELECT + 49 * col2 AS col1, 29 AS col2 FROM tab0 AS cor0
----
2303
29
4851
29
490
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT COUNT( * ) * - - 98 AS col2 FROM tab1 cor0
----
294

skipif mysql # not compatible
query I rowsort label-5700
SELECT COUNT ( * ) * - - 98 AS col2 FROM tab1 cor0
----
294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5701
SELECT - - MIN( ALL + 20 ) DIV + + MIN( + - col0 ) + - ( + 0 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5701
SELECT - - MIN ( ALL + 20 ) / + + MIN ( + - col0 ) + - ( + 0 ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5702
SELECT - col2 * - 76 + - CAST( + + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3491
739
7523

skipif mysql # not compatible
query I rowsort label-5702
SELECT - col2 * - 76 + - CAST ( + + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3491
739
7523

query I rowsort
SELECT ALL 72 * col2 + - col1 AS col2 FROM tab2 AS cor0
----
1605
2803
4109

query I rowsort
SELECT - col0 + - col1 * 43 AS col1 FROM tab0 AS cor0
----
-140
-3498
-990

query I rowsort
SELECT - col2 * 91 + - col0 FROM tab2 AS cor0
----
-2139
-3704
-5353

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

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

query I rowsort
SELECT DISTINCT col2 + - - 4 FROM tab2
----
27
44
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT DISTINCT 63 + + COUNT( * ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-5708
SELECT DISTINCT 63 + + COUNT ( * ) AS col0 FROM tab1
----
66

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT ALL COUNT( - col0 ) - 11 AS col1 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL COUNT ( - col0 ) - 11 AS col1 FROM tab0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT - + COUNT( * ) * - 94 FROM tab1 cor0
----
282

skipif mysql # not compatible
query I rowsort label-5713
SELECT - + COUNT ( * ) * - 94 FROM tab1 cor0
----
282

query I rowsort
SELECT ALL + 33 - + col0 FROM tab1 AS cor0
----
-18
-52
-58

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = col1 + 87
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT DISTINCT 47 + - ( - COUNT( * ) ) FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-5719
SELECT DISTINCT 47 + - ( - COUNT ( * ) ) FROM tab0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT - + MIN( - 71 ) AS col0 FROM tab0 cor0
----
71

skipif mysql # not compatible
query I rowsort label-5720
SELECT - + MIN ( - 71 ) AS col0 FROM tab0 cor0
----
71

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

skipif mysql # not compatible
query I rowsort label-5721
SELECT + CAST ( MAX ( ALL col1 ) AS INTEGER ) FROM tab2 AS cor0
----
77

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

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

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT + 63 AS col1, + 55 + 54 * + col1 FROM tab2
----
63
2809
63
3673
63
4213

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

skipif mysql # not compatible
query I rowsort label-5728
SELECT DISTINCT - CAST ( MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT + 35 * - 50 FROM tab2
----
-1750
-1750
-1750

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT DISTINCT + MAX( DISTINCT col1 ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-5730
SELECT DISTINCT + MAX ( DISTINCT col1 ) AS col1 FROM tab1
----
47

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

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

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

query I rowsort
SELECT col2 * - col0 * col1 * + 55 + - - col1 * - col0 AS col2 FROM tab2
----
-10846528
-16034775
-2970036

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT MAX( - col2 ) + + 93 AS col2 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-5735
SELECT MAX ( - col2 ) + + 93 AS col2 FROM tab1
----
34

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5737
SELECT ALL - 29 * - - COUNT( * ), - 40 - - 82 AS col2 FROM tab1 AS cor0
----
-87
42

skipif mysql # not compatible
query II rowsort label-5737
SELECT ALL - 29 * - - COUNT ( * ), - 40 - - 82 AS col2 FROM tab1 AS cor0
----
-87
42

query I rowsort
SELECT col2 + + + ( + col2 ) AS col2 FROM tab1 AS cor0 WHERE + col0 / + - 20 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 / + - 7 - + + 72 AND NULL
----

query I rowsort
SELECT ALL + 60 * + + col0 FROM tab1 AS cor0
----
3060
5100
5460

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

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

query I rowsort
SELECT DISTINCT + 70 * - - col1 AS col0 FROM tab0 AS cor0
----
1470
5670
70

query I rowsort
SELECT DISTINCT - 56 * col2 FROM tab0 AS cor0
----
-2632
-5544
-560

query I rowsort
SELECT ALL + + 47 * + - 79 AS col1 FROM tab2 cor0
----
-3713
-3713
-3713

query II rowsort
SELECT ALL + col1 + - col0, - 83 AS col2 FROM tab1 AS cor0
----
-37
-83
-44
-83
-80
-83

query I rowsort
SELECT 21 * 98 FROM tab2
----
2058
2058
2058

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 53 col0 FROM tab1
----
112
121
149

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT ALL + 30 - - MAX( DISTINCT - col1 ) AS col1 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-5748
SELECT ALL + 30 - - MAX ( DISTINCT - col1 ) AS col1 FROM tab1
----
25

query I rowsort
SELECT ALL 28 * + col0 + col2 FROM tab2
----
1311
1832
2158

query III rowsort
SELECT * FROM tab2 WHERE - + 72 <> - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 + + - 30 * - 12 * - col2 AS col1 FROM tab1
----
-21181
-24412
-34464

query I rowsort
SELECT col2 - + + 43 + + - col2 * col0 AS col0 FROM tab2
----
-1078
-2563
-4335

onlyif mysql # DIV for integer division: 
query I rowsort label-5753
SELECT 89 DIV - - 49 - + col0 + - - 77 col0 FROM tab0
----
-19
-9
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5753
SELECT 89 / - - 49 - + col0 + - - 77 col0 FROM tab0
----
-19
-9
63

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN 70 AND - col2 - + 28
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5756
SELECT ALL + + 42 DIV + - col2 - - - col0 AS col2 FROM tab0 cor0
----
-15
-91
-97

skipif mysql # not compatible
query I rowsort label-5756
SELECT ALL + + 42 / + - col2 - - - col0 AS col2 FROM tab0 cor0
----
-15
-91
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <= 2
----

query I rowsort
SELECT ALL - + col1 - - + col2 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT ALL - ( + 68 ) AS col0 FROM tab1 AS cor0 WHERE 52 NOT IN ( - 85 * 7, col2 )
----
-68
-68
-68

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

query I rowsort
SELECT ALL - col0 * 91 FROM tab2
----
-4186
-5824
-6825

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT ALL 61 * COUNT( * ) FROM tab1 WHERE - col1 IS NOT NULL
----
183

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL 61 * COUNT ( * ) FROM tab1 WHERE - col1 IS NOT NULL
----
183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5764
SELECT + COUNT( * ) * - - COUNT( - col0 ) * + - 33 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT + ( - - col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5764
SELECT + COUNT ( * ) * - - COUNT ( - col0 ) * + - 33 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT + ( - - col0 ) IS NOT NULL
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT ALL - SUM( ALL - 60 ) FROM tab0 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL - SUM ( ALL - 60 ) FROM tab0 AS cor0
----
180

query I rowsort
SELECT DISTINCT + - 57 AS col1 FROM tab2 AS cor0 WHERE + col2 <> - - col0
----
-57

query I rowsort
SELECT DISTINCT - + col2 FROM tab0 cor0 WHERE 33 BETWEEN + col1 AND - col2 + + 1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5769
SELECT ALL - - col0 DIV - 30 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL - - col0 / - 30 FROM tab0 AS cor0
----
-2
-3
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5770
SELECT DISTINCT - + col0 DIV + + 3 AS col1 FROM tab2 AS cor0
----
-15
-21
-25

skipif mysql # not compatible
query I rowsort label-5770
SELECT DISTINCT - + col0 / + + 3 AS col1 FROM tab2 AS cor0
----
-15
-21
-25

query I rowsort
SELECT - col1 * - col1 - col0 FROM tab2 cor0
----
2555
4414
5865

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5772
SELECT - COUNT ( * ) AS col1, 21 col1 FROM tab0 AS cor0
----
-3
21

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 17 BETWEEN NULL AND col0 - 61
----

query I rowsort
SELECT - 76 * + + col2 FROM tab0
----
-3572
-7524
-760

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 BETWEEN - + col1 / - col0 + - + 95 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT DISTINCT COUNT( * ) * + - MIN( DISTINCT - + 26 ) col2 FROM tab1
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5777
SELECT DISTINCT COUNT ( * ) * + - MIN ( DISTINCT - + 26 ) col2 FROM tab1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT + ( + COUNT( * ) ) + - + SUM( + col0 ) FROM tab1 cor0
----
-224

skipif mysql # not compatible
query I rowsort label-5778
SELECT + ( + COUNT ( * ) ) + - + SUM ( + col0 ) FROM tab1 cor0
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT 87 + - - COUNT( DISTINCT col0 ) col2 FROM tab0 cor0
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5779
SELECT 87 + - - COUNT ( DISTINCT col0 ) col2 FROM tab0 cor0
----
90

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

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

query II rowsort
SELECT - 54 + col2, col2 AS col2 FROM tab2 AS cor0
----
-14
40
-31
23
4
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5782
SELECT 56 + CAST( - col1 AS SIGNED ) + col0 + - col2 FROM tab0 AS cor0
----
-57
112
53

skipif mysql # not compatible
query I rowsort label-5782
SELECT 56 + CAST ( - col1 AS INTEGER ) + col0 + - col2 FROM tab0 AS cor0
----
-57
112
53

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) < + 0 * - ( col2 ) / + col1 - + + ( - 54 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT DISTINCT - COUNT( * ) * COUNT( * ) + - + 30 + ( + + ( 14 ) ) col0 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5785
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) + - + 30 + ( + + ( 14 ) ) col0 FROM tab2 AS cor0
----
-25

query I rowsort
SELECT DISTINCT + col2 * 64 AS col0 FROM tab2 AS cor0
----
1472
2560
3712

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT ALL + COUNT( * ) - - 34 FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-5787
SELECT ALL + COUNT ( * ) - - 34 FROM tab0 AS cor0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5788
SELECT - ( + + col1 ) * CAST( + + col2 AS SIGNED ) + + + col1, col0 FROM tab0 AS cor0
----
-189
87
-3726
15
-98
97

skipif mysql # not compatible
query II rowsort label-5788
SELECT - ( + + col1 ) * CAST ( + + col2 AS INTEGER ) + + + col1, col0 FROM tab0 AS cor0
----
-189
87
-3726
15
-98
97

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

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

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

query I rowsort
SELECT - col0 + - - col2 FROM tab2 AS cor0 WHERE - 28 IN ( - col2, col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT ALL COUNT( + 4 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5793
SELECT ALL COUNT ( + 4 ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE col0 BETWEEN + 95 AND NULL
----

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

skipif mysql # not compatible
query III rowsort label-5795
SELECT * FROM tab2 WHERE NULL <> - ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5796
SELECT DISTINCT + col0 DIV 98 - + - 62 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-5796
SELECT DISTINCT + col0 / 98 - + - 62 FROM tab2
----
62

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

skipif mysql # not compatible
query I rowsort label-5797
SELECT + col0 / - + 56 FROM tab0
----
-1
-1
0

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

skipif mysql # not compatible
query I rowsort label-5798
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE 46 <> + - CAST ( NULL AS INTEGER ) * - 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT MIN( - col1 ) col1 FROM tab2
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5799
SELECT MIN ( - col1 ) col1 FROM tab2
----
-77

query I rowsort
SELECT ALL col2 - col2 * + - col0 AS col1 FROM tab1 AS cor0
----
4992
5074
6256

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5802
SELECT ALL - col1 AS col2, - CAST( NULL AS DECIMAL ) + - - col2 * - - col1 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-5802
SELECT ALL - col1 AS col2, - CAST ( NULL AS REAL ) + - - col2 * - - col1 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT - COUNT( DISTINCT + - 6 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5804
SELECT - COUNT ( DISTINCT + - 6 ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5805
SELECT + + MIN( ALL + 30 ), + MIN( - col2 ) AS col1 FROM tab2 AS cor0
----
30
-58

skipif mysql # not compatible
query II rowsort label-5805
SELECT + + MIN ( ALL + 30 ), + MIN ( - col2 ) AS col1 FROM tab2 AS cor0
----
30
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5806
SELECT + - ( + col2 ) DIV - + 26 col2 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5806
SELECT + - ( + col2 ) / - + 26 col2 FROM tab2 AS cor0
----
0
1
2

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

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

query I rowsort
SELECT - ( - 16 ) FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 <= - 22 * + - col1
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= - - col2
----

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

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

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

query I rowsort
SELECT - 27 * - col0 AS col0 FROM tab0
----
2349
2619
405

query II rowsort
SELECT ALL + col1 AS col1, 24 AS col2 FROM tab0
----
1
24
21
24
81
24

query I rowsort
SELECT DISTINCT - 75 + 41 AS col0 FROM tab0 AS cor0
----
-34

query I rowsort
SELECT 15 * - 58 AS col1 FROM tab2
----
-870
-870
-870

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 81 >= col1 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5820
SELECT + col0 * CAST( col0 AS SIGNED ) FROM tab2
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-5820
SELECT + col0 * CAST ( col0 AS INTEGER ) FROM tab2
----
2116
4096
5625

query I rowsort
SELECT DISTINCT 30 AS col1 FROM tab2 WHERE + 77 * + 25 IS NOT NULL
----
30

query I rowsort
SELECT col1 * - ( 51 * - 45 ) FROM tab0
----
185895
2295
48195

query I rowsort
SELECT ( - 92 ) * - 10 AS col1 FROM tab1
----
920
920
920

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE ( 52 ) >= NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5827
SELECT - col1 * + CAST( + col2 AS SIGNED ) AS col1 FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-5827
SELECT - col1 * + CAST ( + col2 AS INTEGER ) AS col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT - 41 * COUNT( * ) AS col0 FROM tab2
----
-123

skipif mysql # not compatible
query I rowsort label-5828
SELECT - 41 * COUNT ( * ) AS col0 FROM tab2
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT COUNT( * ) - - 14 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-5829
SELECT COUNT ( * ) - - 14 FROM tab2
----
17

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

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

skipif mysql # not compatible
query I rowsort label-5831
SELECT ALL ( COUNT ( * ) ) + 87 FROM tab1
----
90

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE NOT - col0 + - col1 / col2 > ( NULL )
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 6 - - col2 * 40 AS col1 FROM tab1 WHERE NOT + col0 * + 16 + + ( col0 ) NOT IN ( + 6 )
----

query I rowsort
SELECT DISTINCT - 62 - col2 FROM tab1
----
-121
-130
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT DISTINCT + SUM( - col0 ) FROM tab0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5839
SELECT DISTINCT + SUM ( - col0 ) FROM tab0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5840
SELECT CAST( 23 AS SIGNED ) DIV + col2 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5840
SELECT CAST ( 23 AS INTEGER ) / + col2 AS col1 FROM tab2
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col1 ) BETWEEN 12 / 39 AND ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-5842
SELECT DISTINCT + MAX ( + 7 ) / 32 FROM tab1
----
0

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

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN ( ( - 14 ) ) AND NULL
----

query I rowsort
SELECT DISTINCT - 18 * - col1 AS col1 FROM tab1
----
252
846
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT DISTINCT 6 * - 58 + COUNT( * ) FROM tab0
----
-345

skipif mysql # not compatible
query I rowsort label-5846
SELECT DISTINCT 6 * - 58 + COUNT ( * ) FROM tab0
----
-345

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

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

query I rowsort
SELECT ALL 63 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT COUNT( * ) * 98 AS col1 FROM tab2
----
294

skipif mysql # not compatible
query I rowsort label-5849
SELECT COUNT ( * ) * 98 AS col1 FROM tab2
----
294

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

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

query I rowsort
SELECT ALL + 87 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT 4 * + MIN( DISTINCT col1 ) AS col0 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-5852
SELECT 4 * + MIN ( DISTINCT col1 ) AS col0 FROM tab0
----
4

query I rowsort
SELECT DISTINCT 83 * col1 AS col1 FROM tab1 cor0
----
1162
3901
415

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5858
SELECT MIN ( - 49 ) AS col1 FROM tab0 AS cor0
----
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 62 col1 FROM tab2 WHERE - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5860
SELECT ALL + col2 DIV 99 + + col2 AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5860
SELECT ALL + col2 / 99 + + col2 AS col1 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL ( - col2 ) FROM tab1 WHERE - 86 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * + 72 FROM tab1
----
4248
4896
6912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 * - col0 col2 FROM tab2
----
-1150
-1600
-1875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 * 11 + col2 col1 FROM tab1 WHERE col0 * col1 IS NOT NULL
----
598
607
635

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col0 ) <> + col1 * - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5866
SELECT col1 * + - col0 + 5 DIV + 88 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-5866
SELECT col1 * + - col0 + 5 / + 88 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT + ( + col0 ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 13 + 28 )
----

query I rowsort
SELECT + ( - col2 ) + col1 AS col1 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT ALL + - col2 * + col2 + col2 AS col2 FROM tab1 AS cor0
----
-3422
-4556
-9120

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

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

query I rowsort
SELECT ALL col0 * - + 20 + 41 AS col0 FROM tab1 AS cor0
----
-1659
-1779
-979

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT ALL SUM( ALL - 7 ) + 78 AS col2 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-5872
SELECT ALL SUM ( ALL - 7 ) + 78 AS col2 FROM tab2
----
57

query I rowsort
SELECT DISTINCT col2 + - - col2 - + col0 FROM tab1
----
141
33
45

query I rowsort
SELECT + - col0 + - col0 * + col0 FROM tab0 cor0
----
-240
-7656
-9506

query I rowsort
SELECT - 89 + + - col2 + - + col1 AS col1 FROM tab1 AS cor0
----
-153
-199
-204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5876
SELECT - 11 - + CAST( - CAST( 25 AS SIGNED ) + + col2 AS SIGNED ) * col0 AS col1 FROM tab2 AS cor0 WHERE 4 <= NULL
----

skipif mysql # not compatible
query I rowsort label-5876
SELECT - 11 - + CAST ( - CAST ( 25 AS INTEGER ) + + col2 AS INTEGER ) * col0 AS col1 FROM tab2 AS cor0 WHERE 4 <= NULL
----

query I rowsort
SELECT - col2 + - - 32 AS col2 FROM tab0 cor0
----
-15
-67
22

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 / - col1 < NULL
----

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

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

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

query I rowsort
SELECT - 8 * - col1 * + col1 * - col2 + col0 + + col1 FROM tab1 AS cor0
----
-11710
-1201558
-150463

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 14 - 17 NOT IN ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 21 >= NULL
----

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

query I rowsort
SELECT ALL col2 + + 69 AS col2 FROM tab1 WHERE - col0 * + col1 + col1 IS NULL
----

query I rowsort
SELECT ALL col1 FROM tab0 WHERE + 31 * + - 40 >= col1 / ( - 9 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5888
SELECT * FROM tab0 WHERE NOT col0 + - col2 + col0 * + ( CAST( 97 AS SIGNED ) + - 45 ) NOT IN ( - col2 ) AND NULL IN ( col1 )
----

skipif mysql # not compatible
query III rowsort label-5888
SELECT * FROM tab0 WHERE NOT col0 + - col2 + col0 * + ( CAST ( 97 AS INTEGER ) + - 45 ) NOT IN ( - col2 ) AND NULL IN ( col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT DISTINCT + - ( - MIN( ALL 20 ) ) FROM tab2 cor0
----
20

skipif mysql # not compatible
query I rowsort label-5890
SELECT DISTINCT + - ( - MIN ( ALL 20 ) ) FROM tab2 cor0
----
20

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

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

query I rowsort
SELECT DISTINCT - col2 * - - col0 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT ALL - 37 * + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-333

skipif mysql # not compatible
query I rowsort label-5894
SELECT ALL - 37 * + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-333

query I rowsort
SELECT ( - 99 ) AS col2 FROM tab1
----
-99
-99
-99

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

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

query I rowsort
SELECT + + 33 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

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

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

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

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

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT ( + col0 ) IS NULL
----
46
64
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT + COUNT( * ) * - COUNT( * ) + + - COUNT( * ) + + ( + 91 ) + + 95 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
364

skipif mysql # not compatible
query I rowsort label-5902
SELECT + COUNT ( * ) * - COUNT ( * ) + + - COUNT ( * ) + + ( + 91 ) + + 95 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
364

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 + + - 66 = + col2 + 67
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5904
SELECT ALL + col2 + - - col1 DIV CAST( col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
60
69
97

skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL + col2 + - - col1 / CAST ( col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
60
69
97

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

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

query I rowsort
SELECT ALL 57 AS col2 FROM tab1 AS cor0 WHERE ( 87 + - col2 ) IN ( - 95 / + col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT ( SUM( - 88 ) ) FROM tab1
----
-264

skipif mysql # not compatible
query I rowsort label-5908
SELECT ( SUM ( - 88 ) ) FROM tab1
----
-264

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT MIN( ALL - col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-5910
SELECT MIN ( ALL - col2 ) FROM tab1
----
-96

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

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

query I rowsort
SELECT DISTINCT - 61 * + - col1 + + - col2 AS col2 FROM tab1
----
246
2799
758

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5916
SELECT DISTINCT - MAX( DISTINCT col2 ) DIV - COUNT( - col2 ) FROM tab0 cor0
----
33

skipif mysql # not compatible
query I rowsort label-5916
SELECT DISTINCT - MAX ( DISTINCT col2 ) / - COUNT ( - col2 ) FROM tab0 cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT DISTINCT SUM( ALL + + 84 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
252

skipif mysql # not compatible
query I rowsort label-5917
SELECT DISTINCT SUM ( ALL + + 84 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5918
SELECT - MAX( - col1 ) + - + CAST( NULL AS SIGNED ) AS col1, + 74 col1 FROM tab1
----
NULL
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5918
SELECT - MAX ( - col1 ) + - + CAST ( NULL AS INTEGER ) AS col1, + 74 col1 FROM tab1
----
NULL
74

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5921
SELECT DISTINCT COUNT( * ) DIV - CAST( - COUNT( * ) AS SIGNED ) + + + 86 FROM tab2
----
87

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

query II rowsort
SELECT DISTINCT - 51 + + 72 AS col0, - 27 * + col0 FROM tab0
----
21
-2349
21
-2619
21
-405

query I rowsort
SELECT ALL - 16 - - col1 AS col0 FROM tab0 cor0
----
-15
5
65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT + COUNT( * ) - + MAX( DISTINCT + col0 ) * COUNT( * ) FROM tab1 cor0
----
-270

skipif mysql # not compatible
query I rowsort label-5925
SELECT + COUNT ( * ) - + MAX ( DISTINCT + col0 ) * COUNT ( * ) FROM tab1 cor0
----
-270

query I rowsort
SELECT - col1 * - col1 * col2 AS col0 FROM tab1 AS cor0
----
1475
150212
18816

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col0, 84 FROM tab0
----
-1
84
-21
84
-81
84

query I rowsort
SELECT col1 * + + 16 * - col1 FROM tab2
----
-41616
-71824
-94864

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5930
SELECT col2 * + col1 + + - CAST ( + col1 AS INTEGER ) + 45 / - col1 col0 FROM tab0 WHERE NOT NULL IS NULL
----

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 + - 50 + - col1 * - col0 ) >= ( NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT MAX( - - 0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5936
SELECT MAX ( - - 0 ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT COUNT( DISTINCT - 45 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5937
SELECT COUNT ( DISTINCT - 45 ) AS col0 FROM tab0 AS cor0
----
1

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 3 * + col0, + 36 col1 FROM tab2 AS cor0
----
138
36
192
36
225
36

onlyif mysql # DIV for integer division: 
query I rowsort label-5941
SELECT 16 DIV + + ( 83 ) - - col2 AS col2 FROM tab0 cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5941
SELECT 16 / + + ( 83 ) - - col2 AS col2 FROM tab0 cor0
----
10
47
99

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

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

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

query I rowsort
SELECT 32 + - - 97 FROM tab1
----
129
129
129

onlyif mysql # aggregate syntax: 
query II rowsort label-5946
SELECT ALL + 13 * + 68 * + COUNT( * ) AS col2, 86 FROM tab2
----
2652
86

skipif mysql # not compatible
query II rowsort label-5946
SELECT ALL + 13 * + 68 * + COUNT ( * ) AS col2, 86 FROM tab2
----
2652
86

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN + - col2 AND NULL AND NOT ( + col0 + + col1 ) <= - col1 * + + ( - 1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IS NOT NULL AND NULL IS NOT NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 BETWEEN col2 * + col2 AND - col2 + + - 3 + 64 * - col0
----

query I rowsort
SELECT DISTINCT 76 + - - col1 AS col2 FROM tab2
----
127
143
153

query I rowsort
SELECT DISTINCT - - 17 FROM tab2 WHERE + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5953
SELECT DISTINCT + col0 - + col2 + ( + + 90 ) + + - col1 DIV - col0 FROM tab1
----
113
116
45

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT + col0 - + col2 + ( + + 90 ) + + - col1 / - col0 FROM tab1
----
113
116
45

query I rowsort
SELECT - - ( - 66 ) + + - 87 + + col0 AS col2 FROM tab0 cor0
----
-138
-56
-66

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

query I rowsort
SELECT + + 58 * col1 * - ( - 55 ) AS col0 FROM tab0 AS cor0
----
258390
3190
66990

query II rowsort
SELECT + col1, - col0 + - 31 * - - col1 AS col0 FROM tab1 AS cor0
----
14
-485
47
-1548
5
-240

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

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

query I rowsort
SELECT DISTINCT + + 26 FROM tab0 WHERE NULL <= - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT MAX( 83 ) + 61 AS col1 FROM tab2
----
144

skipif mysql # not compatible
query I rowsort label-5960
SELECT MAX ( 83 ) + 61 AS col1 FROM tab2
----
144

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col0, col0 + + col1 * col2 FROM tab0 AS cor0
----
-15
3822
-87
297
-97
196

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT DISTINCT + COUNT( DISTINCT - 54 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5964
SELECT DISTINCT + COUNT ( DISTINCT - 54 ) FROM tab1 AS cor0
----
1

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

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

query II rowsort
SELECT DISTINCT col1 AS col0, + 13 FROM tab2 AS cor0
----
51
13
67
13
77
13

query I rowsort
SELECT + col2 * + 71 FROM tab1 AS cor0
----
4189
4828
6816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5968
SELECT ALL - - 15 DIV - COUNT( * ) FROM tab0 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5968
SELECT ALL - - 15 / - COUNT ( * ) FROM tab0 cor0
----
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT ALL + 56 * ( - COUNT( * ) ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-5970
SELECT ALL + 56 * ( - COUNT ( * ) ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-165

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 * + - col0 ) > + 45 + 49
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5973
SELECT - col2 DIV - + 69 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5973
SELECT - col2 / - + 69 AS col0 FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT AVG ( ALL - 52 ) FROM tab2 AS cor0 WHERE + col2 + - 34 + col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5975
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( + CAST( NULL AS SIGNED ) * 70, - 18 + - - col1 )
----

skipif mysql # not compatible
query III rowsort label-5975
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( + CAST ( NULL AS INTEGER ) * 70, - 18 + - - col1 )
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT ( ( - 6 ) + - - col2 ) IN ( - col2 * - 2, ( - - col0 ), + ( col1 ) )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT DISTINCT 1 * - COUNT( ALL + - 56 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5977
SELECT DISTINCT 1 * - COUNT ( ALL + - 56 ) AS col0 FROM tab1
----
-3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5979
SELECT DISTINCT + COUNT( * ) * CAST( NULL AS SIGNED ) + + + 17 AS col0, - 69 FROM tab1 AS cor0
----
NULL
-69

skipif mysql # not compatible
query II rowsort label-5979
SELECT DISTINCT + COUNT ( * ) * CAST ( NULL AS INTEGER ) + + + 17 AS col0, - 69 FROM tab1 AS cor0
----
NULL
-69

query I rowsort
SELECT + col0 + + + 62 FROM tab1 AS cor0
----
113
147
153

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

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

skipif mysql # not compatible
query I rowsort label-5982
SELECT - COUNT ( * ) / - MAX ( ALL col0 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - - 11 AS col0 FROM tab1 AS cor0
----
11
11
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5984
SELECT 40 DIV - + SUM( ALL col2 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5984
SELECT 40 / - + SUM ( ALL col2 ) FROM tab0 cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT + MAX( + 97 ) AS col1 FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-5986
SELECT + MAX ( + 97 ) AS col1 FROM tab2
----
97

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT DISTINCT 74 + + - SUM( - col2 ) AS col2 FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-5989
SELECT DISTINCT 74 + + - SUM ( - col2 ) AS col2 FROM tab1
----
297

query I rowsort
SELECT ALL col1 * - - col2 * + + 61 + - ( + col0 ) FROM tab1
----
17910
194865
81933

query I rowsort
SELECT - ( 90 ) AS col0 FROM tab0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT + COUNT( * ) FROM tab2 WHERE ( - + 33 ) >= col1
----
0

skipif mysql # not compatible
query I rowsort label-5992
SELECT + COUNT ( * ) FROM tab2 WHERE ( - + 33 ) >= col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT SUM( ALL + 75 ) FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-5993
SELECT SUM ( ALL + 75 ) FROM tab0
----
225

query I rowsort
SELECT col1 - - 38 AS col0 FROM tab2
----
105
115
89

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > col1 AND ( NULL ) >= + 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT DISTINCT COUNT( * ) - COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5996
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

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

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

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

query I rowsort
SELECT + col2 + + col2 * - col1 AS col0 FROM tab2
----
-1150
-3040
-3828

query I rowsort
SELECT col2 * + + 48 AS col1 FROM tab0
----
2256
4752
480

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6001
SELECT - + 48 / + col0 * - 83 + CAST( NULL AS DECIMAL ) col2 FROM tab0 WHERE - - col1 >= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6001
SELECT - + 48 / + col0 * - 83 + CAST ( NULL AS REAL ) col2 FROM tab0 WHERE - - col1 >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> - 62
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6003
SELECT DISTINCT + CAST( NULL AS DECIMAL ), 78 AS col2 FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

skipif mysql # not compatible
query II rowsort label-6003
SELECT DISTINCT + CAST ( NULL AS REAL ), 78 AS col2 FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT ALL + COUNT( col1 ) FROM tab2 AS cor0 WHERE col1 + 81 * + - 70 <> col2
----
3

skipif mysql # not compatible
query I rowsort label-6004
SELECT ALL + COUNT ( col1 ) FROM tab2 AS cor0 WHERE col1 + 81 * + - 70 <> col2
----
3

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

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

query I rowsort
SELECT + - col1 * + 89 - + col1 FROM tab1 cor0
----
-1260
-4230
-450

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT - SUM( + ( - ( - 39 ) ) ) FROM tab2 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-6008
SELECT - SUM ( + ( - ( - 39 ) ) ) FROM tab2 AS cor0
----
-117

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT MAX( DISTINCT 93 ) * 87 AS col2 FROM tab2
----
8091

skipif mysql # not compatible
query I rowsort label-6011
SELECT MAX ( DISTINCT 93 ) * 87 AS col2 FROM tab2
----
8091

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-6013
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT NULL <> NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 96 * - col0 col1 FROM tab0
----
-1440
-8352
-9312

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6016
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col0, + 66 col2 FROM tab2
----
-9
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6016
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col0, + 66 col2 FROM tab2
----
-9
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6017
SELECT ALL * FROM tab2 WHERE NOT - CAST( - 99 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-6017
SELECT ALL * FROM tab2 WHERE NOT - CAST ( - 99 AS INTEGER ) = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 89 + + col2 + - 70 * - - ( col2 ) + + col2 + - 55 - + col0 * + col2 NOT IN ( + - col1, + col2 )
----

query I rowsort
SELECT - 86 + + - col1 AS col0 FROM tab2 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT - MIN( - - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL >= - 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6020
SELECT - MIN ( - - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL >= - 9 )
----
NULL

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

query II rowsort
SELECT + col0 * + + col1 AS col0, col1 * - col1 FROM tab0 AS cor0
----
1215
-6561
1827
-441
97
-1

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

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

query I rowsort
SELECT ALL + col1 * 69 + + - col0 AS col1 FROM tab0
----
-28
1362
5574

query I rowsort
SELECT - 65 * - - 76 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e601f71224b8f12a77d1f8335ece40e7

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

query I rowsort
SELECT DISTINCT ( + col1 ) FROM tab1 AS cor0 WHERE NOT 79 > + col0
----
47
5

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + - 61 + + + 58 col2 FROM tab0 AS cor0
----
-100
-18
-90

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6032
SELECT 91 * + 39 + 64, COUNT( * ) AS col2 FROM tab0
----
3613
3

skipif mysql # not compatible
query II rowsort label-6032
SELECT 91 * + 39 + 64, COUNT ( * ) AS col2 FROM tab0
----
3613
3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6033
SELECT MIN ( DISTINCT + col1 ) col1 FROM tab0
----
1

query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 WHERE NULL IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # DIV for integer division: 
query I rowsort label-6035
SELECT ALL - col1 DIV ( col0 ) DIV - ( col2 ) - - 22 FROM tab0
----
22
22
22

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL - col1 / ( col0 ) / - ( col2 ) - - 22 FROM tab0
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT ALL + + ( + 69 ) + - COUNT( * ) col1 FROM tab0 AS cor0
----
66

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

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

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

query II rowsort
SELECT + - col1, + col2 AS col1 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT - - COUNT( col2 ) * - COUNT( * ) * COUNT( * ) FROM tab2 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-6040
SELECT - - COUNT ( col2 ) * - COUNT ( * ) * COUNT ( * ) FROM tab2 cor0
----
-27

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

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

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

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

query I rowsort
SELECT ALL col2 FROM tab1 cor0 WHERE NOT 17 - + col0 IN ( 3 )
----
59
68
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT ALL + 92 - + + COUNT( * ) FROM tab0 AS cor0 WHERE ( NOT NULL <= NULL )
----
92

skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL + 92 - + + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NOT NULL <= NULL )
----
92

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6049
SELECT ( - ( col0 ) ) + - + col1 - - col2 DIV 33 * + 87 col0 FROM tab1 WHERE NOT 55 IS NULL
----
-3
109
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6049
SELECT ( - ( col0 ) ) + - + col1 - - col2 / 33 * + 87 col0 FROM tab1 WHERE NOT 55 IS NULL
----
-3
109
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + - 70 * + col2 col2 FROM tab0
----
14700
266490
6930

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

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

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

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

query I rowsort
SELECT DISTINCT 42 * - 0 AS col2 FROM tab1
----
0

query I rowsort
SELECT ALL + 46 AS col0 FROM tab0
----
46
46
46

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

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

query II rowsort
SELECT - col2, col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT DISTINCT COUNT( ALL + - col1 ) * - MAX( - 81 ) FROM tab1 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-6057
SELECT DISTINCT COUNT ( ALL + - col1 ) * - MAX ( - 81 ) FROM tab1 AS cor0
----
243

query I rowsort
SELECT + col1 * - - col0 * - col1 FROM tab2 AS cor0
----
-119646
-336675
-379456

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

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

query I rowsort
SELECT + 95 + + - 26 AS col1 FROM tab1
----
69
69
69

query I rowsort
SELECT col2 + 81 + + + col2 AS col0 FROM tab2
----
127
161
197

query I rowsort
SELECT DISTINCT + 51 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
51

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

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - + 71, 53 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT DISTINCT 18 + + COUNT( * ) + 64 AS col2 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-6066
SELECT DISTINCT 18 + + COUNT ( * ) + 64 AS col2 FROM tab2 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT + ( - COUNT( DISTINCT 98 ) ) FROM tab0 WHERE + - col1 IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-6067
SELECT + ( - COUNT ( DISTINCT 98 ) ) FROM tab0 WHERE + - col1 IS NOT NULL
----
-1

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

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

query I rowsort
SELECT 1 - + col1 FROM tab0
----
-20
-80
0

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

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

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

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

query II rowsort
SELECT ALL - col2 + col1 AS col0, - 11 * - col0 AS col1 FROM tab2
----
28
506
37
704
9
825

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

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

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

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

query II rowsort
SELECT DISTINCT ( - - 19 ) * - - col1 AS col0, - col0 + + - ( + - col0 ) AS col0 FROM tab2 AS cor0
----
1273
0
1463
0
969
0

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + 32 / - col0 * + col1 * + col0 * + col0 - + col0 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6081
SELECT + col0 + ( 28 ) * col0 DIV - - ( ( col1 ) ) + - 47 FROM tab1 cor0
----
106
514
98

skipif mysql # not compatible
query I rowsort label-6081
SELECT + col0 + ( 28 ) * col0 / - - ( ( col1 ) ) + - 47 FROM tab1 cor0
----
106
514
98

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6083
SELECT 0 col0, COUNT( * ) FROM tab0
----
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6083
SELECT 0 col0, COUNT ( * ) FROM tab0
----
0
3

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6085
SELECT ALL 21 DIV ( - + COUNT( * ) ) FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-6085
SELECT ALL 21 / ( - + COUNT ( * ) ) FROM tab0 AS cor0
----
-7

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

query I rowsort
SELECT ( - 51 ) + - col2 AS col2 FROM tab0 AS cor0
----
-150
-61
-98

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

query I rowsort
SELECT 39 + 14 AS col1 FROM tab2 AS cor0
----
53
53
53

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

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

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

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

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6094
SELECT COUNT( * ) + COUNT( * ) * + SUM( DISTINCT - + col1 ) DIV 97 + + + 93 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-6094
SELECT COUNT ( * ) + COUNT ( * ) * + SUM ( DISTINCT - + col1 ) / 97 + + + 93 FROM tab0
----
93

query I rowsort
SELECT DISTINCT - ( - col2 ) + - col0 AS col1 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT DISTINCT 91 + - col2 - - col1 AS col2 FROM tab1
----
37
70
9

query II rowsort
SELECT - col2 AS col0, col0 * + 84 FROM tab2
----
-23
3864
-40
5376
-58
6300

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

query I rowsort
SELECT ALL + col1 / + col1 + - col0 FROM tab0 WHERE + 11 + + 54 IS NULL
----

query II rowsort
SELECT + col0, + col2 + col2 AS col2 FROM tab1
----
51
192
85
118
91
136

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

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

query I rowsort
SELECT ALL - + 93 * col1 * - - col1 AS col0 FROM tab2 AS cor0
----
-241893
-417477
-551397

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

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

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

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

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

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

query II rowsort
SELECT ALL - col0 AS col2, 54 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-15
54
-87
54
-97
54

query I rowsort
SELECT col2 * - 43 AS col2 FROM tab2 AS cor0
----
-1720
-2494
-989

query I rowsort
SELECT DISTINCT col0 * - 51 FROM tab2 cor0
----
-2346
-3264
-3825

query I rowsort
SELECT + + 16 * + 92 AS col1 FROM tab1 AS cor0
----
1472
1472
1472

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6116
SELECT - col2 AS col0, col2 DIV - + 83 - - - col1 AS col0 FROM tab1
----
-59
-5
-68
-47
-96
-15

skipif mysql # not compatible
query II rowsort label-6116
SELECT - col2 AS col0, col2 / - + 83 - - - col1 AS col0 FROM tab1
----
-59
-5
-68
-47
-96
-15

query I rowsort
SELECT + col0 * + - col0 * + 12 AS col2 FROM tab0
----
-112908
-2700
-90828

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT ALL COUNT( * ) + + 51 - - 96 AS col2 FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-6118
SELECT ALL COUNT ( * ) + + 51 - - 96 AS col2 FROM tab0
----
150

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 39 * + - col1 * + col2 + - col2 BETWEEN - col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6120
SELECT ALL + col1 AS col1, - col1 DIV - col0 AS col1 FROM tab2 cor0
----
51
1
67
0
77
1

skipif mysql # not compatible
query II rowsort label-6120
SELECT ALL + col1 AS col1, - col1 / - col0 AS col1 FROM tab2 cor0
----
51
1
67
0
77
1

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( col0 / 84 > + - 45 * - 66 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6123
SELECT 5 DIV + 77 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6123
SELECT 5 / + 77 AS col1 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 39 * - col1 / 17 <> - ( + - col1 )
----

query I rowsort
SELECT DISTINCT + ( col0 ) + + col1 + + 94 + col0 * col2 * col1 AS col2 FROM tab0 AS cor0
----
18472
57295
9795

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 58 + col0 col1 FROM tab2 cor0
----
-12
17
6

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6128
SELECT ALL - COUNT( * ) DIV + ( ( + 74 ) ) * + SUM( ALL + + 73 ) + MIN( ALL + 78 ) AS col0 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-6128
SELECT ALL - COUNT ( * ) / + ( ( + 74 ) ) * + SUM ( ALL + + 73 ) + MIN ( ALL + 78 ) AS col0 FROM tab2
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-6129
SELECT - + col2 DIV - col1 AS col2 FROM tab1 AS cor0 WHERE 80 DIV col2 <> - - 61
----
1
11
6

skipif mysql # not compatible
query I rowsort label-6129
SELECT - + col2 / - col1 AS col2 FROM tab1 AS cor0 WHERE 80 / col2 <> - - 61
----
1
11
6

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

query I rowsort
SELECT DISTINCT + 7 - 59 FROM tab2 AS cor0
----
-52

query I rowsort
SELECT DISTINCT + + 21 - + col1 + + - 0 * - col1 AS col1 FROM tab0 cor0
----
-60
0
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT ALL + ( 48 ) - + SUM( + - 43 ) FROM tab0 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-6133
SELECT ALL + ( 48 ) - + SUM ( + - 43 ) FROM tab0 AS cor0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT 28 - ( - - COUNT( * ) ) FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-6134
SELECT 28 - ( - - COUNT ( * ) ) FROM tab1 AS cor0
----
25

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6137
SELECT col2 * ( + CAST( - + 36 AS SIGNED ) ) - + + 69 * - + 74 AS col1 FROM tab0
----
1542
3414
4746

skipif mysql # not compatible
query I rowsort label-6137
SELECT col2 * ( + CAST ( - + 36 AS INTEGER ) ) - + + 69 * - + 74 AS col1 FROM tab0
----
1542
3414
4746

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

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

query I rowsort
SELECT - - 32 FROM tab2 WHERE NOT NULL <= + - 92 / - col1 - col0
----

query I rowsort
SELECT DISTINCT + col1 * + - 9 FROM tab1
----
-126
-423
-45

query I rowsort
SELECT DISTINCT ( + 64 ) * col1 - - - col1 AS col1 FROM tab2
----
3213
4221
4851

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

skipif mysql # not compatible
query I rowsort label-6142
SELECT DISTINCT COUNT ( 99 ) * CAST ( + - 17 AS INTEGER ) FROM tab0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT ALL - 70 * + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND - + col1 + - 92
----
0

skipif mysql # not compatible
query I rowsort label-6143
SELECT ALL - 70 * + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND - + col1 + - 92
----
0

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE 63 + - 6 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6150
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE 63 + - 6 IS NULL
----
0

query II rowsort
SELECT - 22, 88 * 84 * col0 AS col0 FROM tab0 AS cor0
----
-22
110880
-22
643104
-22
717024

query I rowsort
SELECT + + 72 AS col1 FROM tab1 AS cor0
----
72
72
72

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6154
SELECT DISTINCT - col1 + - - col2 AS col2, + col2 + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
-11
NULL
-34
NULL
98
NULL

skipif mysql # not compatible
query II rowsort label-6154
SELECT DISTINCT - col1 + - - col2 AS col2, + col2 + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
-11
NULL
-34
NULL
98
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6155
SELECT - ( + COUNT ( * ) ) AS col1, COUNT ( * ) col2 FROM tab0 cor0
----
-3
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6157
SELECT DISTINCT 92 + col0 + ( + col1 ) DIV - - col2 AS col2 FROM tab1
----
143
177
183

skipif mysql # not compatible
query I rowsort label-6157
SELECT DISTINCT 92 + col0 + ( + col1 ) / - - col2 AS col2 FROM tab1
----
143
177
183

query I rowsort
SELECT - col0 + + 11 + col1 * - 59 FROM tab0
----
-1315
-145
-4783

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

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

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

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

query I rowsort
SELECT ALL 19 + col0 - 20 * - + col2 FROM tab2
----
1254
525
883

query I rowsort
SELECT DISTINCT + + 31 + col1 AS col1 FROM tab1 AS cor0
----
36
45
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT 82 + COUNT( * ) FROM tab1 cor0
----
85

skipif mysql # not compatible
query I rowsort label-6164
SELECT 82 + COUNT ( * ) FROM tab1 cor0
----
85

query I rowsort
SELECT DISTINCT col0 - + 95 AS col2 FROM tab2 cor0
----
-20
-31
-49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6166
SELECT DISTINCT + col2, - ( + 86 ) * - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-6166
SELECT DISTINCT + col2, - ( + 86 ) * - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, + col2 * - + col0 FROM tab2 cor0
----
46
-1058
64
-2560
75
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT + COUNT( - 14 ) FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-6168
SELECT + COUNT ( - 14 ) FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT - ( - SUM( col2 ) ) + 31 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 >= - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6169
SELECT - ( - SUM ( col2 ) ) + 31 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 >= - col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6170
SELECT DISTINCT + + COUNT ( * ) FROM tab1 WHERE NULL < NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + + col0 ) - - col0 NOT BETWEEN 71 AND - + col1 - 56
----

query I rowsort
SELECT ALL col1 * + 16 AS col0 FROM tab1
----
224
752
80

query I rowsort
SELECT 62 * - 75 AS col1 FROM tab2
----
-4650
-4650
-4650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 84 * col2, 29 col2 FROM tab0
----
3948
29
8316
29
840
29

onlyif mysql # DIV for integer division: 
query II rowsort label-6175
SELECT DISTINCT - col0 DIV + col0 AS col1, + 45 FROM tab2
----
-1
45

skipif mysql # not compatible
query II rowsort label-6175
SELECT DISTINCT - col0 / + col0 AS col1, + 45 FROM tab2
----
-1
45

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6176
SELECT COUNT ( * ) * + - 54 col0 FROM tab0
----
-162

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6178
SELECT DISTINCT ( COUNT ( + col0 ) ) col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col0 * - 17 * + col1 AS col2 FROM tab0 AS cor0
----
1649
20655
31059

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

query I rowsort
SELECT - + 46 + + col2 AS col2 FROM tab2 AS cor0
----
-23
-6
12

query I rowsort
SELECT DISTINCT - - 80 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 78 + 15 + + 9
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT SUM( DISTINCT + + col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-6184
SELECT SUM ( DISTINCT + + col1 ) FROM tab2
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + - - col0, - 93 col2 FROM tab1
----
144
-93
147
-93
159
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT - MAX( ALL - + col0 ) + + + 23 FROM tab1 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6186
SELECT - MAX ( ALL - + col0 ) + + + 23 FROM tab1 WHERE NULL <> NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 + + - 81 AS col2 FROM tab0
----
-60
-80
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6188
SELECT ALL + 6 AS col1, - COUNT( * ) FROM tab1 WHERE NOT - col0 IN ( + col1 * - + col1 )
----
6
-3

skipif mysql # not compatible
query II rowsort label-6188
SELECT ALL + 6 AS col1, - COUNT ( * ) FROM tab1 WHERE NOT - col0 IN ( + col1 * - + col1 )
----
6
-3

query II rowsort
SELECT ALL 7 AS col1, col1 + - col2 AS col1 FROM tab1
----
7
-21
7
-54
7
-82

query I rowsort
SELECT ALL - 97 + - ( - col0 ) AS col2 FROM tab0 AS cor0
----
-10
-82
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6192
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( CAST( - 20 AS SIGNED ) ) < - 54
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6192
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( CAST ( - 20 AS INTEGER ) ) < - 54
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 19 + - 63 + + col1 AS col0 FROM tab0 AS cor0
----
-1
-61
-81

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

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

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

skipif mysql # not compatible
query I rowsort label-6195
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + COUNT ( DISTINCT - + 76 ) * 80 AS col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6196
SELECT 82 * + col2 - - + col0 DIV + col0 AS col2, + 38 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1887
38
3281
38
4757
38

skipif mysql # not compatible
query II rowsort label-6196
SELECT 82 * + col2 - - + col0 / + col0 AS col2, + 38 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1887
38
3281
38
4757
38

query I rowsort
SELECT ALL 41 AS col1 FROM tab2 AS cor0 WHERE NOT 18 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 74 * + + ( + col0 ) col1 FROM tab1 AS cor0
----
3774
6290
6734

query I rowsort
SELECT ALL - + 78 * + 83 AS col2 FROM tab1 AS cor0
----
-6474
-6474
-6474

query I rowsort
SELECT - + col2 * - - col0 - - col0 FROM tab1 AS cor0
----
-4845
-4930
-6097

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN - ( + col0 ) / - - col0 / col1 AND 80 * + + 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT DISTINCT ( - MIN( col0 ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-6203
SELECT DISTINCT ( - MIN ( col0 ) ) FROM tab0
----
-15

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * ( col0 ) col1, col0 FROM tab2
----
-2346
46
-4928
64
-5025
75

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

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

query II rowsort
SELECT ALL col1, 38 * 86 FROM tab0
----
1
3268
21
3268
81
3268

query I rowsort
SELECT col1 * + 35 AS col0 FROM tab0 AS cor0 WHERE NOT ( - 0 ) IS NOT NULL
----

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

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

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

query I rowsort
SELECT ALL - - col0 * - + col2 * col2 AS col0 FROM tab0 AS cor0
----
-33135
-8700
-950697

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

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

query I rowsort
SELECT DISTINCT + 16 * - - 42 FROM tab2
----
672

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT + COUNT( * ) * + SUM( + 99 ) AS col0 FROM tab2 AS cor0
----
891

skipif mysql # not compatible
query I rowsort label-6215
SELECT + COUNT ( * ) * + SUM ( + 99 ) AS col0 FROM tab2 AS cor0
----
891

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT + 63 * COUNT( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-6217
SELECT + 63 * COUNT ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
189

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

query I rowsort
SELECT DISTINCT + - 35 FROM tab2 AS cor0
----
-35

query I rowsort
SELECT DISTINCT col0 + ( col2 ) + + 57 FROM tab1 AS cor0
----
201
204
216

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT + + MAX( ALL + col0 ) + - 52 FROM tab1 cor0
----
39

skipif mysql # not compatible
query I rowsort label-6221
SELECT + + MAX ( ALL + col0 ) + - 52 FROM tab1 cor0
----
39

query I rowsort
SELECT ALL - 46 + + 9 + - + 65 AS col2 FROM tab2 AS cor0
----
-102
-102
-102

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

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

query I rowsort
SELECT DISTINCT col1 + + - 4 AS col2 FROM tab2
----
47
63
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT + 33 + - + COUNT( * ) col0 FROM tab2
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6225
SELECT + 33 + - + COUNT ( * ) col0 FROM tab2
----
30

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

query I rowsort
SELECT DISTINCT - col0 + - - col1 * + ( + 50 ) FROM tab2
----
2504
3275
3786

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

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

query I rowsort
SELECT ALL 39 + col0 AS col2 FROM tab1
----
124
130
90

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col0 col0 FROM tab1
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT DISTINCT COUNT( * ) + - 42 * 94 FROM tab0
----
-3945

skipif mysql # not compatible
query I rowsort label-6233
SELECT DISTINCT COUNT ( * ) + - 42 * 94 FROM tab0
----
-3945

query I rowsort
SELECT ALL col1 - - - 90 AS col2 FROM tab2
----
-13
-23
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-6235
SELECT COUNT( * ), COUNT( - - 76 ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-6235
SELECT COUNT ( * ), COUNT ( - - 76 ) FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT col1 - - - col0 AS col0 FROM tab2 cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT DISTINCT ( + - COUNT( * ) ) + + + MAX( DISTINCT - col2 ) AS col0 FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-6237
SELECT DISTINCT ( + - COUNT ( * ) ) + + + MAX ( DISTINCT - col2 ) AS col0 FROM tab1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT + MAX( - 35 ) + 79 + MAX( - - col2 ) AS col1 FROM tab0 WHERE NOT - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6238
SELECT + MAX ( - 35 ) + 79 + MAX ( - - col2 ) AS col1 FROM tab0 WHERE NOT - col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6239
SELECT ALL MAX( + col2 ) AS col0, COUNT( ( - + col2 ) ) AS col2 FROM tab0
----
99
3

skipif mysql # not compatible
query II rowsort label-6239
SELECT ALL MAX ( + col2 ) AS col0, COUNT ( ( - + col2 ) ) AS col2 FROM tab0
----
99
3

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

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

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

query II rowsort
SELECT DISTINCT col1, 71 + - - col0 * col0 * - - col1 AS col1 FROM tab0 AS cor0
----
1
9480
21
159020
81
18296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6243
SELECT DISTINCT AVG ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

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

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

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

query I rowsort
SELECT - 45 * + col0 FROM tab2
----
-2070
-2880
-3375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + + col1 col2 FROM tab0
----
1215
1827
97

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

query I rowsort
SELECT DISTINCT - - 53 * - col2 + + col2 AS col0 FROM tab2 AS cor0
----
-1196
-2080
-3016

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6252
SELECT ALL ( + - col1 ) DIV - 14 AS col0 FROM tab0 cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-6252
SELECT ALL ( + - col1 ) / - 14 AS col0 FROM tab0 cor0
----
0
1
5

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

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

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

query I rowsort
SELECT DISTINCT 12 * - ( - + 20 ) * col0 FROM tab2 cor0
----
11040
15360
18000

query I rowsort
SELECT DISTINCT + 71 + + ( + 20 ) AS col2 FROM tab0
----
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT COUNT( * ) - COUNT( DISTINCT col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6258
SELECT COUNT ( * ) - COUNT ( DISTINCT col0 ) FROM tab0
----
0

query I rowsort
SELECT 49 * col2 - - col2 FROM tab2
----
1150
2000
2900

query I rowsort
SELECT ALL col2 * - col1 - - col1 FROM tab1
----
-1330
-290
-3149

onlyif mysql # DIV for integer division: 
query I rowsort label-6261
SELECT DISTINCT + col2 DIV - - 99 + 22 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-6261
SELECT DISTINCT + col2 / - - 99 + 22 FROM tab1
----
22

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

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

query I rowsort
SELECT ALL + col2 + + + 77 * col1 FROM tab1
----
1174
3687
444

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6265
SELECT - CAST( - - col0 AS SIGNED ) * - 63 + - 66 AS col2 FROM tab2
----
2832
3966
4659

skipif mysql # not compatible
query I rowsort label-6265
SELECT - CAST ( - - col0 AS INTEGER ) * - 63 + - 66 AS col2 FROM tab2
----
2832
3966
4659

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

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

query I rowsort
SELECT - - 8 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND - 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT DISTINCT + COUNT( * ) * + 25 * + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL > + col0
----
0

skipif mysql # not compatible
query I rowsort label-6269
SELECT DISTINCT + COUNT ( * ) * + 25 * + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL > + col0
----
0

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

skipif mysql # not compatible
query I rowsort label-6270
SELECT DISTINCT + col0 / + - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6273
SELECT + ( - - col1 ) DIV + 78 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6273
SELECT + ( - - col1 ) / + 78 FROM tab0
----
0
0
1

query I rowsort
SELECT 98 * - - col1 FROM tab1
----
1372
4606
490

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

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

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NOT + + col0 <= - 6
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT DISTINCT SUM( 94 ) AS col2 FROM tab1 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-6277
SELECT DISTINCT SUM ( 94 ) AS col2 FROM tab1 AS cor0
----
282

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6281
SELECT ALL + CAST( + col0 AS SIGNED ) AS col2, col2 * 96 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL AND NOT + col2 / + col2 IN ( + 13 )
----

skipif mysql # not compatible
query II rowsort label-6281
SELECT ALL + CAST ( + col0 AS INTEGER ) AS col2, col2 * 96 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL AND NOT + col2 / + col2 IN ( + 13 )
----

query I rowsort
SELECT ALL + col2 * - col2 + + - col2 + + - col1 FROM tab1 AS cor0
----
-3545
-4739
-9326

query I rowsort
SELECT + 4 + - 52 AS col0 FROM tab0 cor0
----
-48
-48
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 46 * - + col0 + + + col0 + col2 col1 FROM tab2 AS cor0
----
-2047
-2840
-3317

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

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

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

query I rowsort
SELECT DISTINCT - 60 + + col0 FROM tab2
----
-14
15
4

query III rowsort
SELECT * FROM tab1 WHERE ( NOT 85 NOT BETWEEN NULL AND NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE + 11 * + 49 * 67 > NULL
----

query II rowsort
SELECT col1, + col0 * + + col0 FROM tab1
----
14
2601
47
8281
5
7225

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

query II rowsort
SELECT DISTINCT col0 - + ( - col2 ), col2 AS col0 FROM tab1 AS cor0
----
144
59
147
96
159
68

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

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

query II rowsort
SELECT - - 62, + col2 + - col1 AS col2 FROM tab2 AS cor0
----
62
-28
62
-37
62
-9

query I rowsort
SELECT - 0 + - 39 AS col0 FROM tab1 WHERE NOT 51 + - col0 IS NULL
----
-39
-39
-39

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6298
SELECT ALL * FROM tab2 WHERE 23 / CAST( - ( 73 ) * - CAST( NULL AS SIGNED ) AS SIGNED ) IN ( - 32 + col2 * - col2 )
----

skipif mysql # not compatible
query III rowsort label-6298
SELECT ALL * FROM tab2 WHERE 23 / CAST ( - ( 73 ) * - CAST ( NULL AS INTEGER ) AS INTEGER ) IN ( - 32 + col2 * - col2 )
----

query I rowsort
SELECT ( + col0 ) + - 46 FROM tab0
----
-31
41
51

query I rowsort
SELECT ALL + col1 + - col2 FROM tab1 WHERE NOT - col1 NOT IN ( + 22 )
----

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT ( ( - col0 ) + + col0 ) IS NULL
----
1
21
81

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

query I rowsort
SELECT ALL ( col2 ) + + col0 * col1 AS col1 FROM tab1 WHERE NOT NULL > 58
----

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - ( + 62 ) FROM tab0
----
-62

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

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

query I rowsort
SELECT DISTINCT - col1 + + col0 AS col2 FROM tab2
----
-13
-5
8

query I rowsort
SELECT DISTINCT 97 - col0 FROM tab1
----
12
46
6

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NOT col0 * 3 - - 19 IN ( - 45 )
----
51
67
77

query I rowsort
SELECT - col1 FROM tab0 WHERE - col2 * 99 + 27 * col1 IS NULL
----

query I rowsort
SELECT 18 / col1 AS col1 FROM tab1 WHERE col2 BETWEEN NULL AND col0
----

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

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

query I rowsort
SELECT DISTINCT 22 AS col2 FROM tab2 WHERE NOT ( 89 + + col0 ) <> - 91 * - col2
----

query I rowsort
SELECT ALL col1 * ( + col0 ) AS col1 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ALL col2 + col1 * - 59 FROM tab1
----
-236
-2705
-730

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

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

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

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

query I rowsort
SELECT ALL 39 * col0 + - col1 * + col0 FROM tab1
----
-728
1275
2890

query I rowsort
SELECT DISTINCT ( ( - 4 ) ) + 98 * col0 FROM tab2
----
4504
6268
7346

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 - 87 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col0 * - col2 AND + 80 - + col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT COUNT( * ) - - 84 * - COUNT( * ) FROM tab1 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-6332
SELECT COUNT ( * ) - - 84 * - COUNT ( * ) FROM tab1 AS cor0
----
-249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6333
SELECT - col1 FROM tab0 WHERE - CAST( col0 AS SIGNED ) * - col2 < ( col0 )
----

skipif mysql # not compatible
query I rowsort label-6333
SELECT - col1 FROM tab0 WHERE - CAST ( col0 AS INTEGER ) * - col2 < ( col0 )
----

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 NOT IN ( col0 / 28 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 / + col2 NOT IN ( 67 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT - COUNT( * ) FROM tab0 WHERE - 47 < col2
----
-3

skipif mysql # not compatible
query I rowsort label-6337
SELECT - COUNT ( * ) FROM tab0 WHERE - 47 < col2
----
-3

query I rowsort
SELECT DISTINCT col1 - + 47 AS col0 FROM tab0
----
-26
-46
34

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6340
SELECT col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - col2 IN ( col0 + 51 * 5 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6340
SELECT col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - col2 IN ( col0 + 51 * 5 )
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + col0 AS col1 FROM tab0 AS cor0 WHERE + 58 IS NOT NULL
----
196
62
97

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6344
SELECT 81 + 3 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 93 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6344
SELECT 81 + 3 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 93 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6345
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( 92 - + CAST( - 65 AS SIGNED ) ) > NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-6345
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( 92 - + CAST ( - 65 AS INTEGER ) ) > NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 col1 FROM tab1, tab2 AS cor0
----
-81

query I rowsort
SELECT ALL + 90 FROM tab1 WHERE + col1 IS NOT NULL
----
90
90
90

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT + col2 <> ( - 22 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 65 col1 FROM tab1 WHERE NOT ( NULL ) IN ( 7 )
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT ( - col0 ) IN ( 93 )
----
1
21
81

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

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

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

query I rowsort
SELECT ALL 63 * - - col1 + col0 FROM tab1 cor0
----
3052
400
933

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT ALL + + 21 + 80 - COUNT( * ) AS col1 FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-6356
SELECT ALL + + 21 + 80 - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
98

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6358
SELECT + col0, - col1 DIV + 62 + + col0 * + col2 AS col2 FROM tab1 AS cor0
----
51
4896
85
5015
91
6188

skipif mysql # not compatible
query II rowsort label-6358
SELECT + col0, - col1 / + 62 + + col0 * + col2 AS col2 FROM tab1 AS cor0
----
51
4896
85
5015
91
6188

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

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

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

query I rowsort
SELECT ALL + 98 * - col2 * - col1 AS col0 FROM tab2
----
114954
301840
380828

onlyif mysql # DIV for integer division: 
query I rowsort label-6363
SELECT ALL + 93 DIV + + col1 FROM tab1
----
1
18
6

skipif mysql # not compatible
query I rowsort label-6363
SELECT ALL + 93 / + + col1 FROM tab1
----
1
18
6

query I rowsort
SELECT DISTINCT col1 + + + 73 + - - col0 FROM tab1
----
138
163
211

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT COUNT( * ) + 20 AS col2 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-6365
SELECT COUNT ( * ) + 20 AS col2 FROM tab0
----
23

query I rowsort
SELECT ALL - 71 + 5 AS col2 FROM tab0
----
-66
-66
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6367
SELECT CAST( + + 90 AS SIGNED ) * + col1 + 98 + - 83 col1 FROM tab1
----
1275
4245
465

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6367
SELECT CAST ( + + 90 AS INTEGER ) * + col1 + 98 + - 83 col1 FROM tab1
----
1275
4245
465

query I rowsort
SELECT col0 * + - 93 + - 51 AS col2 FROM tab2
----
-4329
-6003
-7026

query I rowsort
SELECT col1 + + + col0 + + ( + - 91 ) FROM tab0
----
17
5
7

onlyif mysql # DIV for integer division: 
query I rowsort label-6370
SELECT + + col0 DIV + + col0 + - - col1 + - - 13 FROM tab2 AS cor0
----
65
81
91

skipif mysql # not compatible
query I rowsort label-6370
SELECT + + col0 / + + col0 + - - col1 + - - 13 FROM tab2 AS cor0
----
65
81
91

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 67 - - 24 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + + 82 BETWEEN + 6 / + - col2 AND ( + ( 80 ) * - col0 )
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE ( ( col2 ) ) < NULL
----

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = 97
----

query I rowsort
SELECT - 49 + + ( - + col2 ) * + col1 * - + col2 * - ( - 78 ) AS col0 FROM tab2 AS cor0
----
17580215
2104313
9609551

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

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

query II rowsort
SELECT DISTINCT - - 20 AS col2, col0 * 37 * - col2 * + col1 + col1 FROM tab2 AS cor0
----
20
-10783583
20
-1996395
20
-7293363

query II rowsort
SELECT DISTINCT col2 + - col1 * - 95 AS col0, - 40 FROM tab1 AS cor0
----
1426
-40
4533
-40
534
-40

query III rowsort
SELECT * FROM tab1 WHERE ( 76 + 53 + + 33 + 90 = + col1 - 60 )
----

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

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

query I rowsort
SELECT + ( col0 ) * 97 FROM tab2 WHERE NOT ( 27 * 40 >= - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6388
SELECT - col1 DIV - 39 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6388
SELECT - col1 / - 39 AS col1 FROM tab1
----
0
0
1

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

query I rowsort
SELECT 21 * - - 15 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to dc9432afb82bf405a969eba213384609

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6392
SELECT DISTINCT - MIN( + col0 ), + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-51
3

skipif mysql # not compatible
query II rowsort label-6392
SELECT DISTINCT - MIN ( + col0 ), + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-51
3

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6397
SELECT COUNT( * ) FROM tab1 cor0 WHERE NOT ( ( NULL IN ( col1 * - 14 * + CAST( ( col0 ) AS SIGNED ) ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-6397
SELECT COUNT ( * ) FROM tab1 cor0 WHERE NOT ( ( NULL IN ( col1 * - 14 * + CAST ( ( col0 ) AS INTEGER ) ) ) )
----
0

query I rowsort
SELECT - col1 + + 44 + + col2 AS col0 FROM tab2 AS cor0
----
16
35
7

onlyif mysql # DIV for integer division: 
query I rowsort label-6399
SELECT DISTINCT col0 * col0 DIV 93 FROM tab0 AS cor0
----
101
2
81

skipif mysql # not compatible
query I rowsort label-6399
SELECT DISTINCT col0 * col0 / 93 FROM tab0 AS cor0
----
101
2
81

query I rowsort
SELECT + ( - - 14 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col1 AND + ( 33 )
----

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 30 <= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( 5 ) <= ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col0, - 48 * + col1 col1 FROM tab2
----
23
-2448
40
-3696
58
-3216

query I rowsort
SELECT DISTINCT ( col0 ) * + 69 + 39 AS col2 FROM tab0
----
1074
6042
6732

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > + col1
----

query I rowsort
SELECT ALL - 95 + col1 * - 47 AS col2 FROM tab2 WHERE NULL = NULL
----

query I rowsort
SELECT - 59 * + col0 FROM tab1
----
-3009
-5015
-5369

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

skipif mysql # not compatible
query I rowsort label-6409
SELECT ALL COUNT ( * ) + + - 29 FROM tab1
----
-26

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

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

query I rowsort
SELECT - + 44 + + 27 * + col1 * + + col0 AS col1 FROM tab0 cor0
----
2575
32761
49285

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6413
SELECT + CAST( + + col0 AS SIGNED ) FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6413
SELECT + CAST ( + + col0 AS INTEGER ) FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT 44 - + col2 * - + col0 FROM tab1
----
4940
5059
6232

query I rowsort
SELECT + 4 - + col1 - - col2 + - - 51 * + col0 AS col0 FROM tab0 AS cor0
----
4430
5049
735

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT + MIN( - col1 ) * + 0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6416
SELECT + MIN ( - col1 ) * + 0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6417
SELECT - CAST( col0 AS SIGNED ) AS col1, col2 FROM tab1 cor0
----
-51
96
-85
59
-91
68

skipif mysql # not compatible
query II rowsort label-6417
SELECT - CAST ( col0 AS INTEGER ) AS col1, col2 FROM tab1 cor0
----
-51
96
-85
59
-91
68

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

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

query I rowsort
SELECT DISTINCT + col0 * + col0 AS col1 FROM tab1 WHERE NOT col1 BETWEEN ( - - 51 / col0 ) AND NULL
----

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

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

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

query I rowsort
SELECT col2 * - - col2 FROM tab2 AS cor0
----
1600
3364
529

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

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

skipif mysql # not compatible
query I rowsort label-6424
SELECT COUNT ( * ) * - 6 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-54

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

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

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT 56 = - col1
----
14
47
5

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

query I rowsort
SELECT ALL 70 FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----

query II rowsort
SELECT ALL + + col0 AS col0, - ( ( col1 ) ) AS col2 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6430
SELECT + - ( - col0 ) DIV - + 29 FROM tab1 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-6430
SELECT + - ( - col0 ) / - + 29 FROM tab1 AS cor0
----
-1
-2
-3

query I rowsort
SELECT 96 * + col1 * + + col0 FROM tab2 AS cor0
----
225216
473088
482400

query I rowsort
SELECT ALL + col2 + col1 + 51 * - col0 * col2 FROM tab1 AS cor0
----
-249586
-255701
-315473

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT SUM( 12 ) * 32 + - - COUNT( * ) FROM tab2
----
1155

skipif mysql # not compatible
query I rowsort label-6434
SELECT SUM ( 12 ) * 32 + - - COUNT ( * ) FROM tab2
----
1155

query I rowsort
SELECT DISTINCT col2 + + col1 + + col0 FROM tab0
----
118
143
197

query I rowsort
SELECT col2 * - 98 + + - 19 * + 72 FROM tab0
----
-11070
-2348
-5974

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-6440
SELECT COUNT ( * ) + 13 AS col1, COUNT ( * ) AS col0 FROM tab1
----
16
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 col0 FROM tab1 AS cor0 WHERE ( 70 + - col2 * col1 * + col2 ) = ( col2 * - + 48 + + 7 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT - COUNT( * ) * - 82 AS col2 FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-6442
SELECT - COUNT ( * ) * - 82 AS col2 FROM tab0 AS cor0
----
246

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

skipif mysql # not compatible
query I rowsort label-6443
SELECT ALL + 51 / + COUNT ( * ) FROM tab2 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT + - 61 * + COUNT( * ) FROM tab0 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-6444
SELECT + - 61 * + COUNT ( * ) FROM tab0 AS cor0
----
-183

query I rowsort
SELECT DISTINCT 54 + col1 * col1 + - ( - - 11 ) FROM tab2
----
2644
4532
5972

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
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-6446
SELECT ALL + ( - COUNT ( * ) ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT ALL COUNT( * ) + 93 AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL COUNT ( * ) + 93 AS col1 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT ALL 90 * + MIN( DISTINCT 13 ) + - - MAX( + col1 ) * SUM( DISTINCT - - col2 ) * 73 * - COUNT( * ) + - + COUNT( * ) FROM tab1
----
-2294172

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL 90 * + MIN ( DISTINCT 13 ) + - - MAX ( + col1 ) * SUM ( DISTINCT - - col2 ) * 73 * - COUNT ( * ) + - + COUNT ( * ) FROM tab1
----
-2294172

query I rowsort
SELECT 27 * - 96 - + - col0 FROM tab1
----
-2501
-2507
-2541

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - - col1 + col2 col1 FROM tab1 AS cor0
----
-21
24
59

query I rowsort
SELECT + col2 * + 80 * - 74 AS col1 FROM tab1 AS cor0
----
-349280
-402560
-568320

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

query I rowsort
SELECT ALL 1 * + + col1 * col2 + col1 FROM tab0 AS cor0
----
100
231
3888

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6455
SELECT COUNT( * ) AS col2, 97 AS col1 FROM tab2 AS cor0
----
3
97

skipif mysql # not compatible
query II rowsort label-6455
SELECT COUNT ( * ) AS col2, 97 AS col1 FROM tab2 AS cor0
----
3
97

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

query I rowsort
SELECT ALL col1 * + + ( - 51 ) FROM tab2 WHERE NOT NULL < - col0 + + ( - 97 )
----

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 68 > - 43
----

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

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

query I rowsort
SELECT - 47 * - - col0 * col0 FROM tab2
----
-192512
-264375
-99452

query II rowsort
SELECT col1 * - - col2 AS col2, col1 * + 0 AS col2 FROM tab0
----
210
0
3807
0
99
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6463
SELECT + - 81 * + col2 + - - CAST( + col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
-3792
-723
-7922

skipif mysql # not compatible
query I rowsort label-6463
SELECT + - 81 * + col2 + - - CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
-3792
-723
-7922

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6465
SELECT DISTINCT + CAST( + 14 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
14

skipif mysql # not compatible
query I rowsort label-6465
SELECT DISTINCT + CAST ( + 14 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
14

query II rowsort
SELECT - col0 * - col1 + + - col2 AS col1, - col1 * + - ( - 25 ) FROM tab2
----
2323
-1275
4888
-1925
4967
-1675

query I rowsort
SELECT - 45 + - col1 AS col0 FROM tab0
----
-126
-46
-66

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

skipif mysql # not compatible
query I rowsort label-6468
SELECT + col0 / - - 89 + - col2 FROM tab1
----
-59
-67
-96

query I rowsort
SELECT + 82 + + + col2 AS col0 FROM tab2 AS cor0
----
105
122
140

query I rowsort
SELECT - - 46 * col1 * - 59 + col2 FROM tab1 AS cor0
----
-127490
-13511
-37900

query I rowsort
SELECT col0 * + col1 + + - col0 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
340
4186
663

query I rowsort
SELECT - 87 + - col0 FROM tab2 AS cor0
----
-133
-151
-162

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 40 NOT BETWEEN col0 + + + col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6478
SELECT col2 AS col2, + CAST ( - col2 AS INTEGER ) col2 FROM tab0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT - 52 - + 74 * - - col1 AS col0 FROM tab0
----
-126
-1606
-6046

query I rowsort
SELECT ( + 66 ) - - 28 FROM tab0
----
94
94
94

query I rowsort
SELECT 59 + - 65 FROM tab2
----
-6
-6
-6

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6483
SELECT DISTINCT - - col2 DIV + - col1 * col2 - 40 * 63 FROM tab2 AS cor0
----
-2520

skipif mysql # not compatible
query I rowsort label-6483
SELECT DISTINCT - - col2 / + - col1 * col2 - 40 * 63 FROM tab2 AS cor0
----
-2520

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT + + MIN( - 88 ) + - - 96 FROM tab2 WHERE ( + - col1 ) > + col1 + + 22 * + ( + ( + - col0 ) ) * + col0
----
8

skipif mysql # not compatible
query I rowsort label-6485
SELECT + + MIN ( - 88 ) + - - 96 FROM tab2 WHERE ( + - col1 ) > + col1 + + 22 * + ( + ( + - col0 ) ) * + col0
----
8

query I rowsort
SELECT DISTINCT col1 + + 6 FROM tab2
----
57
73
83

query I rowsort
SELECT + 2 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # DIV for integer division: 
query I rowsort label-6488
SELECT ALL + col2 DIV + 25 AS col2 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6488
SELECT ALL + col2 / + 25 AS col2 FROM tab2 AS cor0
----
0
1
2

query I rowsort
SELECT + + 30 * col2 AS col1 FROM tab2 cor0
----
1200
1740
690

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

query I rowsort
SELECT + col0 * - + col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 <> + col2 + + 79 + col0 - - col0 * - col2 / + col2 + - - 38 + - col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 79 + + + col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6494
SELECT col0, CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-6494
SELECT col0, CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT ALL 70 * COUNT( 62 ) * - MAX( 70 ) FROM tab2
----
-14700

skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL 70 * COUNT ( 62 ) * - MAX ( 70 ) FROM tab2
----
-14700

query II rowsort
SELECT DISTINCT + col0 AS col1, col0 + col1 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

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

query II rowsort
SELECT - 89, 30 AS col0 FROM tab0 AS cor0
----
-89
30
-89
30
-89
30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT MIN( + col1 ) FROM tab1 AS cor0 WHERE NOT - ( + 53 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6500
SELECT MIN ( + col1 ) FROM tab1 AS cor0 WHERE NOT - ( + 53 ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + col2 <= + col0 )
----
85
5
59
91
47
68

query I rowsort
SELECT + 52 * - ( + + 38 ) * + col0 AS col2 FROM tab1 AS cor0
----
-100776
-167960
-179816

query I rowsort
SELECT DISTINCT + col1 * 24 + - - 35 FROM tab1 AS cor0
----
1163
155
371

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

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

query I rowsort
SELECT + + col0 * - + col1 + - - col0 FROM tab1 cor0
----
-340
-4186
-663

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT ALL 49 + - MIN( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
140

skipif mysql # not compatible
query I rowsort label-6507
SELECT ALL 49 + - MIN ( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
140

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

query III rowsort
SELECT * FROM tab2 WHERE - col0 - ( col0 ) * ( - col0 ) NOT BETWEEN ( NULL ) AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 * - col0 * + col0 + - 40 col0 FROM tab1
----
-135292
-375740
-430652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6511
SELECT ALL - SUM( ALL - - CAST( + col1 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL - SUM ( ALL - - CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT DISTINCT ( - 5 ) * + col0 AS col0 FROM tab2 AS cor0
----
-230
-320
-375

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + - 37, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6515
SELECT ALL CAST( - 96 AS SIGNED ) * + + col2 FROM tab1 AS cor0
----
-5664
-6528
-9216

skipif mysql # not compatible
query I rowsort label-6515
SELECT ALL CAST ( - 96 AS INTEGER ) * + + col2 FROM tab1 AS cor0
----
-5664
-6528
-9216

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

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

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

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

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

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

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

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

query I rowsort
SELECT + col1 * - 77 AS col1 FROM tab1 AS cor0
----
-1078
-3619
-385

query II rowsort
SELECT - 4 AS col0, col1 FROM tab2 AS cor0
----
-4
51
-4
67
-4
77

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6524
SELECT + 55 AS col2 FROM tab2 AS cor0 WHERE NOT CAST( - col0 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-6524
SELECT + 55 AS col2 FROM tab2 AS cor0 WHERE NOT CAST ( - col0 AS INTEGER ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT ALL - COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6525
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
-3

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

skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL + CAST ( NULL AS INTEGER ) * 80 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT ALL 67 * - MIN( + + col2 ) * - 11 + - ( + 21 ) AS col1 FROM tab1
----
43462

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL 67 * - MIN ( + + col2 ) * - 11 + - ( + 21 ) AS col1 FROM tab1
----
43462

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6528
SELECT DISTINCT - CAST( + 78 AS SIGNED ) DIV + + col1 FROM tab1
----
-1
-15
-5

skipif mysql # not compatible
query I rowsort label-6528
SELECT DISTINCT - CAST ( + 78 AS INTEGER ) / + + col1 FROM tab1
----
-1
-15
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT MIN( ALL + - ( - 90 ) ) FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-6529
SELECT MIN ( ALL + - ( - 90 ) ) FROM tab1
----
90

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

skipif mysql # not compatible
query I rowsort label-6530
SELECT DISTINCT - 1 / + - COUNT ( * ) AS col2 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 + - 59 col1 FROM tab2
----
-12
-12
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6532
SELECT COUNT( * ) + - CAST( COUNT( * ) AS SIGNED ) col2, 64 FROM tab0
----
0
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6532
SELECT COUNT ( * ) + - CAST ( COUNT ( * ) AS INTEGER ) col2, 64 FROM tab0
----
0
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT DISTINCT 52 + - ( 8 ) * + - COUNT( * ) FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-6533
SELECT DISTINCT 52 + - ( 8 ) * + - COUNT ( * ) FROM tab0
----
76

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6534
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + CAST( 25 AS DECIMAL ) ) = - 24 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6534
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + CAST ( 25 AS REAL ) ) = - 24 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6535
SELECT ALL 42 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col1 - - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6535
SELECT ALL 42 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col1 - - - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6536
SELECT 42 DIV col1 col1 FROM tab1 AS cor0
----
0
3
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6536
SELECT 42 / col1 col1 FROM tab1 AS cor0
----
0
3
8

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

query II rowsort
SELECT DISTINCT 25 + + - col0 AS col0, - col2 AS col0 FROM tab0
----
-62
-10
-72
-99
10
-47

onlyif mysql # DIV for integer division: 
query II rowsort label-6539
SELECT + 4 - + col1 col1, - col1 * - - ( col1 ) * col2 DIV - + col2 + - + 20 + col0 + - col0 * + col0 AS col2 FROM tab2
----
-47
511
-63
-1081
-73
1877

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6539
SELECT + 4 - + col1 col1, - col1 * - - ( col1 ) * col2 / - + col2 + - + 20 + col0 + - col0 * + col0 AS col2 FROM tab2
----
-47
511
-63
-1081
-73
1877

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT ALL COUNT( * ) + - 19 AS col2 FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-6540
SELECT ALL COUNT ( * ) + - 19 AS col2 FROM tab0
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6541
SELECT + COUNT( * ) - 99 DIV COUNT( * ) FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-6541
SELECT + COUNT ( * ) - 99 / COUNT ( * ) FROM tab1
----
-30

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6542
SELECT ALL + col1 + - + CAST ( NULL AS INTEGER ) + + + 95 col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL ( + col1 ) - - col0 * col1 AS col0, col1 FROM tab1 AS cor0
----
430
5
4324
47
728
14

query I rowsort
SELECT ALL + - 39 + + - col0 FROM tab0 AS cor0
----
-126
-136
-54

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

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

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

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

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

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

query I rowsort
SELECT col1 * - 77 AS col0 FROM tab1
----
-1078
-3619
-385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6550
SELECT + 60 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

skipif mysql # not compatible
query I rowsort label-6550
SELECT + 60 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT ALL col0 + + col2 FROM tab1 AS cor0 WHERE 74 = + col0
----

query I rowsort
SELECT DISTINCT - 25 * 41 FROM tab0 AS cor0
----
-1025

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 64 + ( - 50 ) >= + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT DISTINCT - - col0 * - 98 FROM tab1 AS cor0
----
-4998
-8330
-8918

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6558
SELECT ALL - CAST( NULL AS SIGNED ) + col2 AS col0, col1 * + - col0 FROM tab0
----
NULL
-1215
NULL
-1827
NULL
-97

skipif mysql # not compatible
query II rowsort label-6558
SELECT ALL - CAST ( NULL AS INTEGER ) + col2 AS col0, col1 * + - col0 FROM tab0
----
NULL
-1215
NULL
-1827
NULL
-97

query I rowsort
SELECT + + col1 FROM tab1 WHERE NOT ( + + col0 ) IS NULL
----
14
47
5

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

query I rowsort
SELECT ALL 64 * - col1 FROM tab0
----
-1344
-5184
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT DISTINCT MAX( - + ( - + col2 ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-6562
SELECT DISTINCT MAX ( - + ( - + col2 ) ) FROM tab1
----
96

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT ALL + + COUNT( ALL + col0 ) FROM tab0 WHERE NOT NULL > - 49
----
0

skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL + + COUNT ( ALL + col0 ) FROM tab0 WHERE NOT NULL > - 49
----
0

query I rowsort
SELECT DISTINCT col1 + - 47 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
20
30
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6567
SELECT - - MIN( DISTINCT col1 ) + + - CAST( - 71 AS SIGNED ) col0 FROM tab2 AS cor0
----
122

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6567
SELECT - - MIN ( DISTINCT col1 ) + + - CAST ( - 71 AS INTEGER ) col0 FROM tab2 AS cor0
----
122

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

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

query I rowsort
SELECT ( + col1 ) * - 67 AS col0 FROM tab2 AS cor0
----
-3417
-4489
-5159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6571
SELECT ALL 96 + ( - MAX( DISTINCT - col0 ) ) - 45 + - - 24 DIV - 39 FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-6571
SELECT ALL 96 + ( - MAX ( DISTINCT - col0 ) ) - 45 + - - 24 / - 39 FROM tab1
----
102

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-6572
SELECT * FROM tab1 AS cor0 JOIN tab2 AS cor1 ON NOT NULL NOT BETWEEN NULL AND + CAST( - 28 AS DECIMAL )
----

skipif mysql # not compatible
query IIIIII rowsort label-6572
SELECT * FROM tab1 AS cor0 JOIN tab2 AS cor1 ON NOT NULL NOT BETWEEN NULL AND + CAST ( - 28 AS REAL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6573
SELECT COUNT( - - col2 ) - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6574
SELECT ALL + MAX( - CAST( - + col2 AS SIGNED ) ) + - - ( COUNT( * ) ) AS col1 FROM tab2 WHERE NULL BETWEEN + col1 + - 50 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6574
SELECT ALL + MAX ( - CAST ( - + col2 AS INTEGER ) ) + - - ( COUNT ( * ) ) AS col1 FROM tab2 WHERE NULL BETWEEN + col1 + - 50 AND NULL
----
NULL

query I rowsort
SELECT ALL - 71 + - col1 AS col0 FROM tab1 AS cor0
----
-118
-76
-85

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

query I rowsort
SELECT + - col1 + + - col1 AS col1 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT COUNT( * ) + 45 * 68 AS col0 FROM tab1 AS cor0
----
3063

skipif mysql # not compatible
query I rowsort label-6578
SELECT COUNT ( * ) + 45 * 68 AS col0 FROM tab1 AS cor0
----
3063

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6580
SELECT DISTINCT + col2 DIV - - ( 87 ) AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6580
SELECT DISTINCT + col2 / - - ( 87 ) AS col1 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT + - col1 + - - 77 * + ( - col0 ) FROM tab2 AS cor0
----
-3593
-5005
-5842

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 * - col1 FROM tab1 WHERE NULL IS NULL
----
-1344
-295
-3196

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 34 NOT BETWEEN col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + 54 AS col0, + 70 FROM tab1
----
54
70
54
70
54
70

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

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

query I rowsort
SELECT DISTINCT ( - 88 ) FROM tab0
----
-88

query II rowsort
SELECT ALL + col2 AS col0, + 20 FROM tab2
----
23
20
40
20
58
20

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 * - col1 + - + 64 col1 FROM tab1 AS cor0
----
146
1910
524

query I rowsort
SELECT DISTINCT - - 46 AS col1 FROM tab1 AS cor0
----
46

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

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

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

skipif mysql # not compatible
query I rowsort label-6596
SELECT CAST ( - 83 AS INTEGER ) / - + col2 FROM tab1
----
0
1
1

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN col0 AND NULL
----

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6605
SELECT COUNT ( * ) FROM tab1 WHERE NOT + + col2 IS NULL
----
3

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

skipif mysql # not compatible
query I rowsort label-6606
SELECT - MIN ( - + 16 ) AS col0 FROM tab2
----
16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6607
SELECT + CAST( + col2 AS SIGNED ) * col2 DIV - + col1 AS col1 FROM tab1
----
-658
-696
-98

skipif mysql # not compatible
query I rowsort label-6607
SELECT + CAST ( + col2 AS INTEGER ) * col2 / - + col1 AS col1 FROM tab1
----
-658
-696
-98

query II rowsort
SELECT ALL - ( col0 ) + col2 AS col1, + col2 * - 6 * + col1 FROM tab0
----
-77
-1260
2
-594
32
-22842

query I rowsort
SELECT ALL - col0 * - 27 + 80 + - col0 AS col2 FROM tab0
----
2342
2602
470

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6612
SELECT ALL + col2 DIV + 25 + - + col0 + - 45 + - col2 + - - col2 + - + col1 * - col0 col2 FROM tab2 AS cor0
----
2255
4820
4907

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6612
SELECT ALL + col2 / + 25 + - + col0 + - 45 + - col2 + - - col2 + - + col1 * - col0 col2 FROM tab2 AS cor0
----
2255
4820
4907

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6613
SELECT - CAST( + + col2 AS SIGNED ) col1 FROM tab1 AS cor0 WHERE ( - 36 ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6613
SELECT - CAST ( + + col2 AS INTEGER ) col1 FROM tab1 AS cor0 WHERE ( - 36 ) IS NULL
----

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

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

query II rowsort
SELECT + col2 + - - col2, col1 AS col2 FROM tab2
----
116
67
46
51
80
77

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6617
SELECT DISTINCT + 95 + + + CAST( NULL AS SIGNED ), + COUNT( * ) AS col2 FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6617
SELECT DISTINCT + 95 + + + CAST ( NULL AS INTEGER ), + COUNT ( * ) AS col2 FROM tab1
----
NULL
3

query I rowsort
SELECT DISTINCT + col1 - + 89 AS col2 FROM tab0
----
-68
-8
-88

query II rowsort
SELECT col0 AS col0, + ( - - 68 ) AS col0 FROM tab1 AS cor0
----
51
68
85
68
91
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6620
SELECT ALL CAST( - 46 AS SIGNED ) * 0 - + 44 FROM tab1 AS cor0
----
-44
-44
-44

skipif mysql # not compatible
query I rowsort label-6620
SELECT ALL CAST ( - 46 AS INTEGER ) * 0 - + 44 FROM tab1 AS cor0
----
-44
-44
-44

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT DISTINCT 78 * + COUNT( * ) * - SUM( ALL - col0 ) AS col1 FROM tab2
----
43290

skipif mysql # not compatible
query I rowsort label-6626
SELECT DISTINCT 78 * + COUNT ( * ) * - SUM ( ALL - col0 ) AS col1 FROM tab2
----
43290

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

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

query I rowsort
SELECT DISTINCT + col2 * + 60 FROM tab2
----
1380
2400
3480

onlyif mysql # DIV for integer division: 
query I rowsort label-6630
SELECT + col0 DIV + - col2 FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-6630
SELECT + col0 / + - col2 FROM tab0
----
-8
0
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6632
SELECT - ( - CAST( NULL AS SIGNED ) ) col0, + col2 * - - col1 FROM tab2 AS cor0
----
NULL
1173
NULL
3080
NULL
3886

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6632
SELECT - ( - CAST ( NULL AS INTEGER ) ) col0, + col2 * - - col1 FROM tab2 AS cor0
----
NULL
1173
NULL
3080
NULL
3886

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6633
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1 FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6633
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1 FROM tab0, tab1 AS cor0
----
NULL

query I rowsort
SELECT + 70 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT col1 NOT BETWEEN col2 AND + + col0 )
----
46
51
23
64
77
40

query I rowsort
SELECT + - 41 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

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

skipif mysql # not compatible
query I rowsort label-6637
SELECT ALL + CAST ( 7 AS INTEGER ) / - ( - col2 ) FROM tab1
----
0
0
0

query I rowsort
SELECT + 96 FROM tab0 AS cor0 WHERE NOT NULL <= col0
----

query II rowsort
SELECT ALL - col0 AS col2, col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6641
SELECT + + CAST( col1 AS DECIMAL ) FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN 1 AND + 83
----

skipif mysql # not compatible
query I rowsort label-6641
SELECT + + CAST ( col1 AS REAL ) FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN 1 AND + 83
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6642
SELECT - col0 * + - col2 * + 93 * - ( CAST( + - col1 AS SIGNED ) ) FROM tab0 AS cor0
----
1699110
5310765
893079

skipif mysql # not compatible
query I rowsort label-6642
SELECT - col0 * + - col2 * + 93 * - ( CAST ( + - col1 AS INTEGER ) ) FROM tab0 AS cor0
----
1699110
5310765
893079

onlyif mysql # DIV for integer division: 
query II rowsort label-6643
SELECT DISTINCT col1, - 49 - - + col2 + + col1 DIV + + 8 AS col0 FROM tab0 AS cor0
----
1
50
21
-37
81
8

skipif mysql # not compatible
query II rowsort label-6643
SELECT DISTINCT col1, - 49 - - + col2 + + col1 / + + 8 AS col0 FROM tab0 AS cor0
----
1
50
21
-37
81
8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT + + MAX( + 1 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6645
SELECT + + MAX ( + 1 ) AS col1 FROM tab1 AS cor0
----
1

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

query II rowsort
SELECT + 9, + col1 AS col2 FROM tab2 cor0
----
9
51
9
67
9
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT - + 63 + + COUNT( * ) FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-6649
SELECT - + 63 + + COUNT ( * ) FROM tab2 AS cor0
----
-60

query I rowsort
SELECT - ( + + col1 ) + + col2 AS col0 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT ALL - col2 + 2 AS col0 FROM tab2
----
-21
-38
-56

query I rowsort
SELECT DISTINCT - ( + 62 ) + + col0 FROM tab2
----
-16
13
2

query III rowsort
SELECT * FROM tab1 WHERE - + 92 * 70 >= - + col2 * + + col2
----
51
14
96

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6656
SELECT CAST( NULL AS DECIMAL ) + + - 30 + - 96 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6656
SELECT CAST ( NULL AS REAL ) + + - 30 + - 96 AS col0 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - col2 * - col1 + + - col1 FROM tab0
----
189
3726
98

query I rowsort
SELECT - + 72 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - + ( 47 ) ) = NULL OR NULL IS NOT NULL
----

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

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

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

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

query II rowsort
SELECT + - col1, col0 + + 61 AS col0 FROM tab2 cor0
----
-51
107
-67
136
-77
125

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6665
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 21 / CAST( + - 65 AS SIGNED ) * + - 35 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6665
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 21 / CAST ( + - 65 AS INTEGER ) * + - 35 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT DISTINCT - 15 * - + COUNT( - - col0 ) + - - 99 AS col1 FROM tab1 WHERE NOT col1 + - + 17 IS NULL
----
144

skipif mysql # not compatible
query I rowsort label-6667
SELECT DISTINCT - 15 * - + COUNT ( - - col0 ) + - - 99 AS col1 FROM tab1 WHERE NOT col1 + - + 17 IS NULL
----
144

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6669
SELECT + CAST( + COUNT( * ) AS SIGNED ) * - MIN( - col1 ) FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-6669
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) * - MIN ( - col1 ) FROM tab1
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-6670
SELECT DISTINCT col1 DIV + + 78 * - - col0 col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6670
SELECT DISTINCT col1 / + + 78 * - - col0 col2 FROM tab2
----
0

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

query I rowsort
SELECT + ( col1 ) AS col0 FROM tab2 WHERE NOT - - 31 * 39 * - col2 * + 54 * + 93 - - 54 + 21 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6673
SELECT + 81 DIV - 9 col2 FROM tab0
----
-9
-9
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6673
SELECT + 81 / - 9 col2 FROM tab0
----
-9
-9
-9

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

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

query II rowsort
SELECT 89 AS col2, + 8 * - col1 AS col2 FROM tab1
----
89
-112
89
-376
89
-40

query I rowsort
SELECT ALL - col0 * + - 39 FROM tab1 AS cor0
----
1989
3315
3549

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - 58 = + col1 AND NOT 63 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6680
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT BETWEEN - 38 AND + CAST( NULL AS SIGNED ) + + col1
----

skipif mysql # not compatible
query III rowsort label-6680
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT BETWEEN - 38 AND + CAST ( NULL AS INTEGER ) + + col1
----

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

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

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

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

query I rowsort
SELECT DISTINCT col1 + + 91 * - col0 AS col2 FROM tab0
----
-1284
-7896
-8826

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6685
SELECT DISTINCT 39 AS col1, - CAST( + col1 AS SIGNED ) AS col0 FROM tab0
----
39
-1
39
-21
39
-81

skipif mysql # not compatible
query II rowsort label-6685
SELECT DISTINCT 39 AS col1, - CAST ( + col1 AS INTEGER ) AS col0 FROM tab0
----
39
-1
39
-21
39
-81

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

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

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

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

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

query I rowsort
SELECT - col0 + + 27 * + - col0 FROM tab2 cor0
----
-1288
-1792
-2100

query I rowsort
SELECT ALL 81 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT col0 * - - col2 * 82 FROM tab2
----
209920
356700
86756

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6692
SELECT CAST( col1 AS SIGNED ) AS col0, - col0 * col1 FROM tab2
----
51
-2346
67
-5025
77
-4928

skipif mysql # not compatible
query II rowsort label-6692
SELECT CAST ( col1 AS INTEGER ) AS col0, - col0 * col1 FROM tab2
----
51
-2346
67
-5025
77
-4928

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

skipif mysql # not compatible
query I rowsort label-6693
SELECT ALL COUNT ( * ) FROM tab2, tab0 AS cor0
----
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT - MAX( - - col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col0 + - col1 - + + col2 / - col0 * + - col1 IS NULL
----
-58

skipif mysql # not compatible
query I rowsort label-6695
SELECT - MAX ( - - col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col0 + - col1 - + + col2 / - col0 * + - col1 IS NULL
----
-58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 80 * col0 = NULL
----

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

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

query I rowsort
SELECT + col0 * + 37 * + - col1 AS col1 FROM tab1
----
-15725
-158249
-26418

query I rowsort
SELECT 43 * - col0 AS col1 FROM tab2
----
-1978
-2752
-3225

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT MAX( 2 ) * + ( COUNT( * ) ) - 59 FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-6701
SELECT MAX ( 2 ) * + ( COUNT ( * ) ) - 59 FROM tab0
----
-53

query I rowsort
SELECT ALL + 48 + col1 AS col1 FROM tab0 AS cor0 WHERE col0 BETWEEN + col0 AND + 65
----
129

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

skipif mysql # not compatible
query I rowsort label-6703
SELECT ( - - CAST ( + 55 AS INTEGER ) ) FROM tab2
----
55
55
55

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

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

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

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

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

query I rowsort
SELECT ( - col2 ) + col0 * - - col0 AS col0 FROM tab1 AS cor0
----
2505
7166
8213

query I rowsort
SELECT - + ( col1 ) + + 56 FROM tab0 AS cor0
----
-25
35
55

query I rowsort
SELECT + col1 + ( - 33 ) FROM tab1 cor0
----
-19
-28
14

query I rowsort
SELECT 13 * + col2 + + + ( + - 30 ) - + + 40 FROM tab2 AS cor0
----
229
450
684

query I rowsort
SELECT DISTINCT + col0 * + + 80 * + - 81 FROM tab1 AS cor0
----
-330480
-550800
-589680

query I rowsort
SELECT 90 + col2 * - 29 FROM tab0 AS cor0
----
-1273
-200
-2781

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

skipif mysql # not compatible
query I rowsort label-6713
SELECT COUNT ( * ) + + 79 FROM tab2
----
82

query I rowsort
SELECT DISTINCT 58 + - 66 + + + 89 * + col0 + - col0 FROM tab0
----
1312
7648
8528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6715
SELECT + 84 * 62 * 11 + + 72 + + 30 AS col0 FROM tab1 WHERE - CAST( - col2 AS SIGNED ) + 49 - - CAST( NULL AS SIGNED ) IS NULL
----
57390
57390
57390

skipif mysql # not compatible
query I rowsort label-6715
SELECT + 84 * 62 * 11 + + 72 + + 30 AS col0 FROM tab1 WHERE - CAST ( - col2 AS INTEGER ) + 49 - - CAST ( NULL AS INTEGER ) IS NULL
----
57390
57390
57390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6716
SELECT ALL 33 FROM tab0, tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * 71 < NULL
----

skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL 33 FROM tab0, tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * 71 < NULL
----

query I rowsort
SELECT DISTINCT 65 - - col1 AS col2 FROM tab2
----
116
132
142

query I rowsort
SELECT ALL col1 * col1 AS col1 FROM tab2 AS cor0 WHERE - 7 IS NULL
----

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

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

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 + 16 )
----

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

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT col0, - 90 AS col0 FROM tab2 AS cor0
----
46
-90
64
-90
75
-90

query I rowsort
SELECT - 31 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-31
-31
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-6728
SELECT col1 * ( - col1 ) DIV ( 36 ) AS col2 FROM tab0
----
-12
-182
0

skipif mysql # not compatible
query I rowsort label-6728
SELECT col1 * ( - col1 ) / ( 36 ) AS col2 FROM tab0
----
-12
-182
0

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

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

skipif mysql # not compatible
query I rowsort label-6730
SELECT col0 / + - 61 AS col1 FROM tab0
----
-1
-1
0

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 WHERE NOT + + col1 < NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT ALL + - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 79
----
0

skipif mysql # not compatible
query I rowsort label-6733
SELECT ALL + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 79
----
0

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

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

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

query I rowsort
SELECT DISTINCT + col0 * + 24 * col1 FROM tab1 AS cor0
----
10200
102648
17136

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6737
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 - CAST( - col0 AS SIGNED ) * 45 * + 70 < - 93
----

skipif mysql # not compatible
query III rowsort label-6737
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 - CAST ( - col0 AS INTEGER ) * 45 * + 70 < - 93
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6738
SELECT DISTINCT + - col0 FROM tab0 AS cor0 WHERE - col2 + + col1 / CAST( 3 AS SIGNED ) > 36
----

skipif mysql # not compatible
query I rowsort label-6738
SELECT DISTINCT + - col0 FROM tab0 AS cor0 WHERE - col2 + + col1 / CAST ( 3 AS INTEGER ) > 36
----

query I rowsort
SELECT DISTINCT + col1 + + + 74 * - col2 FROM tab0
----
-3397
-719
-7325

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6740
SELECT DISTINCT SUM( DISTINCT - + CAST( NULL AS DECIMAL ) ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6740
SELECT DISTINCT SUM ( DISTINCT - + CAST ( NULL AS REAL ) ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL - + 33 FROM tab2 WHERE NOT - 98 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT 7 + + - COUNT( * ) AS col2 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-6742
SELECT 7 + + - COUNT ( * ) AS col2 FROM tab2
----
4

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

query II rowsort
SELECT - col2, 58 * col0 AS col1 FROM tab1 AS cor0
----
-59
4930
-68
5278
-96
2958

query I rowsort
SELECT DISTINCT col1 + + + col2 * - col2 * + 93 FROM tab1 AS cor0
----
-323728
-429985
-857074

query I rowsort
SELECT + 93 * + - col0 AS col1 FROM tab0 AS cor0
----
-1395
-8091
-9021

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

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

query I rowsort
SELECT ALL + 10 * + col1 AS col0 FROM tab2 cor0
----
510
670
770

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

query I rowsort
SELECT ALL - - col2 + 50 AS col1 FROM tab1 AS cor0
----
109
118
146

query II rowsort
SELECT - col0 / + + 20 + - 43, col2 - + ( - 25 ) FROM tab0 AS cor0 WHERE + col2 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT + MIN( ALL - ( + + col0 ) ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-6754
SELECT + MIN ( ALL - ( + + col0 ) ) FROM tab0
----
-97

query I rowsort
SELECT DISTINCT col2 + col0 - - 44 * col1 FROM tab2
----
2313
3081
3492

query III rowsort
SELECT * FROM tab2 WHERE 97 + + + 73 IS NULL
----

query II rowsort
SELECT DISTINCT col1 + - - 27 AS col2, - col2 + - + col0 AS col1 FROM tab2
----
104
-104
78
-69
94
-133

query I rowsort
SELECT ALL - 78 - - col1 FROM tab1
----
-31
-64
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6759
SELECT 72 * - col2 - - CAST( - col0 AS SIGNED ) AS col2 FROM tab2
----
-1702
-2944
-4251

skipif mysql # not compatible
query I rowsort label-6759
SELECT 72 * - col2 - - CAST ( - col0 AS INTEGER ) AS col2 FROM tab2
----
-1702
-2944
-4251

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT ALL SUM( ALL col2 ) + ( + ( + 84 ) ) AS col0 FROM tab2
----
205

skipif mysql # not compatible
query I rowsort label-6760
SELECT ALL SUM ( ALL col2 ) + ( + ( + 84 ) ) AS col0 FROM tab2
----
205

query I rowsort
SELECT - col1 + - - 38 AS col0 FROM tab0
----
-43
17
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 + - col0 + col1 + - col2 col0 FROM tab1
----
-112
-133
-139

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < col2 * 38 / - col1
----

query I rowsort
SELECT - - 41 + + + 26 AS col0 FROM tab0 cor0
----
67
67
67

query I rowsort
SELECT - col1 * ( - col2 ) FROM tab1 WHERE NOT - col2 / + 47 IS NULL
----
1344
295
3196

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT ALL + MIN( - 14 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6769
SELECT ALL + MIN ( - 14 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT - SUM( - 99 ) FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-6770
SELECT - SUM ( - 99 ) FROM tab0 AS cor0
----
297

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT ALL 91 * - - COUNT( * ) FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-6773
SELECT ALL 91 * - - COUNT ( * ) FROM tab0
----
273

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

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

query I rowsort
SELECT DISTINCT col1 * - 68 FROM tab1 AS cor0
----
-3196
-340
-952

query II rowsort
SELECT DISTINCT - 75, 54 AS col0 FROM tab2 AS cor0
----
-75
54

onlyif mysql # DIV for integer division: 
query II rowsort label-6778
SELECT - col0, col2 DIV + 83 AS col0 FROM tab0 AS cor0
----
-15
0
-87
0
-97
1

skipif mysql # not compatible
query II rowsort label-6778
SELECT - col0, col2 / + 83 AS col0 FROM tab0 AS cor0
----
-15
0
-87
0
-97
1

query II rowsort
SELECT + col0, + 96 * + + 89 * - col1 FROM tab1 AS cor0
----
51
-119616
85
-42720
91
-401568

query III rowsort
SELECT * FROM tab0 WHERE - 74 = ( NULL )
----

query I rowsort
SELECT ALL + 45 * - col0 AS col0 FROM tab0
----
-3915
-4365
-675

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

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

query I rowsort
SELECT DISTINCT 1 * - col0 AS col0 FROM tab0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 * col0 col0 FROM tab2
----
552
768
900

query I rowsort
SELECT DISTINCT + 86 * 35 FROM tab2
----
3010

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 50 * col1 col2 FROM tab2
----
-2550
-3350
-3850

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - col1 + + col2 AND 5 * col2
----

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

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

query I rowsort
SELECT 54 * 6 FROM tab2
----
324
324
324

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT MIN( DISTINCT 83 ) * COUNT( * ) AS col2 FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-6793
SELECT MIN ( DISTINCT 83 ) * COUNT ( * ) AS col2 FROM tab0
----
249

query I rowsort
SELECT - col1 * 67 AS col1 FROM tab2
----
-3417
-4489
-5159

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 ) <= - ( - col1 )
----

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

query III rowsort
SELECT * FROM tab0 WHERE ( - 41 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT DISTINCT 50 + - COUNT( * ) AS col2 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-6798
SELECT DISTINCT 50 + - COUNT ( * ) AS col2 FROM tab0
----
47

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

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

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

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

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

query I rowsort
SELECT + col1 * 45 AS col1 FROM tab0
----
3645
45
945

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6803
SELECT col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE col0 + - 41 * col2 < NULL
----

skipif mysql # not compatible
query I rowsort label-6803
SELECT col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE col0 + - 41 * col2 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 / + col1 > ( 72 )
----
15
81
47
87
21
10

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6807
SELECT ALL + COUNT ( * ) / + 2 FROM tab2
----
1

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 WHERE NOT 39 * + col0 NOT BETWEEN NULL AND ( + col2 )
----

query I rowsort
SELECT DISTINCT - col1 + col2 FROM tab2 WHERE NOT ( NULL ) BETWEEN 1 AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6810
SELECT DISTINCT + col1 DIV + 18 AS col1 FROM tab1
----
0
2

skipif mysql # not compatible
query I rowsort label-6810
SELECT DISTINCT + col1 / + 18 AS col1 FROM tab1
----
0
2

query I rowsort
SELECT - col2 * col1 AS col2 FROM tab1 AS cor0 WHERE - col2 BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - col1 * 41 AS col0 FROM tab2 cor0 WHERE NOT - 96 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT ALL MIN( 3 ) * 94 FROM tab2 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-6813
SELECT ALL MIN ( 3 ) * 94 FROM tab2 AS cor0
----
282

query I rowsort
SELECT ( + 38 ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 )
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT DISTINCT + col2 * + 27 FROM tab1
----
1593
1836
2592

query I rowsort
SELECT 58 AS col2 FROM tab0 cor0
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT + SUM( - 75 ) FROM tab2 cor0
----
-225

skipif mysql # not compatible
query I rowsort label-6817
SELECT + SUM ( - 75 ) FROM tab2 cor0
----
-225

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

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

query I rowsort
SELECT 33 FROM tab2 AS cor0 WHERE NOT 98 - - col0 * col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 25 * col2 NOT IN ( 53 )
----

query I rowsort
SELECT ALL + 71 FROM tab1 AS cor0 WHERE + 3 - - 75 * - 1 BETWEEN + col1 * + 83 AND ( col2 - col0 )
----

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

query I rowsort
SELECT 23 / + col2 - 9 AS col2 FROM tab2 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT COUNT( ALL - 6 ) AS col0 FROM tab0
----
3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6825
SELECT DISTINCT 90 + + CAST( COUNT( 53 ) AS SIGNED ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-6825
SELECT DISTINCT 90 + + CAST ( COUNT ( 53 ) AS INTEGER ) FROM tab2
----
93

query I rowsort
SELECT ALL 40 FROM tab2 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6827
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( 3 ) AND + col1 * CAST( col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6827
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( 3 ) AND + col1 * CAST ( col1 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT COUNT( * ) * - COUNT( * ) AS col2 FROM tab2
----
-9

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

query I rowsort
SELECT ALL col1 * + - 79 FROM tab2
----
-4029
-5293
-6083

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 97 IN ( - 8 * + 66 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6833
SELECT DISTINCT CAST( - - col0 AS SIGNED ) col1 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6833
SELECT DISTINCT CAST ( - - col0 AS INTEGER ) col1 FROM tab1 cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT 36 * + 10 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
357

skipif mysql # not compatible
query I rowsort label-6834
SELECT 36 * + 10 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
357

query I rowsort
SELECT DISTINCT - 29 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 98 IS NULL
----
-29

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6836
SELECT + 82 * COUNT ( * ) + + COUNT ( * ) col1 FROM tab1 AS cor0
----
249

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6839
SELECT ALL 14 * + COUNT( * ) * ( - 83 ) - + COUNT( * ) * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL 14 * + COUNT ( * ) * ( - 83 ) - + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6842
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( - + col0 AS DECIMAL ) * col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6842
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( - + col0 AS REAL ) * col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 68 AS col2, - 73 col2 FROM tab1 AS cor0
----
-68
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT ALL - SUM( DISTINCT + col1 ) col0 FROM tab1 AS cor0 WHERE NOT ( + col2 ) IN ( - col2 )
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6844
SELECT ALL - SUM ( DISTINCT + col1 ) col0 FROM tab1 AS cor0 WHERE NOT ( + col2 ) IN ( - col2 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT ALL + + COUNT( * ) + + + 95 AS col1 FROM tab0 cor0
----
98

skipif mysql # not compatible
query I rowsort label-6845
SELECT ALL + + COUNT ( * ) + + + 95 AS col1 FROM tab0 cor0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6846
SELECT - 55 * col1 AS col2 FROM tab1 AS cor0 WHERE - CAST( ( - 65 ) AS SIGNED ) - - 74 = NULL
----

skipif mysql # not compatible
query I rowsort label-6846
SELECT - 55 * col1 AS col2 FROM tab1 AS cor0 WHERE - CAST ( ( - 65 ) AS INTEGER ) - - 74 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 12 * - - 98 * + 92 + + 6 * col0 < col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 12 IN ( - + col0 ) AND NOT col2 IN ( - col2 * - 71 )
----

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6850
SELECT col2 DIV + + col2 + + ( + 25 ) + CAST( + 51 + col0 * - col1 AS SIGNED ) FROM tab2
----
-2269
-4851
-4948

skipif mysql # not compatible
query I rowsort label-6850
SELECT col2 / + + col2 + + ( + 25 ) + CAST ( + 51 + col0 * - col1 AS INTEGER ) FROM tab2
----
-2269
-4851
-4948

query I rowsort
SELECT ALL 47 * col2 AS col1 FROM tab1
----
2773
3196
4512

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6855
SELECT col1 DIV - - CAST( - col1 AS SIGNED ) FROM tab0
----
-1
-1
-1

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

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

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

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

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

query I rowsort
SELECT ALL + 28 * + col2 AS col1 FROM tab2
----
1120
1624
644

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6861
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT - CAST( - col0 AS SIGNED ) <= - + 8
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6861
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT - CAST ( - col0 AS INTEGER ) <= - + 8
----
23
40
58

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6864
SELECT - col0, + 10 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-6864
SELECT - col0, + 10 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

query I rowsort
SELECT + 99 AS col1 FROM tab0 cor0
----
99
99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6866
SELECT ALL + - col0 * - + 22 + + + col2 DIV + 49 col0 FROM tab2 AS cor0
----
1012
1408
1651

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6866
SELECT ALL + - col0 * - + 22 + + + col2 / + 49 col0 FROM tab2 AS cor0
----
1012
1408
1651

query I rowsort
SELECT DISTINCT 54 + + col2 FROM tab1
----
113
122
150

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT DISTINCT MIN( ALL + + col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-6868
SELECT DISTINCT MIN ( ALL + + col0 ) AS col2 FROM tab0
----
15

query III rowsort
SELECT ALL * FROM tab0 WHERE - 45 * - + col2 / - 34 * col2 * 96 NOT BETWEEN + 75 AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6870
SELECT ALL * FROM tab2 WHERE NOT col2 > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6870
SELECT ALL * FROM tab2 WHERE NOT col2 > CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6871
SELECT DISTINCT - CAST( NULL AS SIGNED ), col0 AS col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-6871
SELECT DISTINCT - CAST ( NULL AS INTEGER ), col0 AS col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT DISTINCT col1 + - - col1 + - col1 FROM tab2
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 NOT BETWEEN ( + + col1 * - - col2 ) AND col1 * col0
----

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

query I rowsort
SELECT ALL + col0 / col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 60 + + 77 AND NULL
----

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

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

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

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

query III rowsort
SELECT + + col0, ( 73 ) - + - col0 AS col1, + ( + col1 ) AS col2 FROM tab2 AS cor0
----
9 values hashing to 9482ad69bdd08d44b3ae2c4299b1d35d

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6880
SELECT DISTINCT MIN( ALL - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6880
SELECT DISTINCT MIN ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + + col2 AS col2, ( - col1 ) + + - col2 + col0 * - 66 FROM tab1 AS cor0
----
59
-5674
68
-6121
96
-3476

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

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

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

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

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

query II rowsort
SELECT col1, ( - col2 ) - - + col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= col0 * 18
----

query I rowsort
SELECT - - 19 + - col2 AS col2 FROM tab0 AS cor0
----
-28
-80
9

query I rowsort
SELECT ALL ( - col2 ) - - 9 + col1 AS col1 FROM tab1 AS cor0
----
-12
-45
-73

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

query II rowsort
SELECT ALL - 4 - + col2, - col0 * col1 AS col2 FROM tab0 AS cor0
----
-103
-97
-14
-1827
-51
-1215

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 >= + 98 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT - + MIN( ALL + - col2 ) * + - 69 FROM tab1 AS cor0
----
-6624

skipif mysql # not compatible
query I rowsort label-6892
SELECT - + MIN ( ALL + - col2 ) * + - 69 FROM tab1 AS cor0
----
-6624

query I rowsort
SELECT DISTINCT ( - - col1 ) AS col0 FROM tab1 AS cor0
----
14
47
5

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

query II rowsort
SELECT ALL col1 AS col1, 95 FROM tab1
----
14
95
47
95
5
95

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

query I rowsort
SELECT DISTINCT 73 AS col1 FROM tab2 cor0 WHERE NOT NULL < 48 + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6898
SELECT DISTINCT * FROM tab1 WHERE + + CAST( NULL AS SIGNED ) * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6898
SELECT DISTINCT * FROM tab1 WHERE + + CAST ( NULL AS INTEGER ) * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 * - col0 * + 55 col0 FROM tab1
----
134640
224400
240240

query II rowsort
SELECT + col0 * + - 28 AS col1, col2 * + - col2 FROM tab1
----
-1428
-9216
-2380
-3481
-2548
-4624

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT DISTINCT + COUNT( * ) * - + COUNT( * ) AS col0 FROM tab1, tab2 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-6901
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab1, tab2 cor0
----
-81

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

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

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

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

query I rowsort
SELECT DISTINCT - 49 + col0 AS col1 FROM tab2 cor0 WHERE ( - col2 ) <= 53
----
-3
15
26

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6906
SELECT DISTINCT col1 - + 71 FROM tab0 AS cor0 WHERE ( 81 * - col1 * + + CAST( NULL AS SIGNED ) ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-6906
SELECT DISTINCT col1 - + 71 FROM tab0 AS cor0 WHERE ( 81 * - col1 * + + CAST ( NULL AS INTEGER ) ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6907
SELECT DISTINCT - CAST( col2 AS SIGNED ) * - col2 + - col1, col1 * col2 AS col2 FROM tab1 AS cor0
----
3476
295
4577
3196
9202
1344

skipif mysql # not compatible
query II rowsort label-6907
SELECT DISTINCT - CAST ( col2 AS INTEGER ) * - col2 + - col1, col1 * col2 AS col2 FROM tab1 AS cor0
----
3476
295
4577
3196
9202
1344

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT 94 * COUNT( * ) AS col1 FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-6908
SELECT 94 * COUNT ( * ) AS col1 FROM tab0
----
282

onlyif mysql # DIV for integer division: 
query I rowsort label-6909
SELECT col0 DIV + col0 FROM tab2 WHERE + col2 NOT IN ( + col1, - ( - - 67 ) + col2 * - 30 * + col2 DIV + + col2 )
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6909
SELECT col0 / + col0 FROM tab2 WHERE + col2 NOT IN ( + col1, - ( - - 67 ) + col2 * - 30 * + col2 / + + col2 )
----
1
1
1

query I rowsort
SELECT ALL 82 + + 54 AS col1 FROM tab1
----
136
136
136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 + + col2 col2 FROM tab0 WHERE + + 68 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT - col2 + col0 + + col0 AS col2 FROM tab1
----
111
114
6

query I rowsort
SELECT 43 * - col2 AS col2 FROM tab1
----
-2537
-2924
-4128

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6916
SELECT DISTINCT CAST( + + MIN( ALL + 51 ) AS SIGNED ) * - 25 FROM tab2 AS cor0
----
-1275

skipif mysql # not compatible
query I rowsort label-6916
SELECT DISTINCT CAST ( + + MIN ( ALL + 51 ) AS INTEGER ) * - 25 FROM tab2 AS cor0
----
-1275

onlyif mysql # DIV for integer division: 
query I rowsort label-6917
SELECT DISTINCT + col1 DIV - col1 + + 31 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-6917
SELECT DISTINCT + col1 / - col1 + + 31 FROM tab0 AS cor0
----
30

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

query II rowsort
SELECT - col0 AS col1, 85 + + - col1 AS col1 FROM tab2 AS cor0
----
-46
34
-64
8
-75
18

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

skipif mysql # not compatible
query I rowsort label-6920
SELECT CAST ( NULL AS REAL ) FROM tab1 WHERE NOT + col1 IS NULL
----
NULL
NULL
NULL

query II rowsort
SELECT 8 * - col0 AS col0, 45 * col2 - - col0 FROM tab2
----
-368
1081
-512
1864
-600
2685

query II rowsort
SELECT DISTINCT ( - 99 ), col0 AS col2 FROM tab1
----
-99
51
-99
85
-99
91

query I rowsort
SELECT ALL col1 * - ( + 36 ) FROM tab2
----
-1836
-2412
-2772

query I rowsort
SELECT DISTINCT - 16 AS col0 FROM tab1
----
-16

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 11 IN ( + col0 / + col0 + + + 87 * + 35 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 / + 12 AS col1 FROM tab1 WHERE NOT ( NOT NULL = NULL )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT - MAX( ALL + ( col2 ) ) * + 57 FROM tab0
----
-5643

skipif mysql # not compatible
query I rowsort label-6930
SELECT - MAX ( ALL + ( col2 ) ) * + 57 FROM tab0
----
-5643

query I rowsort
SELECT ALL - col0 * - 94 AS col1 FROM tab1 AS cor0
----
4794
7990
8554

query I rowsort
SELECT ALL - - 85 * + col2 + + 43 FROM tab2 AS cor0
----
1998
3443
4973

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

query I rowsort
SELECT - 75 + - col2 AS col1 FROM tab1 cor0
----
-134
-143
-171

query I rowsort
SELECT col1 * - 32 + - col1 * - col1 AS col0 FROM tab2 AS cor0
----
2345
3465
969

onlyif mysql # DIV for integer division: 
query I rowsort label-6936
SELECT ALL col0 * + - 12 + col0 + - 86 DIV + col1 FROM tab2 AS cor0
----
-507
-705
-826

skipif mysql # not compatible
query I rowsort label-6936
SELECT ALL col0 * + - 12 + col0 + - 86 / + col1 FROM tab2 AS cor0
----
-507
-705
-826

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( + col0 ) ) NOT BETWEEN + 65 AND + col0
----
15
81
47

query I rowsort
SELECT - col1 + + 47 FROM tab1 AS cor0
----
0
33
42

query I rowsort
SELECT 10 + - + col2 - - col0 * - col1 AS col0 FROM tab0 AS cor0
----
-1252
-1827
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT COUNT( * ) * - 71 + - - COUNT( * ) + + - COUNT( * ) FROM tab2
----
-213

skipif mysql # not compatible
query I rowsort label-6940
SELECT COUNT ( * ) * - 71 + - - COUNT ( * ) + + - COUNT ( * ) FROM tab2
----
-213

query II rowsort
SELECT col0 + + + 0, + col2 AS col2 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT DISTINCT 92 + - - COUNT( * ) - 90 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6942
SELECT DISTINCT 92 + - - COUNT ( * ) - 90 FROM tab1
----
5

query I rowsort
SELECT ALL col1 + 22 FROM tab2
----
73
89
99

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6945
SELECT DISTINCT + CAST( + - col0 AS SIGNED ) - + col0 AS col0 FROM tab0
----
-174
-194
-30

skipif mysql # not compatible
query I rowsort label-6945
SELECT DISTINCT + CAST ( + - col0 AS INTEGER ) - + col0 AS col0 FROM tab0
----
-174
-194
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6946
SELECT + - 57 FROM tab2 AS cor0 WHERE ( col1 ) BETWEEN + CAST( - + col0 AS SIGNED ) * + CAST( + 38 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-6946
SELECT + - 57 FROM tab2 AS cor0 WHERE ( col1 ) BETWEEN + CAST ( - + col0 AS INTEGER ) * + CAST ( + 38 AS INTEGER ) AND NULL
----

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

query I rowsort
SELECT 77 AS col0 FROM tab2 cor0
----
77
77
77

query II rowsort
SELECT DISTINCT + ( + + col0 ) + 81, + col2 FROM tab1
----
132
96
166
59
172
68

query I rowsort
SELECT - 24 AS col0 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT col2 FROM tab0 WHERE ( - - col1 ) IS NOT NULL
----
10
47
99

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

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

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT col1 * + 20 * - ( - col1 ) + - - col2 >= NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT + 47 * - 73 * + COUNT( * ) FROM tab1 AS cor0
----
-10293

skipif mysql # not compatible
query I rowsort label-6957
SELECT + 47 * - 73 * + COUNT ( * ) FROM tab1 AS cor0
----
-10293

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

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

query II rowsort
SELECT DISTINCT 91 AS col0, - col0 AS col2 FROM tab2
----
91
-46
91
-64
91
-75

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

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

query I rowsort
SELECT col2 * 1 FROM tab1
----
59
68
96

query I rowsort
SELECT - 84 * + - col0 FROM tab0
----
1260
7308
8148

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

query I rowsort
SELECT - 50 * + 33 FROM tab1
----
-1650
-1650
-1650

query I rowsort
SELECT DISTINCT + - 37 AS col0 FROM tab2 AS cor0
----
-37

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT DISTINCT + SUM( - + 49 ) FROM tab0
----
-147

skipif mysql # not compatible
query I rowsort label-6972
SELECT DISTINCT + SUM ( - + 49 ) FROM tab0
----
-147

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 / - - 90 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT DISTINCT COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6974
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 * + col1 IS NULL
----

query I rowsort
SELECT ALL + 29 + ( + col1 ) + + - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0, col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT DISTINCT COUNT( * ) + + + 47 FROM tab2 cor0
----
50

skipif mysql # not compatible
query I rowsort label-6978
SELECT DISTINCT COUNT ( * ) + + + 47 FROM tab2 cor0
----
50

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6981
SELECT + col1 DIV 57 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6981
SELECT + col1 / 57 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 56 + col0 * col2 FROM tab0
----
761
926
9659

query II rowsort
SELECT - 65 AS col1, 42 AS col1 FROM tab2
----
-65
42
-65
42
-65
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6984
SELECT col1 - - col0 * - CAST( NULL AS SIGNED ) AS col1, + col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-6984
SELECT col1 - - col0 * - CAST ( NULL AS INTEGER ) AS col1, + col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

query III rowsort
SELECT * FROM tab0 WHERE - + 80 BETWEEN NULL AND - 50
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6986
SELECT DISTINCT + - col1 FROM tab0 AS cor0 WHERE NOT col1 >= + 79 + - + CAST( - col1 AS SIGNED ) * - - col0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-6986
SELECT DISTINCT + - col1 FROM tab0 AS cor0 WHERE NOT col1 >= + 79 + - + CAST ( - col1 AS INTEGER ) * - - col0
----
-1
-21
-81

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

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

query I rowsort
SELECT - col0 + - 39 FROM tab2 AS cor0
----
-103
-114
-85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 49 ) * + col2 / - col2 IS NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-6992
SELECT ALL - COUNT ( * ) / + 11 + + COUNT ( * ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6993
SELECT DISTINCT + SUM( ALL - 75 ) DIV - + 2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
337

skipif mysql # not compatible
query I rowsort label-6993
SELECT DISTINCT + SUM ( ALL - 75 ) / - + 2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
337

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT DISTINCT - MAX( + ( + ( col0 ) ) ) * + + MAX( DISTINCT + col2 ) AS col2 FROM tab1
----
-8736

skipif mysql # not compatible
query I rowsort label-6994
SELECT DISTINCT - MAX ( + ( + ( col0 ) ) ) * + + MAX ( DISTINCT + col2 ) AS col2 FROM tab1
----
-8736

onlyif mysql # DIV for integer division: 
query I rowsort label-6995
SELECT ALL 74 DIV - + col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6995
SELECT ALL 74 / - + col0 FROM tab2
----
-1
-1
0

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

skipif mysql # not compatible
query I rowsort label-6996
SELECT DISTINCT - 82 / - - col0 AS col0 FROM tab1 cor0
----
-1
0

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

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

query I rowsort
SELECT 57 AS col0 FROM tab1 cor0
----
57
57
57

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

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

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

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE 67 <> NULL
----

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

query I rowsort
SELECT DISTINCT - 19 * col2 FROM tab1 AS cor0
----
-1121
-1292
-1824

query I rowsort
SELECT ( - col2 ) * - col0 * + col1 FROM tab1
----
25075
290836
68544

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

skipif mysql # not compatible
query I rowsort label-7006
SELECT CAST ( NULL AS INTEGER ) / COUNT ( DISTINCT - col1 ) AS col2 FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT COUNT( * ) * + + 98 FROM tab0 cor0
----
294

skipif mysql # not compatible
query I rowsort label-7008
SELECT COUNT ( * ) * + + 98 FROM tab0 cor0
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT - MAX( DISTINCT + col1 ) AS col2 FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7009
SELECT - MAX ( DISTINCT + col1 ) AS col2 FROM tab1 cor0
----
-47

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

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

query I rowsort
SELECT DISTINCT 41 * + col2 + - 74 FROM tab1
----
2345
2714
3862

query I rowsort
SELECT - 62 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

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

skipif mysql # not compatible
query II rowsort label-7013
SELECT DISTINCT + COUNT ( * ) AS col2, MAX ( 10 ) FROM tab0 AS cor0
----
3
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7014
SELECT - col0 * - 13 * - 20 + - col2 AS col1, CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-22630
NULL
-25319
NULL
-3947
NULL

skipif mysql # not compatible
query II rowsort label-7014
SELECT - col0 * - 13 * - 20 + - col2 AS col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-22630
NULL
-25319
NULL
-3947
NULL

query I rowsort
SELECT ALL ( - + col1 ) * - + col2 AS col2 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT col1 + - 6 FROM tab0 cor0
----
-5
15
75

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

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

query I rowsort
SELECT + + col2 + + 96 FROM tab1 cor0
----
155
164
192

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 69 * - 9 + + + ( - + 85 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7020
SELECT + + col2 + col2 DIV col0 AS col2 FROM tab0 AS cor0
----
10
100
50

skipif mysql # not compatible
query I rowsort label-7020
SELECT + + col2 + col2 / col0 AS col2 FROM tab0 AS cor0
----
10
100
50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7021
SELECT ALL - 67, + CAST( NULL AS SIGNED ) * - 5 AS col1 FROM tab2 AS cor0
----
-67
NULL
-67
NULL
-67
NULL

skipif mysql # not compatible
query II rowsort label-7021
SELECT ALL - 67, + CAST ( NULL AS INTEGER ) * - 5 AS col1 FROM tab2 AS cor0
----
-67
NULL
-67
NULL
-67
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7023
SELECT ALL 12 + + COUNT( * ) DIV - ( + + 89 ) FROM tab1 AS cor0
----
12

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

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

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

query I rowsort
SELECT 71 * - col0 + col2 AS col0 FROM tab0
----
-1018
-6167
-6788

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

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

query I rowsort
SELECT ALL 53 + col2 FROM tab2
----
111
76
93

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7030
SELECT DISTINCT 46 / + + 18 FROM tab2 WHERE + ( + CAST( + - col1 AS SIGNED ) ) + - - 20 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7030
SELECT DISTINCT 46 / + + 18 FROM tab2 WHERE + ( + CAST ( + - col1 AS INTEGER ) ) + - - 20 IS NULL
----

query II rowsort
SELECT ALL + 27 * col1 * - col0 * - - col2 - + + col2, 92 AS col0 FROM tab2 WHERE + 54 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 / + + col2 IS NULL
----

query I rowsort
SELECT - col1 * col2 - - col0 + - + col2 FROM tab1 cor0
----
-1389
-269
-3173

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

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

query II rowsort
SELECT 43 AS col0, + 78 AS col2 FROM tab2
----
43
78
43
78
43
78

onlyif mysql # DIV for integer division: 
query II rowsort label-7036
SELECT + col1 col1, - col2 + + - 74 DIV 59 AS col2 FROM tab0 AS cor0
----
1
-100
21
-11
81
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7036
SELECT + col1 col1, - col2 + + - 74 / 59 AS col2 FROM tab0 AS cor0
----
1
-100
21
-11
81
-48

query II rowsort
SELECT + col2 AS col1, 54 * + - col1 + col1 * + col0 FROM tab1 AS cor0
----
59
155
68
1739
96
-42

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT - COUNT( * ) FROM tab1 WHERE NOT NULL <> - + 79 - col2 * + + col1
----
0

skipif mysql # not compatible
query I rowsort label-7039
SELECT - COUNT ( * ) FROM tab1 WHERE NOT NULL <> - + 79 - col2 * + + col1
----
0

query I rowsort
SELECT DISTINCT + col1 * - - ( - 21 ) AS col0 FROM tab2
----
-1071
-1407
-1617

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT + SUM( ALL + - 63 ) AS col0 FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-7041
SELECT + SUM ( ALL + - 63 ) AS col0 FROM tab0
----
-189

onlyif mysql # DIV for integer division: 
query I rowsort label-7042
SELECT DISTINCT 44 DIV + col0 * + col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7042
SELECT DISTINCT 44 / + col0 * + col1 FROM tab1
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-7044
SELECT + - COUNT ( * ) AS col1 FROM tab1 WHERE + 78 - - col1 / col1 IS NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE - - col0 / - + 39 * - col0 BETWEEN + - 34 * - + col0 * + + col1 * - col2 AND NULL
----

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

query I rowsort
SELECT DISTINCT - col2 + + 36 AS col1 FROM tab2
----
-22
-4
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT SUM( + 7 ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-7048
SELECT SUM ( + 7 ) FROM tab2
----
21

query I rowsort
SELECT - + 2 AS col2 FROM tab0 AS cor0
----
-2
-2
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7050
SELECT ALL + 86 + CAST( NULL AS DECIMAL ), + col0 FROM tab2 AS cor0 WHERE - col1 >= 35
----

skipif mysql # not compatible
query II rowsort label-7050
SELECT ALL + 86 + CAST ( NULL AS REAL ), + col0 FROM tab2 AS cor0 WHERE - col1 >= 35
----

query I rowsort
SELECT DISTINCT - + 14 FROM tab0 cor0
----
-14

query I rowsort
SELECT + - col1 - 28 FROM tab1 AS cor0
----
-33
-42
-75

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

query I rowsort
SELECT col2 - + + col1 * - 24 * 18 * 38 FROM tab2
----
1099930
1264072
837239

query I rowsort
SELECT ALL 17 * 7 + - - col1 AS col2 FROM tab1
----
124
133
166

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT + COUNT( DISTINCT - col0 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7056
SELECT + COUNT ( DISTINCT - col0 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL - 42 + + ( + col2 ) FROM tab0
----
-32
5
57

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

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

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

query I rowsort
SELECT col1 + - - ( 18 ) FROM tab2
----
69
85
95

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN + - 93 + + + col1 AND - - 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT MIN( + + ( col0 ) ) + 75 AS col0 FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-7062
SELECT MIN ( + + ( col0 ) ) + 75 AS col0 FROM tab1
----
126

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

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

query II rowsort
SELECT col0 + + col2 * + + col0 * 39 AS col2, 62 AS col0 FROM tab0
----
27510
62
34017
62
374614
62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT - SUM( + 76 ) FROM tab1 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-7066
SELECT - SUM ( + 76 ) FROM tab1 AS cor0
----
-228

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7067
SELECT col0, + CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
51
14
85
5
91
47

skipif mysql # not compatible
query II rowsort label-7067
SELECT col0, + CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51
14
85
5
91
47

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT DISTINCT + COUNT( * ) col2 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-7070
SELECT DISTINCT + COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 12 < - col0 + + col1
----
64
77
40

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

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

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

query II rowsort
SELECT ALL + - 84 * + col2 AS col2, col0 FROM tab1 AS cor0
----
-4956
85
-5712
91
-8064
51

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

skipif mysql # not compatible
query I rowsort label-7076
SELECT DISTINCT + 42 + CAST ( - COUNT ( - + col2 ) AS INTEGER ) - - COUNT ( * ) FROM tab0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7077
SELECT CAST( SUM( 26 ) AS SIGNED ) FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-7077
SELECT CAST ( SUM ( 26 ) AS INTEGER ) FROM tab2
----
78

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN - + 88 + 38 + - 38 AND + + col0
----

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 * - - col2 * + + col0 + + col0 FROM tab1 AS cor0
----
25160
290927
68595

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) <= - - 3
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7085
SELECT 39 DIV 74 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7085
SELECT 39 / 74 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 4 * - col2 AS col1 FROM tab2 cor0
----
-160
-232
-92

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

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

query I rowsort
SELECT ALL - col2 + col0 + + 33 FROM tab0
----
1
110
31

query I rowsort
SELECT DISTINCT 75 + col0 FROM tab2
----
121
139
150

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT ALL + 29 * - ( - - ( - - SUM( DISTINCT + - col1 ) ) ) FROM tab0 AS cor0
----
2987

skipif mysql # not compatible
query I rowsort label-7090
SELECT ALL + 29 * - ( - - ( - - SUM ( DISTINCT + - col1 ) ) ) FROM tab0 AS cor0
----
2987

query I rowsort
SELECT - - col1 + + + 49 FROM tab2 AS cor0
----
100
116
126

query II rowsort
SELECT DISTINCT - 79 - col2, - col0 AS col1 FROM tab0 AS cor0
----
-126
-15
-178
-97
-89
-87

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7094
SELECT ALL 61 DIV - col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7094
SELECT ALL 61 / - col1 FROM tab2
----
-1
0
0

query I rowsort
SELECT DISTINCT col0 + + - 10 AS col1 FROM tab0
----
5
77
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT - MIN( 61 ) AS col2 FROM tab1
----
-61

skipif mysql # not compatible
query I rowsort label-7096
SELECT - MIN ( 61 ) AS col2 FROM tab1
----
-61

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 / - col1 + + 73 + 43 + - 29 ) <= ( col2 ) / - 58
----
15
81
47
87
21
10

query II rowsort
SELECT DISTINCT - col0, 69 AS col0 FROM tab1 AS cor0
----
-51
69
-85
69
-91
69

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

query I rowsort
SELECT DISTINCT + + col2 * - + col2 * 44 * 89 FROM tab1 cor0 WHERE - col1 <> NULL
----

query II rowsort
SELECT ALL - col0, + col2 * + 79 + + 65 AS col2 FROM tab0
----
-15
3778
-87
855
-97
7886

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

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

query I rowsort
SELECT ALL col0 * + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
225
7569
9409

query II rowsort
SELECT DISTINCT + col2 AS col2, + col1 + 95 AS col2 FROM tab2 AS cor0
----
23
146
40
172
58
162

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT 71 * - MIN( - col1 ) - + 55 FROM tab2 AS cor0
----
5412

skipif mysql # not compatible
query I rowsort label-7106
SELECT 71 * - MIN ( - col1 ) - + 55 FROM tab2 AS cor0
----
5412

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7109
SELECT ALL + col0 * + 75 + col2 * - col1 + col2 + - ( + CAST( col2 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
2481
3629
6080

skipif mysql # not compatible
query I rowsort label-7109
SELECT ALL + col0 * + 75 + col2 * - col1 + col2 + - ( + CAST ( col2 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
2481
3629
6080

query II rowsort
SELECT 70 AS col2, + 56 AS col2 FROM tab0 AS cor0
----
70
56
70
56
70
56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT DISTINCT 52 + - + COUNT( * ) AS col0 FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-7113
SELECT DISTINCT 52 + - + COUNT ( * ) AS col0 FROM tab1
----
49

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

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

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

query I rowsort
SELECT ALL + col2 + 56 FROM tab0
----
103
155
66

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

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

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

query I rowsort
SELECT DISTINCT - col1 * - col0 + ( ( + + col0 ) ) + - - col1 FROM tab2
----
2443
5069
5167

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

skipif mysql # not compatible
query I rowsort label-7120
SELECT CAST ( NULL AS REAL ) * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col2 * 98, - col1 AS col2 FROM tab1 AS cor0
----
5782
-5
6664
-47
9408
-14

query I rowsort
SELECT - - col0 + - 29 + - + 52 AS col0 FROM tab1 AS cor0
----
-30
10
4

query I rowsort
SELECT ALL + + 16 FROM tab0 cor0
----
16
16
16

query I rowsort
SELECT DISTINCT + + 59 * - + col1 * 74 FROM tab1 AS cor0
----
-205202
-21830
-61124

query II rowsort
SELECT col0 AS col0, + ( col0 ) AS col1 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT ALL col1 * col0 + - 62 + ( + col0 ) + + - 87 FROM tab0
----
1081
1765
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7127
SELECT DISTINCT + col2 * - CAST( - - col2 AS SIGNED ) + + col1 + + 54 + + 31 AS col1 FROM tab2
----
-1438
-3212
-393

skipif mysql # not compatible
query I rowsort label-7127
SELECT DISTINCT + col2 * - CAST ( - - col2 AS INTEGER ) + + col1 + + 54 + + 31 AS col1 FROM tab2
----
-1438
-3212
-393

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * ( - col2 ) + - - ( + + 54 ) col2 FROM tab1 AS cor0
----
-4842
-4961
-6134

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

query I rowsort
SELECT DISTINCT col2 - + - 99 AS col1 FROM tab0 cor0
----
109
146
198

query I rowsort
SELECT ALL + 65 AS col1 FROM tab2 cor0
----
65
65
65

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

query I rowsort
SELECT + 50 - col0 FROM tab1 cor0
----
-1
-35
-41

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT COUNT( * ) * - 5 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-7136
SELECT COUNT ( * ) * - 5 FROM tab1
----
-15

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

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

query I rowsort
SELECT DISTINCT 70 * - 25 AS col1 FROM tab2
----
-1750

onlyif mysql # DIV for integer division: 
query I rowsort label-7139
SELECT 99 DIV - col1 FROM tab1
----
-19
-2
-7

skipif mysql # not compatible
query I rowsort label-7139
SELECT 99 / - col1 FROM tab1
----
-19
-2
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-7140
SELECT col1 DIV + - col1 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7140
SELECT col1 / + - col1 AS col2 FROM tab0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 + + 42 + + 48 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col1 + + ( + col2 ) + - - ( - 84 ) > - - 45 - - - ( - + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col1 * - + col1 AS col1, + 1 - col2 FROM tab2
----
-2601
-22
-4489
-57
-5929
-39

query I rowsort
SELECT + col0 * + + 23 FROM tab0
----
2001
2231
345

onlyif mysql # aggregate syntax: 
query II rowsort label-7145
SELECT ALL - MAX( ALL - - col0 ) AS col2, 85 FROM tab1
----
-91
85

skipif mysql # not compatible
query II rowsort label-7145
SELECT ALL - MAX ( ALL - - col0 ) AS col2, 85 FROM tab1
----
-91
85

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT - MAX( - + col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7150
SELECT - MAX ( - + col2 ) FROM tab2
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7152
SELECT - 37 + - col2 / - col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 + + col1 + + CAST( + + ( - - 69 ) AS SIGNED ), + col1, + col1 * - col0 )
----

skipif mysql # not compatible
query I rowsort label-7152
SELECT - 37 + - col2 / - col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 + + col1 + + CAST ( + + ( - - 69 ) AS INTEGER ), + col1, + col1 * - col0 )
----

query I rowsort
SELECT col1 * - + 61 AS col0 FROM tab2 AS cor0
----
-3111
-4087
-4697

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7155
SELECT - 76 AS col2, - MAX( ALL + col0 ) * COUNT( * ) col0 FROM tab1 AS cor0
----
-76
-273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7155
SELECT - 76 AS col2, - MAX ( ALL + col0 ) * COUNT ( * ) col0 FROM tab1 AS cor0
----
-76
-273

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 76, - 18, + col1 )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 / + col2 + + - col2 = + - ( + col1 )
----

query I rowsort
SELECT col2 + + - 56 FROM tab0 AS cor0
----
-46
-9
43

query I rowsort
SELECT ALL + 14 AS col2 FROM tab2 WHERE - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT MIN( DISTINCT + col1 ) + + - 97 * + + COUNT( * ) * - + 42 FROM tab1
----
12227

skipif mysql # not compatible
query I rowsort label-7161
SELECT MIN ( DISTINCT + col1 ) + + - 97 * + + COUNT ( * ) * - + 42 FROM tab1
----
12227

query I rowsort
SELECT ALL + 59 * + col0 + - + col0 FROM tab2
----
2668
3712
4350

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7164
SELECT COUNT( * ) * CAST( - + 53 AS SIGNED ) * - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-477

skipif mysql # not compatible
query I rowsort label-7164
SELECT COUNT ( * ) * CAST ( - + 53 AS INTEGER ) * - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-477

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7165
SELECT + 78 DIV - SUM( ALL col1 ) + - + 93 AS col2 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-7165
SELECT + 78 / - SUM ( ALL col1 ) + - + 93 AS col2 FROM tab1 AS cor0
----
-94

query I rowsort
SELECT - 82 * + - col0 FROM tab0 AS cor0
----
1230
7134
7954

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 1 <> + + ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT 33 + + MIN( + 23 ) FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-7170
SELECT 33 + + MIN ( + 23 ) FROM tab2
----
56

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

skipif mysql # not compatible
query I rowsort label-7171
SELECT COUNT ( DISTINCT + 52 ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-7172
SELECT - col1 + - col0 * col1 DIV - 9 FROM tab2 AS cor0
----
209
470
491

skipif mysql # not compatible
query I rowsort label-7172
SELECT - col1 + - col0 * col1 / - 9 FROM tab2 AS cor0
----
209
470
491

query I rowsort
SELECT DISTINCT - col0 - col2 * - 4 AS col2 FROM tab1 AS cor0
----
151
181
333

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 20 BETWEEN col1 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT ALL + col2 * + 14 AS col2 FROM tab0
----
1386
140
658

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7179
SELECT - CAST( + MAX( - 21 ) AS SIGNED ) * MIN( DISTINCT - col1 ) AS col0 FROM tab2
----
-1617

skipif mysql # not compatible
query I rowsort label-7179
SELECT - CAST ( + MAX ( - 21 ) AS INTEGER ) * MIN ( DISTINCT - col1 ) AS col0 FROM tab2
----
-1617

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT + COUNT( * ) * + 47 AS col1 FROM tab0
----
141

skipif mysql # not compatible
query I rowsort label-7180
SELECT + COUNT ( * ) * + 47 AS col1 FROM tab0
----
141

query I rowsort
SELECT ALL + col0 * - + 54 FROM tab1
----
-2754
-4590
-4914

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7182
SELECT DISTINCT - AVG ( ALL CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7182
SELECT DISTINCT - AVG ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 cor0 WHERE NOT ( + col2 ) * + - col1 IN ( + - col0, col0 )
----
10
47
99

query I rowsort
SELECT DISTINCT + 42 * 43 FROM tab1 AS cor0
----
1806

query II rowsort
SELECT col1 + 77 AS col2, 53 AS col2 FROM tab2
----
128
53
144
53
154
53

query I rowsort
SELECT 24 + 78 AS col1 FROM tab2
----
102
102
102

query I rowsort
SELECT col1 * - + col2 * - col2 * - col2 AS col1 FROM tab1 AS cor0
----
-1026895
-12386304
-14778304

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) > + 0 / + col0 * - 71
----

query I rowsort
SELECT ALL - 12 * 12 FROM tab1 AS cor0
----
-144
-144
-144

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT DISTINCT + 99 + - COUNT( * ) - + 28 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-7192
SELECT DISTINCT + 99 + - COUNT ( * ) - + 28 FROM tab0 AS cor0
----
68

query I rowsort
SELECT DISTINCT + col2 * - col0 + col0 AS col0 FROM tab0
----
-690
-783
-9506

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

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

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

query I rowsort
SELECT DISTINCT - 59 + col1 FROM tab0
----
-38
-58
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT ALL COUNT( * ) - 44 col0 FROM tab1
----
-41

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7198
SELECT - CAST( + 15 AS SIGNED ) - + COUNT( * ), COUNT( * ) * - 51 AS col0 FROM tab2
----
-18
-153

skipif mysql # not compatible
query II rowsort label-7198
SELECT - CAST ( + 15 AS INTEGER ) - + COUNT ( * ), COUNT ( * ) * - 51 AS col0 FROM tab2
----
-18
-153

query I rowsort
SELECT ALL col2 * 2 + - col0 * + - col0 + - - col0 AS col2 FROM tab2
----
2208
4240
5816

query I rowsort
SELECT - col1 * 70 * col0 + - col2 + + - 93 FROM tab0
----
-127993
-6982
-85190

query I rowsort
SELECT col2 + - col2 * 31 + + col2 + - - 24 + - col1 AS col0 FROM tab0
----
-1420
-2848
-287

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

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

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

query I rowsort
SELECT - 41 * - 21 FROM tab1 AS cor0
----
861
861
861

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

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

query I rowsort
SELECT DISTINCT + 16 AS col0 FROM tab1 AS cor0 WHERE col1 * col1 > NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + ( + 92 ) > + col2
----

query I rowsort
SELECT ALL + + col2 * - 34 FROM tab0 AS cor0
----
-1598
-3366
-340

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7211
SELECT DISTINCT 31 * col2 * CAST( + + 89 AS SIGNED ) AS col2 FROM tab0
----
129673
273141
27590

skipif mysql # not compatible
query I rowsort label-7211
SELECT DISTINCT 31 * col2 * CAST ( + + 89 AS INTEGER ) AS col2 FROM tab0
----
129673
273141
27590

query I rowsort
SELECT ALL col1 * - col0 * - 38 AS col2 FROM tab2
----
187264
190950
89148

onlyif mysql # aggregate syntax: 
query II rowsort label-7213
SELECT DISTINCT MAX( - col0 ) AS col2, - 72 FROM tab1
----
-51
-72

skipif mysql # not compatible
query II rowsort label-7213
SELECT DISTINCT MAX ( - col0 ) AS col2, - 72 FROM tab1
----
-51
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7214
SELECT + CAST( + ( + COUNT( * ) ) AS SIGNED ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7214
SELECT + CAST ( + ( + COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7215
SELECT + 44 * - 0 DIV + 42 * COUNT( DISTINCT 31 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7215
SELECT + 44 * - 0 / + 42 * COUNT ( DISTINCT 31 ) AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL col0 * col0 * - 19 AS col0 FROM tab0
----
-143811
-178771
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT MAX( + ( + - 98 ) ) FROM tab0 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-7217
SELECT MAX ( + ( + - 98 ) ) FROM tab0 AS cor0
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-7218
SELECT DISTINCT + MAX( 71 ), COUNT( 97 ) AS col2 FROM tab2 AS cor0
----
71
3

skipif mysql # not compatible
query II rowsort label-7218
SELECT DISTINCT + MAX ( 71 ), COUNT ( 97 ) AS col2 FROM tab2 AS cor0
----
71
3

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7220
SELECT - + CAST( + col1 AS SIGNED ) + + col0 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7220
SELECT - + CAST ( + col1 AS INTEGER ) + + col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT ALL - MIN( 1 ) AS col0 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7221
SELECT ALL - MIN ( 1 ) AS col0 FROM tab2 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT DISTINCT + MIN( col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7222
SELECT DISTINCT + MIN ( col2 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT - + 39 + + - col1 AS col1 FROM tab1 AS cor0
----
-44
-53
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 / - 58 col0 FROM tab0 AS cor0 WHERE ( + col1 IS NULL )
----

query II rowsort
SELECT ALL - + 97 AS col2, 44 + - - col0 * - + 8 FROM tab2 AS cor0
----
-97
-324
-97
-468
-97
-556

query I rowsort
SELECT + col2 * + - ( - col0 ) + + + 30 AS col0 FROM tab0 AS cor0
----
735
900
9633

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT + - 85 + - + COUNT( * ) * MAX( + 46 ) * + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-499

skipif mysql # not compatible
query I rowsort label-7227
SELECT + - 85 + - + COUNT ( * ) * MAX ( + 46 ) * + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-499

query II rowsort
SELECT ALL - 50 * + + col2 + + col0 AS col0, - 88 AS col1 FROM tab2 AS cor0
----
-1104
-88
-1936
-88
-2825
-88

query I rowsort
SELECT DISTINCT + ( + AVG ( col2 ) ) AS col1 FROM tab2 AS cor0 WHERE 33 < NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= ( col0 ) + + col2
----

query I rowsort
SELECT - 67 + - + ( + col2 ) FROM tab1
----
-126
-135
-163

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - col2 + + 70 - + 19 - - + 13 + - 60 - - col1 * + col2 * + + col0 AND + col2 + + 59
----

query I rowsort
SELECT ALL col1 - - + col1 * - + col2 FROM tab2
----
-1122
-3003
-3819

onlyif mysql # DIV for integer division: 
query I rowsort label-7234
SELECT ALL col0 + col1 DIV + - col1 FROM tab2
----
45
63
74

skipif mysql # not compatible
query I rowsort label-7234
SELECT ALL col0 + col1 / + - col1 FROM tab2
----
45
63
74

query I rowsort
SELECT - - 59 AS col0 FROM tab0 AS cor0
----
59
59
59

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IS NULL AND ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7237
SELECT - CAST( - - 43 AS SIGNED ) - + 64 AS col2 FROM tab1 AS cor0
----
-107
-107
-107

skipif mysql # not compatible
query I rowsort label-7237
SELECT - CAST ( - - 43 AS INTEGER ) - + 64 AS col2 FROM tab1 AS cor0
----
-107
-107
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT ALL COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-7238
SELECT ALL COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

query I rowsort
SELECT ALL - + ( - col0 ) FROM tab2 cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7240
SELECT ALL + + col0 AS col1, CAST( NULL AS SIGNED ) + + col0 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-7240
SELECT ALL + + col0 AS col1, CAST ( NULL AS INTEGER ) + + col0 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT + SUM( ALL 1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7241
SELECT + SUM ( ALL 1 ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 63 col0 FROM tab1 AS cor0
----
63
63
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 col2 FROM tab1 cor0
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT DISTINCT + - COUNT( ALL col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7244
SELECT DISTINCT + - COUNT ( ALL col0 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col0 * + - 49 * - + col2 AS col1 FROM tab2 AS cor0
----
125440
213150
51842

query I rowsort
SELECT 53 * - col0 AS col1 FROM tab2
----
-2438
-3392
-3975

query I rowsort
SELECT 60 * + 23 * - col0 AS col0 FROM tab0
----
-120060
-133860
-20700

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT DISTINCT + MAX( + - col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-7248
SELECT DISTINCT + MAX ( + - col0 ) FROM tab1
----
-51

query I rowsort
SELECT ( + 19 ) * - - 9 AS col1 FROM tab1
----
171
171
171

query I rowsort
SELECT 1 * - 44 FROM tab0
----
-44
-44
-44

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND 87
----

query II rowsort
SELECT ALL - col1 AS col1, + col0 * + col0 * - - col1 FROM tab1 AS cor0
----
-14
36414
-47
389207
-5
36125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * + - col0 * - col0 col1 FROM tab0 AS cor0
----
-158949
-18225
-9409

query I rowsort
SELECT DISTINCT + + 36 * + 8 + + col1 FROM tab0 AS cor0
----
289
309
369

query I rowsort
SELECT DISTINCT + 29 + + - col0 FROM tab0 AS cor0 WHERE NOT 39 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT - 93 * - COUNT( * ) AS col0 FROM tab1 cor0
----
279

skipif mysql # not compatible
query I rowsort label-7256
SELECT - 93 * - COUNT ( * ) AS col0 FROM tab1 cor0
----
279

query I rowsort
SELECT ALL col0 * - + 98 AS col0 FROM tab0 AS cor0
----
-1470
-8526
-9506

query I rowsort
SELECT + - ( - - col2 ) * + 51 FROM tab1 AS cor0
----
-3009
-3468
-4896

query I rowsort
SELECT DISTINCT - - col1 - + + col0 AS col1 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # DIV for integer division: 
query I rowsort label-7260
SELECT DISTINCT col1 DIV ( col0 ) FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT col1 / ( col0 ) FROM tab2 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT + 7 - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL <= - col1
----
7

skipif mysql # not compatible
query I rowsort label-7261
SELECT + 7 - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL <= - col1
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7262
SELECT ALL + ( - - COUNT( * ) ) * - 77 * - 77 + 18 + 42 DIV - 3 FROM tab2 cor0
----
17791

skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL + ( - - COUNT ( * ) ) * - 77 * - 77 + 18 + 42 / - 3 FROM tab2 cor0
----
17791

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 >= NULL
----

query I rowsort
SELECT 44 - - + col2 + - 28 - - + 60 FROM tab2
----
116
134
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7265
SELECT DISTINCT 33 DIV + 78 col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7265
SELECT DISTINCT 33 / + 78 col2 FROM tab0
----
0

query I rowsort
SELECT ALL 51 + col1 AS col0 FROM tab2
----
102
118
128

query I rowsort
SELECT DISTINCT col1 + 47 FROM tab1
----
52
61
94

query I rowsort
SELECT ALL + col0 - + + col0 AS col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7269
SELECT - - CAST( NULL AS SIGNED ) * - col1 * - col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7269
SELECT - - CAST ( NULL AS INTEGER ) * - col1 * - col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT ( COUNT( * ) ) AS col0 FROM tab2 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7270
SELECT ( COUNT ( * ) ) AS col0 FROM tab2 WHERE - col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT ALL 12 * - COUNT( * ) + COUNT( * ) AS col1 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-7271
SELECT ALL 12 * - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1
----
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 86 + - col0 col2 FROM tab0
----
-101
-173
-183

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= - col1
----

query I rowsort
SELECT ALL + 58 + col2 FROM tab2
----
116
81
98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 * + col2 NOT BETWEEN NULL AND 95 * + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7276
SELECT MIN( ALL col0 ) - SUM( ALL 14 + col1 DIV col0 ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-7276
SELECT MIN ( ALL col0 ) - SUM ( ALL 14 + col1 / col0 ) FROM tab1
----
9

query I rowsort
SELECT col0 / - 10 + 71 * + col2 FROM tab0 WHERE NULL BETWEEN - col2 AND NULL
----

query I rowsort
SELECT - 33 AS col0 FROM tab0 WHERE NOT 69 NOT BETWEEN 82 AND NULL
----

query I rowsort
SELECT 89 - + 86 FROM tab1
----
3
3
3

query I rowsort
SELECT col1 - + 57 FROM tab2 WHERE NOT ( col2 ) NOT IN ( 79 + + col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7281
SELECT ALL * FROM tab1 WHERE NOT NULL >= CAST( + col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7281
SELECT ALL * FROM tab1 WHERE NOT NULL >= CAST ( + col1 AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7282
SELECT - CAST( + 56 AS SIGNED ) AS col1 FROM tab1
----
-56
-56
-56

skipif mysql # not compatible
query I rowsort label-7282
SELECT - CAST ( + 56 AS INTEGER ) AS col1 FROM tab1
----
-56
-56
-56

query III rowsort
SELECT * FROM tab0 WHERE ( - 42 ) IS NULL
----

query I rowsort
SELECT ALL 50 * col2 AS col0 FROM tab1
----
2950
3400
4800

query I rowsort
SELECT DISTINCT col0 * 54 + ( - col0 ) AS col0 FROM tab2
----
2438
3392
3975

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT 24 * + COUNT( * ) AS col0 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-7286
SELECT 24 * + COUNT ( * ) AS col0 FROM tab0
----
72

query I rowsort
SELECT 61 * 37 FROM tab1
----
2257
2257
2257

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7288
SELECT ALL - CAST( - 94 AS SIGNED ) FROM tab2
----
94
94
94

skipif mysql # not compatible
query I rowsort label-7288
SELECT ALL - CAST ( - 94 AS INTEGER ) FROM tab2
----
94
94
94

query I rowsort
SELECT DISTINCT - ( 46 ) + col0 FROM tab1
----
39
45
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < ( + ( col1 ) ) + ( col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 * - 68 NOT BETWEEN ( NULL ) AND ( - col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN ( NULL ) AND 57
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7293
SELECT DISTINCT - 3 FROM tab2 AS cor0 WHERE NOT ( + col2 - - col1 ) NOT BETWEEN NULL AND - CAST( NULL AS SIGNED ) * - col0
----

skipif mysql # not compatible
query I rowsort label-7293
SELECT DISTINCT - 3 FROM tab2 AS cor0 WHERE NOT ( + col2 - - col1 ) NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER ) * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT + MAX( DISTINCT + 99 ) AS col2 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7294
SELECT + MAX ( DISTINCT + 99 ) AS col2 FROM tab2 AS cor0
----
99

query I rowsort
SELECT ( + col2 ) - - col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 49 ) BETWEEN ( - col0 ) AND + col1 + - col0 / + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) col2 FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT 34 * + col1 AS col1 FROM tab2 WHERE ( - col1 ) > ( col2 - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT ALL + MAX( - col0 ) + MIN( DISTINCT - col0 ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL + MAX ( - col0 ) + MIN ( DISTINCT - col0 ) AS col2 FROM tab2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT ALL COUNT( ALL - 51 ) + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7300
SELECT ALL COUNT ( ALL - 51 ) + COUNT ( * ) FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT - COUNT( * ) + + 41 col0 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7301
SELECT - COUNT ( * ) + + 41 col0 FROM tab2 AS cor0
----
38

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN 50 AND col2 - col1
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT ALL COUNT( * ) - + 21 col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col1 AND 65
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7303
SELECT ALL COUNT ( * ) - + 21 col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col1 AND 65
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT + COUNT( * ) + COUNT( * ) * 7 AS col2 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-7304
SELECT + COUNT ( * ) + COUNT ( * ) * 7 AS col2 FROM tab1 AS cor0
----
24

query I rowsort
SELECT + col0 + 46 * + col1 FROM tab1 cor0
----
2253
315
695

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7306
SELECT + 23 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN CAST( NULL AS DECIMAL ) AND ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-7306
SELECT + 23 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN CAST ( NULL AS REAL ) AND ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7307
SELECT DISTINCT ( col2 ) DIV col1 AS col0 FROM tab0 AS cor0
----
0
99

skipif mysql # not compatible
query I rowsort label-7307
SELECT DISTINCT ( col2 ) / col1 AS col0 FROM tab0 AS cor0
----
0
99

query I rowsort
SELECT + 68 * - col2 + col0 AS col1 FROM tab0 AS cor0
----
-3181
-593
-6635

query I rowsort
SELECT + ( + ( + col2 ) ) * + col1 + + 36 AS col1 FROM tab1 AS cor0
----
1380
3232
331

onlyif mysql # DIV for integer division: 
query I rowsort label-7310
SELECT DISTINCT 42 DIV col1 FROM tab0 AS cor0
----
0
2
42

skipif mysql # not compatible
query I rowsort label-7310
SELECT DISTINCT 42 / col1 FROM tab0 AS cor0
----
0
2
42

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 83 * 82 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * 4 + 82 * col2 AS col1 FROM tab1 AS cor0
----
4818
5388
7816

query I rowsort
SELECT - col2 + 3 AS col0 FROM tab2 AS cor0
----
-20
-37
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT ALL - - COUNT( * ) * + 74 AS col1 FROM tab2 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-7314
SELECT ALL - - COUNT ( * ) * + 74 AS col1 FROM tab2 AS cor0
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT - SUM( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7315
SELECT - SUM ( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT ALL + 75 + + COUNT( * ) FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-7316
SELECT ALL + 75 + + COUNT ( * ) FROM tab1
----
78

query I rowsort
SELECT DISTINCT 42 + + - 75 AS col1 FROM tab0
----
-33

query I rowsort
SELECT DISTINCT + col2 + - ( - col2 ) FROM tab0
----
198
20
94

query I rowsort
SELECT ALL - col1 * col0 + - col2 * 84 AS col1 FROM tab1
----
-5381
-8778
-9989

query I rowsort
SELECT ALL - col1 + 51 FROM tab1
----
37
4
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT ALL - ( + COUNT( * ) ) - + 33 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL - ( + COUNT ( * ) ) - + 33 FROM tab0
----
-36

query I rowsort
SELECT DISTINCT + 80 + - col0 AS col1 FROM tab1
----
-11
-5
29

query I rowsort
SELECT ALL + 74 * + + 18 AS col2 FROM tab2
----
1332
1332
1332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7324
SELECT CAST( COUNT( 11 ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7324
SELECT CAST ( COUNT ( 11 ) AS INTEGER ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7325
SELECT ALL - CAST( - - col0 AS SIGNED ) * 22 FROM tab2 AS cor0
----
-1012
-1408
-1650

skipif mysql # not compatible
query I rowsort label-7325
SELECT ALL - CAST ( - - col0 AS INTEGER ) * 22 FROM tab2 AS cor0
----
-1012
-1408
-1650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7326
SELECT + 12 * + CAST( - col0 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
28152
59136
60300

skipif mysql # not compatible
query I rowsort label-7326
SELECT + 12 * + CAST ( - col0 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
28152
59136
60300

query I rowsort
SELECT DISTINCT - col1 * ( 60 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1260
-4860
-60

query I rowsort
SELECT + + 98 * + col1 + 62 AS col2 FROM tab0 AS cor0
----
160
2120
8000

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IN ( - 86 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + + 13 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 33 * - col0 AS col1 FROM tab0
----
-2871
-3201
-495

query I rowsort
SELECT DISTINCT col0 - - 74 FROM tab2 WHERE NOT + col2 * col0 >= ( 56 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE + 88 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT ALL COUNT( - col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL COUNT ( - col0 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7335
SELECT CAST( 26 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-7335
SELECT CAST ( 26 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
26
26
26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 25 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 94 + col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( - 53 ) AND + col1 + 33
----

query II rowsort
SELECT - + col2, col2 * 55 AS col0 FROM tab2 AS cor0
----
-23
1265
-40
2200
-58
3190

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 45 + - - col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7340
SELECT DISTINCT - col2 DIV + - 94 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7340
SELECT DISTINCT - col2 / + - 94 FROM tab2 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 + - + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN 96 / - 54 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT + COUNT( ALL - 17 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7343
SELECT + COUNT ( ALL - 17 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT 28 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7345
SELECT ALL ( 57 ) * + COUNT( * ) - + - COUNT( * ) + COUNT( * ) + + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7345
SELECT ALL ( 57 ) * + COUNT ( * ) - + - COUNT ( * ) + COUNT ( * ) + + CAST ( NULL AS REAL ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT ALL - MAX( DISTINCT 55 ) AS col1 FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-7346
SELECT ALL - MAX ( DISTINCT 55 ) AS col1 FROM tab0
----
-55

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col1 <= ( - 5 + 44 )
----
15
81
47

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * + - col1 + - col0 * - col0 < ( + 76 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7349
SELECT CAST( + 64 AS SIGNED ) FROM tab1
----
64
64
64

skipif mysql # not compatible
query I rowsort label-7349
SELECT CAST ( + 64 AS INTEGER ) FROM tab1
----
64
64
64

query I rowsort
SELECT DISTINCT + col2 * col1 + col0 FROM tab1
----
1395
3287
380

onlyif mysql # DIV for integer division: 
query I rowsort label-7351
SELECT DISTINCT 54 * 33 DIV + 15 FROM tab0
----
118

skipif mysql # not compatible
query I rowsort label-7351
SELECT DISTINCT 54 * 33 / + 15 FROM tab0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT ALL ( - COUNT( * ) ) * + COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL ( - COUNT ( * ) ) * + COUNT ( * ) FROM tab2
----
-9

query I rowsort
SELECT + col0 * - 45 FROM tab1
----
-2295
-3825
-4095

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 27 col2 FROM tab2
----
1242
1728
2025

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - - 59 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT DISTINCT + - COUNT( ALL + + col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7356
SELECT DISTINCT + - COUNT ( ALL + + col0 ) FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 col2 FROM tab1 cor0
----
15
15
15

query I rowsort
SELECT ALL + col0 + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( col0 / - ( + col0 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7359
SELECT * FROM tab1 WHERE ( + CAST( col2 AS SIGNED ) ) = NULL
----

skipif mysql # not compatible
query III rowsort label-7359
SELECT * FROM tab1 WHERE ( + CAST ( col2 AS INTEGER ) ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT ALL + COUNT( * ) - + - MIN( ALL + - 29 ) AS col0 FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL + COUNT ( * ) - + - MIN ( ALL + - 29 ) AS col0 FROM tab1
----
-26

query I rowsort
SELECT DISTINCT + col1 - 87 FROM tab1
----
-40
-73
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT DISTINCT + MAX( + col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7362
SELECT DISTINCT + MAX ( + col0 ) FROM tab2 AS cor0
----
75

query II rowsort
SELECT ALL - col0, 59 AS col1 FROM tab2 cor0
----
-46
59
-64
59
-75
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT - 58 * - + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + 77 IS NOT NULL
----
174

skipif mysql # not compatible
query I rowsort label-7364
SELECT - 58 * - + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + 77 IS NOT NULL
----
174

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 / + 50 NOT IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7366
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( - + col0 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7366
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( - + col0 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7367
SELECT CAST( + + 56 AS SIGNED ) * + col0 + + col1 FROM tab1 AS cor0
----
2870
4765
5143

skipif mysql # not compatible
query I rowsort label-7367
SELECT CAST ( + + 56 AS INTEGER ) * + col0 + + col1 FROM tab1 AS cor0
----
2870
4765
5143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7368
SELECT - - MIN( - + ( + col2 ) ) DIV + 55 - MAX( + col0 ) FROM tab0 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-7368
SELECT - - MIN ( - + ( + col2 ) ) / + 55 - MAX ( + col0 ) FROM tab0 AS cor0
----
-98

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT - - col0 NOT BETWEEN - 42 AND NULL AND ( col2 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT - SUM( + + 54 ) + - COUNT( * ) AS col0 FROM tab2
----
-165

skipif mysql # not compatible
query I rowsort label-7370
SELECT - SUM ( + + 54 ) + - COUNT ( * ) AS col0 FROM tab2
----
-165

onlyif mysql # aggregate syntax: 
query II rowsort label-7371
SELECT DISTINCT 10 AS col0, COUNT( * ) FROM tab1
----
10
3

skipif mysql # not compatible
query II rowsort label-7371
SELECT DISTINCT 10 AS col0, COUNT ( * ) FROM tab1
----
10
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 >= ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7373
SELECT - ( + + CAST( - 69 AS SIGNED ) ) DIV col1 FROM tab1
----
1
13
4

skipif mysql # not compatible
query I rowsort label-7373
SELECT - ( + + CAST ( - 69 AS INTEGER ) ) / col1 FROM tab1
----
1
13
4

query I rowsort
SELECT DISTINCT col1 * - ( + col0 ) FROM tab2
----
-2346
-4928
-5025

query II rowsort
SELECT ALL 25 * - col1 AS col0, col2 AS col1 FROM tab1
----
-1175
68
-125
59
-350
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 6 IS NOT NULL
----

query I rowsort
SELECT ALL + + ( + 27 ) AS col1 FROM tab1 AS cor0
----
27
27
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7378
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + 44 FROM tab0 AS cor0 WHERE - col2 - + + 27 NOT BETWEEN + col0 + - 9 AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7378
SELECT DISTINCT CAST ( NULL AS REAL ) + + 44 FROM tab0 AS cor0 WHERE - col2 - + + 27 NOT BETWEEN + col0 + - 9 AND col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7379
SELECT ALL - col0 AS col2 FROM tab1 WHERE NOT NULL = - - 58 / - CAST( + + col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7379
SELECT ALL - col0 AS col2 FROM tab1 WHERE NOT NULL = - - 58 / - CAST ( + + col0 AS INTEGER )
----

query I rowsort
SELECT DISTINCT col2 * + + 3 * - col2 FROM tab1
----
-10443
-13872
-27648

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7381
SELECT + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-7381
SELECT + CAST ( NULL AS REAL ) AS col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - col2 )
----

query I rowsort
SELECT ALL - 46 AS col1 FROM tab0 cor0
----
-46
-46
-46

query I rowsort
SELECT 60 + - + col0 AS col1 FROM tab1 AS cor0
----
-25
-31
9

query I rowsort
SELECT DISTINCT - 56 + + 72 * - col1 - 20 AS col0 FROM tab1 cor0 WHERE NULL NOT BETWEEN + 97 AND - - col0
----

query I rowsort
SELECT + col1 + + col2 - + - col2 + - col0 * - 65 + + col1 AS col1 FROM tab1 AS cor0
----
3535
5653
6145

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT ALL - - ( - COUNT( * ) ) FROM tab1 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7387
SELECT ALL - - ( - COUNT ( * ) ) FROM tab1 WHERE + col1 IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7388
SELECT + 42 + + - 86 DIV + MIN( DISTINCT ( + col2 ) ) FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-7388
SELECT + 42 + + - 86 / + MIN ( DISTINCT ( + col2 ) ) FROM tab0
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-7389
SELECT DISTINCT - 32, - SUM( ALL ( 53 ) ) AS col0 FROM tab1
----
-32
-159

skipif mysql # not compatible
query II rowsort label-7389
SELECT DISTINCT - 32, - SUM ( ALL ( 53 ) ) AS col0 FROM tab1
----
-32
-159

query I rowsort
SELECT ALL col0 + + 44 FROM tab0
----
131
141
59

query I rowsort
SELECT DISTINCT - 49 * - 66 + - - col0 * - ( - + 84 ) * - col0 FROM tab0
----
-15666
-632562
-787122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7392
SELECT ALL + COUNT( * ) DIV + 85 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7392
SELECT ALL + COUNT ( * ) / + 85 FROM tab2
----
0

query I rowsort
SELECT ALL col0 - + col2 AS col2 FROM tab2 WHERE + col0 IS NOT NULL
----
17
23
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 86 + + + 68 + + + ( - + ( - 51 ) ) col2 FROM tab2
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-7395
SELECT DISTINCT + COUNT( * ) col1, + 80 AS col2 FROM tab1
----
3
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7395
SELECT DISTINCT + COUNT ( * ) col1, + 80 AS col2 FROM tab1
----
3
80

query II rowsort
SELECT DISTINCT + col0 AS col0, col2 * col2 AS col2 FROM tab1
----
51
9216
85
3481
91
4624

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > + col1 * col0 * - + 45
----

query I rowsort
SELECT ALL + + col1 - - - 56 + + - col2 FROM tab1 AS cor0
----
-110
-138
-77

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col1 * + 19 + + col2 / - + col0 BETWEEN - col0 + + + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7400
SELECT + - CAST( + 80 AS SIGNED ) col1 FROM tab0 AS cor0
----
-80
-80
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7400
SELECT + - CAST ( + 80 AS INTEGER ) col1 FROM tab0 AS cor0
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT DISTINCT + COUNT( * ) * - COUNT( 61 ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7401
SELECT DISTINCT + COUNT ( * ) * - COUNT ( 61 ) FROM tab0 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * - col0 * - 49 col1, + col0 * 7 AS col0 FROM tab0
----
-4753
679
-59535
105
-89523
609

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 + col2 NOT IN ( + + col1, + 89 - + col1 + 52 / 18 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT NULL IN ( - 39 )
----
0

skipif mysql # not compatible
query I rowsort label-7404
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT NULL IN ( - 39 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7405
SELECT DISTINCT COUNT( * ) * - + 22 AS col2, AVG ( + - col1 ) FROM tab0 WHERE + 64 > NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7405
SELECT DISTINCT COUNT ( * ) * - + 22 AS col2, AVG ( + - col1 ) FROM tab0 WHERE + 64 > NULL
----
0
NULL

query I rowsort
SELECT + ( - - 14 ) FROM tab2
----
14
14
14

query I rowsort
SELECT - ( - col0 ) FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 = 95 * 17 + + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7409
SELECT + + CAST( COUNT( * ) AS SIGNED ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7409
SELECT + + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7410
SELECT - COUNT( * ) AS col0, - 72 FROM tab0 AS cor0
----
-3
-72

skipif mysql # not compatible
query II rowsort label-7410
SELECT - COUNT ( * ) AS col0, - 72 FROM tab0 AS cor0
----
-3
-72

query I rowsort
SELECT DISTINCT - ( - - 42 ) + - + col1 AS col1 FROM tab0 AS cor0 WHERE NULL >= col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 64 col0 FROM tab2 AS cor0
----
3264
4288
4928

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT COUNT( * ) * - 54 col0 FROM tab2
----
-162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7413
SELECT COUNT ( * ) * - 54 col0 FROM tab2
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT DISTINCT + + COUNT( - 60 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7414
SELECT DISTINCT + + COUNT ( - 60 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7415
SELECT DISTINCT - + MAX( - + 82 ) AS col1, COUNT( * ) DIV - + 85 AS col0 FROM tab2 AS cor0
----
82
0

skipif mysql # not compatible
query II rowsort label-7415
SELECT DISTINCT - + MAX ( - + 82 ) AS col1, COUNT ( * ) / - + 85 AS col0 FROM tab2 AS cor0
----
82
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 / col0 * - col0 + - 27 * - + col1 * - + col1 <> + ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7417
SELECT DISTINCT 99 * 90 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7417
SELECT DISTINCT 99 * 90 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7418
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) - + SUM( - col0 ) FROM tab2 AS cor0 WHERE ( + col2 ) IS NOT NULL
----
188

skipif mysql # not compatible
query I rowsort label-7418
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) - + SUM ( - col0 ) FROM tab2 AS cor0 WHERE ( + col2 ) IS NOT NULL
----
188

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 NOT IN ( - 48 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE - 68 <> NULL
----

query I rowsort
SELECT DISTINCT - col0 * + 23 + + ( - col2 ) AS col2 FROM tab1
----
-1269
-2014
-2161

query I rowsort
SELECT - 40 * - col0 FROM tab2
----
1840
2560
3000

query I rowsort
SELECT - 58 * + col0 AS col0 FROM tab2
----
-2668
-3712
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7424
SELECT DISTINCT - col2 + CAST( + 74 AS SIGNED ) FROM tab2
----
16
34
51

skipif mysql # not compatible
query I rowsort label-7424
SELECT DISTINCT - col2 + CAST ( + 74 AS INTEGER ) FROM tab2
----
16
34
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT COUNT( * ) + 7 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-7425
SELECT COUNT ( * ) + 7 FROM tab0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 + - ( + col2 ) col1 FROM tab2
----
-1081
-2600
-4408

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT MAX( DISTINCT col1 ) + + 46 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-7427
SELECT MAX ( DISTINCT col1 ) + + 46 FROM tab1
----
93

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col2 >= + ( + col2 ) * - + 34
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 + col0 + 63 + - col1 * - - 35 col1 FROM tab1 cor0
----
-1535
-420
-71

query I rowsort
SELECT DISTINCT - + ( - col1 ) + col2 AS col2 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7431
SELECT + CAST( NULL AS SIGNED ) * 80 FROM tab2 AS cor0 WHERE NULL < - col2
----

skipif mysql # not compatible
query I rowsort label-7431
SELECT + CAST ( NULL AS INTEGER ) * 80 FROM tab2 AS cor0 WHERE NULL < - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7432
SELECT ALL + CAST( NULL AS DECIMAL ) + - 14 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7432
SELECT ALL + CAST ( NULL AS REAL ) + - 14 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7433
SELECT col2 DIV + + 56 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7433
SELECT col2 / + + 56 FROM tab0
----
0
0
1

query I rowsort
SELECT - + 98 - + + col1 AS col0 FROM tab2 AS cor0
----
-149
-165
-175

query I rowsort
SELECT - ( 73 ) - + col2 FROM tab0 AS cor0
----
-120
-172
-83

query II rowsort
SELECT ALL + + col0, 72 AS col1 FROM tab0 AS cor0
----
15
72
87
72
97
72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT ( + col0 ) IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 33 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + 9
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 - 91 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT MIN( - + col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7440
SELECT MIN ( - + col0 ) FROM tab1 AS cor0
----
-91

query II rowsort
SELECT ALL + + 1 + + 44 * + ( col0 ) AS col2, col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND - - 61
----

query I rowsort
SELECT col2 * col0 * - + 45 AS col0 FROM tab0
----
-31725
-39150
-432135

onlyif mysql # DIV for integer division: 
query II rowsort label-7443
SELECT col1 DIV col0, col2 FROM tab0
----
0
10
0
99
5
47

skipif mysql # not compatible
query II rowsort label-7443
SELECT col1 / col0, col2 FROM tab0
----
0
10
0
99
5
47

query I rowsort
SELECT DISTINCT - ( + + col1 ) AS col1 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7445
SELECT CAST( NULL AS SIGNED ) / 89 AS col0, - col0 AS col2 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-7445
SELECT CAST ( NULL AS INTEGER ) / 89 AS col0, - col0 AS col2 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 + - col0 - col1 > NULL AND NOT - ( - col0 ) + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT DISTINCT MIN( ALL + col2 ) * - - SUM( col2 ) FROM tab0 AS cor0
----
1560

skipif mysql # not compatible
query I rowsort label-7447
SELECT DISTINCT MIN ( ALL + col2 ) * - - SUM ( col2 ) FROM tab0 AS cor0
----
1560

query II rowsort
SELECT + col1, 31 - - 94 AS col2 FROM tab2
----
51
125
67
125
77
125

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT COUNT( * ) * + MAX( + 78 ) FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-7449
SELECT COUNT ( * ) * + MAX ( + 78 ) FROM tab0
----
234

query I rowsort
SELECT ALL + 65 * col0 * + col1 AS col2 FROM tab0 AS cor0
----
118755
6305
78975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( 74 ) * + 88 col1 FROM tab0 AS cor0
----
-6512
-6512
-6512

query I rowsort
SELECT - + col1 + + 68 FROM tab0 AS cor0
----
-13
47
67

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE col1 + 63 - + col2 = col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 / - 70 * + - 33 BETWEEN + - 25 AND NULL
----

query I rowsort
SELECT 34 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 + + col2 + - 35 FROM tab0 AS cor0
----
-15
163
59

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT ALL 43 * - col0 AS col1 FROM tab1 WHERE + - col2 * - col1 + - + col0 BETWEEN - - col1 / - col2 AND + 52
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 8 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT 14 * - COUNT( * ) FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-7460
SELECT 14 * - COUNT ( * ) FROM tab0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT ALL + + COUNT( * ) * 95 - - COUNT( * ) FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL + + COUNT ( * ) * 95 - - COUNT ( * ) FROM tab1 AS cor0
----
288

query I rowsort
SELECT DISTINCT - - 10 * + col2 AS col2 FROM tab1 AS cor0
----
590
680
960

query I rowsort
SELECT DISTINCT 93 * - - ( - 75 ) FROM tab0 AS cor0
----
-6975

query I rowsort
SELECT + - col0 - col0 - col0 AS col1 FROM tab1 AS cor0
----
-153
-255
-273

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 ) <= NULL
----

query I rowsort
SELECT ALL ( - col1 ) + - col2 AS col2 FROM tab0
----
-100
-128
-31

query I rowsort
SELECT DISTINCT 58 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * + + 97 NOT IN ( + col2, 65, + - 20 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 col0 FROM tab1 AS cor0
----
87
87
87

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = 62 * - col0 - + - col0 * 81 + + + 4 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7471
SELECT + 63 * + col0 + + - CAST( + + 43 AS SIGNED ) FROM tab2 AS cor0
----
2855
3989
4682

skipif mysql # not compatible
query I rowsort label-7471
SELECT + 63 * + col0 + + - CAST ( + + 43 AS INTEGER ) FROM tab2 AS cor0
----
2855
3989
4682

query I rowsort
SELECT ALL + + 39 FROM tab1 AS cor0
----
39
39
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 14 col0 FROM tab2 AS cor0
----
14

query II rowsort
SELECT ALL col1, + col0 * - 40 FROM tab2
----
51
-1840
67
-3000
77
-2560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7475
SELECT DISTINCT + + col1 * + CAST( NULL AS SIGNED ) + + col1 * col0 + + col1 + + 99 FROM tab1 WHERE NOT - col2 * 26 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7475
SELECT DISTINCT + + col1 * + CAST ( NULL AS INTEGER ) + + col1 * col0 + + col1 + + 99 FROM tab1 WHERE NOT - col2 * 26 IS NULL
----
NULL

query I rowsort
SELECT 78 FROM tab2 WHERE NOT ( ( NULL ) IS NOT NULL )
----
78
78
78

query II rowsort
SELECT ALL col2 AS col0, col2 - - - col1 - + + col1 * - - 45 FROM tab0
----
10
-956
47
-3679
99
53

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT 51 * COUNT( * ) col2 FROM tab2
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7479
SELECT 51 * COUNT ( * ) col2 FROM tab2
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-7480
SELECT col0 DIV - + col2 AS col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7480
SELECT col0 / - + col2 AS col0 FROM tab1
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7481
SELECT ( - - ( + + 41 ) ) DIV + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7481
SELECT ( - - ( + + 41 ) ) / + col0 FROM tab1
----
0
0
0

query I rowsort
SELECT 18 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN - + ( + + col0 ) * col1 - + col2 AND + col1
----
18
18
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7483
SELECT DISTINCT - CAST( - 41 AS SIGNED ) FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-7483
SELECT DISTINCT - CAST ( - 41 AS INTEGER ) FROM tab0 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT SUM( ALL - - col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7484
SELECT SUM ( ALL - - col1 ) FROM tab1 AS cor0
----
66

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col1 * + 98 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7486
SELECT ALL - ( CAST( NULL AS SIGNED ) ) + - 88 + - ( 37 ) + + col1 * 31 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7486
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) + - 88 + - ( 37 ) + + col1 * 31 col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7487
SELECT 89 DIV + col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7487
SELECT 89 / + col2 FROM tab2
----
1
2
3

query I rowsort
SELECT DISTINCT col2 * 77 + - ( col2 ) AS col1 FROM tab2 AS cor0
----
1748
3040
4408

query I rowsort
SELECT ALL + + 72 * - - col2 FROM tab2 AS cor0
----
1656
2880
4176

query I rowsort
SELECT ALL 35 * - ( + col0 ) FROM tab1 AS cor0
----
-1785
-2975
-3185

query I rowsort
SELECT ALL - 92 + - 45 * ( - + 48 ) * - - 41 + - + col1 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7492
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( + col0 AS SIGNED ) BETWEEN NULL AND - - col1
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-7492
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( + col0 AS INTEGER ) BETWEEN NULL AND - - col1
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7493
SELECT ALL MAX( + - CAST( NULL AS SIGNED ) ) * 59 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7493
SELECT ALL MAX ( + - CAST ( NULL AS INTEGER ) ) * 59 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col1 - + - col0 + + - 29 AS col0 FROM tab1
----
109
36
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7495
SELECT - CAST( NULL AS DECIMAL ) - + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7495
SELECT - CAST ( NULL AS REAL ) - + COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7496
SELECT col1 / + + CAST( + col0 AS SIGNED ) * - 41 / + CAST( NULL AS SIGNED ) - + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7496
SELECT col1 / + + CAST ( + col0 AS INTEGER ) * - 41 / + CAST ( NULL AS INTEGER ) - + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 80 + col0 FROM tab0
----
167
177
95

query I rowsort
SELECT ALL ( - col1 ) + 72 AS col2 FROM tab2
----
-5
21
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT COUNT( * ) + + COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7499
SELECT COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0
----
6

query I rowsort
SELECT col2 + + - ( + col0 ) + - - col1 FROM tab2
----
28
50
53

query I rowsort
SELECT col2 + + 46 AS col1 FROM tab0
----
145
56
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7502
SELECT + - col1 * + CAST( - + col1 AS SIGNED ) * + col1 + col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7502
SELECT + - col1 * + CAST ( - + col1 AS INTEGER ) * + col1 + col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7503
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + + CAST( + - col2 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7503
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + + CAST ( + - col2 AS REAL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7504
SELECT + + CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE - 85 * + 47 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7504
SELECT + + CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE - 85 * + 47 IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 + + 33 + - 54 * - col1 IS NULL
----

query II rowsort
SELECT ALL col2 AS col0, col1 AS col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT DISTINCT - 65 + + col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - + 38 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - 88 AS col2, col2 FROM tab1 AS cor0
----
-88
59
-88
68
-88
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT ALL - MIN( col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-7510
SELECT ALL - MIN ( col2 ) FROM tab0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 ) <= - ( - - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( - ( col1 ) ) * + 54 * - + col2 FROM tab0
----
11340
205578
5346

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 7 IS NOT NULL
----

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT DISTINCT ( - - MAX( - 40 ) ) AS col0 FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-7515
SELECT DISTINCT ( - - MAX ( - 40 ) ) AS col0 FROM tab0 AS cor0
----
-40

query I rowsort
SELECT + + 54 AS col0 FROM tab1 AS cor0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT + SUM( ALL - + 73 ) FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-7517
SELECT + SUM ( ALL - + 73 ) FROM tab1
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT MAX( DISTINCT col2 ) col1 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7518
SELECT MAX ( DISTINCT col2 ) col1 FROM tab0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7519
SELECT SUM( + CAST( + + col2 AS SIGNED ) ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-7519
SELECT SUM ( + CAST ( + + col2 AS INTEGER ) ) FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT DISTINCT - COUNT( * ) col1 FROM tab0 WHERE - col1 = ( - - col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7520
SELECT DISTINCT - COUNT ( * ) col1 FROM tab0 WHERE - col1 = ( - - col0 )
----
0

query II rowsort
SELECT col1 AS col0, - col1 FROM tab2
----
51
-51
67
-67
77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7522
SELECT ALL * FROM tab1 WHERE + 86 = - CAST( - col0 AS SIGNED ) * - 32 - + col0
----

skipif mysql # not compatible
query III rowsort label-7522
SELECT ALL * FROM tab1 WHERE + 86 = - CAST ( - col0 AS INTEGER ) * - 32 - + col0
----

query I rowsort
SELECT - 33 + col2 AS col2 FROM tab2 AS cor0
----
-10
25
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7524
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT ALL + + 3 AS col2 FROM tab2 AS cor0
----
3
3
3

query I rowsort
SELECT - - col1 * col2 + col0 + + - col2 FROM tab1 AS cor0
----
1299
321
3219

query I rowsort
SELECT DISTINCT col0 + - - 55 FROM tab0 AS cor0
----
142
152
70

query II rowsort
SELECT ALL col0, - 47 AS col1 FROM tab1 AS cor0
----
51
-47
85
-47
91
-47

query I rowsort
SELECT ALL + col2 + - - col2 AS col0 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT 73 * - col1 * + col0 AS col2 FROM tab0
----
-133371
-7081
-88695

query III rowsort
SELECT * FROM tab1 WHERE ( 69 IN ( - col0, col2 / - col2, 16 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( 87 ) IS NULL
----

query I rowsort
SELECT + col0 - - col0 * + col2 AS col0 FROM tab2 AS cor0
----
1104
2624
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT ALL 74 + - 65 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
269

skipif mysql # not compatible
query I rowsort label-7534
SELECT ALL 74 + - 65 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
269

query I rowsort
SELECT ALL 98 AS col0 FROM tab1 cor0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT ( - COUNT( ( - col1 ) ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7536
SELECT ( - COUNT ( ( - col1 ) ) ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7537
SELECT COUNT( * ) AS col0, + 75 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7537
SELECT COUNT ( * ) AS col0, + 75 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7538
SELECT - + 96 DIV - + 43 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7538
SELECT - + 96 / - + 43 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT + - 85 AS col2 FROM tab2 AS cor0
----
-85
-85
-85

query I rowsort
SELECT ALL ( 25 ) * + col0 AS col2 FROM tab0 AS cor0
----
2175
2425
375

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT ALL COUNT( - col2 ) * 38 FROM tab0 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL COUNT ( - col2 ) * 38 FROM tab0 AS cor0
----
114

query I rowsort
SELECT col2 * + 69 FROM tab2 AS cor0
----
1587
2760
4002

query II rowsort
SELECT ALL col1 AS col1, + col1 FROM tab1
----
14
14
47
47
5
5

query I rowsort
SELECT ALL + col0 + 58 FROM tab1
----
109
143
149

query I rowsort
SELECT DISTINCT + ( col1 ) * + 52 AS col2 FROM tab0
----
1092
4212
52

query III rowsort
SELECT * FROM tab0 WHERE NOT - + ( 80 ) < 83
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7547
SELECT ALL + 15 DIV + COUNT( * ) AS col0 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-7547
SELECT ALL + 15 / + COUNT ( * ) AS col0 FROM tab2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT - - COUNT( * ) * + - 67 FROM tab0 cor0
----
-201

skipif mysql # not compatible
query I rowsort label-7548
SELECT - - COUNT ( * ) * + - 67 FROM tab0 cor0
----
-201

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 26 <> 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT DISTINCT - COUNT( + col2 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7550
SELECT DISTINCT - COUNT ( + col2 ) FROM tab2 cor0
----
-3

query I rowsort
SELECT col2 + + 38 AS col0 FROM tab1 AS cor0
----
106
134
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT COUNT( * ) + + MIN( - + col1 ) + + COUNT( * ) * 22 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-7552
SELECT COUNT ( * ) + + MIN ( - + col1 ) + + COUNT ( * ) * 22 FROM tab1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7553
SELECT + AVG ( DISTINCT + 46 ) AS col2 FROM tab0 WHERE + - 34 BETWEEN ( + col2 ) * - col1 AND CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7553
SELECT + AVG ( DISTINCT + 46 ) AS col2 FROM tab0 WHERE + - 34 BETWEEN ( + col2 ) * - col1 AND CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT DISTINCT ( - COUNT( * ) ) col2 FROM tab1, tab1 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7554
SELECT DISTINCT ( - COUNT ( * ) ) col2 FROM tab1, tab1 AS cor0
----
-9

query I rowsort
SELECT DISTINCT 19 - + 41 FROM tab2 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT ALL - MAX( - + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7556
SELECT ALL - MAX ( - + col2 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE + 34 IS NOT NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 77 - + + col2 + + col2 col1 FROM tab1 cor0
----
-77
-77
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-7559
SELECT + col0 - + + ( - + col1 ) DIV col2 AS col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7559
SELECT + col0 - + + ( - + col1 ) / col2 AS col2 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7560
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7560
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0
----
3

query I rowsort
SELECT col2 * + col0 + col0 - col2 * + col1 + - col0 + ( + 5 ) FROM tab2
----
-110
-515
469

query I rowsort
SELECT DISTINCT + col2 + - 91 FROM tab0
----
-44
-81
8

query III rowsort
SELECT * FROM tab1 WHERE + + 93 + + - col0 NOT BETWEEN NULL AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( col1 ) + 88 FROM tab2
----
139
155
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7565
SELECT ALL - CAST( + + col2 AS SIGNED ) + - - col0 * - col0 FROM tab2
----
-2139
-4136
-5683

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL - CAST ( + + col2 AS INTEGER ) + - - col0 * - col0 FROM tab2
----
-2139
-4136
-5683

query I rowsort
SELECT - col1 + - 37 FROM tab1
----
-42
-51
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE - + 23 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7567
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE - + 23 IS NOT NULL
----
-3

query I rowsort
SELECT ALL - 22 FROM tab1 WHERE NULL IS NULL
----
-22
-22
-22

query II rowsort
SELECT - 17, col0 FROM tab2
----
-17
46
-17
64
-17
75

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL >= - ( + 46 )
----

query I rowsort
SELECT DISTINCT - 10 * + - 1 FROM tab1
----
10

query I rowsort
SELECT DISTINCT + ( - col1 ) FROM tab0 WHERE NOT ( - col1 ) IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT ALL + MAX( ALL + 94 ) AS col0 FROM tab0 cor0
----
94

skipif mysql # not compatible
query I rowsort label-7573
SELECT ALL + MAX ( ALL + 94 ) AS col0 FROM tab0 cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT ALL + 27 * + MAX( DISTINCT + + col2 ) FROM tab1 cor0
----
2592

skipif mysql # not compatible
query I rowsort label-7574
SELECT ALL + 27 * + MAX ( DISTINCT + + col2 ) FROM tab1 cor0
----
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT + COUNT( - 25 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7575
SELECT + COUNT ( - 25 ) FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7576
SELECT DISTINCT col2 * + + col0 * - col1 * - - col1 - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7576
SELECT DISTINCT col2 * + + col0 * - col1 * - - col1 - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT DISTINCT + MAX( DISTINCT - - 91 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-7577
SELECT DISTINCT + MAX ( DISTINCT - - 91 ) FROM tab1
----
91

query I rowsort
SELECT ALL - 45 + - - col1 AS col1 FROM tab2 WHERE NOT NULL < - 45
----

query I rowsort
SELECT ALL - - ( + 71 ) AS col0 FROM tab0 AS cor0
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7580
SELECT - CAST( NULL AS SIGNED ) * - - ( - col2 ) * - 58 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7580
SELECT - CAST ( NULL AS INTEGER ) * - - ( - col2 ) * - 58 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7581
SELECT 67 * + + col0 + + CAST( NULL AS SIGNED ) - + - col2 + - + col2 * - 43 - 5 * - - col0 * - 6 / col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7581
SELECT 67 * + + col0 + + CAST ( NULL AS INTEGER ) - + - col2 + - + col2 * - 43 - 5 * - - col0 * - 6 / col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT - SUM( ALL - 61 ) AS col2 FROM tab0 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-7582
SELECT - SUM ( ALL - 61 ) AS col2 FROM tab0 AS cor0
----
183

query I rowsort
SELECT 63 AS col2 FROM tab1 cor0
----
63
63
63

query III rowsort
SELECT * FROM tab1 WHERE - + col2 * col2 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7585
SELECT DISTINCT + col0 DIV + - col2 + + 95 AS col1 FROM tab1
----
94
95

skipif mysql # not compatible
query I rowsort label-7585
SELECT DISTINCT + col0 / + - col2 + + 95 AS col1 FROM tab1
----
94
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT - COUNT( * ) + 28 AS col1 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-7586
SELECT - COUNT ( * ) + 28 AS col1 FROM tab2 AS cor0
----
25

query II rowsort
SELECT ALL 40, + col2 FROM tab1 AS cor0
----
40
59
40
68
40
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN NULL AND 3 * col0 * - 41
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT + COUNT( * ) + + ( - COUNT( * ) ) - - SUM( col2 ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-7589
SELECT + COUNT ( * ) + + ( - COUNT ( * ) ) - - SUM ( col2 ) FROM tab2 cor0
----
121

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7590
SELECT ALL - col1 - - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7590
SELECT ALL - col1 - - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT MAX( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7591
SELECT MAX ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
77

query I rowsort
SELECT + - col1 * - - 8 FROM tab2 AS cor0
----
-408
-536
-616

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7593
SELECT - + CAST( - - col0 AS SIGNED ) DIV ( + - 4 ) + col2 + - col1, col1 FROM tab1 AS cor0
----
43
47
75
5
94
14

skipif mysql # not compatible
query II rowsort label-7593
SELECT - + CAST ( - - col0 AS INTEGER ) / ( + - 4 ) + col2 + - col1, col1 FROM tab1 AS cor0
----
43
47
75
5
94
14

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL NOT BETWEEN NULL AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7595
SELECT DISTINCT + col1 DIV col2 * - col1 * - - col1 AS col0 FROM tab2
----
-4489
-5202
-5929

skipif mysql # not compatible
query I rowsort label-7595
SELECT DISTINCT + col1 / col2 * - col1 * - - col1 AS col0 FROM tab2
----
-4489
-5202
-5929

onlyif mysql # aggregate syntax: 
query II rowsort label-7596
SELECT - 38 * + 30 col0, COUNT( * ) FROM tab2
----
-1140
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7596
SELECT - 38 * + 30 col0, COUNT ( * ) FROM tab2
----
-1140
3

query I rowsort
SELECT DISTINCT - 1 * - + 80 AS col1 FROM tab2 WHERE + 85 IS NOT NULL
----
80

query I rowsort
SELECT + ( 92 ) AS col1 FROM tab2
----
92
92
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7599
SELECT - CAST( col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7599
SELECT - CAST ( col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT DISTINCT - ( MAX( ALL + + 20 ) ) AS col0 FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-7600
SELECT DISTINCT - ( MAX ( ALL + + 20 ) ) AS col0 FROM tab0 AS cor0
----
-20

query I rowsort
SELECT ALL + - 90 AS col2 FROM tab1 AS cor0
----
-90
-90
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7602
SELECT - + col0 - - col0 FROM tab0 AS cor0 WHERE NOT NULL <= CAST( - ( col1 ) AS SIGNED ) * - col2 * col2
----

skipif mysql # not compatible
query I rowsort label-7602
SELECT - + col0 - - col0 FROM tab0 AS cor0 WHERE NOT NULL <= CAST ( - ( col1 ) AS INTEGER ) * - col2 * col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7603
SELECT ALL + 75 * - - 72, - COUNT( * ) AS col1 FROM tab2, tab1 AS cor0
----
5400
-9

skipif mysql # not compatible
query II rowsort label-7603
SELECT ALL + 75 * - - 72, - COUNT ( * ) AS col1 FROM tab2, tab1 AS cor0
----
5400
-9

query III rowsort
SELECT * FROM tab0 WHERE NOT 3 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 61 AS col0, 48 + + col1 FROM tab2
----
61
115
61
125
61
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 col2 FROM tab1 cor0
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT MIN( + col0 ) AS col1 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-7607
SELECT MIN ( + col0 ) AS col1 FROM tab2 cor0
----
46

query I rowsort
SELECT + + 28 * - + col2 + - 27 FROM tab0 AS cor0
----
-1343
-2799
-307

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT ALL - SUM( - col2 ) * 39 + 21 FROM tab0 AS cor0
----
6105

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL - SUM ( - col2 ) * 39 + 21 FROM tab0 AS cor0
----
6105

query I rowsort
SELECT DISTINCT + + col2 * 82 AS col2 FROM tab0 AS cor0
----
3854
8118
820

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL = ( NULL )
----

query I rowsort
SELECT ALL - 65 + col2 AS col2 FROM tab1 AS cor0
----
-6
3
31

query II rowsort
SELECT DISTINCT - col1 AS col1, 83 FROM tab2 AS cor0
----
-51
83
-67
83
-77
83

query I rowsort
SELECT ALL - - col1 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7615
SELECT - CAST( - COUNT( + col2 ) AS SIGNED ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7615
SELECT - CAST ( - COUNT ( + col2 ) AS INTEGER ) AS col2 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 92 * + - ( + col0 ) col2, 74 FROM tab0 WHERE NULL IS NULL
----
-1380
74
-8004
74
-8924
74

query I rowsort
SELECT + 94 * - col0 FROM tab1
----
-4794
-7990
-8554

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT - MAX( - col1 ) * + 79 AS col2 FROM tab2
----
4029

skipif mysql # not compatible
query I rowsort label-7618
SELECT - MAX ( - col1 ) * + 79 AS col2 FROM tab2
----
4029

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 11 + + 95 col2, - 82 FROM tab2
----
106
-82
106
-82
106
-82

query I rowsort
SELECT ALL + col0 * - col1 * + - 20 AS col2 FROM tab1
----
14280
8500
85540

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT + MAX( ALL - col2 ) + ( 83 ) AS col2 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-7621
SELECT + MAX ( ALL - col2 ) + ( 83 ) AS col2 FROM tab0
----
73

query I rowsort
SELECT + col0 + + + col2 * col1 AS col1 FROM tab2
----
1219
3144
3961

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7623
SELECT ( - col2 ) AS col0 FROM tab2 AS cor0 WHERE - CAST( NULL AS DECIMAL ) * + + 44 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-7623
SELECT ( - col2 ) AS col0 FROM tab2 AS cor0 WHERE - CAST ( NULL AS REAL ) * + + 44 BETWEEN NULL AND NULL
----

query II rowsort
SELECT + + col2 AS col2, + 95 FROM tab0 AS cor0 WHERE col0 < - 4 * - col2
----
47
95
99
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7625
SELECT DISTINCT + CAST( - + 38 AS SIGNED ) * - + col0 * - + col1 FROM tab1 AS cor0
----
-16150
-162526
-27132

skipif mysql # not compatible
query I rowsort label-7625
SELECT DISTINCT + CAST ( - + 38 AS INTEGER ) * - + col0 * - + col1 FROM tab1 AS cor0
----
-16150
-162526
-27132

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + - 63 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7627
SELECT ALL 96 DIV - MAX( ALL 72 ) AS col0 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL 96 / - MAX ( ALL 72 ) AS col0 FROM tab0 cor0
----
-1

query I rowsort
SELECT DISTINCT - col0 + - 54 + + + col1 FROM tab1 AS cor0
----
-134
-91
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7629
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) - - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7629
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) - - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7630
SELECT COUNT( * ) col2, + 15 + + COUNT( * ) + COUNT( * ) FROM tab1
----
3
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7630
SELECT COUNT ( * ) col2, + 15 + + COUNT ( * ) + COUNT ( * ) FROM tab1
----
3
21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7631
SELECT + COUNT( * ) AS col0, CAST( NULL AS DECIMAL ) * - 11 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
NULL

skipif mysql # not compatible
query II rowsort label-7631
SELECT + COUNT ( * ) AS col0, CAST ( NULL AS REAL ) * - 11 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 + col0 + col0 col0 FROM tab1 AS cor0
----
154
222
234

query I rowsort
SELECT - col2 - col2 + - col1 - ( - 12 ) * - col1 * - + 70 AS col0 FROM tab1 cor0
----
11554
39297
4077

query I rowsort
SELECT + 31 - + col0 + col2 + + col2 AS col2 FROM tab1 AS cor0
----
172
64
76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 61 / - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT DISTINCT COUNT( * ) - - 8 AS col2 FROM tab2 cor0
----
11

skipif mysql # not compatible
query I rowsort label-7636
SELECT DISTINCT COUNT ( * ) - - 8 AS col2 FROM tab2 cor0
----
11

query I rowsort
SELECT DISTINCT - col2 * + col1 + col0 AS col1 FROM tab2 AS cor0
----
-1127
-3016
-3811

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT DISTINCT COUNT( ALL col2 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7638
SELECT DISTINCT COUNT ( ALL col2 ) FROM tab0 cor0
----
3

query II rowsort
SELECT - col1 * col2 + + - col0, + col1 AS col2 FROM tab2 AS cor0
----
-1219
51
-3144
77
-3961
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7640
SELECT ALL + + col2 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7640
SELECT ALL + + col2 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7641
SELECT ALL 21 DIV + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL 21 / + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-7642
SELECT - + col0 DIV - + 27 col1 FROM tab2 AS cor0
----
1
2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7642
SELECT - + col0 / - + 27 col1 FROM tab2 AS cor0
----
1
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7643
SELECT - ( - - col0 ) DIV + col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7643
SELECT - ( - - col0 ) / + col0 FROM tab1
----
-1
-1
-1

query II rowsort
SELECT DISTINCT - 75 AS col0, - 78 + + col0 FROM tab0
----
-75
-63
-75
19
-75
9

onlyif mysql # aggregate syntax: 
query II rowsort label-7645
SELECT DISTINCT - COUNT( * ), SUM( ALL + - col0 ) AS col0 FROM tab2
----
-3
-185

skipif mysql # not compatible
query II rowsort label-7645
SELECT DISTINCT - COUNT ( * ), SUM ( ALL + - col0 ) AS col0 FROM tab2
----
-3
-185

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT - 47 * - - COUNT( * ) AS col0 FROM tab0
----
-141

skipif mysql # not compatible
query I rowsort label-7647
SELECT - 47 * - - COUNT ( * ) AS col0 FROM tab0
----
-141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7648
SELECT CAST( + ( + col2 ) AS SIGNED ) * 43 AS col1 FROM tab1
----
2537
2924
4128

skipif mysql # not compatible
query I rowsort label-7648
SELECT CAST ( + ( + col2 ) AS INTEGER ) * 43 AS col1 FROM tab1
----
2537
2924
4128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 24 AS col2, 21 * col0 col2 FROM tab2 WHERE NOT col0 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7650
SELECT ALL - col1 DIV - + col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7650
SELECT ALL - col1 / - + col1 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT ALL + col1 * - + col2 * 25 + 9 AS col2 FROM tab1 AS cor0 WHERE col2 * + + 59 IN ( + - col2 + + - 60 * - col1 )
----

query I rowsort
SELECT col2 * - + col0 FROM tab2 cor0 WHERE NOT + 98 IS NULL
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT - + 43 * COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 48 - + 32 IS NULL
----
-129

skipif mysql # not compatible
query I rowsort label-7653
SELECT - + 43 * COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 48 - + 32 IS NULL
----
-129

query I rowsort
SELECT ALL + 88 + - - col0 FROM tab2
----
134
152
163

query I rowsort
SELECT - col2 - - col1 FROM tab0 cor0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT DISTINCT - 41 * - - col2 FROM tab2 cor0
----
-1640
-2378
-943

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT COUNT( * ) FROM tab0 cor0 WHERE NOT ( - col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7657
SELECT COUNT ( * ) FROM tab0 cor0 WHERE NOT ( - col1 ) IS NOT NULL
----
0

query I rowsort
SELECT col0 + ( + col1 ) AS col0 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT ALL + 5 AS col1 FROM tab0 cor0
----
5
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7660
SELECT + CAST( NULL AS SIGNED ) + - 26 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7660
SELECT + CAST ( NULL AS INTEGER ) + - 26 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT + 14 + + COUNT( col2 ) * - 57 FROM tab1 AS cor0
----
-157

skipif mysql # not compatible
query I rowsort label-7661
SELECT + 14 + + COUNT ( col2 ) * - 57 FROM tab1 AS cor0
----
-157

query I rowsort
SELECT ALL 47 FROM tab0 AS cor0 WHERE col2 * - col2 IN ( - - col2, + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7663
SELECT ALL col0 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1 * - 55 * - + CAST( NULL AS SIGNED ) * CAST( + - 41 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL col0 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1 * - 55 * - + CAST ( NULL AS INTEGER ) * CAST ( + - 41 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7664
SELECT DISTINCT - col1 DIV ( - + col1 ) + + col2 FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-7664
SELECT DISTINCT - col1 / ( - + col1 ) + + col2 FROM tab2
----
24
41
59

query II rowsort
SELECT - 67, col0 FROM tab0 AS cor0
----
-67
15
-67
87
-67
97

query I rowsort
SELECT + col0 * + + col2 + - - 42 FROM tab2 AS cor0
----
1100
2602
4392

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT + 18 + + ( - ( - COUNT( * ) ) ) AS col1 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-7667
SELECT + 18 + + ( - ( - COUNT ( * ) ) ) AS col1 FROM tab0
----
21

query I rowsort
SELECT + - col1 - - 56 AS col0 FROM tab1 WHERE NULL >= - 35
----

query III rowsort
SELECT * FROM tab0 WHERE col1 BETWEEN - - col2 AND NULL
----

query II rowsort
SELECT ALL + col0 + + col2, col0 FROM tab0
----
196
97
62
15
97
87

query I rowsort
SELECT DISTINCT + - col2 * - 51 + + 34 AS col1 FROM tab2 cor0 WHERE ( NULL ) IN ( + ( - 97 ), - col1, - - col0 - - col2 + + 61, col1 + - 64 + - - col1, col1 )
----

query I rowsort
SELECT + + col2 + + col1 * 65 FROM tab1 AS cor0
----
1006
3123
384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab1 AS cor0 WHERE - ( 2 ) - + col1 IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL + - 95 * col0 FROM tab2 AS cor0
----
-4370
-6080
-7125

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT ALL + + COUNT( * ) * - MIN( DISTINCT - 81 ) + + 12 + + - 26 AS col0 FROM tab1 AS cor0
----
229

skipif mysql # not compatible
query I rowsort label-7676
SELECT ALL + + COUNT ( * ) * - MIN ( DISTINCT - 81 ) + + 12 + + - 26 AS col0 FROM tab1 AS cor0
----
229

query I rowsort
SELECT DISTINCT - col1 * + ( col0 ) AS col0 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT col1 * + + 94 AS col1 FROM tab1
----
1316
4418
470

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT - COUNT( * ) FROM tab0 WHERE NOT - + col0 + - col2 * 23 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7679
SELECT - COUNT ( * ) FROM tab0 WHERE NOT - + col0 + - col2 * 23 IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7680
SELECT ALL col0 DIV + 45 AS col1 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7680
SELECT ALL col0 / + 45 AS col1 FROM tab0 AS cor0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 90 col0 FROM tab0 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT DISTINCT + MIN( DISTINCT + + col1 ) FROM tab2 AS cor0 WHERE + 18 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7682
SELECT DISTINCT + MIN ( DISTINCT + + col1 ) FROM tab2 AS cor0 WHERE + 18 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT + SUM( DISTINCT - 59 ) + 8 AS col1 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-7683
SELECT + SUM ( DISTINCT - 59 ) + 8 AS col1 FROM tab0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT MIN( col1 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7684
SELECT MIN ( col1 ) AS col2 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7685
SELECT + - 89 DIV + - 47 AS col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7685
SELECT + - 89 / + - 47 AS col1 FROM tab1 cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7686
SELECT DISTINCT 91 DIV - col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7686
SELECT DISTINCT 91 / - col2 FROM tab1 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT MIN( - - 36 ) + + - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE 57 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7687
SELECT MIN ( - - 36 ) + + - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE 57 IS NULL
----
NULL

query I rowsort
SELECT col0 * - - 52 AS col1 FROM tab1 AS cor0
----
2652
4420
4732

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + + 44 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col2, col2 + + - 63 AS col0 FROM tab1 AS cor0
----
59
-4
68
5
96
33

query I rowsort
SELECT col2 + + col0 * + + col2 FROM tab2
----
1081
2600
4408

query I rowsort
SELECT + ( + 97 ) + - col2 + 57 FROM tab0
----
107
144
55

query I rowsort
SELECT ALL - 43 + - - col1 * + col0 + + col1 FROM tab0
----
1253
1805
55

query I rowsort
SELECT DISTINCT + 16 + 2 AS col0 FROM tab1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7695
SELECT ALL + CAST( NULL AS SIGNED ) / - - col0 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7695
SELECT ALL + CAST ( NULL AS INTEGER ) / - - col0 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7696
SELECT DISTINCT + col0 DIV + + 40 - - col1 * + col0 + + col1 - 35 FROM tab0
----
1261
1815
65

skipif mysql # not compatible
query I rowsort label-7696
SELECT DISTINCT + col0 / + + 40 - - col1 * + col0 + + col1 - 35 FROM tab0
----
1261
1815
65

query I rowsort
SELECT DISTINCT 60 + 48 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7698
SELECT * FROM tab0 AS cor0 WHERE + col2 + - CAST( NULL AS SIGNED ) + - col2 + col2 + + 63 - + col2 - + + CAST( NULL AS SIGNED ) + col0 * - col0 * - 37 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7698
SELECT * FROM tab0 AS cor0 WHERE + col2 + - CAST ( NULL AS INTEGER ) + - col2 + col2 + + 63 - + col2 - + + CAST ( NULL AS INTEGER ) + col0 * - col0 * - 37 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 + - col0 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 96 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT DISTINCT SUM( ALL - + col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-7702
SELECT DISTINCT SUM ( ALL - + col1 ) AS col0 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT ALL 96 * - + 17 FROM tab0 AS cor0
----
-1632
-1632
-1632

query I rowsort
SELECT DISTINCT + + 1 AS col2 FROM tab2 cor0
----
1

query I rowsort
SELECT DISTINCT ( - + col0 ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 * 17 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 95 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7708
SELECT - - CAST( NULL AS SIGNED ) col1, - 91 * + COUNT( * ) * + MIN( DISTINCT col1 ) col2 FROM tab1 AS cor0
----
NULL
-1365

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7708
SELECT - - CAST ( NULL AS INTEGER ) col1, - 91 * + COUNT ( * ) * + MIN ( DISTINCT col1 ) col2 FROM tab1 AS cor0
----
NULL
-1365

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 32 / + 58 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7710
SELECT DISTINCT + 97 * CAST( NULL AS SIGNED ) - + ( col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7710
SELECT DISTINCT + 97 * CAST ( NULL AS INTEGER ) - + ( col1 ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL + + 41 * + 83 * - col1 * + 1 AS col0, col2 FROM tab2 AS cor0
----
-173553
23
-228001
58
-262031
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT + - COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7712
SELECT + - COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7713
SELECT + 42 + - - AVG ( + - ( CAST( + + col2 AS SIGNED ) ) ) FROM tab1 WHERE NOT + col2 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7713
SELECT + 42 + - - AVG ( + - ( CAST ( + + col2 AS INTEGER ) ) ) FROM tab1 WHERE NOT + col2 >= NULL
----
NULL

query I rowsort
SELECT - col1 * + ( + col0 ) AS col2 FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + + 31 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT + COUNT( * ) * - 28 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-7716
SELECT + COUNT ( * ) * - 28 FROM tab1
----
-84

query I rowsort
SELECT ( - 59 ) * + 25 AS col2 FROM tab0
----
-1475
-1475
-1475

query I rowsort
SELECT DISTINCT ( + + col1 ) * - col2 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT ALL + 72 * + + ( + AVG ( ALL + col0 ) ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - col0 * + - col0 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT DISTINCT + 72 AS col0 FROM tab2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT DISTINCT COUNT( * ) * - SUM( col0 ) AS col2 FROM tab0
----
-597

skipif mysql # not compatible
query I rowsort label-7722
SELECT DISTINCT COUNT ( * ) * - SUM ( col0 ) AS col2 FROM tab0
----
-597

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * col0 + + 88 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7724
SELECT ALL + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= ( - 54 )
----

skipif mysql # not compatible
query I rowsort label-7724
SELECT ALL + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= ( - 54 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7725
SELECT ALL - COUNT( * ) DIV COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL - COUNT ( * ) / COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1

query I rowsort
SELECT DISTINCT + 27 * - 42 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
-1134

query I rowsort
SELECT DISTINCT - col2 * - + 0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7728
SELECT 91 DIV - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-30

skipif mysql # not compatible
query I rowsort label-7728
SELECT 91 / - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT DISTINCT - SUM( 35 ) AS col2 FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-7729
SELECT DISTINCT - SUM ( 35 ) AS col2 FROM tab1 AS cor0
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7730
SELECT + 86 * + - CAST( NULL AS SIGNED ) + + + 56 + + + col1 / - col2 * + 89 + - 97 + - col1 * + col0 * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7730
SELECT + 86 * + - CAST ( NULL AS INTEGER ) + + + 56 + + + col1 / - col2 * + 89 + - 97 + - col1 * + col0 * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 48 * col2 + - col0 FROM tab1 AS cor0
----
-2917
-3355
-4659

query I rowsort
SELECT - - col2 + - 48 AS col0 FROM tab0 AS cor0
----
-1
-38
51

query I rowsort
SELECT ALL + + 74 AS col1 FROM tab0 AS cor0
----
74
74
74

query I rowsort
SELECT ALL - + ( 41 ) AS col0 FROM tab0 AS cor0
----
-41
-41
-41

query I rowsort
SELECT 32 + - 81 * col2 FROM tab2 AS cor0
----
-1831
-3208
-4666

query I rowsort
SELECT ALL + + 54 + col1 + - + ( + - col2 ) FROM tab1 AS cor0
----
118
164
169

query III rowsort
SELECT * FROM tab2 WHERE - 0 <> NULL
----

query I rowsort
SELECT DISTINCT col0 + - 72 FROM tab0
----
-57
15
25

query I rowsort
SELECT ALL ( + 71 ) + + 46 AS col1 FROM tab2
----
117
117
117

query I rowsort
SELECT ALL 60 - + - ( ( col0 ) ) FROM tab0
----
147
157
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT + SUM( + col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-7741
SELECT + SUM ( + col1 ) FROM tab2
----
195

query I rowsort
SELECT DISTINCT - col1 + + col0 * - 19 * - - 44 + + + col0 FROM tab1
----
-42599
-70980
-76032

query I rowsort
SELECT col1 - + col1 * col1 * 46 FROM tab1 AS cor0
----
-101567
-1145
-9002

query I rowsort
SELECT - - col1 AS col0 FROM tab1 cor0 WHERE NULL = - col0
----

query II rowsort
SELECT DISTINCT + - col1, 36 AS col0 FROM tab0 AS cor0
----
-1
36
-21
36
-81
36

query I rowsort
SELECT + 65 AS col2 FROM tab0 AS cor0 WHERE ( NOT ( NOT NULL < NULL ) )
----

query I rowsort
SELECT ALL + - 9 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col2 * + col2 + col2 + 7 col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3606
4767
9415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7749
SELECT - ( - SUM( ALL + CAST( col2 AS SIGNED ) ) ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-7749
SELECT - ( - SUM ( ALL + CAST ( col2 AS INTEGER ) ) ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-7750
SELECT DISTINCT + ( 46 ), MIN( ALL - - ( col0 ) ) AS col2 FROM tab2 AS cor0
----
46
46

skipif mysql # not compatible
query II rowsort label-7750
SELECT DISTINCT + ( 46 ), MIN ( ALL - - ( col0 ) ) AS col2 FROM tab2 AS cor0
----
46
46

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT + col0 - col1 + - col0 * + col2 BETWEEN + col2 AND - col1 * + + ( - - 55 )
----
51
85
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7752
SELECT DISTINCT + col2 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7752
SELECT DISTINCT + col2 * + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + ( + + 71 ) AS col1 FROM tab2
----
71

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 70 + col0 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT + 84 * - COUNT( * ) AS col2 FROM tab2
----
-252

skipif mysql # not compatible
query I rowsort label-7755
SELECT + 84 * - COUNT ( * ) AS col2 FROM tab2
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT ALL COUNT( - - col0 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7756
SELECT ALL COUNT ( - - col0 ) col2 FROM tab0
----
3

query I rowsort
SELECT + 2 * + col1 AS col0 FROM tab1
----
10
28
94

onlyif mysql # aggregate syntax: 
query II rowsort label-7758
SELECT DISTINCT + 41 AS col2, COUNT( ALL + + col1 ) FROM tab0
----
41
3

skipif mysql # not compatible
query II rowsort label-7758
SELECT DISTINCT + 41 AS col2, COUNT ( ALL + + col1 ) FROM tab0
----
41
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7759
SELECT ALL col0 AS col2, - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-7759
SELECT ALL col0 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT col0 FROM tab2 WHERE NOT + + 70 IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7761
SELECT + - CAST( + 94 AS SIGNED ) * + 72 * + 47 AS col0 FROM tab2 AS cor0
----
-318096
-318096
-318096

skipif mysql # not compatible
query I rowsort label-7761
SELECT + - CAST ( + 94 AS INTEGER ) * + 72 * + 47 AS col0 FROM tab2 AS cor0
----
-318096
-318096
-318096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7762
SELECT ALL - + CAST( NULL AS SIGNED ) AS col1, 90 + - COUNT( + 91 ) FROM tab2 AS cor0
----
NULL
87

skipif mysql # not compatible
query II rowsort label-7762
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1, 90 + - COUNT ( + 91 ) FROM tab2 AS cor0
----
NULL
87

query I rowsort
SELECT DISTINCT 15 * - col1 FROM tab0 AS cor0
----
-1215
-15
-315

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL = - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7765
SELECT ALL + col0 DIV 12 + + col2 FROM tab1
----
100
66
75

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL + col0 / 12 + + col2 FROM tab1
----
100
66
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT COUNT( * ) * 6 AS col2 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-7766
SELECT COUNT ( * ) * 6 AS col2 FROM tab1
----
18

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 > ( - col1 * + 59 )
----

query I rowsort
SELECT ALL 39 + 15 FROM tab0 WHERE - col0 >= + col2 * ( col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE - ( col2 ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT DISTINCT COUNT( * ) + 14 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-7770
SELECT DISTINCT COUNT ( * ) + 14 FROM tab2
----
17

query I rowsort
SELECT - 10 + col0 FROM tab2
----
36
54
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN + col0 * 14 - col0 * 33 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7772
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN + col0 * 14 - col0 * 33 AND NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 60 ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT NULL > ( col1 * - col0 + 63 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT ( NULL ) < ( - 75 )
----
0

skipif mysql # not compatible
query I rowsort label-7775
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) < ( - 75 )
----
0

query I rowsort
SELECT ALL 3 * ( - 84 * col1 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-12852
-16884
-19404

query I rowsort
SELECT + ( ( - ( 7 ) ) ) * - col0 - col0 FROM tab2
----
276
384
450

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 + col0 ) < 97 / - 32
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT ALL + MIN( 77 ) AS col0 FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-7779
SELECT ALL + MIN ( 77 ) AS col0 FROM tab1
----
77

query I rowsort
SELECT DISTINCT - 10 + col2 AS col2 FROM tab1
----
49
58
86

query I rowsort
SELECT ALL col0 * col0 + col2 * col2 AS col1 FROM tab0
----
19210
2434
7669

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT DISTINCT + 24 * MAX( - 76 ) - 67 AS col0 FROM tab2
----
-1891

skipif mysql # not compatible
query I rowsort label-7782
SELECT DISTINCT + 24 * MAX ( - 76 ) - 67 AS col0 FROM tab2
----
-1891

query I rowsort
SELECT DISTINCT 47 * + 38 FROM tab2
----
1786

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 <> ( - ( + col1 ) * - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 99 * + col1 - ( 99 ) FROM tab1
----
1287
396
4554

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE - 8 < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7788
SELECT * FROM tab1 WHERE NOT CAST( 23 AS SIGNED ) * col2 <> NULL
----

skipif mysql # not compatible
query III rowsort label-7788
SELECT * FROM tab1 WHERE NOT CAST ( 23 AS INTEGER ) * col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT ALL MIN( ALL + col1 ) + - 20 AS col1 FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL MIN ( ALL + col1 ) + - 20 AS col1 FROM tab0
----
-19

query I rowsort
SELECT 48 - col0 AS col1 FROM tab1
----
-3
-37
-43

query I rowsort
SELECT 16 * 62 AS col2 FROM tab2
----
992
992
992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7792
SELECT + col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7792
SELECT + col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE 55 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * - 75 + - col2 FROM tab1 AS cor0
----
-3921
-6434
-6893

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT + col2 / + col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT 96 * COUNT( 64 * + 64 ) AS col1 FROM tab2 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-7797
SELECT 96 * COUNT ( 64 * + 64 ) AS col1 FROM tab2 AS cor0
----
288

query I rowsort
SELECT 14 * + col1 FROM tab0 AS cor0
----
1134
14
294

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7799
SELECT * FROM tab0 WHERE NOT col1 NOT IN ( + col0 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7799
SELECT * FROM tab0 WHERE NOT col1 NOT IN ( + col0 + CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT DISTINCT MIN( col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7801
SELECT DISTINCT MIN ( col2 ) AS col0 FROM tab2
----
23

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 11 NOT BETWEEN NULL AND + 77 + 83
----

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE NOT - col1 * - col0 IS NULL
----
46
64
75

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7805
SELECT ALL + col2 FROM tab0 WHERE NOT - col2 BETWEEN CAST( NULL AS DECIMAL ) AND + CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL + col2 FROM tab0 WHERE NOT - col2 BETWEEN CAST ( NULL AS REAL ) AND + CAST ( col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT 21 + + MAX( col1 ) AS col0 FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-7806
SELECT 21 + + MAX ( col1 ) AS col0 FROM tab1
----
68

query I rowsort
SELECT - 93 + - + col1 + + 66 * - 62 AS col1 FROM tab0
----
-4186
-4206
-4266

query I rowsort
SELECT DISTINCT col2 * + col1 + + col2 FROM tab2
----
1196
3120
3944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7809
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 67 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7809
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 67 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 BETWEEN ( NULL ) AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT DISTINCT ( COUNT( * ) ) * - 93 AS col1 FROM tab2 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-7812
SELECT DISTINCT ( COUNT ( * ) ) * - 93 AS col1 FROM tab2 AS cor0
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT + MAX( ALL - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7813
SELECT + MAX ( ALL - col2 ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT DISTINCT col1 * + ( col0 * - col2 ) AS col0 FROM tab2 WHERE - - 80 IS NOT NULL
----
-197120
-291450
-53958

query I rowsort
SELECT DISTINCT - col1 * + 11 + - + col1 FROM tab2
----
-612
-804
-924

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE col2 * - col0 + + ( - ( + col1 ) ) <= - 0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT - + COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7817
SELECT - + COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT DISTINCT - COUNT( * ) - - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7818
SELECT DISTINCT - COUNT ( * ) - - COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT + ( + + 36 ) + 17 + col2 * 15 AS col0 FROM tab2 AS cor0
----
398
653
923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 col1 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7821
SELECT DISTINCT - 98 DIV col0 * + col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-7821
SELECT DISTINCT - 98 / col0 * + col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT - + col0 + + - col0 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT ALL - + COUNT( * ) - - - MAX( - + col0 ) FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL - + COUNT ( * ) - - - MAX ( - + col0 ) FROM tab1 AS cor0
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7824
SELECT ALL - MAX( - - 93 ) DIV - ( COUNT( * ) ) + - 97 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL - MAX ( - - 93 ) / - ( COUNT ( * ) ) + - 97 FROM tab0 AS cor0
----
-66

query I rowsort
SELECT col1 + 7 FROM tab2 cor0
----
58
74
84

query I rowsort
SELECT DISTINCT - col1 * - 87 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7827
SELECT - 34 + + + col1 DIV - + col2 FROM tab1 AS cor0
----
-34
-34
-34

skipif mysql # not compatible
query I rowsort label-7827
SELECT - 34 + + + col1 / - + col2 FROM tab1 AS cor0
----
-34
-34
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7828
SELECT ALL COUNT( * ) * + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) / + MAX( ALL 95 ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7828
SELECT ALL COUNT ( * ) * + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) / + MAX ( ALL 95 ) col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT - 93 * + + col0 + + 24 * - col0 AS col0 FROM tab0 AS cor0
----
-10179
-11349
-1755

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7831
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) > ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7831
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( - col2 ) * - col2 <> + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7833
SELECT DISTINCT COUNT( * ) + - - 59 DIV + CAST( - 52 AS SIGNED ) AS col2 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-7833
SELECT DISTINCT COUNT ( * ) + - - 59 / + CAST ( - 52 AS INTEGER ) AS col2 FROM tab2
----
2

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IS NULL AND ( ( NULL ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 5 * - + col1 FROM tab0
----
105
405
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7836
SELECT col0 DIV + 12 FROM tab1
----
4
7
7

skipif mysql # not compatible
query I rowsort label-7836
SELECT col0 / + 12 FROM tab1
----
4
7
7

query I rowsort
SELECT DISTINCT 52 * - - col0 AS col1 FROM tab0
----
4524
5044
780

onlyif mysql # DIV for integer division: 
query I rowsort label-7838
SELECT DISTINCT - col1 DIV + col0 * - 99 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7838
SELECT DISTINCT - col1 / + col0 * - 99 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT ALL SUM( - 70 ) AS col0 FROM tab1 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-7839
SELECT ALL SUM ( - 70 ) AS col0 FROM tab1 AS cor0
----
-210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7840
SELECT - CAST( 14 AS SIGNED ) FROM tab2 AS cor0
----
-14
-14
-14

skipif mysql # not compatible
query I rowsort label-7840
SELECT - CAST ( 14 AS INTEGER ) FROM tab2 AS cor0
----
-14
-14
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7841
SELECT CAST( + 97 AS SIGNED ) FROM tab1 AS cor0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-7841
SELECT CAST ( + 97 AS INTEGER ) FROM tab1 AS cor0
----
97
97
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7842
SELECT CAST( + COUNT( * ) AS DECIMAL ) * COUNT( * ) + - AVG ( col2 ) + + 50 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7842
SELECT CAST ( + COUNT ( * ) AS REAL ) * COUNT ( * ) + - AVG ( col2 ) + + 50 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT - ( + COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 * col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7843
SELECT - ( + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 * col2 )
----
0

query I rowsort
SELECT DISTINCT col0 * col2 + - + col0 FROM tab1 AS cor0
----
4845
4930
6097

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 - - + col1 col0 FROM tab2 AS cor0
----
1224
3157
3953

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 + - + col0 AND ( + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT COUNT( + + col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7848
SELECT COUNT ( + + col2 ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < col2 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT ALL + - MIN( ALL - 98 ) AS col2 FROM tab1 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-7850
SELECT ALL + - MIN ( ALL - 98 ) AS col2 FROM tab1 AS cor0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7851
SELECT ALL - CAST( NULL AS SIGNED ) - - + col2 + + 45 * + col2 FROM tab1 AS cor0 WHERE col1 + - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL - CAST ( NULL AS INTEGER ) - - + col2 + + 45 * + col2 FROM tab1 AS cor0 WHERE col1 + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 59 FROM tab1 WHERE NOT - col1 >= - col0 + + - ( - 72 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT ALL ( - MIN( ALL - 52 ) ) * - 11 AS col2 FROM tab1, tab0 AS cor0
----
-572

skipif mysql # not compatible
query I rowsort label-7853
SELECT ALL ( - MIN ( ALL - 52 ) ) * - 11 AS col2 FROM tab1, tab0 AS cor0
----
-572

query I rowsort
SELECT col0 + + + ( + col0 ) FROM tab0
----
174
194
30

query I rowsort
SELECT ALL 48 * + col1 FROM tab0 AS cor0
----
1008
3888
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7856
SELECT - - CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE col1 NOT BETWEEN ( col2 ) AND col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7856
SELECT - - CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE col1 NOT BETWEEN ( col2 ) AND col2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT + - COUNT( * ) FROM tab2 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7857
SELECT + - COUNT ( * ) FROM tab2 AS cor0 WHERE col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7859
SELECT ALL * FROM tab2 WHERE NULL IN ( + - CAST( 77 AS SIGNED ), - 93 * + col0 )
----

skipif mysql # not compatible
query III rowsort label-7859
SELECT ALL * FROM tab2 WHERE NULL IN ( + - CAST ( 77 AS INTEGER ), - 93 * + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7860
SELECT DISTINCT ( - 10 ) DIV col1 DIV - col0 * - - ( 28 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7860
SELECT DISTINCT ( - 10 ) / col1 / - col0 * - - ( 28 ) AS col2 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NOT + 45 * - col1 + - 49 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7862
SELECT ALL - col0 DIV - + col0 - + 47 FROM tab0 AS cor0
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-7862
SELECT ALL - col0 / - + col0 - + 47 FROM tab0 AS cor0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT + - col0 - 6 FROM tab2 AS cor0
----
-52
-70
-81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT NULL >= ( - col0 * 29 * col2 - - ( 15 ) ) )
----

query I rowsort
SELECT - + AVG ( 81 ) FROM tab2 cor0 WHERE - col2 IS NULL
----
NULL

query I rowsort
SELECT ALL + 57 - ( 43 ) FROM tab1 cor0
----
14
14
14

query I rowsort
SELECT DISTINCT - 99 * - col1 FROM tab0 AS cor0 WHERE NOT ( - 51 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT + 16 - - MAX( DISTINCT + col0 ) * - + ( + 21 ) AS col1 FROM tab0 AS cor0
----
-2021

skipif mysql # not compatible
query I rowsort label-7868
SELECT + 16 - - MAX ( DISTINCT + col0 ) * - + ( + 21 ) AS col1 FROM tab0 AS cor0
----
-2021

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7869
SELECT + CAST( NULL AS SIGNED ) + - - CAST( + + col0 AS DECIMAL ) + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7869
SELECT + CAST ( NULL AS INTEGER ) + - - CAST ( + + col0 AS REAL ) + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT col1 * - 4 < - + 31 OR col1 IS NULL
----

query I rowsort
SELECT ALL 49 * 85 AS col1 FROM tab1
----
4165
4165
4165

query I rowsort
SELECT ( + col2 ) * + 93 + + 22 AS col1 FROM tab0
----
4393
9229
952

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 ) BETWEEN NULL AND + ( - + col1 ) * 13 / ( + - col0 ) + col0
----

query I rowsort
SELECT - col1 * + + 17 FROM tab0
----
-1377
-17
-357

query II rowsort
SELECT col0, + 75 - col0 FROM tab2
----
46
29
64
11
75
0

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 WHERE + 49 * + 74 < - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7877
SELECT DISTINCT + 38 * + 96 * 66 * + - MIN( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7877
SELECT DISTINCT + 38 * + 96 * 66 * + - MIN ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT + - col2 <> NULL
----

query II rowsort
SELECT col0, + ( + 7 ) FROM tab0
----
15
7
87
7
97
7

query II rowsort
SELECT DISTINCT - - col0 AS col2, - col1 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

query I rowsort
SELECT ALL - ( - 50 ) FROM tab1 cor0
----
50
50
50

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= col2 * col2 + + ( ( 84 ) )
----

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT ( NULL >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT SUM( ALL col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-7884
SELECT SUM ( ALL col0 ) FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT - MAX( DISTINCT - col0 ) * + 81 AS col1 FROM tab0
----
1215

skipif mysql # not compatible
query I rowsort label-7885
SELECT - MAX ( DISTINCT - col0 ) * + 81 AS col1 FROM tab0
----
1215

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 89 )
----

query I rowsort
SELECT 7 * col2 FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NULL
----
413
476
672

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 84 IS NULL
----

query I rowsort
SELECT ALL + col2 FROM tab1 cor0 WHERE NULL NOT BETWEEN - col0 + + col0 AND col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7890
SELECT col1 + - + col1 + col0 + - CAST( NULL AS DECIMAL ) * 7 - 1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7890
SELECT col1 + - + col1 + col0 + - CAST ( NULL AS REAL ) * 7 - 1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7891
SELECT DISTINCT - col1 * - + CAST( NULL AS SIGNED ) + + ( + col0 ) * col1 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7891
SELECT DISTINCT - col1 * - + CAST ( NULL AS INTEGER ) + + ( + col0 ) * col1 col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL col1 + - col1 * - - col0 * col0 AS col0 FROM tab1
----
-36120
-36400
-389160

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - - col0 ) <> - col0 * + col1 * - 76
----

query I rowsort
SELECT - + 14 - col2 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7895
SELECT ALL - 82 * + - 24 + + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL - 82 * + - 24 + + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7896
SELECT + - 9 DIV - col2 - + - 22 FROM tab2 AS cor0
----
22
22
22

skipif mysql # not compatible
query I rowsort label-7896
SELECT + - 9 / - col2 - + - 22 FROM tab2 AS cor0
----
22
22
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 - + + col2 col2 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT - - col0 - + ( - col1 ) * - 3 * col1 AS col2 FROM tab0 AS cor0
----
-1236
-19668
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT DISTINCT 89 - - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT 89 - - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
92

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 8 NOT IN ( ( - col2 ) + + + 68 / - col1 - + 94, 15 + - 87 - - col2 / - + 14 * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col1 * - - col1 + - 73 FROM tab2 AS cor0
----
-2674
-4562
-6002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - - + col0 col1 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT ALL col2 AS col1, + 73 FROM tab2 AS cor0
----
23
73
40
73
58
73

query I rowsort
SELECT + + 49 AS col0 FROM tab1 AS cor0
----
49
49
49

query I rowsort
SELECT DISTINCT col1 * + col2 - col1 AS col1 FROM tab2 AS cor0
----
1122
3003
3819

query I rowsort
SELECT DISTINCT - + col1 * - 61 * col1 FROM tab1 AS cor0
----
11956
134749
1525

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7907
SELECT + col2 * + col0 AS col1, col2 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
705
NULL
870
NULL
9603
NULL

skipif mysql # not compatible
query II rowsort label-7907
SELECT + col2 * + col0 AS col1, col2 + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
705
NULL
870
NULL
9603
NULL

query II rowsort
SELECT DISTINCT - col0 AS col0, - col1 FROM tab1 AS cor0
----
-51
-14
-85
-5
-91
-47

query II rowsort
SELECT col0, ( - - col2 ) * - + 73 + - + col0 FROM tab2 AS cor0
----
46
-1725
64
-2984
75
-4309

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT ALL 71 * + 25 * - COUNT( * ) FROM tab1
----
-5325

skipif mysql # not compatible
query I rowsort label-7911
SELECT ALL 71 * + 25 * - COUNT ( * ) FROM tab1
----
-5325

query I rowsort
SELECT + col1 * - col0 AS col2 FROM tab0 WHERE NOT - col1 - - col2 <> ( NULL )
----

query I rowsort
SELECT ALL ( - col2 ) * col1 AS col0 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT - + col2 AS col1 FROM tab0 WHERE NOT - col2 + - + col1 + + 54 IS NULL
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 50 <> 92
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7916
SELECT - COUNT( * ) * + MIN( + col1 ) DIV - - 61 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7916
SELECT - COUNT ( * ) * + MIN ( + col1 ) / - - 61 AS col0 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 <= - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7918
SELECT - 40 DIV COUNT( * ) * + COUNT( - col1 ) AS col0 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-7918
SELECT - 40 / COUNT ( * ) * + COUNT ( - col1 ) AS col0 FROM tab1 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT ALL - + COUNT( * ) col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7919
SELECT ALL - + COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT ( - - ( - - COUNT( * ) ) ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7920
SELECT ( - - ( - - COUNT ( * ) ) ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT - 32 * + - 12 * - + COUNT( * ) FROM tab1
----
-1152

skipif mysql # not compatible
query I rowsort label-7921
SELECT - 32 * + - 12 * - + COUNT ( * ) FROM tab1
----
-1152

query II rowsort
SELECT DISTINCT 30, col0 AS col2 FROM tab0 AS cor0
----
30
15
30
87
30
97

query I rowsort
SELECT + col0 * + + col1 - - - col1 FROM tab2 AS cor0
----
2295
4851
4958

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT - COUNT( - col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7924
SELECT - COUNT ( - col1 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col0 + + - 57 FROM tab2 AS cor0 WHERE NOT col1 * - - col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7926
SELECT + col0 DIV + 75 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7926
SELECT + col0 / + 75 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT ALL - ( + + MAX( + + 9 ) ) AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7927
SELECT ALL - ( + + MAX ( + + 9 ) ) AS col2 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT 45 * - + col0 FROM tab0 AS cor0
----
-3915
-4365
-675

query I rowsort
SELECT ALL 56 * + - 88 AS col1 FROM tab0 cor0
----
-4928
-4928
-4928

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT ALL COUNT( * ) + + - 35 + - 41 * + 81 * 60 AS col0 FROM tab2 AS cor0
----
-199292

skipif mysql # not compatible
query I rowsort label-7930
SELECT ALL COUNT ( * ) + + - 35 + - 41 * + 81 * 60 AS col0 FROM tab2 AS cor0
----
-199292

query II rowsort
SELECT DISTINCT col1 * 67 AS col1, col1 AS col1 FROM tab2
----
3417
51
4489
67
5159
77

query III rowsort
SELECT * FROM tab1 WHERE NULL <> 99
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7933
SELECT - CAST( NULL AS DECIMAL ) * + 18 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7933
SELECT - CAST ( NULL AS REAL ) * + 18 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE col1 * + + 97 + - col2 * + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT ALL COUNT( ( + 16 ) ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7935
SELECT ALL COUNT ( ( + 16 ) ) col2 FROM tab2
----
3

query I rowsort
SELECT + 30 + - col1 AS col2 FROM tab2
----
-21
-37
-47

query I rowsort
SELECT ALL - 21 * col1 FROM tab0 AS cor0
----
-1701
-21
-441

query I rowsort
SELECT + + col1 + col2 + + + col2 AS col2 FROM tab0 AS cor0
----
175
199
41

query I rowsort
SELECT 43 AS col1 FROM tab0 AS cor0 WHERE 65 * - col1 * - col0 <> - col2
----
43
43
43

query I rowsort
SELECT DISTINCT 67 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( 6 * - - col2 <> col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - 31 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT DISTINCT col1 + + col2 - - - col2 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT DISTINCT - ( - COUNT( * ) ) + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-7944
SELECT DISTINCT - ( - COUNT ( * ) ) + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT col1 = - col2
----
10
47
99

query I rowsort
SELECT + 53 * + + 71 * - 10 FROM tab1 AS cor0
----
-37630
-37630
-37630

query I rowsort
SELECT - + 93 + - col1 * 80 FROM tab1 WHERE NOT 71 IS NOT NULL
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT NULL IN ( - col2 * 44 * 66 / col2 - - - ( - + col1 ) + - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7949
SELECT + MAX( 19 ) AS col1, - COUNT( * ) * - COUNT( * ) FROM tab1
----
19
9

skipif mysql # not compatible
query II rowsort label-7949
SELECT + MAX ( 19 ) AS col1, - COUNT ( * ) * - COUNT ( * ) FROM tab1
----
19
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT + MAX( - col0 ) col1 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7950
SELECT + MAX ( - col0 ) col1 FROM tab0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7951
SELECT DISTINCT - CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7951
SELECT DISTINCT - CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col0 + + ( + col0 ) ) BETWEEN + 67 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7953
SELECT ALL - ( CAST( + 84 AS SIGNED ) ) AS col1 FROM tab2 cor0
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-7953
SELECT ALL - ( CAST ( + 84 AS INTEGER ) ) AS col1 FROM tab2 cor0
----
-84
-84
-84

query I rowsort
SELECT DISTINCT + ( + col2 ) * - col0 * col1 AS col2 FROM tab2 AS cor0
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT DISTINCT + SUM( ALL - + 13 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-117

skipif mysql # not compatible
query I rowsort label-7955
SELECT DISTINCT + SUM ( ALL - + 13 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-117

query I rowsort
SELECT - 97 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 + - 99 + - col0 * - col2 FROM tab1 AS cor0
----
4811
4921
6136

onlyif mysql # aggregate syntax: 
query II rowsort label-7958
SELECT ALL + ( 26 ), - COUNT( * ) AS col2 FROM tab0 AS cor0
----
26
-3

skipif mysql # not compatible
query II rowsort label-7958
SELECT ALL + ( 26 ), - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
26
-3

query I rowsort
SELECT DISTINCT 26 * + - 26 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-676

onlyif mysql # DIV for integer division: 
query II rowsort label-7960
SELECT DISTINCT + - 22 DIV + 60, - 96 AS col0 FROM tab2 cor0
----
0
-96

skipif mysql # not compatible
query II rowsort label-7960
SELECT DISTINCT + - 22 / + 60, - 96 AS col0 FROM tab2 cor0
----
0
-96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + 26
----

query I rowsort
SELECT - 44 + + col1 AS col2 FROM tab2 AS cor0
----
23
33
7

query I rowsort
SELECT + 49 + col0 AS col1 FROM tab2 AS cor0
----
113
124
95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 13 + col0 / - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7965
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - 99 + col2 + - col0 + - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - 99 + col2 + - col0 + - col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 95 * - + col0 + + + 38 + + - col2 AS col1 FROM tab1 AS cor0
----
4787
8054
8615

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 + col2 col1 FROM tab2
----
115
133
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7968
SELECT + 7 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7968
SELECT + 7 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT - col2 AS col1, - 54 AS col1 FROM tab1
----
-59
-54
-68
-54
-96
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT MIN( ALL + - col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-7970
SELECT MIN ( ALL + - col0 ) FROM tab2
----
-75

query III rowsort
SELECT * FROM tab1 WHERE NULL >= - + col0
----

query I rowsort
SELECT - col0 * + ( + col2 ) AS col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT - - col2 AS col1 FROM tab0 AS cor0 WHERE 69 <= NULL
----

query II rowsort
SELECT + + col0 AS col2, - col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT ALL - COUNT( * ) FROM tab1 cor0 WHERE NOT 3 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7975
SELECT ALL - COUNT ( * ) FROM tab1 cor0 WHERE NOT 3 BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT + 81 - + 30 * + - COUNT( * ) AS col1 FROM tab2 cor0
----
171

skipif mysql # not compatible
query I rowsort label-7976
SELECT + 81 - + 30 * + - COUNT ( * ) AS col1 FROM tab2 cor0
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7977
SELECT - col2 - - col0 * CAST( NULL AS SIGNED ) * - + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7977
SELECT - col2 - - col0 * CAST ( NULL AS INTEGER ) * - + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT ALL + - SUM( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL + - SUM ( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
103

query I rowsort
SELECT - 95 - col0 FROM tab0 AS cor0
----
-110
-182
-192

onlyif mysql # DIV for integer division: 
query II rowsort label-7980
SELECT ALL - 34, col1 + col1 DIV + 20 AS col2 FROM tab2 cor0
----
-34
53
-34
70
-34
80

skipif mysql # not compatible
query II rowsort label-7980
SELECT ALL - 34, col1 + col1 / + 20 AS col2 FROM tab2 cor0
----
-34
53
-34
70
-34
80

query I rowsort
SELECT ALL - col2 * - 59 FROM tab2 AS cor0
----
1357
2360
3422

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7982
SELECT + col0 + - CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab1 AS cor0 WHERE NOT 76 * + 19 * - col1 BETWEEN col0 AND - + 16 * + 42
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7982
SELECT + col0 + - CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab1 AS cor0 WHERE NOT 76 * + 19 * - col1 BETWEEN col0 AND - + 16 * + 42
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT - SUM( 60 ) FROM tab1 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-7983
SELECT - SUM ( 60 ) FROM tab1 AS cor0
----
-180

query I rowsort
SELECT col1 * - 22 * col0 AS col0 FROM tab0 AS cor0
----
-2134
-26730
-40194

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = - ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT - + COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7986
SELECT - + COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT col2 IS NOT NULL
----
0

query I rowsort
SELECT - ( + - ( - col2 ) ) * - - 54 AS col1 FROM tab1 AS cor0
----
-3186
-3672
-5184

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7988
SELECT ALL + CAST( 80 AS SIGNED ) AS col2, + col1 AS col2 FROM tab0 AS cor0
----
80
1
80
21
80
81

skipif mysql # not compatible
query II rowsort label-7988
SELECT ALL + CAST ( 80 AS INTEGER ) AS col2, + col1 AS col2 FROM tab0 AS cor0
----
80
1
80
21
80
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 97 * + col1 * - + ( + - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT col2 * + col0 IS NOT NULL
----

query II rowsort
SELECT ALL 2, + col1 AS col1 FROM tab1
----
2
14
2
47
2
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT ALL - MIN( col1 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-7992
SELECT ALL - MIN ( col1 ) AS col2 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT MIN( - + 95 ) FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-7993
SELECT MIN ( - + 95 ) FROM tab0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7994
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7994
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT DISTINCT - MIN( ALL - + col2 ) * + + 61 FROM tab2 AS cor0
----
3538

skipif mysql # not compatible
query I rowsort label-7995
SELECT DISTINCT - MIN ( ALL - + col2 ) * + + 61 FROM tab2 AS cor0
----
3538

query I rowsort
SELECT ALL + - 52 * + col0 AS col2 FROM tab1 AS cor0
----
-2652
-4420
-4732

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7997
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT ALL + MAX( + 54 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
54

skipif mysql # not compatible
query I rowsort label-7998
SELECT ALL + MAX ( + 54 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
54

query II rowsort
SELECT DISTINCT - col0 + - - col2 AS col0, - col2 * - col2 * - - col2 FROM tab2
----
-17
195112
-23
12167
-24
64000

query I rowsort
SELECT ALL col0 + - 26 FROM tab1
----
25
59
65

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 WHERE col1 >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT ALL COUNT( ALL + + col1 ) * - 68 - + + 76 col0 FROM tab2
----
-280

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8002
SELECT ALL COUNT ( ALL + + col1 ) * - 68 - + + 76 col0 FROM tab2
----
-280

onlyif mysql # DIV for integer division: 
query I rowsort label-8003
SELECT DISTINCT - 91 DIV 89 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8003
SELECT DISTINCT - 91 / 89 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - 20 AS col0 FROM tab1 cor0
----
-20

query I rowsort
SELECT + ( + ( col0 ) ) AS col2 FROM tab0 cor0 WHERE NULL IS NULL OR NOT NULL >= NULL
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8006
SELECT - col2 DIV col0 + + col2 FROM tab1 AS cor0
----
59
68
95

skipif mysql # not compatible
query I rowsort label-8006
SELECT - col2 / col0 + + col2 FROM tab1 AS cor0
----
59
68
95

query I rowsort
SELECT - + 34 AS col0 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 + - col2 AS col1, - col2 col0 FROM tab1 AS cor0
----
-118
-59
-136
-68
-192
-96

query I rowsort
SELECT + + 8 - - col0 FROM tab1 AS cor0
----
59
93
99

query III rowsort
SELECT * FROM tab2 WHERE NULL IS NULL AND NULL < ( NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8012
SELECT DISTINCT + 41 + col1, - col2 DIV + col2 + + 44 col1 FROM tab0
----
122
43
42
43
62
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8012
SELECT DISTINCT + 41 + col1, - col2 / + col2 + + 44 col1 FROM tab0
----
122
43
42
43
62
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT - COUNT( * ) + - 4 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-8013
SELECT - COUNT ( * ) + - 4 FROM tab1
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + + 50 AS col1, col0 * - - col2 / + col1 * 97 col1 FROM tab1 WHERE NULL = - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT 41 + - COUNT( * ) AS col2 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-8015
SELECT 41 + - COUNT ( * ) AS col2 FROM tab2
----
38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8016
SELECT ALL col2 + - ( + - col1 ) + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL col2 + - ( + - col1 ) + - CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * + 12 col1, col1 AS col2 FROM tab0
----
-12
1
-252
21
-972
81

query I rowsort
SELECT 82 + - col0 FROM tab2
----
18
36
7

query I rowsort
SELECT ALL col0 * col1 * col0 - col1 FROM tab0
----
158928
18144
9408

query I rowsort
SELECT DISTINCT - col1 * + col2 - - 98 FROM tab2 AS cor0
----
-1075
-2982
-3788

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - + col2 / col0 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + ( - - 27 ) AS col0 FROM tab0
----
27

query I rowsort
SELECT ALL ( - 9 ) FROM tab0 WHERE NOT col0 NOT IN ( col0 ) OR - 86 * + col2 IS NULL
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-8024
SELECT + - COUNT( * ) AS col2, 15 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
15

skipif mysql # not compatible
query II rowsort label-8024
SELECT + - COUNT ( * ) AS col2, 15 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT DISTINCT - COUNT( * ) * - ( MAX( DISTINCT 4 ) ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8025
SELECT DISTINCT - COUNT ( * ) * - ( MAX ( DISTINCT 4 ) ) FROM tab1 AS cor0
----
12

query I rowsort
SELECT ALL + col0 + + col1 - + 75 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 < - col1
----
-10
15
63

onlyif mysql # DIV for integer division: 
query II rowsort label-8027
SELECT DISTINCT - + 88 AS col0, - 61 DIV + 72 + 55 * ( + 59 ) AS col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-88
3245

skipif mysql # not compatible
query II rowsort label-8027
SELECT DISTINCT - + 88 AS col0, - 61 / + 72 + 55 * ( + 59 ) AS col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-88
3245

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN + col0 * - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 col2 FROM tab0 AS cor0 WHERE NOT - 71 + + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT COUNT( * ) + COUNT( * ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8030
SELECT COUNT ( * ) + COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT DISTINCT SUM( DISTINCT 45 ) col2 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8031
SELECT DISTINCT SUM ( DISTINCT 45 ) col2 FROM tab1 AS cor0
----
45

query I rowsort
SELECT 40 * + col2 * + col1 FROM tab1
----
11800
127840
53760

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8034
SELECT 32 DIV col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8034
SELECT 32 / col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8035
SELECT DISTINCT - CAST( NULL AS SIGNED ) * ( + + 17 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8035
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * ( + + 17 ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col0 * ( col0 ) AS col1 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT - 27 AS col2 FROM tab2 WHERE NOT + col0 BETWEEN NULL AND - col2 * + + 89 + + col0
----
-27
-27
-27

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL NOT BETWEEN NULL AND ( NULL ) )
----

query I rowsort
SELECT - - 33 AS col1 FROM tab2 AS cor0
----
33
33
33

query I rowsort
SELECT ALL + ( 47 ) * + - 78 + - 70 + + col2 - ( col1 ) * col2 FROM tab1
----
-3972
-4984
-6864

query III rowsort
SELECT * FROM tab1 WHERE + 96 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8042
SELECT - SUM( ALL CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8042
SELECT - SUM ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT ALL - 8 - - 57 + col0 AS col0 FROM tab0 AS cor0
----
136
146
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT DISTINCT - SUM( ALL 63 ) FROM tab0 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-8044
SELECT DISTINCT - SUM ( ALL 63 ) FROM tab0 AS cor0
----
-189

query I rowsort
SELECT - 99 + + 47 FROM tab2 AS cor0
----
-52
-52
-52

query II rowsort
SELECT col0 * - + col1 + - - 91 + - col1 * + 80 AS col2, + col2 + + col1 AS col1 FROM tab1 AS cor0
----
-1743
110
-734
64
-7946
115

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT DISTINCT - SUM( 36 ) FROM tab1 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-8047
SELECT DISTINCT - SUM ( 36 ) FROM tab1 AS cor0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT - MAX( col1 ) * + - MIN( DISTINCT col1 ) FROM tab1 AS cor0
----
235

skipif mysql # not compatible
query I rowsort label-8048
SELECT - MAX ( col1 ) * + - MIN ( DISTINCT col1 ) FROM tab1 AS cor0
----
235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8049
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8049
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 54 + + col1 col2 FROM tab2
----
105
121
131

query I rowsort
SELECT ALL - 22 + + + col2 - + col0 AS col2 FROM tab1 WHERE NULL <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8052
SELECT DISTINCT - col2 + - - 77 - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8052
SELECT DISTINCT - col2 + - - 77 - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( - + col1 ) BETWEEN NULL AND - col0 + - col2 + + - col1
----

query I rowsort
SELECT DISTINCT col2 + col2 + 26 AS col0 FROM tab0
----
120
224
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8055
SELECT ALL + CAST( col2 AS SIGNED ) - + + col1 AS col1 FROM tab2
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-8055
SELECT ALL + CAST ( col2 AS INTEGER ) - + + col1 AS col1 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT DISTINCT col1 + - - col2 FROM tab0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8057
SELECT + CAST( NULL AS SIGNED ) * - + ( + col1 ) + - - 24 * 81 + - - col2 - col2 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8057
SELECT + CAST ( NULL AS INTEGER ) * - + ( + col1 ) + - - 24 * 81 + - - col2 - col2 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + - - 87 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN + 31 AND NULL
----

query I rowsort
SELECT - + 14 FROM tab2 cor0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT + - COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8060
SELECT + - COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

query II rowsort
SELECT ALL + col2 AS col2, - col0 AS col1 FROM tab2 WHERE NOT ( NULL = - col2 )
----

query I rowsort
SELECT ALL 52 * + - col2 AS col0 FROM tab0
----
-2444
-5148
-520

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8064
SELECT - + MAX( + col1 ) col0 FROM tab0 AS cor0 WHERE NOT + 74 / + + CAST( NULL AS SIGNED ) + + col0 * 71 IS NOT NULL
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8064
SELECT - + MAX ( + col1 ) col0 FROM tab0 AS cor0 WHERE NOT + 74 / + + CAST ( NULL AS INTEGER ) + + col0 * 71 IS NOT NULL
----
-81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 89 col1 FROM tab1 AS cor0
----
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col1 col2 FROM tab1
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * - - ( col1 ) col0, + 32 AS col2 FROM tab0
----
-210
32
-3807
32
-99
32

query I rowsort
SELECT - ( - - 87 ) FROM tab0
----
-87
-87
-87

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NOT - col1 < - 86
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8071
SELECT DISTINCT col1 DIV - - col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8071
SELECT DISTINCT col1 / - - col1 FROM tab2
----
1

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( col0, + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 75 + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8074
SELECT DISTINCT + 16 AS col2, MAX( col0 ) AS col2 FROM tab1
----
16
91

skipif mysql # not compatible
query II rowsort label-8074
SELECT DISTINCT + 16 AS col2, MAX ( col0 ) AS col2 FROM tab1
----
16
91

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE NOT + 1 * + + 95 IN ( - 93 )
----
10
47
99

query II rowsort
SELECT DISTINCT - + col0, + col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8077
SELECT * FROM tab1 AS cor0 WHERE ( NOT + ( + CAST( NULL AS SIGNED ) ) NOT BETWEEN - col0 AND NULL )
----

skipif mysql # not compatible
query III rowsort label-8077
SELECT * FROM tab1 AS cor0 WHERE ( NOT + ( + CAST ( NULL AS INTEGER ) ) NOT BETWEEN - col0 AND NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8079
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8080
SELECT DISTINCT col2 * - - 89 * - CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) AS col2, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-8080
SELECT DISTINCT col2 * - - 89 * - CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) AS col2, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8081
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 / + - 52, ( - + 82 ), + ( + 28 ), - - CAST( NULL AS DECIMAL ), - col2 )
----

skipif mysql # not compatible
query III rowsort label-8081
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 / + - 52, ( - + 82 ), + ( + 28 ), - - CAST ( NULL AS REAL ), - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 13 ) col1 FROM tab2 AS cor0
----
13
13
13

query I rowsort
SELECT - col0 * + 52 + 22 - + col1 FROM tab2
----
-2421
-3383
-3945

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT DISTINCT - + COUNT( * ) col0 FROM tab0 WHERE 2 <> ( ( + col1 ) ) + - - col1 * + col0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8084
SELECT DISTINCT - + COUNT ( * ) col0 FROM tab0 WHERE 2 <> ( ( + col1 ) ) + - - col1 * + col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT - COUNT( * ) + - 65 * + + ( + 66 ) col2 FROM tab2
----
-4293

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8085
SELECT - COUNT ( * ) + - 65 * + + ( + 66 ) col2 FROM tab2
----
-4293

query I rowsort
SELECT ALL + 63 * 61 FROM tab1
----
3843
3843
3843

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8087
SELECT CAST( NULL AS DECIMAL ) * 79 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8087
SELECT CAST ( NULL AS REAL ) * 79 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT 67 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT + col0 * - 68 FROM tab2 AS cor0
----
-3128
-4352
-5100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8091
SELECT DISTINCT - + CAST( - col2 AS SIGNED ) AS col2 FROM tab0 cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8091
SELECT DISTINCT - + CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT ALL + col1 * + ( + + col0 ) FROM tab2 AS cor0
----
2346
4928
5025

query II rowsort
SELECT - col1 AS col0, 51 FROM tab1 cor0
----
-14
51
-47
51
-5
51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * - col1 * + + 76 + + col2 = col0 - - + 7
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8095
SELECT DISTINCT - + 49 AS col0, + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-49
3

skipif mysql # not compatible
query II rowsort label-8095
SELECT DISTINCT - + 49 AS col0, + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-49
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8096
SELECT - 69 / - col0 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8096
SELECT - 69 / - col0 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT COUNT( + col2 ) + - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8097
SELECT COUNT ( + col2 ) + - COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT 56 + + + col0 AS col1 FROM tab2
----
102
120
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8099
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8099
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT DISTINCT ( - - 74 ) + + COUNT( * ) + - - 52 FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-8100
SELECT DISTINCT ( - - 74 ) + + COUNT ( * ) + - - 52 FROM tab2
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8101
SELECT + - 74 * + - CAST( + col1 AS SIGNED ) + - 89 + - col1, col2 FROM tab2 AS cor0
----
3634
23
4802
58
5532
40

skipif mysql # not compatible
query II rowsort label-8101
SELECT + - 74 * + - CAST ( + col1 AS INTEGER ) + - 89 + - col1, col2 FROM tab2 AS cor0
----
3634
23
4802
58
5532
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NULL <> + col0
----
0

skipif mysql # not compatible
query I rowsort label-8102
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <> + col0
----
0

query II rowsort
SELECT DISTINCT - 55 * - - col2 + 30, + col1 FROM tab2 AS cor0
----
-1235
51
-2170
77
-3160
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8104
SELECT - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT + 88 + COUNT( - 67 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8105
SELECT + 88 + COUNT ( - 67 ) FROM tab1
----
91

query I rowsort
SELECT ALL + 65 AS col1 FROM tab1 cor0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT ALL - SUM( DISTINCT - col2 ) - + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
124

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL - SUM ( DISTINCT - col2 ) - + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
124

query I rowsort
SELECT ALL col2 * col0 - 79 FROM tab1 AS cor0
----
4817
4936
6109

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 68 col2 FROM tab0 AS cor0
----
-68
-68
-68

query II rowsort
SELECT 47 AS col0, + col2 + + + 9 - + col1 * - + col1 FROM tab0 cor0
----
47
109
47
460
47
6617

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT + 40 * COUNT( * ) AS col2 FROM tab2 cor0
----
120

skipif mysql # not compatible
query I rowsort label-8111
SELECT + 40 * COUNT ( * ) AS col2 FROM tab2 cor0
----
120

query I rowsort
SELECT + ( ( - 36 ) ) * - col0 + - - col2 + - + col1 * - 74 FROM tab0 AS cor0
----
3665
4696
6581

query I rowsort
SELECT DISTINCT + - 55 AS col0 FROM tab0 AS cor0
----
-55

query I rowsort
SELECT ALL - 72 + - col2 FROM tab1 AS cor0
----
-131
-140
-168

query II rowsort
SELECT ALL + col1 AS col2, + 31 AS col2 FROM tab2 cor0
----
51
31
67
31
77
31

onlyif mysql # aggregate syntax: 
query II rowsort label-8116
SELECT 3 * 73 AS col1, - SUM( ALL + col0 ) + - COUNT( * ) AS col0 FROM tab1
----
219
-230

skipif mysql # not compatible
query II rowsort label-8116
SELECT 3 * 73 AS col1, - SUM ( ALL + col0 ) + - COUNT ( * ) AS col0 FROM tab1
----
219
-230

query I rowsort
SELECT DISTINCT + 2 * + col2 FROM tab0
----
198
20
94

query I rowsort
SELECT ( + - col1 ) * + 55 AS col2 FROM tab0
----
-1155
-4455
-55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8119
SELECT ALL * FROM tab1 WHERE - ( 8 ) + + col0 * - + col1 + 32 + - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8119
SELECT ALL * FROM tab1 WHERE - ( 8 ) + + col0 * - + col1 + 32 + - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= - + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - col0 - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 <= - col2
----
15
81
47
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8123
SELECT + 0 DIV + + col2 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8123
SELECT + 0 / + + col2 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + + ( + - 54 ) * - col2 + + col2 FROM tab0 AS cor0
----
2585
5445
550

query II rowsort
SELECT DISTINCT + col0 AS col1, col1 AS col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT - + 51 * - col0 + - - 60 + col2 FROM tab1 cor0
----
2757
4454
4769

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT - MAX( + + 59 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8127
SELECT - MAX ( + + 59 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT ALL - 67 + - col1 AS col0 FROM tab2 AS cor0
----
-118
-134
-144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * - ( ( - col2 ) ) + col1 col2 FROM tab2 AS cor0
----
-1523
-3297
-478

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( + 44 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * 58 AS col2 FROM tab1
----
2726
290
812

query I rowsort
SELECT DISTINCT 0 * - + col2 + + + col2 AS col1 FROM tab1
----
59
68
96

query I rowsort
SELECT 31 * - - 36 + - 0 + - - col0 FROM tab0
----
1131
1203
1213

query I rowsort
SELECT - 33 + + col0 FROM tab2
----
13
31
42

query I rowsort
SELECT - col1 + - col2 FROM tab2 WHERE - 72 > - col1 * + col1
----
-117
-125
-74

query II rowsort
SELECT ALL + col1 AS col1, 61 FROM tab0
----
1
61
21
61
81
61

query I rowsort
SELECT ALL + 1 + col2 FROM tab1
----
60
69
97

query I rowsort
SELECT 42 + + + col0 * col2 FROM tab1
----
4938
5057
6230

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 / - 32 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 84 * - ( - + col1 ) * - 35 + 60 FROM tab2
----
-149880
-196920
-226320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 3 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-3

query II rowsort
SELECT - col2 - - + col2 AS col0, 62 AS col0 FROM tab2 AS cor0
----
0
62
0
62
0
62

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 5 * col2 = - 12 * + + col2 + - 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT ALL ( - SUM( ALL - 7 ) ) - + 45 FROM tab2 cor0
----
-24

skipif mysql # not compatible
query I rowsort label-8145
SELECT ALL ( - SUM ( ALL - 7 ) ) - + 45 FROM tab2 cor0
----
-24

onlyif mysql # DIV for integer division: 
query II rowsort label-8146
SELECT col2 DIV col0 AS col0, + 59 AS col0 FROM tab0 AS cor0
----
0
59
1
59
3
59

skipif mysql # not compatible
query II rowsort label-8146
SELECT col2 / col0 AS col0, + 59 AS col0 FROM tab0 AS cor0
----
0
59
1
59
3
59

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 12 <= NULL
----

query II rowsort
SELECT - col2 AS col2, - 24 + - 93 + col2 * - - 42 AS col1 FROM tab0
----
-10
303
-47
1857
-99
4041

query I rowsort
SELECT + col0 * 4 * + col1 AS col2 FROM tab1
----
1700
17108
2856

query I rowsort
SELECT + ( - 99 ) AS col2 FROM tab0
----
-99
-99
-99

query I rowsort
SELECT + 37 * 91 FROM tab0
----
3367
3367
3367

query II rowsort
SELECT DISTINCT 0, col2 AS col0 FROM tab2
----
0
23
0
40
0
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8153
SELECT DISTINCT - - ( - CAST( NULL AS SIGNED ) ) + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8153
SELECT DISTINCT - - ( - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8154
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8155
SELECT 9 DIV + ( + 52 ) * - COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8155
SELECT 9 / + ( + 52 ) * - COUNT ( * ) AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8156
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 * + - col0 * + CAST( + - col1 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8156
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 * + - col0 * + CAST ( + - col1 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT ALL MAX( + 90 ) AS col0 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-8157
SELECT ALL MAX ( + 90 ) AS col0 FROM tab2 AS cor0
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + ( 37 ) col0 FROM tab0 AS cor0
----
-10
-62
27

query I rowsort
SELECT DISTINCT - - ( - col1 ) * 41 + 94 FROM tab1 AS cor0
----
-111
-1833
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT - 14 + MAX( DISTINCT - ( col0 ) ) AS col2 FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-8160
SELECT - 14 + MAX ( DISTINCT - ( col0 ) ) AS col2 FROM tab0 AS cor0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT ALL + ( COUNT( * ) ) * + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8161
SELECT ALL + ( COUNT ( * ) ) * + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT DISTINCT - 18 AS col0 FROM tab2 AS cor0
----
-18

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( col1 - + 15 ) BETWEEN 96 AND - col1
----

query II rowsort
SELECT - - 37 * + 18 * + + 51 + - col2 AS col2, - col0 FROM tab0 AS cor0
----
33867
-97
33919
-15
33956
-87

query I rowsort
SELECT ALL col2 + - - col0 * + - 88 FROM tab2
----
-4025
-5592
-6542

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT - 33 * COUNT( * ) + 7 * + COUNT( * ) * MIN( DISTINCT - col0 ) AS col2 FROM tab1
----
-2010

skipif mysql # not compatible
query I rowsort label-8166
SELECT - 33 * COUNT ( * ) + 7 * + COUNT ( * ) * MIN ( DISTINCT - col0 ) AS col2 FROM tab1
----
-2010

onlyif mysql # aggregate syntax: 
query II rowsort label-8167
SELECT DISTINCT + COUNT( * ) + + SUM( DISTINCT - - col0 ) col2, COUNT( * ) FROM tab1
----
230
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8167
SELECT DISTINCT + COUNT ( * ) + + SUM ( DISTINCT - - col0 ) col2, COUNT ( * ) FROM tab1
----
230
3

query I rowsort
SELECT col1 * 69 FROM tab1
----
3243
345
966

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT ALL - 67 + COUNT( - + 2 ) + 99 AS col2 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-8169
SELECT ALL - 67 + COUNT ( - + 2 ) + 99 AS col2 FROM tab0
----
35

query I rowsort
SELECT ALL - + col0 - - 42 * - col2 * 87 * + col0 FROM tab0 AS cor0
----
-2576085
-3179067
-35089459

query I rowsort
SELECT DISTINCT - col1 * + - 51 AS col2 FROM tab1 cor0
----
2397
255
714

query I rowsort
SELECT 26 * col2 + + + col1 FROM tab1 AS cor0
----
1539
1815
2510

onlyif mysql # aggregate syntax: 
query II rowsort label-8173
SELECT - COUNT( * ), + COUNT( * ) col1 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8173
SELECT - COUNT ( * ), + COUNT ( * ) col1 FROM tab2 AS cor0
----
-3
3

query I rowsort
SELECT DISTINCT - col1 * - 51 AS col1 FROM tab0 AS cor0
----
1071
4131
51

onlyif mysql # DIV for integer division: 
query I rowsort label-8175
SELECT ALL - + 75 DIV + 72 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL - + 75 / + 72 FROM tab0 AS cor0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 68 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT + SUM( + - col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-8177
SELECT + SUM ( + - col0 ) FROM tab2
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT DISTINCT - COUNT( * ) * - - 83 FROM tab2
----
-249

skipif mysql # not compatible
query I rowsort label-8178
SELECT DISTINCT - COUNT ( * ) * - - 83 FROM tab2
----
-249

query II rowsort
SELECT - 54 * + col1, + col0 AS col2 FROM tab2
----
-2754
46
-3618
75
-4158
64

query II rowsort
SELECT ALL + col0 * - 61 AS col1, 86 + + col1 AS col0 FROM tab1
----
-3111
100
-5185
91
-5551
133

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col2 ) + col0 * 88 NOT IN ( + 61 - + - 38 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8182
SELECT DISTINCT col1 * - - col1 * - CAST( NULL AS DECIMAL ) / + 66 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8182
SELECT DISTINCT col1 * - - col1 * - CAST ( NULL AS REAL ) / + 66 FROM tab1
----
NULL

query II rowsort
SELECT + col0 * + col1, 79 * col2 * + + 74 AS col1 FROM tab0
----
1215
274762
1827
58460
97
578754

query I rowsort
SELECT DISTINCT - - 50 AS col2 FROM tab1 WHERE NOT + col2 * col0 + - + col0 - + - col1 = col1 / - col0 + col2
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-8185
SELECT ALL + COUNT( ALL + 71 ), 34 AS col0 FROM tab1 cor0
----
3
34

skipif mysql # not compatible
query II rowsort label-8185
SELECT ALL + COUNT ( ALL + 71 ), 34 AS col0 FROM tab1 cor0
----
3
34

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > - col2
----

query I rowsort
SELECT DISTINCT 87 AS col1 FROM tab0 cor0
----
87

query I rowsort
SELECT DISTINCT col2 * - - col1 AS col2 FROM tab1 WHERE + 6 = - 30
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 <= - col2
----
15
81
47
87
21
10

query I rowsort
SELECT - col0 * 1 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 16 * - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8192
SELECT + CAST( 14 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-8192
SELECT + CAST ( 14 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT DISTINCT COUNT( * ) + - + 28 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + 8 / + 50 AND - col0 + col0 + - + col2
----
-28

skipif mysql # not compatible
query I rowsort label-8193
SELECT DISTINCT COUNT ( * ) + - + 28 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + 8 / + 50 AND - col0 + col0 + - + col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT DISTINCT - MIN( + + col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8194
SELECT DISTINCT - MIN ( + + col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT DISTINCT 54 FROM tab2 WHERE NULL IS NULL
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8196
SELECT + CAST( NULL AS SIGNED ) FROM tab0 WHERE + col0 + col2 <> - col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8196
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 WHERE + col0 + col2 <> - col2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8197
SELECT + col2 DIV + col1 + col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8197
SELECT + col2 / + col1 + col1 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8198
SELECT CAST( NULL AS SIGNED ) + - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8198
SELECT CAST ( NULL AS INTEGER ) + - col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8199
SELECT DISTINCT col0 - + CAST( - col2 AS SIGNED ) FROM tab0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-8199
SELECT DISTINCT col0 - + CAST ( - col2 AS INTEGER ) FROM tab0
----
196
62
97

query I rowsort
SELECT - col0 * + 62 + - 42 FROM tab1
----
-3204
-5312
-5684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8201
SELECT ALL CAST( - col0 AS SIGNED ) - - + col2 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-8201
SELECT ALL CAST ( - col0 AS INTEGER ) - - + col2 FROM tab2
----
-17
-23
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8202
SELECT - col1 + - CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8202
SELECT - col1 + - CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * col1 * 21 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 33 col2 FROM tab2 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT + COUNT( * ) + 23 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
32

skipif mysql # not compatible
query I rowsort label-8205
SELECT + COUNT ( * ) + 23 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT 62 - - + COUNT( * ) FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-8206
SELECT 62 - - + COUNT ( * ) FROM tab1
----
65

query I rowsort
SELECT ALL 26 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT - - 30 + - col0 FROM tab1 WHERE NOT NULL IN ( + 10, + col2, + - 82 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * + + col1 * + 4 AS col2, col2 col2 FROM tab2 AS cor0
----
10404
23
17956
58
23716
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT ALL - SUM( DISTINCT 46 ) AS col2 FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8210
SELECT ALL - SUM ( DISTINCT 46 ) AS col2 FROM tab2 cor0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 90 ) col2 FROM tab0 AS cor0
----
90
90
90

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 51 = NULL OR NOT - col0 IS NOT NULL
----

query II rowsort
SELECT - 60 AS col0, col2 FROM tab0 AS cor0
----
-60
10
-60
47
-60
99

query I rowsort
SELECT - + 31 AS col2 FROM tab2 AS cor0
----
-31
-31
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8215
SELECT + col1 + - + col0 + - 33 + col2 / - col1 + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT + 27 * col2 NOT BETWEEN + - col1 * + + CAST( NULL AS SIGNED ) * - + col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8215
SELECT + col1 + - + col0 + - 33 + col2 / - col1 + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT + 27 * col2 NOT BETWEEN + - col1 * + + CAST ( NULL AS INTEGER ) * - + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT MAX( 81 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-8216
SELECT MAX ( 81 ) AS col1 FROM tab0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8217
SELECT MAX( ALL + col0 ) * + CAST( 62 AS SIGNED ) AS col1 FROM tab2
----
4650

skipif mysql # not compatible
query I rowsort label-8217
SELECT MAX ( ALL + col0 ) * + CAST ( 62 AS INTEGER ) AS col1 FROM tab2
----
4650

query I rowsort
SELECT - 45 * + 93 FROM tab1
----
-4185
-4185
-4185

query I rowsort
SELECT col1 * - ( + 1 ) FROM tab2
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8220
SELECT - col1 DIV + 3 AS col1 FROM tab1
----
-1
-15
-4

skipif mysql # not compatible
query I rowsort label-8220
SELECT - col1 / + 3 AS col1 FROM tab1
----
-1
-15
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8221
SELECT + col0 * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8221
SELECT + col0 * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT COUNT( * ) * + COUNT( DISTINCT + col2 ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8222
SELECT COUNT ( * ) * + COUNT ( DISTINCT + col2 ) AS col1 FROM tab0
----
9

query III rowsort
SELECT * FROM tab0 WHERE NOT + 44 * + col2 + ( col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col0 AS col1, - ( 37 ) AS col0 FROM tab0 AS cor0
----
15
-37
87
-37
97
-37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * col0 * + ( + + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col2, - 42 AS col1 FROM tab0 cor0
----
-10
-42
-47
-42
-99
-42

query I rowsort
SELECT + + col1 FROM tab1 AS cor0 WHERE NOT NULL = col0
----

query I rowsort
SELECT DISTINCT + 94 AS col2 FROM tab1
----
94

query I rowsort
SELECT - - col2 FROM tab2 WHERE + 16 IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8230
SELECT - CAST( NULL AS SIGNED ) + + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8230
SELECT - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 + + + 92 AS col0 FROM tab1 cor0
----
143
177
183

query I rowsort
SELECT DISTINCT - 81 + - col0 * col0 + + 51 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < col0
----

query I rowsort
SELECT DISTINCT + ( + - 76 ) * + - col1 FROM tab2 AS cor0
----
3876
5092
5852

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT - SUM( + col2 ) FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-8235
SELECT - SUM ( + col2 ) FROM tab1 cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT DISTINCT + MAX( + - 43 ) + 43 - - 70 AS col1 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-8236
SELECT DISTINCT + MAX ( + - 43 ) + 43 - - 70 AS col1 FROM tab1 AS cor0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-8237
SELECT ALL col0 DIV 10 FROM tab1 WHERE NOT NULL IS NOT NULL
----
5
8
9

skipif mysql # not compatible
query I rowsort label-8237
SELECT ALL col0 / 10 FROM tab1 WHERE NOT NULL IS NOT NULL
----
5
8
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT ALL + 52 + - + COUNT( * ) AS col2 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-8238
SELECT ALL + 52 + - + COUNT ( * ) AS col2 FROM tab2
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - + col0 col2 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE + + col1 IS NOT NULL
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8241
SELECT DISTINCT - col1 DIV + + 52 + + + col0 + + col0 AS col0 FROM tab1
----
102
170
182

skipif mysql # not compatible
query I rowsort label-8241
SELECT DISTINCT - col1 / + + 52 + + + col0 + + col0 AS col0 FROM tab1
----
102
170
182

query I rowsort
SELECT 34 - - col1 FROM tab0
----
115
35
55

query I rowsort
SELECT DISTINCT + + col0 - + col2 AS col2 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT ALL + + 9 - col1 FROM tab0 AS cor0
----
-12
-72
8

query I rowsort
SELECT + + col0 * - col2 * col0 - + col0 FROM tab0 cor0
----
-10590
-75777
-931588

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT 34 * SUM( + 26 ) AS col0 FROM tab2 AS cor0
----
2652

skipif mysql # not compatible
query I rowsort label-8246
SELECT 34 * SUM ( + 26 ) AS col0 FROM tab2 AS cor0
----
2652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8247
SELECT DISTINCT MAX( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8247
SELECT DISTINCT MAX ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT ALL ( 97 ) FROM tab0
----
97
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( ( ( 89 ) ) ) ) col0 FROM tab1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT COUNT( DISTINCT - col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8250
SELECT COUNT ( DISTINCT - col0 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT - COUNT( - col0 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8251
SELECT - COUNT ( - col0 ) AS col2 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 * + col2 + + col1 ) = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 16 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8254
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE + col0 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8255
SELECT CAST( NULL AS SIGNED ) / - ( - 62 ) AS col2 FROM tab0 WHERE ( NULL ) <= ( ( col0 ) )
----

skipif mysql # not compatible
query I rowsort label-8255
SELECT CAST ( NULL AS INTEGER ) / - ( - 62 ) AS col2 FROM tab0 WHERE ( NULL ) <= ( ( col0 ) )
----

query I rowsort
SELECT ( 57 ) AS col0 FROM tab2
----
57
57
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8257
SELECT AVG ( ALL - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8257
SELECT AVG ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8258
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT + col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8258
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT + col1 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT - MAX( ALL col2 ) AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8259
SELECT - MAX ( ALL col2 ) AS col2 FROM tab0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8260
SELECT + COUNT( * ) - MAX( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8260
SELECT + COUNT ( * ) - MAX ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8261
SELECT ALL CAST( 0 AS SIGNED ) * COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL CAST ( 0 AS INTEGER ) * COUNT ( * ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE - col1 NOT IN ( + 76 * 32 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 * + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * col1 FROM tab0 WHERE NOT - col1 NOT IN ( 73 )
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT - COUNT( DISTINCT col0 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8266
SELECT - COUNT ( DISTINCT col0 ) FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 * col2 >= - 80
----

query I rowsort
SELECT col2 * + 42 AS col1 FROM tab1 AS cor0
----
2478
2856
4032

query I rowsort
SELECT col2 + - ( 37 ) FROM tab2 cor0
----
-14
21
3

query I rowsort
SELECT DISTINCT - 85 FROM tab2 WHERE col1 * 19 IS NULL
----

query I rowsort
SELECT + col0 * ( 47 * col2 ) AS col1 FROM tab2
----
120320
204450
49726

query III rowsort
SELECT * FROM tab2 WHERE col1 + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8273
SELECT DISTINCT col0 + + col0 FROM tab1 WHERE ( - 4 + + col0 / col1 ) NOT BETWEEN ( 83 * - 13 ) AND - ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8273
SELECT DISTINCT col0 + + col0 FROM tab1 WHERE ( - 4 + + col0 / col1 ) NOT BETWEEN ( 83 * - 13 ) AND - ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 24 ) NOT BETWEEN ( col2 + col0 * + ( + col1 ) ) AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * 96 AS col1 FROM tab1 AS cor0
----
4896
8160
8736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 43 * col0 col0 FROM tab1 AS cor0
----
-2193
-3655
-3913

query I rowsort
SELECT + col1 * - 21 FROM tab2 AS cor0
----
-1071
-1407
-1617

query I rowsort
SELECT 19 / col0 FROM tab2 AS cor0 WHERE ( + 59 * 75 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL >= col0 - col1
----
0

skipif mysql # not compatible
query I rowsort label-8279
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL >= col0 - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT SUM( + 55 ) - - ( 11 ) FROM tab2 AS cor0
----
176

skipif mysql # not compatible
query I rowsort label-8280
SELECT SUM ( + 55 ) - - ( 11 ) FROM tab2 AS cor0
----
176

query III rowsort
SELECT * FROM tab0 cor0 WHERE 81 + col0 NOT BETWEEN ( 51 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND + col0
----

query III rowsort
SELECT * FROM tab1 WHERE col0 + - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 + - + col2 col2 FROM tab1
----
-13
-22
-50

query III rowsort
SELECT * FROM tab0 WHERE col1 + - col2 IS NULL OR 77 + 56 < col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 38 IS NOT NULL OR NOT col1 <= ( NULL )
----

query I rowsort
SELECT ALL 20 * + + col2 + col2 FROM tab0
----
2079
210
987

query I rowsort
SELECT - 79 + 54 AS col2 FROM tab2
----
-25
-25
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8289
SELECT - 79 / - COUNT( * ) + + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8289
SELECT - 79 / - COUNT ( * ) + + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 8 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 <> col2 / ( col1 * - col0 )
----

query I rowsort
SELECT col0 / col1 + + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > + 96 * ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT - 65 * SUM( col0 ) - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-12028

skipif mysql # not compatible
query I rowsort label-8293
SELECT - 65 * SUM ( col0 ) - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-12028

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT ALL MAX( DISTINCT + col0 ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8294
SELECT ALL MAX ( DISTINCT + col0 ) AS col2 FROM tab2
----
75

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( col0 * ( - col0 * - col2 ) + - col2 ) BETWEEN ( col2 * 32 ) AND 98 + col1 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col1 AS col2, col0 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT + 92 FROM tab0 WHERE NOT ( + + col2 ) IS NULL
----
92
92
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8298
SELECT DISTINCT CAST( NULL AS SIGNED ) - 45 AS col1 FROM tab2 WHERE + - col1 + 41 * - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8298
SELECT DISTINCT CAST ( NULL AS INTEGER ) - 45 AS col1 FROM tab2 WHERE + - col1 + 41 * - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8299
SELECT ALL * FROM tab0 WHERE NOT 3 BETWEEN NULL AND - CAST( col1 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8299
SELECT ALL * FROM tab0 WHERE NOT 3 BETWEEN NULL AND - CAST ( col1 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 col0 FROM tab2 cor0
----
-4

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 18 < col0
----

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 / + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT ( 17 ) - MIN( ALL 74 ) FROM tab0 AS cor0 WHERE NOT - 4 * - col0 <= 88
----
-57

skipif mysql # not compatible
query I rowsort label-8303
SELECT ( 17 ) - MIN ( ALL 74 ) FROM tab0 AS cor0 WHERE NOT - 4 * - col0 <= 88
----
-57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 23 / col2 IN ( col1 + col1 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 9 AS col2, + col1 * col2 AS col0 FROM tab2 AS cor0
----
9
1173
9
3080
9
3886

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0 WHERE col2 IN ( + col2 )
----
51
67
77

query I rowsort
SELECT DISTINCT - + 23 AS col0 FROM tab1 AS cor0
----
-23

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col2 ) > NULL
----

query I rowsort
SELECT + col2 * - - 28 + - col1 AS col0 FROM tab2
----
1043
1557
593

query I rowsort
SELECT DISTINCT + col2 + - 85 AS col0 FROM tab1
----
-17
-26
11

query I rowsort
SELECT ALL 37 + + - col2 + + col2 AS col0 FROM tab0
----
37
37
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 99 col1 FROM tab1 WHERE NOT - + 55 NOT IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8313
SELECT + 37 * + col1 / - col0 * CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8313
SELECT + 37 * + col1 / - col0 * CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8315
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 / + + col2 ) NOT IN ( + col0 / col0 )
----

query I rowsort
SELECT 64 * + col2 FROM tab2
----
1472
2560
3712

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> ( - - 93 * - col0 )
----

query I rowsort
SELECT 51 * 42 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN col0 + - col2 AND ( + - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * + col2 + + col0 col2 FROM tab0 AS cor0
----
187
2224
9898

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 23 * 12 ) > ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( 27 <= + col0 ) )
----
15
81
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - + 4 ) IS NULL
----

query II rowsort
SELECT ALL col0 + - 5 AS col0, col0 AS col2 FROM tab2 AS cor0
----
41
46
59
64
70
75

query I rowsort
SELECT col0 - - col1 FROM tab1 WHERE ( 85 ) IS NOT NULL
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT DISTINCT MIN( DISTINCT + ( col1 ) ) - COUNT( * ) * + - COUNT( * ) * - 15 AS col1 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-8326
SELECT DISTINCT MIN ( DISTINCT + ( col1 ) ) - COUNT ( * ) * + - COUNT ( * ) * - 15 AS col1 FROM tab2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8327
SELECT DISTINCT CAST( + col1 AS SIGNED ) + col1 * + - ( - col1 ) * - col2 FROM tab1 AS cor0
----
-1470
-150165
-18802

skipif mysql # not compatible
query I rowsort label-8327
SELECT DISTINCT CAST ( + col1 AS INTEGER ) + col1 * + - ( - col1 ) * - col2 FROM tab1 AS cor0
----
-1470
-150165
-18802

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8328
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( - 81 AS SIGNED ) NOT BETWEEN + col1 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-8328
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( - 81 AS INTEGER ) NOT BETWEEN + col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT - COUNT( ALL col0 ) + - COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8329
SELECT - COUNT ( ALL col0 ) + - COUNT ( * ) FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8330
SELECT + COUNT( * ) * + - ( + COUNT( * ) ) DIV - 69 + 33 AS col1 FROM tab1 AS cor0 WHERE 54 <> NULL
----
33

skipif mysql # not compatible
query I rowsort label-8330
SELECT + COUNT ( * ) * + - ( + COUNT ( * ) ) / - 69 + 33 AS col1 FROM tab1 AS cor0 WHERE 54 <> NULL
----
33

query I rowsort
SELECT col1 * - 93 * - - col2 AS col2 FROM tab2 AS cor0
----
-109089
-286440
-361398

query I rowsort
SELECT DISTINCT + 47 + 95 FROM tab1 AS cor0
----
142

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( + - 43, col1 / - + 21 + ( + 22 ) * col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8334
SELECT DISTINCT - col2 DIV + 93 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8334
SELECT DISTINCT - col2 / + 93 FROM tab1 AS cor0
----
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8335
SELECT DISTINCT CAST( - + MAX( ALL - + 2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
2

skipif mysql # not compatible
query I rowsort label-8335
SELECT DISTINCT CAST ( - + MAX ( ALL - + 2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT MIN( DISTINCT + col0 ) AS col2 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-8336
SELECT MIN ( DISTINCT + col0 ) AS col2 FROM tab1 cor0
----
51

query I rowsort
SELECT ALL + col1 + 35 FROM tab0
----
116
36
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT DISTINCT MAX( 51 ) AS col0 FROM tab2, tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8338
SELECT DISTINCT MAX ( 51 ) AS col0 FROM tab2, tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT - SUM( + - 69 ) AS col0 FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-8339
SELECT - SUM ( + - 69 ) AS col0 FROM tab2
----
207

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= - + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 IN ( - 95 * - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 44 * col0 col2, 88 FROM tab0
----
3828
88
4268
88
660
88

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + + - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 63, col1 + + + 43 * + col0 col2 FROM tab0 AS cor0
----
63
3762
63
4172
63
726

query I rowsort
SELECT 22 * - - col2 AS col0 FROM tab2 AS cor0
----
1276
506
880

onlyif mysql # DIV for integer division: 
query II rowsort label-8346
SELECT DISTINCT + 56 AS col2, col1 DIV col1 FROM tab1 AS cor0
----
56
1

skipif mysql # not compatible
query II rowsort label-8346
SELECT DISTINCT + 56 AS col2, col1 / col1 FROM tab1 AS cor0
----
56
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT SUM( ALL col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8347
SELECT SUM ( ALL col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT - COUNT( ALL + col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8348
SELECT - COUNT ( ALL + col0 ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 * ( - 66 ) + + 82 * - 8 col0 FROM tab0 cor0
----
-3296
-3296
-3296

query I rowsort
SELECT ALL - 87 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE - 25 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-8351
SELECT + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE - 25 IS NOT NULL
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 10 < NULL
----

query II rowsort
SELECT ALL ( col0 ), + col0 * - + ( - ( 57 ) ) AS col1 FROM tab2 AS cor0
----
46
2622
64
3648
75
4275

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - + col2 AND ( + - col0 * - + col2 * - 53 * - 81 )
----

query I rowsort
SELECT + 65 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
65
65
65

onlyif mysql # DIV for integer division: 
query I rowsort label-8356
SELECT DISTINCT - col1 DIV - 84 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8356
SELECT DISTINCT - col1 / - 84 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 45 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 + - - col2 AS col0 FROM tab2
----
117
125
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8359
SELECT DISTINCT col2 DIV col2 + 99 col0 FROM tab0
----
100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8359
SELECT DISTINCT col2 / col2 + 99 col0 FROM tab0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT ALL COUNT( * ) + - + COUNT( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL COUNT ( * ) + - + COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT ALL col2, + col0 + col0 FROM tab1
----
59
170
68
182
96
102

query I rowsort
SELECT DISTINCT 62 * col2 FROM tab1
----
3658
4216
5952

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT 15 + + ( + + SUM( DISTINCT - 84 ) ) + 48 AS col2 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-8363
SELECT 15 + + ( + + SUM ( DISTINCT - 84 ) ) + 48 AS col2 FROM tab2
----
-21

query I rowsort
SELECT 17 + col0 FROM tab2
----
63
81
92

query I rowsort
SELECT - ( + + col0 ) AS col2 FROM tab2 WHERE - col0 + - - 42 IN ( - 52 * - - col2 )
----

query I rowsort
SELECT + 76 + - + col2 + col0 + + + col1 + - 55 AS col1 FROM tab1 AS cor0
----
-10
52
91

query I rowsort
SELECT DISTINCT - 28 AS col0 FROM tab2 AS cor0 WHERE - 22 * + col1 * - - col0 IS NOT NULL
----
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 col1 FROM tab0 AS cor0
----
71

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( + + col0 ) BETWEEN - col2 AND + col0 - + ( + 6 )
----
51
14
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 + 30 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * + col1 * - col1 FROM tab1 AS cor0
----
-201019
-2125
-9996

query I rowsort
SELECT DISTINCT + col2 * + + col2 + + col2 AS col0 FROM tab2
----
1640
3422
552

query I rowsort
SELECT 61 AS col0 FROM tab1 WHERE - + col1 / - col2 <= ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE - - col0 - - - col0 NOT BETWEEN ( + col2 ) AND ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col2 - 78 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT DISTINCT SUM( col1 ) col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8376
SELECT DISTINCT SUM ( col1 ) col2 FROM tab0 AS cor0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8377
SELECT DISTINCT + - MAX( ALL - - col0 ) - + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8377
SELECT DISTINCT + - MAX ( ALL - - col0 ) - + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

query II rowsort
SELECT DISTINCT 58, col2 AS col2 FROM tab1
----
58
59
58
68
58
96

query I rowsort
SELECT DISTINCT ( 87 ) AS col2 FROM tab1
----
87

query I rowsort
SELECT DISTINCT + col2 * - 90 AS col0 FROM tab2
----
-2070
-3600
-5220

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( - ( - 66 ) ) > - col0 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8382
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8382
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8383
SELECT - 53 DIV + col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8383
SELECT - 53 / + col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NULL >= - + col2 * + col0 * + col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8385
SELECT ALL CAST( NULL AS DECIMAL ) / - + 67 * + COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL CAST ( NULL AS REAL ) / - + 67 * + COUNT ( * ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + 93 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8387
SELECT DISTINCT + col1 DIV - 44 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT + col1 / - 44 FROM tab0
----
-1
0

query I rowsort
SELECT ALL 59 * + 59 FROM tab1
----
3481
3481
3481

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 34 AS col0 FROM tab2 AS cor0 WHERE 35 NOT BETWEEN + ( + + 35 ) + - + 35 * col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 7 <= - 19 + - - col1
----

query I rowsort
SELECT + 10 * + + ( 49 ) FROM tab2 AS cor0
----
490
490
490

query I rowsort
SELECT DISTINCT - 23 * + + col0 AS col0 FROM tab0
----
-2001
-2231
-345

query I rowsort
SELECT 92 * - col0 AS col0 FROM tab2
----
-4232
-5888
-6900

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT - 93 > ( NULL )
----

query I rowsort
SELECT ALL col2 * - 61 AS col2 FROM tab0
----
-2867
-6039
-610

query I rowsort
SELECT + col1 + + 31 * + col0 FROM tab1 cor0 WHERE NOT - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 37 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT ALL SUM( - ( 69 ) ) FROM tab2 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-8399
SELECT ALL SUM ( - ( 69 ) ) FROM tab2 AS cor0
----
-207

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 88 IS NULL AND NOT ( NULL ) BETWEEN ( - 40 ) AND + 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT + 75 + - MIN( DISTINCT - col2 ) col1 FROM tab1 AS cor0
----
171

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8401
SELECT + 75 + - MIN ( DISTINCT - col2 ) col1 FROM tab1 AS cor0
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT ALL - MIN( + + col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL - MIN ( + + col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT - - COUNT( * ) + 35 - - + 42 AS col2 FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-8403
SELECT - - COUNT ( * ) + 35 - - + 42 AS col2 FROM tab0 AS cor0
----
80

query I rowsort
SELECT ALL + 62 + - + 90 FROM tab0 AS cor0
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-8405
SELECT 47 AS col0, COUNT( * ) FROM tab1, tab1 AS cor0
----
47
9

skipif mysql # not compatible
query II rowsort label-8405
SELECT 47 AS col0, COUNT ( * ) FROM tab1, tab1 AS cor0
----
47
9

query II rowsort
SELECT col1 + - + col1, col0 FROM tab2
----
0
46
0
64
0
75

query I rowsort
SELECT ALL + col0 + - ( + ( - + 33 ) ) * - col0 + - col2 FROM tab0
----
-2794
-3203
-527

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( - + 80 ) IS NULL
----

query I rowsort
SELECT ALL col1 + 70 * - col1 AS col1 FROM tab2
----
-3519
-4623
-5313

query I rowsort
SELECT ( col2 ) FROM tab1 WHERE ( NOT ( - 47 - col0 + + + 91 * + col0 ) IN ( 3 ) )
----
59
68
96

query I rowsort
SELECT 73 FROM tab0 WHERE 83 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 25 FROM tab2, tab2 AS cor0 WHERE 41 - - 47 IS NOT NULL
----
25

query I rowsort
SELECT + 98 * + col1 AS col0 FROM tab1
----
1372
4606
490

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT COUNT( * ) * + 51 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
153

skipif mysql # not compatible
query I rowsort label-8414
SELECT COUNT ( * ) * + 51 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
153

query I rowsort
SELECT - - 90 AS col1 FROM tab0 AS cor0
----
90
90
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8416
SELECT + + col2 DIV + 22 - + + ( + col2 ) FROM tab2 AS cor0
----
-22
-39
-56

skipif mysql # not compatible
query I rowsort label-8416
SELECT + + col2 / + 22 - + + ( + col2 ) FROM tab2 AS cor0
----
-22
-39
-56

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + - col2 - col0 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT DISTINCT - - SUM( 84 ) col0 FROM tab2 AS cor0
----
252

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8418
SELECT DISTINCT - - SUM ( 84 ) col0 FROM tab2 AS cor0
----
252

query I rowsort
SELECT DISTINCT 82 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT ALL + COUNT( * ) * - MAX( + 20 ) FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8420
SELECT ALL + COUNT ( * ) * - MAX ( + 20 ) FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 + 63 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8422
SELECT + CAST( MAX( ALL col1 ) AS SIGNED ), COUNT( * ) * + 53 AS col1 FROM tab0 AS cor0
----
81
159

skipif mysql # not compatible
query II rowsort label-8422
SELECT + CAST ( MAX ( ALL col1 ) AS INTEGER ), COUNT ( * ) * + 53 AS col1 FROM tab0 AS cor0
----
81
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8423
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8423
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 29 col0 FROM tab1 AS cor0
----
29
29
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 AS col2, + col1 col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT ( + + MAX( DISTINCT + 5 ) ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-8426
SELECT ( + + MAX ( DISTINCT + 5 ) ) FROM tab1
----
5

query III rowsort
SELECT * FROM tab1 WHERE NOT + 84 BETWEEN NULL AND - col2 * + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8428
SELECT + col0 DIV + + col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8428
SELECT + col0 / + + col0 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT + col2 * + - col2 FROM tab2
----
-1600
-3364
-529

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <= ( + 86 + - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 13 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT DISTINCT - - 69 * - COUNT( * ) FROM tab1 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-8432
SELECT DISTINCT - - 69 * - COUNT ( * ) FROM tab1 AS cor0
----
-207

query I rowsort
SELECT ALL - 39 * - 1 * + col0 FROM tab0 AS cor0
----
3393
3783
585

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT 97 * + - col1 / - 29 <= col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * + 33 AS col2 FROM tab2
----
1683
2211
2541

query II rowsort
SELECT ALL col1, col1 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT ALL - + AVG ( col0 ) FROM tab2 AS cor0 WHERE NOT 18 * ( 32 ) = NULL
----
NULL

query II rowsort
SELECT ALL + - col2, - 69 AS col2 FROM tab0 AS cor0
----
-10
-69
-47
-69
-99
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-8439
SELECT + col1 DIV - + 15 AS col0 FROM tab1 cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-8439
SELECT + col1 / - + 15 AS col0 FROM tab1 cor0
----
-3
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col1, 61 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT ALL MAX( ALL col0 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL MAX ( ALL col0 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 24 AS col2, - 80 col0 FROM tab2
----
24
-80
24
-80
24
-80

query I rowsort
SELECT col1 * + col2 * col1 + - col0 FROM tab1
----
1390
150121
18765

query I rowsort
SELECT ALL 87 + - 19 FROM tab0
----
68
68
68

query I rowsort
SELECT col2 + 0 FROM tab2
----
23
40
58

query I rowsort
SELECT - + 75 * 38 + - 28 FROM tab2 WHERE NULL IS NULL
----
-2878
-2878
-2878

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8447
SELECT ALL + col2 + + col0 / - + col2 + + 1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL + col2 + + col0 / - + col2 + + 1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8448
SELECT + 75 + - col0 DIV + 89 AS col2 FROM tab2
----
75
75
75

skipif mysql # not compatible
query I rowsort label-8448
SELECT + 75 + - col0 / + 89 AS col2 FROM tab2
----
75
75
75

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - + 19 AND NULL
----

query I rowsort
SELECT col2 + - + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - col1 + - - 80 FROM tab2
----
13
29
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT ALL + MAX( DISTINCT + - 72 ) AS col1 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-8452
SELECT ALL + MAX ( DISTINCT + - 72 ) AS col1 FROM tab1
----
-72

query I rowsort
SELECT DISTINCT + 20 * - col0 + + col1 FROM tab2
----
-1203
-1433
-869

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8454
SELECT ALL CAST( NULL AS SIGNED ) + + 43 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8454
SELECT ALL CAST ( NULL AS INTEGER ) + + 43 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + - 81 * col0 + - - col0 + - 99 * + col2 FROM tab0 cor0
----
-17561
-5853
-7950

query I rowsort
SELECT 95 + + ( + ( + col2 ) ) - + - col0 AS col2 FROM tab2 cor0
----
164
199
228

query I rowsort
SELECT + 31 AS col0 FROM tab0 AS cor0 WHERE ( NOT - col0 - 16 NOT BETWEEN + col1 + ( 57 ) AND col0 )
----

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE col1 > NULL
----

query I rowsort
SELECT DISTINCT col0 + 57 AS col0 FROM tab1
----
108
142
148

query I rowsort
SELECT DISTINCT - ( - - col1 ) + col2 * + + col2 AS col2 FROM tab0
----
2128
79
9800

query II rowsort
SELECT ALL - col2 * col1 AS col1, - 26 * col1 FROM tab0
----
-210
-546
-3807
-2106
-99
-26

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + 77 > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * + col0 < NULL
----

query I rowsort
SELECT ALL - - col1 FROM tab1 AS cor0 WHERE NOT col0 * col1 * + col1 = col0
----
14
47
5

query II rowsort
SELECT - col0, ( + col2 ) FROM tab2
----
-46
23
-64
40
-75
58

query I rowsort
SELECT + 99 * col1 * - + 64 FROM tab0
----
-133056
-513216
-6336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8467
SELECT - CAST( NULL AS SIGNED ) * - + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8467
SELECT - CAST ( NULL AS INTEGER ) * - + col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8468
SELECT ALL CAST( - - col2 AS SIGNED ) FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8468
SELECT ALL CAST ( - - col2 AS INTEGER ) FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8469
SELECT ALL col0, CAST( NULL AS DECIMAL ) + + col0 AS col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-8469
SELECT ALL col0, CAST ( NULL AS REAL ) + + col0 AS col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> - ( - 17 ) * 48
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8471
SELECT ALL + 15 + - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE col0 >= - CAST( + + ( - col1 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL + 15 + - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE col0 >= - CAST ( + + ( - col1 ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT ALL + - COUNT( * ) - + MAX( ALL + + col0 ) * 2 + + COUNT( * ) FROM tab2 WHERE NOT + ( - col2 ) - col2 * - col2 IS NULL
----
-150

skipif mysql # not compatible
query I rowsort label-8472
SELECT ALL + - COUNT ( * ) - + MAX ( ALL + + col0 ) * 2 + + COUNT ( * ) FROM tab2 WHERE NOT + ( - col2 ) - col2 * - col2 IS NULL
----
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8473
SELECT + COUNT( * ) * - - 8 AS col0 FROM tab1 AS cor0 WHERE ( NULL IN ( - CAST( NULL AS SIGNED ) + col1, + col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8473
SELECT + COUNT ( * ) * - - 8 AS col0 FROM tab1 AS cor0 WHERE ( NULL IN ( - CAST ( NULL AS INTEGER ) + col1, + col2 ) )
----
0

query I rowsort
SELECT col1 + 98 * col0 AS col2 FROM tab1 AS cor0
----
5012
8335
8965

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT ALL + - COUNT( * ) * - 82 AS col0 FROM tab2 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL + - COUNT ( * ) * - 82 AS col0 FROM tab2 AS cor0
----
246

query II rowsort
SELECT + col2 + col2, 27 * col2 AS col1 FROM tab0 cor0
----
198
2673
20
270
94
1269

onlyif mysql # DIV for integer division: 
query I rowsort label-8477
SELECT ALL + - ( + col0 ) DIV 31 col1 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8477
SELECT ALL + - ( + col0 ) / 31 col1 FROM tab0 AS cor0
----
-2
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT ALL + 8 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8478
SELECT ALL + 8 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
5

query I rowsort
SELECT + + col1 AS col0 FROM tab2 WHERE NULL IS NULL
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 = col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8481
SELECT DISTINCT - - col0 * + - 33 + - + CAST( NULL AS SIGNED ) * col0 * - col2 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8481
SELECT DISTINCT - - col0 * + - 33 + - + CAST ( NULL AS INTEGER ) * col0 * - col2 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col1 - - + 32 AS col2 FROM tab0
----
-49
11
31

query I rowsort
SELECT ALL - - col0 AS col0 FROM tab0 WHERE col0 * - col1 IS NOT NULL
----
15
87
97

query I rowsort
SELECT ( col2 ) * - 10 AS col1 FROM tab1
----
-590
-680
-960

onlyif mysql # DIV for integer division: 
query I rowsort label-8485
SELECT DISTINCT col0 - + + 88 + + col0 DIV - col0 col1 FROM tab1 AS cor0
----
-38
-4
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8485
SELECT DISTINCT col0 - + + 88 + + col0 / - col0 col1 FROM tab1 AS cor0
----
-38
-4
2

query I rowsort
SELECT + 85 - + - col1 AS col0 FROM tab2 AS cor0
----
136
152
162

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 NOT IN ( - - col2 / + col0 * + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8488
SELECT + 56 - + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8488
SELECT + 56 - + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + 10 * 50 + - + col0 FROM tab0 AS cor0
----
500
500
500

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8490
SELECT col0 * - col1 + + - CAST( NULL AS DECIMAL ), col0 AS col1 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-8490
SELECT col0 * - col1 + + - CAST ( NULL AS REAL ), col0 AS col1 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT DISTINCT - COUNT( 14 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8491
SELECT DISTINCT - COUNT ( 14 ) FROM tab1
----
-3

query I rowsort
SELECT ALL + 77 FROM tab1, tab2 AS cor0 WHERE - + 18 IS NOT NULL
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT + ( - 14 ) FROM tab2
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-8494
SELECT + 5 AS col1, COUNT( * ) AS col1 FROM tab0 AS cor0
----
5
3

skipif mysql # not compatible
query II rowsort label-8494
SELECT + 5 AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
5
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN col2 * - col2 + + - col0 + - col0 AND ( - 41 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT ALL + COUNT( ALL + 85 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL + COUNT ( ALL + 85 ) FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 col1 FROM tab2 AS cor0
----
62
62
62

query II rowsort
SELECT + col1 AS col1, col2 AS col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query II rowsort
SELECT col1, 32 FROM tab2 cor0
----
51
32
67
32
77
32

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + col1 + - + col1, ( + col1 ) + col1 )
----

query II rowsort
SELECT ALL + 32 * - - 58 AS col1, col2 + + col1 FROM tab1
----
1856
110
1856
115
1856
64

query I rowsort
SELECT DISTINCT - 18 FROM tab1 WHERE NULL NOT IN ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8503
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8503
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT NULL < ( 35 ) + + - col2 + - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8505
SELECT col2 DIV - col0 col2, + col0 + col0 FROM tab1
----
-1
102
0
170
0
182

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8505
SELECT col2 / - col0 col2, + col0 + col0 FROM tab1
----
-1
102
0
170
0
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8506
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8506
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT DISTINCT - MAX( + + col1 ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8507
SELECT DISTINCT - MAX ( + + col1 ) AS col0 FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8508
SELECT COUNT( * ) AS col1 FROM tab0 WHERE + CAST( + col0 AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8508
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE + CAST ( + col0 AS INTEGER ) IS NOT NULL
----
3

query I rowsort
SELECT ALL + 61 + + col2 AS col1 FROM tab1 WHERE NULL IS NULL
----
120
129
157

query I rowsort
SELECT DISTINCT + - AVG ( + col2 ) AS col1 FROM tab0 WHERE - ( + col0 ) IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + 62 IS NOT NULL
----

query I rowsort
SELECT col2 + + ( - col1 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 83 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT ALL - - 80 + + + MIN( ALL + - col0 ) FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-8514
SELECT ALL - - 80 + + + MIN ( ALL + - col0 ) FROM tab1 AS cor0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT - 90 * COUNT( * ) + 82 AS col1 FROM tab1
----
-188

skipif mysql # not compatible
query I rowsort label-8515
SELECT - 90 * COUNT ( * ) + 82 AS col1 FROM tab1
----
-188

query I rowsort
SELECT DISTINCT col1 - + ( + 6 ) - - col0 AS col2 FROM tab1
----
132
59
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - - 50 * col0 * col0 col2 FROM tab0
----
11169
378429
470449

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8518
SELECT CAST( NULL AS DECIMAL ) + + - COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8518
SELECT CAST ( NULL AS REAL ) + + - COUNT ( * ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8519
SELECT ALL + MIN( - - col2 ) DIV - 73 - + + MAX( - + 70 ) + + MIN( col2 ) AS col2 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-8519
SELECT ALL + MIN ( - - col2 ) / - 73 - + + MAX ( - + 70 ) + + MIN ( col2 ) AS col2 FROM tab2
----
93

query I rowsort
SELECT ALL - - col0 * + col0 - + 55 FROM tab2 AS cor0
----
2061
4041
5570

query I rowsort
SELECT DISTINCT - col0 * 87 AS col1 FROM tab2
----
-4002
-5568
-6525

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT DISTINCT MIN( ALL + + 16 ) AS col0 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-8522
SELECT DISTINCT MIN ( ALL + + 16 ) AS col0 FROM tab0 AS cor0
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-8523
SELECT ALL + 7, + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
7
3

skipif mysql # not compatible
query II rowsort label-8523
SELECT ALL + 7, + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
7
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > + col0 * 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT DISTINCT + SUM( ALL + + col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-8525
SELECT DISTINCT + SUM ( ALL + + col0 ) FROM tab1 AS cor0
----
227

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col0 / + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT - SUM( ALL + col2 ) * + ( MAX( ALL - col1 ) ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8527
SELECT - SUM ( ALL + col2 ) * + ( MAX ( ALL - col1 ) ) AS col1 FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT ALL - MAX( DISTINCT - 63 ) AS col0 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-8528
SELECT ALL - MAX ( DISTINCT - 63 ) AS col0 FROM tab0 AS cor0
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 60 col2 FROM tab1
----
-3540
-4080
-5760

query II rowsort
SELECT - 20, col0 FROM tab0
----
-20
15
-20
87
-20
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT COUNT( ALL - col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8531
SELECT COUNT ( ALL - col1 ) AS col1 FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 61 < - 70
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT MIN( ALL - 10 ) FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-8533
SELECT MIN ( ALL - 10 ) FROM tab2
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-8534
SELECT DISTINCT - COUNT( * ) AS col0, - COUNT( * ) * MAX( - col0 ) AS col0 FROM tab1
----
-3
153

skipif mysql # not compatible
query II rowsort label-8534
SELECT DISTINCT - COUNT ( * ) AS col0, - COUNT ( * ) * MAX ( - col0 ) AS col0 FROM tab1
----
-3
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8535
SELECT DISTINCT CAST( - 13 AS SIGNED ) + COUNT( * ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-8535
SELECT DISTINCT CAST ( - 13 AS INTEGER ) + COUNT ( * ) FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-8536
SELECT DISTINCT COUNT( * ), 54 AS col0 FROM tab2
----
3
54

skipif mysql # not compatible
query II rowsort label-8536
SELECT DISTINCT COUNT ( * ), 54 AS col0 FROM tab2
----
3
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT DISTINCT - - COUNT( * ) * - 66 FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-8537
SELECT DISTINCT - - COUNT ( * ) * - 66 FROM tab1 AS cor0
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT + ( ( + COUNT( * ) ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8538
SELECT + ( ( + COUNT ( * ) ) ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, 55 FROM tab2 AS cor0
----
-23
55
-40
55
-58
55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8540
SELECT DISTINCT * FROM tab0 WHERE + CAST( 80 AS SIGNED ) + + + col2 BETWEEN + - col0 AND - col1
----

skipif mysql # not compatible
query III rowsort label-8540
SELECT DISTINCT * FROM tab0 WHERE + CAST ( 80 AS INTEGER ) + + + col2 BETWEEN + - col0 AND - col1
----

query I rowsort
SELECT - + ( 63 ) * - + 44 + 55 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to efb9ff884c4a8cf121288f3de199c0a0

query I rowsort
SELECT + 38 + - + col1 FROM tab1
----
-9
24
33

query I rowsort
SELECT - col2 * - col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 81 * - col1 col1 FROM tab2 AS cor0
----
-4131
-5427
-6237

query I rowsort
SELECT DISTINCT + + 87 * - - 55 FROM tab2 AS cor0
----
4785

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT - COUNT( * ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8546
SELECT - COUNT ( * ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT DISTINCT + ( - ( - COUNT( * ) ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8547
SELECT DISTINCT + ( - ( - COUNT ( * ) ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + - col1 * + + 19 FROM tab2 AS cor0
----
-1273
-1463
-969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8549
SELECT ALL + CAST( NULL AS SIGNED ) + + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8549
SELECT ALL + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col0 AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8551
SELECT 70 DIV - 78 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8551
SELECT 70 / - 78 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8552
SELECT col0, - col0 DIV + col0 FROM tab2
----
46
-1
64
-1
75
-1

skipif mysql # not compatible
query II rowsort label-8552
SELECT col0, - col0 / + col0 FROM tab2
----
46
-1
64
-1
75
-1

query I rowsort
SELECT DISTINCT 18 * - col0 * col2 + - + col0 FROM tab0
----
-12705
-15747
-172951

query I rowsort
SELECT ALL col2 * - 46 * - + col0 + 46 AS col0 FROM tab2
----
117806
200146
48714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 11 * + col0 * col1 * + col2 + - - col1 + 42 col1, + col1 AS col2 FROM tab2
----
-2168201
77
-3205841
67
-593445
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT - - 32 - + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-8556
SELECT - - 32 - + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8557
SELECT ALL + 78 * COUNT( * ) * + MIN( - - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8557
SELECT ALL + 78 * COUNT ( * ) * + MIN ( - - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ( - 89 ) AS col0 FROM tab0 AS cor0
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT DISTINCT - + ( - + COUNT( ALL + col0 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8559
SELECT DISTINCT - + ( - + COUNT ( ALL + col0 ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 89 * + + col2 FROM tab0 AS cor0
----
-4183
-8811
-890

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT + + COUNT( * ) FROM tab2 WHERE NOT NULL > + col1
----
0

skipif mysql # not compatible
query I rowsort label-8561
SELECT + + COUNT ( * ) FROM tab2 WHERE NOT NULL > + col1
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * + col1 / col1 + + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * + + col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8564
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL BETWEEN 19 * CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8564
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL BETWEEN 19 * CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT DISTINCT + - 97 AS col0 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT + col0 * - 46 FROM tab0 AS cor0
----
-4002
-4462
-690

query I rowsort
SELECT + ( - ( + ( - col1 ) ) ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - 64 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT ALL SUM( DISTINCT + - ( - - col1 ) ) FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-66

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL SUM ( DISTINCT + - ( - - col1 ) ) FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT DISTINCT 76 * + 98 + - - MIN( 91 ) AS col2 FROM tab1
----
7539

skipif mysql # not compatible
query I rowsort label-8570
SELECT DISTINCT 76 * + 98 + - - MIN ( 91 ) AS col2 FROM tab1
----
7539

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 43 + - col0 col0 FROM tab0
----
3654
4074
630

query I rowsort
SELECT col2 + 70 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT DISTINCT - 54 + - + COUNT( * ) + + - 48 * 99 - + COUNT( * ) FROM tab2
----
-4812

skipif mysql # not compatible
query I rowsort label-8573
SELECT DISTINCT - 54 + - + COUNT ( * ) + + - 48 * 99 - + COUNT ( * ) FROM tab2
----
-4812

query III rowsort
SELECT * FROM tab1 WHERE NOT - 19 < + 45
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 0 col0 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT ALL - COUNT( ALL + - col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL - COUNT ( ALL + - col1 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT ALL + ( SUM( ALL - col1 ) ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL + ( SUM ( ALL - col1 ) ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT ALL + col0 * + 69 AS col0 FROM tab2
----
3174
4416
5175

query I rowsort
SELECT ALL 35 + + ( + + col0 ) FROM tab0
----
122
132
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT MIN( + 84 ) AS col0 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-8581
SELECT MIN ( + 84 ) AS col0 FROM tab0
----
84

query I rowsort
SELECT ALL 87 - + 17 FROM tab1 AS cor0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT 24 - - MIN( DISTINCT + 90 ) AS col2 FROM tab1 cor0
----
114

skipif mysql # not compatible
query I rowsort label-8583
SELECT 24 - - MIN ( DISTINCT + 90 ) AS col2 FROM tab1 cor0
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8584
SELECT DISTINCT + CAST( + 51 AS SIGNED ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8584
SELECT DISTINCT + CAST ( + 51 AS INTEGER ) FROM tab2 AS cor0
----
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * - 66 + 67 IS NULL
----

query I rowsort
SELECT DISTINCT + - 68 - - col0 + + col1 * - + col2 FROM tab0 AS cor0
----
-191
-3860
-70

query I rowsort
SELECT DISTINCT ( - 96 ) FROM tab1 cor0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - + col2 ) col1 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab0 WHERE - col0 * + col1 <> - 25
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( col2 ) + col0 AS col0 FROM tab1
----
144
147
159

query I rowsort
SELECT + 23 + - 11 + col1 * + col1 AS col2 FROM tab0
----
13
453
6573

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 - 31 col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
20
36
46

query I rowsort
SELECT DISTINCT 1 + + + col1 AS col2 FROM tab2
----
52
68
78

query III rowsort
SELECT * FROM tab0 WHERE + col2 >= - col0 - - ( - 61 ) + + - col0 + + - col1 * + 44
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 21 + col0 FROM tab1
----
30
64
70

onlyif mysql # DIV for integer division: 
query I rowsort label-8596
SELECT + 89 * col2 DIV - col2 FROM tab1
----
-89
-89
-89

skipif mysql # not compatible
query I rowsort label-8596
SELECT + 89 * col2 / - col2 FROM tab1
----
-89
-89
-89

query I rowsort
SELECT + 7 * - - col0 * - col2 AS col1 FROM tab0
----
-4935
-6090
-67221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8598
SELECT + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8598
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * - 0 * - col2 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col2 NOT IN ( + col1, + ( - col0 ), - col2 * - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT + COUNT( * ) - - - 75 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-66

skipif mysql # not compatible
query I rowsort label-8601
SELECT + COUNT ( * ) - - - 75 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-66

query II rowsort
SELECT - + col1 AS col2, col0 AS col1 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query II rowsort label-8603
SELECT ALL - - 58 AS col2, - MAX( ALL + 2 ) FROM tab2 AS cor0
----
58
-2

skipif mysql # not compatible
query II rowsort label-8603
SELECT ALL - - 58 AS col2, - MAX ( ALL + 2 ) FROM tab2 AS cor0
----
58
-2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > - 56 + + col2 + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8605
SELECT DISTINCT - SUM( - + ( col0 ) ) * + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8605
SELECT DISTINCT - SUM ( - + ( col0 ) ) * + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( - + 4 ) FROM tab2 cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT DISTINCT + COUNT( * ) * + ( + 45 ) AS col1 FROM tab1 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-8607
SELECT DISTINCT + COUNT ( * ) * + ( + 45 ) AS col1 FROM tab1 AS cor0
----
135

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8608
SELECT + + 42 + + CAST( + ( - 83 ) AS SIGNED ) DIV + col2 AS col1 FROM tab2 AS cor0
----
39
40
41

skipif mysql # not compatible
query I rowsort label-8608
SELECT + + 42 + + CAST ( + ( - 83 ) AS INTEGER ) / + col2 AS col1 FROM tab2 AS cor0
----
39
40
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT + - COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8609
SELECT + - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT - + COUNT( * ) + + 86 AS col0 FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-8610
SELECT - + COUNT ( * ) + + 86 AS col0 FROM tab0 AS cor0
----
83

onlyif mysql # DIV for integer division: 
query II rowsort label-8611
SELECT DISTINCT - 81 DIV col2, col2 - - col0 * + - col0 AS col0 FROM tab1
----
-1
-7166
-1
-8213
0
-2505

skipif mysql # not compatible
query II rowsort label-8611
SELECT DISTINCT - 81 / col2, col2 - - col0 * + - col0 AS col0 FROM tab1
----
-1
-7166
-1
-8213
0
-2505

query II rowsort
SELECT - col1 + - - col0 AS col2, 93 FROM tab1
----
37
93
44
93
80
93

query I rowsort
SELECT col0 + + + col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8614
SELECT DISTINCT + CAST( + col0 AS SIGNED ) AS col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8614
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) AS col2 FROM tab2
----
46
64
75

query I rowsort
SELECT col2 - col1 + - col2 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-8616
SELECT ALL COUNT( * ) * + 54 AS col2, + COUNT( * ) FROM tab0 AS cor0
----
162
3

skipif mysql # not compatible
query II rowsort label-8616
SELECT ALL COUNT ( * ) * + 54 AS col2, + COUNT ( * ) FROM tab0 AS cor0
----
162
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8617
SELECT ALL - MAX( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8617
SELECT ALL - MAX ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + + 89 ) col1 FROM tab0 cor0
----
89

query I rowsort
SELECT ALL + + col2 * - ( - 59 ) + - - 46 FROM tab1 AS cor0
----
3527
4058
5710

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT - col1 * + ( + col2 ) - - 69 FROM tab1 AS cor0
----
-1275
-226
-3127

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT + 31 * - + SUM( 90 ) FROM tab2
----
-8370

skipif mysql # not compatible
query I rowsort label-8622
SELECT + 31 * - + SUM ( 90 ) FROM tab2
----
-8370

query I rowsort
SELECT - + col0 - + col2 FROM tab1 WHERE NOT - ( col2 ) IS NULL
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query II rowsort label-8624
SELECT ALL + COUNT( * ), COUNT( * ) AS col2 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-8624
SELECT ALL + COUNT ( * ), COUNT ( * ) AS col2 FROM tab1
----
3
3

query I rowsort
SELECT ALL + ( - + col2 ) FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT DISTINCT - 60 * + + COUNT( * ) FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-8626
SELECT DISTINCT - 60 * + + COUNT ( * ) FROM tab0
----
-180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8627
SELECT - CAST( - - COUNT( * ) AS SIGNED ) * 33 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8627
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) * 33 FROM tab0
----
-99

query I rowsort
SELECT ALL col1 * - col2 AS col0 FROM tab1 WHERE NULL NOT BETWEEN + 72 * 81 AND + col1 * - col0
----

query I rowsort
SELECT - - ( col0 ) * + col0 AS col1 FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT ALL + COUNT( * ) * + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8630
SELECT ALL + COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8631
SELECT - col2 * + 70 * 54 * + col2 * + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8631
SELECT - col2 * + 70 * 54 * + col2 * + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT DISTINCT ( - SUM( ALL 50 ) ) FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-8632
SELECT DISTINCT ( - SUM ( ALL 50 ) ) FROM tab0 AS cor0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= 59
----
0

skipif mysql # not compatible
query I rowsort label-8633
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= 59
----
0

query I rowsort
SELECT ALL + + col1 * - + col1 AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

query II rowsort
SELECT DISTINCT + col2 * + col0 + ( + ( + 9 ) ) AS col0, col2 AS col1 FROM tab1 AS cor0
----
4905
96
5024
59
6197
68

query I rowsort
SELECT DISTINCT + 21 * - - col0 FROM tab1 AS cor0
----
1071
1785
1911

query I rowsort
SELECT col0 + col1 * 90 - + + col1 FROM tab2
----
4585
6038
6917

query I rowsort
SELECT ALL - ( + + col1 ) FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT COUNT( * ) + COUNT( * ) + + ( COUNT( * ) ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8639
SELECT COUNT ( * ) + COUNT ( * ) + + ( COUNT ( * ) ) AS col0 FROM tab2
----
9

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 * + col1 > + + 74 + - col0 - 41 * + 2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8641
SELECT DISTINCT COUNT( * ) * + 41 * + + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8641
SELECT DISTINCT COUNT ( * ) * + 41 * + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + col2 + - 52 AS col1 FROM tab1
----
16
44
7

query I rowsort
SELECT DISTINCT 57 + + col2 FROM tab2
----
115
80
97

query I rowsort
SELECT ALL - col2 * + col2 + + col0 * - col1 FROM tab1
----
-3906
-8901
-9930

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT DISTINCT - COUNT( * ) - + SUM( - ( + + ( + - col0 ) ) ) AS col2 FROM tab0
----
-202

skipif mysql # not compatible
query I rowsort label-8645
SELECT DISTINCT - COUNT ( * ) - + SUM ( - ( + + ( + - col0 ) ) ) AS col2 FROM tab0
----
-202

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = - - 41 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT ALL + MIN( ALL - col0 ) AS col1 FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8647
SELECT ALL + MIN ( ALL - col0 ) AS col1 FROM tab1 cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 * 16 + - col1 col0 FROM tab1 AS cor0 WHERE NOT + col1 + - 23 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT ALL + + COUNT( 57 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL + + COUNT ( 57 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT 56 FROM tab2 AS cor0 WHERE NOT NULL < 31
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8651
SELECT - ( - CAST( NULL AS SIGNED ) ) * + - COUNT( DISTINCT + + ( 65 ) ), - CAST( NULL AS DECIMAL ) * - COUNT( * ) + + 79 AS col2 FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8651
SELECT - ( - CAST ( NULL AS INTEGER ) ) * + - COUNT ( DISTINCT + + ( 65 ) ), - CAST ( NULL AS REAL ) * - COUNT ( * ) + + 79 AS col2 FROM tab2 AS cor0
----
NULL
NULL

query I rowsort
SELECT col0 * - + col2 AS col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8653
SELECT - 49 / ( ( CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8653
SELECT - 49 / ( ( CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + col1 + - 51 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 40 * - 16 AS col2 FROM tab1
----
-640
-640
-640

onlyif mysql # DIV for integer division: 
query I rowsort label-8656
SELECT + 15 DIV + - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8656
SELECT + 15 / + - col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8657
SELECT + CAST( - - COUNT( * ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8657
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8658
SELECT + 10, + COUNT( * ) AS col0 FROM tab2
----
10
3

skipif mysql # not compatible
query II rowsort label-8658
SELECT + 10, + COUNT ( * ) AS col0 FROM tab2
----
10
3

query I rowsort
SELECT + col0 + col1 + - + 21 FROM tab0 WHERE NOT ( + + col2 ) <= col0
----
75
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + col2 ) col2 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT COUNT( * ) * 52 col2 FROM tab1
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8661
SELECT COUNT ( * ) * 52 col2 FROM tab1
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT ALL MAX( DISTINCT + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8662
SELECT ALL MAX ( DISTINCT + col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8663
SELECT ALL + ( - SUM( CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) ), 63 * + + SUM( DISTINCT + ( + + 73 ) ) AS col1 FROM tab1
----
NULL
4599

skipif mysql # not compatible
query II rowsort label-8663
SELECT ALL + ( - SUM ( CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) ), 63 * + + SUM ( DISTINCT + ( + + 73 ) ) AS col1 FROM tab1
----
NULL
4599

query I rowsort
SELECT DISTINCT + - col2 * - + 30 FROM tab0 AS cor0
----
1410
2970
300

query I rowsort
SELECT ALL - 73 * + col1 FROM tab0 AS cor0
----
-1533
-5913
-73

query I rowsort
SELECT ALL + col0 + + 97 AS col1 FROM tab2 AS cor0
----
143
161
172

onlyif mysql # DIV for integer division: 
query I rowsort label-8667
SELECT - - col2 + - col2 DIV + - col2 AS col1 FROM tab1 cor0
----
60
69
97

skipif mysql # not compatible
query I rowsort label-8667
SELECT - - col2 + - col2 / + - col2 AS col1 FROM tab1 cor0
----
60
69
97

query I rowsort
SELECT 27 + - col2 AS col2 FROM tab1 AS cor0
----
-32
-41
-69

query I rowsort
SELECT + - ( + col0 ) + - 78 FROM tab2 AS cor0
----
-124
-142
-153

query I rowsort
SELECT DISTINCT + + ( ( - col0 ) ) + + col1 FROM tab1 AS cor0
----
-37
-44
-80

query III rowsort
SELECT * FROM tab2 WHERE + col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8672
SELECT ALL * FROM tab1 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8672
SELECT ALL * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 71 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8674
SELECT + col1 - - + col2 DIV col2 AS col2 FROM tab0 AS cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-8674
SELECT + col1 - - + col2 / col2 AS col2 FROM tab0 AS cor0
----
2
22
82

query II rowsort
SELECT + col0, - col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT DISTINCT + MIN( ALL + + 47 ) col1 FROM tab2
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8676
SELECT DISTINCT + MIN ( ALL + + 47 ) col1 FROM tab2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8677
SELECT ALL col2 + - - col1 * + CAST( - col1 AS SIGNED ) FROM tab1
----
-100
-2141
34

skipif mysql # not compatible
query I rowsort label-8677
SELECT ALL col2 + - - col1 * + CAST ( - col1 AS INTEGER ) FROM tab1
----
-100
-2141
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8678
SELECT - 24 + + + col2 AS col1 FROM tab1 WHERE col1 / CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8678
SELECT - 24 + + + col2 AS col1 FROM tab1 WHERE col1 / CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8679
SELECT ALL + col0 DIV 98 + 81 + - - col1 FROM tab0
----
102
162
82

skipif mysql # not compatible
query I rowsort label-8679
SELECT ALL + col0 / 98 + 81 + - - col1 FROM tab0
----
102
162
82

query I rowsort
SELECT ALL + 87 * col0 AS col0 FROM tab1
----
4437
7395
7917

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 * - col1 / col2 / - col2 * col0 + + + ( + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8682
SELECT DISTINCT + 18 DIV + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8682
SELECT DISTINCT + 18 / + COUNT ( * ) FROM tab0 AS cor0
----
6

query II rowsort
SELECT ALL col0 AS col1, - 49 * col1 AS col1 FROM tab2 AS cor0
----
46
-2499
64
-3773
75
-3283

query II rowsort
SELECT + - 7, col2 FROM tab0 AS cor0
----
-7
10
-7
47
-7
99

query I rowsort
SELECT - - 41 FROM tab2 cor0
----
41
41
41

query I rowsort
SELECT DISTINCT 18 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT DISTINCT + ( + + 85 ) FROM tab0 AS cor0
----
85

query I rowsort
SELECT col1 * - col1 * + 12 AS col1 FROM tab1
----
-2352
-26508
-300

query I rowsort
SELECT - col1 * col1 + - + col1 * + + col2 + col0 AS col2 FROM tab1 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT ALL + MIN( + col1 ) * MAX( ALL col2 ) FROM tab2
----
2958

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL + MIN ( + col1 ) * MAX ( ALL col2 ) FROM tab2
----
2958

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT DISTINCT - 59 * + COUNT( * ) FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-8691
SELECT DISTINCT - 59 * + COUNT ( * ) FROM tab1
----
-177

onlyif mysql # aggregate syntax: 
query II rowsort label-8692
SELECT DISTINCT - SUM( DISTINCT + - col0 ) AS col0, - 13 FROM tab1
----
227
-13

skipif mysql # not compatible
query II rowsort label-8692
SELECT DISTINCT - SUM ( DISTINCT + - col0 ) AS col0, - 13 FROM tab1
----
227
-13

query I rowsort
SELECT DISTINCT ( - 29 ) FROM tab2
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8694
SELECT DISTINCT * FROM tab1 cor0 WHERE CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-8694
SELECT DISTINCT * FROM tab1 cor0 WHERE CAST ( NULL AS INTEGER ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8695
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8695
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8697
SELECT DISTINCT + COUNT( * ) * + + CAST( NULL AS DECIMAL ) + ( - 67 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8697
SELECT DISTINCT + COUNT ( * ) * + + CAST ( NULL AS REAL ) + ( - 67 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT ALL - 1 * - 50 * + 79 * - 92 + + COUNT( * ) * MAX( col0 ) FROM tab1
----
-363127

skipif mysql # not compatible
query I rowsort label-8698
SELECT ALL - 1 * - 50 * + 79 * - 92 + + COUNT ( * ) * MAX ( col0 ) FROM tab1
----
-363127

query II rowsort
SELECT DISTINCT - - col1, - col0 AS col1 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 * + - col2 col2 FROM tab0 AS cor0
----
-4512
-9504
-960

query I rowsort
SELECT ALL - ( - col2 ) + - col1 * + col0 FROM tab1 AS cor0
----
-366
-4209
-618

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab0 AS cor0 WHERE 14 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8703
SELECT DISTINCT - col1 + - - CAST( NULL AS SIGNED ) + - col0 col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8703
SELECT DISTINCT - col1 + - - CAST ( NULL AS INTEGER ) + - col0 col2 FROM tab0 cor0
----
NULL

query II rowsort
SELECT ALL - + col0 AS col0, 11 FROM tab2 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT DISTINCT col2 + + - col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT DISTINCT MAX( DISTINCT + col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-8706
SELECT DISTINCT MAX ( DISTINCT + col1 ) AS col1 FROM tab2
----
77

query II rowsort
SELECT ALL - 32 + 77 + ( + ( - col2 ) ) * + + 1, col1 FROM tab2
----
-13
67
22
51
5
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT DISTINCT MIN( DISTINCT 27 ) + 52 AS col2 FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-8708
SELECT DISTINCT MIN ( DISTINCT 27 ) + 52 AS col2 FROM tab0
----
79

query I rowsort
SELECT ALL ( 74 ) FROM tab0
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT + ( - ( COUNT( * ) ) ) + + MAX( DISTINCT col0 ) FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-8710
SELECT + ( - ( COUNT ( * ) ) ) + + MAX ( DISTINCT col0 ) FROM tab1 AS cor0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8711
SELECT * FROM tab0 AS cor0 WHERE - 15 BETWEEN - ( + col0 ) + - 86 + ( + CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8711
SELECT * FROM tab0 AS cor0 WHERE - 15 BETWEEN - ( + col0 ) + - 86 + ( + CAST ( NULL AS INTEGER ) ) AND NULL
----

query I rowsort
SELECT DISTINCT + - col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8713
SELECT + MAX( DISTINCT - + col1 ) col1, - 85 AS col0 FROM tab2 AS cor0
----
-51
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8713
SELECT + MAX ( DISTINCT - + col1 ) col1, - 85 AS col0 FROM tab2 AS cor0
----
-51
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8714
SELECT ALL - CAST( SUM( ALL + col2 ) AS SIGNED ) AS col1 FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL - CAST ( SUM ( ALL + col2 ) AS INTEGER ) AS col1 FROM tab1 cor0
----
-223

onlyif mysql # DIV for integer division: 
query I rowsort label-8715
SELECT DISTINCT col1 DIV - 84 + col2 + 63 FROM tab2 AS cor0
----
103
121
86

skipif mysql # not compatible
query I rowsort label-8715
SELECT DISTINCT col1 / - 84 + col2 + 63 FROM tab2 AS cor0
----
103
121
86

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 76 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8717
SELECT col0 DIV + - col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8717
SELECT col0 / + - col1 FROM tab2
----
-1
0
0

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT + 35 * + COUNT( * ) FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-8719
SELECT + 35 * + COUNT ( * ) FROM tab1
----
105

query II rowsort
SELECT col1 AS col0, ( + + col2 ) FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT DISTINCT - - MAX( - + col1 ) FROM tab0 AS cor0 WHERE 96 > col0
----
-21

skipif mysql # not compatible
query I rowsort label-8721
SELECT DISTINCT - - MAX ( - + col1 ) FROM tab0 AS cor0 WHERE 96 > col0
----
-21

query I rowsort
SELECT 7 + + 69 AS col0 FROM tab2
----
76
76
76

query I rowsort
SELECT DISTINCT 49 * 52 FROM tab1
----
2548

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + ( - col0 ) * col2 + + col1 * col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE col0 + + col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * 25 NOT BETWEEN NULL AND + 5
----

query I rowsort
SELECT 16 * - col1 + - col1 AS col0 FROM tab2
----
-1139
-1309
-867

query I rowsort
SELECT ALL 62 * col1 FROM tab1
----
2914
310
868

query I rowsort
SELECT DISTINCT - col0 + ( col1 ) FROM tab0
----
-66
-96
66

query I rowsort
SELECT 6 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 3 AS col0 FROM tab0 WHERE NOT ( col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - ( 56 ) AS col0 FROM tab0
----
-56
-56
-56

query III rowsort
SELECT * FROM tab1 WHERE col0 NOT BETWEEN ( - col0 ) AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 10 * col1 AS col0 FROM tab2
----
510
670
770

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 = col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 16 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8740
SELECT col0 * + col2 + - col2 DIV col2 FROM tab1
----
4895
5014
6187

skipif mysql # not compatible
query I rowsort label-8740
SELECT col0 * + col2 + - col2 / col2 FROM tab1
----
4895
5014
6187

query I rowsort
SELECT DISTINCT ( col2 ) - col2 * col1 AS col2 FROM tab1
----
-1248
-236
-3128

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT MIN( + ( col1 ) ) AS col1 FROM tab2 WHERE NOT col1 BETWEEN ( NULL ) AND + col2 / - col1
----
51

skipif mysql # not compatible
query I rowsort label-8742
SELECT MIN ( + ( col1 ) ) AS col1 FROM tab2 WHERE NOT col1 BETWEEN ( NULL ) AND + col2 / - col1
----
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < col2 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8744
SELECT + CAST( + 59 AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0
----
3481
4012
5664

skipif mysql # not compatible
query I rowsort label-8744
SELECT + CAST ( + 59 AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0
----
3481
4012
5664

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT ALL COUNT( col0 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8745
SELECT ALL COUNT ( col0 ) col1 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab2 WHERE NULL IN ( - col1 - + 51 )
----

query I rowsort
SELECT ALL - 76 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT ALL - COUNT( * ) + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0
----
0

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL - COUNT ( * ) + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8749
SELECT - - 63 DIV - col1 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8749
SELECT - - 63 / - col1 FROM tab2 cor0
----
-1
0
0

query I rowsort
SELECT + col1 * col2 + col2 FROM tab0 AS cor0 WHERE NOT + ( + 51 ) * + col2 IS NULL
----
198
220
3854

query I rowsort
SELECT + + ( + ( + 68 ) ) FROM tab2 AS cor0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT + MIN( DISTINCT col2 ) col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8752
SELECT + MIN ( DISTINCT col2 ) col2 FROM tab1 AS cor0
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 col2 FROM tab2 cor0
----
91
91
91

query I rowsort
SELECT ALL 2 AS col1 FROM tab1 cor0
----
2
2
2

query I rowsort
SELECT ALL ( - col2 ) * col0 FROM tab0 AS cor0
----
-705
-870
-9603

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * - 37 BETWEEN col1 AND NULL
----

query I rowsort
SELECT ALL - col0 * - ( + col0 ) AS col1 FROM tab0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8758
SELECT * FROM tab1 WHERE NOT ( CAST( NULL AS SIGNED ) ) >= + col1 * + 61
----

skipif mysql # not compatible
query III rowsort label-8758
SELECT * FROM tab1 WHERE NOT ( CAST ( NULL AS INTEGER ) ) >= + col1 * + 61
----

query I rowsort
SELECT ALL + col1 * + 68 * col2 + + 94 AS col0 FROM tab0
----
14374
258970
6826

query I rowsort
SELECT 59 FROM tab0 WHERE NOT ( col1 * - col2 - 15 ) IS NULL
----
59
59
59

query I rowsort
SELECT + col0 * + ( col0 ) AS col2 FROM tab2
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT DISTINCT - COUNT( + col1 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8762
SELECT DISTINCT - COUNT ( + col1 ) AS col2 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + - col0 + + ( - col0 ) * + col0 + col2 col2 FROM tab0 AS cor0
----
-6689
293
527

query I rowsort
SELECT + col0 + - - col0 * + col2 AS col2 FROM tab2 AS cor0
----
1104
2624
4425

query I rowsort
SELECT DISTINCT ( - 91 ) + col2 AS col1 FROM tab0 AS cor0 WHERE NULL > ( - 78 + col0 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT DISTINCT + + ( - SUM( DISTINCT 63 ) ) FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-8766
SELECT DISTINCT + + ( - SUM ( DISTINCT 63 ) ) FROM tab0 AS cor0
----
-63

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col1 * - 34 NOT BETWEEN - ( 93 ) AND NULL
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT ALL - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8768
SELECT ALL - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT ALL - 42 + - COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8769
SELECT ALL - 42 + - COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT DISTINCT COUNT( * ) + 67 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
76

skipif mysql # not compatible
query I rowsort label-8770
SELECT DISTINCT COUNT ( * ) + 67 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT MAX( - + 51 ) AS col0 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8771
SELECT MAX ( - + 51 ) AS col0 FROM tab0 AS cor0
----
-51

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL IN ( col1 * - col2 - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT + 37 - + + ( - COUNT( * ) ) FROM tab0 cor0
----
40

skipif mysql # not compatible
query I rowsort label-8773
SELECT + 37 - + + ( - COUNT ( * ) ) FROM tab0 cor0
----
40

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 IN ( + col2 * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT - - 37 + COUNT( * ) FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-8776
SELECT - - 37 + COUNT ( * ) FROM tab0 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 < col0
----
2

skipif mysql # not compatible
query I rowsort label-8777
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 < col0
----
2

query I rowsort
SELECT ALL 71 AS col0 FROM tab2 cor0
----
71
71
71

query I rowsort
SELECT ALL + 68 * - 48 + - col1 AS col1 FROM tab1 AS cor0
----
-3269
-3278
-3311

query I rowsort
SELECT + col0 + + - 81 FROM tab1
----
-30
10
4

query I rowsort
SELECT + col0 + col2 FROM tab2 WHERE ( NULL ) BETWEEN ( - 10 * + - col1 ) AND 25
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8782
SELECT ALL + col2 DIV col1 + col1 + 87 AS col1 FROM tab1
----
103
107
135

skipif mysql # not compatible
query I rowsort label-8782
SELECT ALL + col2 / col1 + col1 + 87 AS col1 FROM tab1
----
103
107
135

query I rowsort
SELECT col1 * - col2 + + col2 AS col0 FROM tab0
----
-200
-3760
0

query I rowsort
SELECT DISTINCT col1 + col1 * + - ( col2 ) + col1 AS col0 FROM tab2
----
-1071
-2926
-3752

query I rowsort
SELECT + ( - - 61 ) AS col0 FROM tab2
----
61
61
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8786
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 58 - - col0 + + col1 / 83 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8786
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 58 - - col0 + + col1 / 83 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT ALL + MAX( DISTINCT + col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8787
SELECT ALL + MAX ( DISTINCT + col2 ) FROM tab1
----
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND + + col0 - + 77 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8789
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8790
SELECT DISTINCT - CAST( + - 13 AS SIGNED ) AS col2 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-8790
SELECT DISTINCT - CAST ( + - 13 AS INTEGER ) AS col2 FROM tab2
----
13

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 ) NOT IN ( col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - col0 IS NULL ) OR - col1 IS NULL
----

query I rowsort
SELECT col1 * - 16 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN + ( - col0 ) AND col2
----

query I rowsort
SELECT + - col0 + col1 + col0 FROM tab0 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL + col1 * - + 83 FROM tab2 AS cor0
----
-4233
-5561
-6391

query I rowsort
SELECT ALL - 48 + + col2 AS col1 FROM tab0
----
-1
-38
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT ALL MIN( ALL ( + col1 ) ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-8797
SELECT ALL MIN ( ALL ( + col1 ) ) FROM tab1
----
5

query I rowsort
SELECT DISTINCT - + ( - 24 ) * col2 FROM tab2 WHERE NOT + 38 <> - col2 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8799
SELECT col1 * CAST( 38 AS SIGNED ) AS col0 FROM tab0
----
3078
38
798

skipif mysql # not compatible
query I rowsort label-8799
SELECT col1 * CAST ( 38 AS INTEGER ) AS col0 FROM tab0
----
3078
38
798

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT + + MIN( - col0 ) AS col0 FROM tab1 WHERE NOT + - ( + + col2 ) / - 1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8800
SELECT + + MIN ( - col0 ) AS col0 FROM tab1 WHERE NOT + - ( + + col2 ) / - 1 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + col2 + 69 FROM tab0
----
116
168
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT DISTINCT - COUNT( * ) col1 FROM tab2 WHERE NOT + - col2 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8802
SELECT DISTINCT - COUNT ( * ) col1 FROM tab2 WHERE NOT + - col2 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT - col0 NOT BETWEEN - col1 AND + 36
----
-81

query I rowsort
SELECT ALL - col1 + - 14 FROM tab1
----
-19
-28
-61

query I rowsort
SELECT ALL + - col0 * col1 * - col2 * - - col2 + col1 AS col2 FROM tab1 WHERE NULL IS NULL
----
1479430
19776895
6580238

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 64 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT DISTINCT + MAX( + + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-8808
SELECT DISTINCT + MAX ( + + col0 ) FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT DISTINCT - COUNT( * ) * + 89 FROM tab2
----
-267

skipif mysql # not compatible
query I rowsort label-8809
SELECT DISTINCT - COUNT ( * ) * + 89 FROM tab2
----
-267

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 9 + + col0 + col1 NOT BETWEEN ( 80 ) AND col2 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 11 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN + col2 - + - col0 - + col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8812
SELECT - COUNT( * ) AS col2 FROM tab0 cor0 WHERE - CAST( NULL AS SIGNED ) IN ( + 85 / col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8812
SELECT - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE - CAST ( NULL AS INTEGER ) IN ( + 85 / col1 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8813
SELECT + col1 AS col0, - col1 DIV - 33 FROM tab0 AS cor0
----
1
0
21
0
81
2

skipif mysql # not compatible
query II rowsort label-8813
SELECT + col1 AS col0, - col1 / - 33 FROM tab0 AS cor0
----
1
0
21
0
81
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8814
SELECT ALL col2 * col2 + col2 col0 FROM tab2 WHERE NOT ( CAST( - 77 AS DECIMAL ) * col0 - - - 40 + - col1 + + 94 ) >= + 56 AND NOT ( 74 - 40 ) IS NULL
----
1640
3422
552

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8814
SELECT ALL col2 * col2 + col2 col0 FROM tab2 WHERE NOT ( CAST ( - 77 AS REAL ) * col0 - - - 40 + - col1 + + 94 ) >= + 56 AND NOT ( 74 - 40 ) IS NULL
----
1640
3422
552

query I rowsort
SELECT DISTINCT 24 * 13 - - col1 AS col0 FROM tab2
----
363
379
389

query I rowsort
SELECT + - 98 + + + col1 FROM tab0 AS cor0
----
-17
-77
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT + SUM( - + col1 ) + COUNT( * ) FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-8817
SELECT + SUM ( - + col1 ) + COUNT ( * ) FROM tab2 AS cor0
----
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + col0 * + + col1 col2 FROM tab0 AS cor0
----
-158949
-18225
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT + 2 * 83 * + - ( SUM( ALL + - col1 ) ) FROM tab0 AS cor0
----
17098

skipif mysql # not compatible
query I rowsort label-8819
SELECT + 2 * 83 * + - ( SUM ( ALL + - col1 ) ) FROM tab0 AS cor0
----
17098

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8820
SELECT ALL - CAST( NULL AS SIGNED ) * + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8820
SELECT ALL - CAST ( NULL AS INTEGER ) * + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8821
SELECT ALL - + 28 DIV - 56 - + 76 + + col0 FROM tab1 AS cor0
----
-25
15
9

skipif mysql # not compatible
query I rowsort label-8821
SELECT ALL - + 28 / - 56 - + 76 + + col0 FROM tab1 AS cor0
----
-25
15
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT ( - + col2 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT DISTINCT 59 - - MIN( + col0 ) AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) IN ( - + col0 + + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8823
SELECT DISTINCT 59 - - MIN ( + col0 ) AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) IN ( - + col0 + + col0 )
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 NOT IN ( + ( 2 ), col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 * + 84 / + + col2 + - col2 FROM tab1 cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL + + 82 AS col1 FROM tab1 AS cor0
----
82
82
82

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NOT ( NULL NOT IN ( + col2 ) ) )
----

query I rowsort
SELECT + col0 - - - col0 + + - col2 + + + col2 * + 91 * - ( - - col1 ) * - + col1 * + col2 AS col2 FROM tab2
----
125209516
1374190578
863262360

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 NOT BETWEEN ( - + col0 ) AND NULL
----

query I rowsort
SELECT ALL - - 78 * + - col2 * - col0 AS col1 FROM tab1 AS cor0
----
381888
391170
482664

query I rowsort
SELECT DISTINCT - col1 FROM tab1 cor0 WHERE 51 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT + SUM( ALL 51 ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-8832
SELECT + SUM ( ALL 51 ) FROM tab2 AS cor0
----
153

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + - 83 / + col0 * + - col1 - + 64 + col0 + 98 * - col0 * col1 ) IS NOT NULL
----

query I rowsort
SELECT + 8 * - col1 FROM tab1
----
-112
-376
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT DISTINCT + - 46 * COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-414

skipif mysql # not compatible
query I rowsort label-8835
SELECT DISTINCT + - 46 * COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-414

query I rowsort
SELECT + 74 * - ( + col1 ) FROM tab2
----
-3774
-4958
-5698

query I rowsort
SELECT 91 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT ALL - col2 * - 68 * + - col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN col2 + 0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 36 >= + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8840
SELECT - + SUM( + col2 ), + 8 AS col0 FROM tab2 cor0
----
-121
8

skipif mysql # not compatible
query II rowsort label-8840
SELECT - + SUM ( + col2 ), + 8 AS col0 FROM tab2 cor0
----
-121
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 7 + + - 54 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8841
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 7 + + - 54 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8842
SELECT DISTINCT + col0 * CAST( CAST( + col0 AS SIGNED ) AS SIGNED ) * + col2 + + col2 * + 17 AS col2 FROM tab1
----
251328
427278
564264

skipif mysql # not compatible
query I rowsort label-8842
SELECT DISTINCT + col0 * CAST ( CAST ( + col0 AS INTEGER ) AS INTEGER ) * + col2 + + col2 * + 17 AS col2 FROM tab1
----
251328
427278
564264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 10 * - col2 col1 FROM tab0
----
-13
-455
-893

query II rowsort
SELECT DISTINCT - ( - col0 ) + + col0 AS col2, 20 AS col1 FROM tab2
----
128
20
150
20
92
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8845
SELECT col1 + - col0 + - 45 AS col0, + CAST( NULL AS SIGNED ) FROM tab1
----
-125
NULL
-82
NULL
-89
NULL

skipif mysql # not compatible
query II rowsort label-8845
SELECT col1 + - col0 + - 45 AS col0, + CAST ( NULL AS INTEGER ) FROM tab1
----
-125
NULL
-82
NULL
-89
NULL

query I rowsort
SELECT ALL - ( - ( - + 35 ) ) AS col2 FROM tab0 AS cor0
----
-35
-35
-35

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 42 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL > - col0 + - col0 * - col1 )
----

query I rowsort
SELECT + 26 * - - col0 * - col0 FROM tab1
----
-187850
-215306
-67626

onlyif mysql # DIV for integer division: 
query I rowsort label-8850
SELECT - - col0 - + - ( + + col0 ) DIV 74 AS col2 FROM tab2 AS cor0
----
46
64
76

skipif mysql # not compatible
query I rowsort label-8850
SELECT - - col0 - + - ( + + col0 ) / 74 AS col2 FROM tab2 AS cor0
----
46
64
76

query II rowsort
SELECT + + col0 - - + 68 AS col0, col2 FROM tab2 AS cor0
----
114
23
132
40
143
58

query I rowsort
SELECT ALL + 92 - + - col0 FROM tab1 AS cor0
----
143
177
183

query I rowsort
SELECT DISTINCT - col2 - 60 + + + col2 FROM tab0 AS cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT DISTINCT - COUNT( ALL + ( - - col0 ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8854
SELECT DISTINCT - COUNT ( ALL + ( - - col0 ) ) AS col2 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8855
SELECT col0 DIV - - 65 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8855
SELECT col0 / - - 65 AS col0 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL - col2 * + + ( 3 ) FROM tab2
----
-120
-174
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8857
SELECT - col1 * CAST( - col0 AS SIGNED ) * ( - - 99 ) AS col1, + col0 FROM tab0
----
120285
15
180873
87
9603
97

skipif mysql # not compatible
query II rowsort label-8857
SELECT - col1 * CAST ( - col0 AS INTEGER ) * ( - - 99 ) AS col1, + col0 FROM tab0
----
120285
15
180873
87
9603
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 60 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 col0 FROM tab0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT + 43 * SUM( ALL + 53 ) AS col1 FROM tab1
----
6837

skipif mysql # not compatible
query I rowsort label-8860
SELECT + 43 * SUM ( ALL + 53 ) AS col1 FROM tab1
----
6837

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( ( NULL IS NOT NULL ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 col0 FROM tab1 AS cor0
----
47
47
47

query I rowsort
SELECT ( + - col2 ) AS col1 FROM tab1
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 + - - 34 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8f0ca4cf97de794a4b9271d695e9d991

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT DISTINCT COUNT( DISTINCT col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8865
SELECT DISTINCT COUNT ( DISTINCT col0 ) AS col0 FROM tab1
----
3

query II rowsort
SELECT DISTINCT - col1 AS col2, col1 AS col1 FROM tab1 cor0
----
-14
14
-47
47
-5
5

query II rowsort
SELECT ALL col2, + col1 AS col2 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----

query II rowsort
SELECT DISTINCT - - col1, col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL 49 FROM tab2 WHERE + + col1 IS NULL
----

query I rowsort
SELECT ALL + col1 + + - col2 + col0 * + + ( col0 ) AS col0 FROM tab2
----
2144
4133
5634

query I rowsort
SELECT - col2 FROM tab1 WHERE + - 21 NOT BETWEEN ( col1 ) AND + col2
----
-59
-68
-96

query I rowsort
SELECT + + 44 * + col1 * - - 3 - - + 23 - - - ( - col0 ) AS col0 FROM tab0 AS cor0
----
10730
252
2882

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 + col2 col2 FROM tab2
----
113
78
95

query III rowsort
SELECT * FROM tab1 WHERE col2 <> - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT ALL 57 - - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-8876
SELECT ALL 57 - - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
54

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * + - col2 - col0 IS NULL
----

query I rowsort
SELECT col2 * - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT - MIN( - col2 ) col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8879
SELECT - MIN ( - col2 ) col1 FROM tab1 AS cor0
----
96

query I rowsort
SELECT + - 8 AS col1 FROM tab2 cor0
----
-8
-8
-8

query I rowsort
SELECT 43 * + + col2 FROM tab2 AS cor0
----
1720
2494
989

query II rowsort
SELECT ALL - col2 * - 1 AS col1, ( col2 ) FROM tab1
----
59
59
68
68
96
96

query II rowsort
SELECT ALL col1, + col1 + + + col1 FROM tab2
----
51
102
67
134
77
154

query I rowsort
SELECT DISTINCT - col1 * 36 AS col2 FROM tab1
----
-1692
-180
-504

query I rowsort
SELECT DISTINCT - col1 * + 45 * + - col1 FROM tab1
----
1125
8820
99405

query I rowsort
SELECT ALL col0 * + 86 AS col0 FROM tab2
----
3956
5504
6450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - col1, + col1 col2, - col1 FROM tab1
----
9 values hashing to c38aae9f379b860029e0985dddbe3c24

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT + - SUM( ALL - col2 ) col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8888
SELECT + - SUM ( ALL - col2 ) col0 FROM tab0 AS cor0
----
156

query I rowsort
SELECT + col1 + + + 57 AS col2 FROM tab0 cor0
----
138
58
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8890
SELECT ALL - CAST( - 9 AS SIGNED ) + - col2 col2 FROM tab2
----
-14
-31
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8890
SELECT ALL - CAST ( - 9 AS INTEGER ) + - col2 col2 FROM tab2
----
-14
-31
-49

query I rowsort
SELECT + + 2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT DISTINCT + - ( - 63 ) FROM tab0 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT + 42 * + MIN( ALL + ( + 48 ) ) + + + 13 AS col1 FROM tab2 AS cor0
----
2029

skipif mysql # not compatible
query I rowsort label-8893
SELECT + 42 * + MIN ( ALL + ( + 48 ) ) + + + 13 AS col1 FROM tab2 AS cor0
----
2029

onlyif mysql # DIV for integer division: 
query I rowsort label-8894
SELECT 87 DIV + col1 - - 54 + 24 * + col2 FROM tab2 AS cor0
----
1015
1447
607

skipif mysql # not compatible
query I rowsort label-8894
SELECT 87 / + col1 - - 54 + 24 * + col2 FROM tab2 AS cor0
----
1015
1447
607

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + + 48 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8896
SELECT - 32 + + + 59 + + CAST( NULL AS SIGNED ) / - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8896
SELECT - 32 + + + 59 + + CAST ( NULL AS INTEGER ) / - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT + MAX( ALL - col2 ) + - COUNT( * ) AS col0 FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-8897
SELECT + MAX ( ALL - col2 ) + - COUNT ( * ) AS col0 FROM tab1
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-8898
SELECT ALL + col0 + - ( + col2 ) DIV + col0 * col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8898
SELECT ALL + col0 + - ( + col2 ) / + col0 * col0 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT - col1 - + - col0 + + 1 FROM tab1
----
38
45
81

query I rowsort
SELECT + col2 + + + 77 FROM tab1
----
136
145
173

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8901
SELECT + col1 - + - col2 + + + col2 * col2 AS col1 FROM tab2 WHERE - col1 IN ( + col0, col0 - - col1 + + - col1, + col2 * - - col1 + CAST( NULL AS SIGNED ) + - + CAST( - - 20 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-8901
SELECT + col1 - + - col2 + + + col2 * col2 AS col1 FROM tab2 WHERE - col1 IN ( + col0, col0 - - col1 + + - col1, + col2 * - - col1 + CAST ( NULL AS INTEGER ) + - + CAST ( - - 20 AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8902
SELECT DISTINCT + CAST( - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-8902
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query II rowsort
SELECT ALL - - col0, col2 - - 90 + + + col2 AS col1 FROM tab2 cor0
----
46
136
64
170
75
206

onlyif mysql # DIV for integer division: 
query I rowsort label-8904
SELECT - col1 DIV 81 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8904
SELECT - col1 / 81 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT ( + - col1 ) AS col2 FROM tab0 cor0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col2 + + col2 IS NOT NULL
----

query I rowsort
SELECT ( - - col0 ) * col0 FROM tab2 cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT DISTINCT COUNT( DISTINCT - - col0 ) * - 21 FROM tab0 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-8908
SELECT DISTINCT COUNT ( DISTINCT - - col0 ) * - 21 FROM tab0 cor0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT 5 * - MAX( DISTINCT + col0 ) * - 3 AS col1 FROM tab2
----
1125

skipif mysql # not compatible
query I rowsort label-8909
SELECT 5 * - MAX ( DISTINCT + col0 ) * - 3 AS col1 FROM tab2
----
1125

query III rowsort
SELECT * FROM tab1 WHERE NOT 75 NOT IN ( + col1, + col0 ) OR NULL IN ( - 51, col1 )
----

query I rowsort
SELECT DISTINCT - 23 * - + col2 AS col0 FROM tab0
----
1081
2277
230

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 54 + col2 + - - 7 * + 6 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT DISTINCT COUNT( ALL - col2 ) * + ( + - COUNT( * ) ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-8913
SELECT DISTINCT COUNT ( ALL - col2 ) * + ( + - COUNT ( * ) ) AS col0 FROM tab1
----
-9

query I rowsort
SELECT + 51 * + col0 FROM tab0
----
4437
4947
765

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT - COUNT( col2 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8915
SELECT - COUNT ( col2 ) AS col2 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 43 ) col2 FROM tab1 cor0
----
43
43
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 col2 FROM tab2 AS cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8918
SELECT COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT ( 67 ) * + 23 + + col1 AS col1 FROM tab0
----
1542
1562
1622

query I rowsort
SELECT ALL 25 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT ALL AVG ( - - col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - 31 + - - 88 AS col0 FROM tab2 AS cor0
----
57
57
57

query I rowsort
SELECT + col2 + + 95 AS col1 FROM tab2 AS cor0
----
118
135
153

query I rowsort
SELECT DISTINCT ( + col2 ) * + - 71 FROM tab1 cor0
----
-4189
-4828
-6816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col0, col0 + + col2 col2 FROM tab1 AS cor0
----
-14
147
-47
159
-5
144

onlyif mysql # DIV for integer division: 
query I rowsort label-8926
SELECT DISTINCT - + col2 DIV 43 + - col2 AS col1 FROM tab0 AS cor0
----
-10
-101
-48

skipif mysql # not compatible
query I rowsort label-8926
SELECT DISTINCT - + col2 / 43 + - col2 AS col1 FROM tab0 AS cor0
----
-10
-101
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8927
SELECT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8927
SELECT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8928
SELECT CAST( + + CAST( + col2 AS SIGNED ) AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8928
SELECT CAST ( + + CAST ( + col2 AS INTEGER ) AS INTEGER ) FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE NOT - - col2 / + - 85 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col0 + - - col2 + - ( 97 ) FROM tab0 WHERE NULL >= - 5
----

query III rowsort
SELECT * FROM tab2 WHERE 27 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8932
SELECT ( col0 ) AS col2, CAST( NULL AS DECIMAL ) + col0 + + - col1 + + col0 AS col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-8932
SELECT ( col0 ) AS col2, CAST ( NULL AS REAL ) + col0 + + - col1 + + col0 AS col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + col2 col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8934
SELECT ALL - col2 + - 40 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8934
SELECT ALL - col2 + - 40 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + - - col2 AS col1 FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8936
SELECT DISTINCT - - CAST( NULL AS SIGNED ) - + CAST( 24 AS SIGNED ) * + 94 * - 26 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8936
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) - + CAST ( 24 AS INTEGER ) * + 94 * - 26 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT DISTINCT COUNT( * ) - - - ( + 76 ) AS col2 FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-8937
SELECT DISTINCT COUNT ( * ) - - - ( + 76 ) AS col2 FROM tab1 AS cor0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8938
SELECT DISTINCT CAST( - col0 AS SIGNED ) * 37 AS col0, + col2 + - + CAST( - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1702
46
-2368
80
-2775
116

skipif mysql # not compatible
query II rowsort label-8938
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * 37 AS col0, + col2 + - + CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1702
46
-2368
80
-2775
116

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + col2 + + 81 + 6 NOT BETWEEN - col0 AND + - col1 )
----

query I rowsort
SELECT - col1 + - ( + col2 ) + + 40 * + - col2 AS col1 FROM tab0 AS cor0
----
-2008
-4060
-431

query I rowsort
SELECT - col1 + + 64 AS col1 FROM tab2 AS cor0
----
-13
-3
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8942
SELECT ALL + SUM( ALL col0 ) DIV + + 13 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL + SUM ( ALL col0 ) / + + 13 FROM tab1 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-8943
SELECT DISTINCT - COUNT( * ), - COUNT( * ) * 18 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
-162

skipif mysql # not compatible
query II rowsort label-8943
SELECT DISTINCT - COUNT ( * ), - COUNT ( * ) * 18 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT + MAX( - col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8944
SELECT + MAX ( - col0 ) FROM tab0 AS cor0
----
-15

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) >= - col0 + + 76
----

query I rowsort
SELECT ALL - col1 * - col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT ALL - MIN( DISTINCT - + 36 ) AS col2 FROM tab1 cor0
----
36

skipif mysql # not compatible
query I rowsort label-8947
SELECT ALL - MIN ( DISTINCT - + 36 ) AS col2 FROM tab1 cor0
----
36

query II rowsort
SELECT - - col1, - 72 + col2 AS col2 FROM tab2 AS cor0
----
51
-49
67
-14
77
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT ( + + ( + COUNT( * ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8949
SELECT ( + + ( + COUNT ( * ) ) ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 2 col0, 65 AS col1 FROM tab1 AS cor0
----
2
65
2
65
2
65

onlyif mysql # DIV for integer division: 
query II rowsort label-8951
SELECT + - col0 * col2 DIV - col2 AS col2, col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

skipif mysql # not compatible
query II rowsort label-8951
SELECT + - col0 * col2 / - col2 AS col2, col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 + - ( - + col2 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT - ( + MAX( DISTINCT - col0 ) ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8953
SELECT - ( + MAX ( DISTINCT - col0 ) ) FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8954
SELECT COUNT( * ) + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT + - col1 * col2 <= + col2 AND NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8954
SELECT COUNT ( * ) + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT + - col1 * col2 <= + col2 AND NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8955
SELECT ALL + 69 + - AVG ( DISTINCT - 80 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL + 69 + - AVG ( DISTINCT - 80 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8956
SELECT 81 AS col1, - col1 DIV - 6 - + + col1 + + + col0 * - 63 + col0 AS col0 FROM tab2 AS cor0
----
81
-2895
81
-4033
81
-4706

skipif mysql # not compatible
query II rowsort label-8956
SELECT 81 AS col1, - col1 / - 6 - + + col1 + + + col0 * - 63 + col0 AS col0 FROM tab2 AS cor0
----
81
-2895
81
-4033
81
-4706

query II rowsort
SELECT ALL col2 AS col2, col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query II rowsort label-8958
SELECT DISTINCT - COUNT( * ) AS col1, 52 FROM tab1 AS cor0
----
-3
52

skipif mysql # not compatible
query II rowsort label-8958
SELECT DISTINCT - COUNT ( * ) AS col1, 52 FROM tab1 AS cor0
----
-3
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT - COUNT( ALL - col1 ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8959
SELECT - COUNT ( ALL - col1 ) FROM tab1 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT ALL - col1, + col1 FROM tab2 WHERE NOT 40 * - col1 IS NULL
----
-51
51
-67
67
-77
77

query I rowsort
SELECT ALL ( - 51 ) FROM tab0
----
-51
-51
-51

query I rowsort
SELECT + + 16 FROM tab2 cor0
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT ALL + COUNT( - - 37 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8963
SELECT ALL + COUNT ( - - 37 ) col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT DISTINCT - COUNT( * ) * - ( - 90 ) * 79 FROM tab0 AS cor0
----
-21330

skipif mysql # not compatible
query I rowsort label-8964
SELECT DISTINCT - COUNT ( * ) * - ( - 90 ) * 79 FROM tab0 AS cor0
----
-21330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8965
SELECT DISTINCT - 45 + + col2 + - CAST( - + 36 AS SIGNED ) FROM tab1
----
50
59
87

skipif mysql # not compatible
query I rowsort label-8965
SELECT DISTINCT - 45 + + col2 + - CAST ( - + 36 AS INTEGER ) FROM tab1
----
50
59
87

query I rowsort
SELECT DISTINCT col0 + + col0 * + col0 * + + 97 + - col0 FROM tab0
----
21825
734193
912673

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT - ( + + COUNT( * ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8967
SELECT - ( + + COUNT ( * ) ) AS col0 FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 19 AS col1, - col2 col0 FROM tab0 cor0
----
19
-10
19
-47
19
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT + 90 * COUNT( * ) FROM tab1 cor0
----
270

skipif mysql # not compatible
query I rowsort label-8969
SELECT + 90 * COUNT ( * ) FROM tab1 cor0
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT ALL - 61 * COUNT( * ) FROM tab1 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL - 61 * COUNT ( * ) FROM tab1 AS cor0
----
-183

query II rowsort
SELECT ALL + 63 / + + ( + - col1 ) AS col0, - col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8972
SELECT + col0 / - col1 + col1 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8972
SELECT + col0 / - col1 + col1 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8973
SELECT DISTINCT - - col1 DIV - 71 + 8 FROM tab2 AS cor0
----
7
8

skipif mysql # not compatible
query I rowsort label-8973
SELECT DISTINCT - - col1 / - 71 + 8 FROM tab2 AS cor0
----
7
8

query I rowsort
SELECT DISTINCT + 22 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT + 64 + 32 IS NOT NULL )
----
22

query I rowsort
SELECT ALL - 58 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-58
-58
-58

query III rowsort
SELECT * FROM tab0 WHERE + col0 + + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8977
SELECT DISTINCT * FROM tab2 WHERE - CAST( col1 AS SIGNED ) + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8977
SELECT DISTINCT * FROM tab2 WHERE - CAST ( col1 AS INTEGER ) + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT MIN( col1 ) * + 29 + - - ( - 99 ) col0 FROM tab1
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8978
SELECT MIN ( col1 ) * + 29 + - - ( - 99 ) col0 FROM tab1
----
46

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE + + 51 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL 59 * + 74 + col1 + + col1 FROM tab0
----
4368
4408
4528

query I rowsort
SELECT ALL - col1 - - 14 FROM tab1 AS cor0
----
-33
0
9

query I rowsort
SELECT + col0 * - 43 FROM tab0
----
-3741
-4171
-645

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8983
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8985
SELECT + col2 AS col0, - col2 * + col2 + - - col0 - - col2 + + + col0 + + CAST( + col0 AS SIGNED ) * - col1 col0, ( + - col0 ) AS col0 FROM tab1
----
9 values hashing to 78c3847c5db25f4c9adc60e0419412d5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-8985
SELECT + col2 AS col0, - col2 * + col2 + - - col0 - - col2 + + + col0 + + CAST ( + col0 AS INTEGER ) * - col1 col0, ( + - col0 ) AS col0 FROM tab1
----
9 values hashing to 78c3847c5db25f4c9adc60e0419412d5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8986
SELECT DISTINCT * FROM tab0 WHERE NOT - 5 + col2 + - + col0 NOT BETWEEN col0 - - CAST( NULL AS SIGNED ) - + - col2 AND - col2
----

skipif mysql # not compatible
query III rowsort label-8986
SELECT DISTINCT * FROM tab0 WHERE NOT - 5 + col2 + - + col0 NOT BETWEEN col0 - - CAST ( NULL AS INTEGER ) - + - col2 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT DISTINCT + MIN( - col0 ) FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8987
SELECT DISTINCT + MIN ( - col0 ) FROM tab1 cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8988
SELECT - 27 DIV CAST( - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8988
SELECT - 27 / CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT + + COUNT( * ) AS col1 FROM tab0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8989
SELECT + + COUNT ( * ) AS col1 FROM tab0 WHERE NULL > NULL
----
0

query I rowsort
SELECT DISTINCT 26 AS col2 FROM tab0 WHERE NOT col0 * + + col1 <> + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8991
SELECT ALL + CAST( - 89 AS SIGNED ) * + - ( + col2 ) FROM tab1 AS cor0
----
5251
6052
8544

skipif mysql # not compatible
query I rowsort label-8991
SELECT ALL + CAST ( - 89 AS INTEGER ) * + - ( + col2 ) FROM tab1 AS cor0
----
5251
6052
8544

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - ( + - 98 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8993
SELECT DISTINCT col2 * CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-8993
SELECT DISTINCT col2 * CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT + - MAX( col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8994
SELECT + - MAX ( col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT + + MAX( - col2 ) AS col1 FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8995
SELECT + + MAX ( - col2 ) AS col1 FROM tab0 cor0
----
-10

query III rowsort
SELECT * FROM tab1 WHERE + 6 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + + 67 + + - 18 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8998
SELECT ALL - MAX( ALL + CAST( col2 AS SIGNED ) ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL - MAX ( ALL + CAST ( col2 AS INTEGER ) ) FROM tab0
----
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8999
SELECT col1 - + + 58 * - CAST( NULL AS DECIMAL ), + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-8999
SELECT col1 - + + 58 * - CAST ( NULL AS REAL ), + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT ( + col1 ) + + 70 AS col2 FROM tab2 WHERE - col0 + + - col0 = - - col0 * - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 8 * + 71 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9002
SELECT - - 37, COUNT( * ) AS col0 FROM tab2 cor0
----
37
3

skipif mysql # not compatible
query II rowsort label-9002
SELECT - - 37, COUNT ( * ) AS col0 FROM tab2 cor0
----
37
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT MIN( 31 ) AS col2 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-9003
SELECT MIN ( 31 ) AS col2 FROM tab2 AS cor0
----
31

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 81 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - 64 + + ( - - col2 ) AS col2 FROM tab0 WHERE NOT NULL < - - 54 * col0 - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9006
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND CAST( - ( - - 42 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9006
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND CAST ( - ( - - 42 ) AS INTEGER )
----

query I rowsort
SELECT + ( + 4 ) FROM tab2 cor0
----
4
4
4

query II rowsort
SELECT - + 76 * + col0, - col0 + + 92 AS col1 FROM tab1 AS cor0
----
-3876
41
-6460
7
-6916
1

query II rowsort
SELECT + 43, col1 FROM tab0 AS cor0
----
43
1
43
21
43
81

query II rowsort
SELECT ALL + col2, col1 * + 40 + - ( - - ( - col1 ) ) FROM tab2 AS cor0
----
23
2091
40
3157
58
2747

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9011
SELECT + CAST( - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9011
SELECT + CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query II rowsort
SELECT - + 60, col0 FROM tab1 AS cor0
----
-60
51
-60
85
-60
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT + MIN( DISTINCT + col1 ) col0 FROM tab2 cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9013
SELECT + MIN ( DISTINCT + col1 ) col0 FROM tab2 cor0
----
51

query II rowsort
SELECT ALL - - col2, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT - - col1 FROM tab1 WHERE NOT - - 17 + + col0 * + ( + 98 ) / + 28 < - - 60
----
14
47
5

onlyif mysql # DIV for integer division: 
query II rowsort label-9016
SELECT ALL 61 DIV - + col0 AS col2, col0 FROM tab1
----
-1
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-9016
SELECT ALL 61 / - + col0 AS col2, col0 FROM tab1
----
-1
51
0
85
0
91

query III rowsort
SELECT * FROM tab1 WHERE 11 BETWEEN 44 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9018
SELECT ALL 27 DIV + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL 27 / + COUNT ( * ) FROM tab1
----
9

query I rowsort
SELECT DISTINCT ( + + 73 ) AS col1 FROM tab2
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9020
SELECT col1 + + + col1 DIV - col2 AS col0 FROM tab0
----
1
19
80

skipif mysql # not compatible
query I rowsort label-9020
SELECT col1 + + + col1 / - col2 AS col0 FROM tab0
----
1
19
80

query I rowsort
SELECT col2 + col1 * - - 81 AS col1 FROM tab2
----
4154
5485
6277

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT + + COUNT( ALL - col1 ) + - - 16 AS col1 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-9022
SELECT + + COUNT ( ALL - col1 ) + - - 16 AS col1 FROM tab2 AS cor0
----
19

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - + 99 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT - - COUNT( ALL 81 ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-9025
SELECT - - COUNT ( ALL 81 ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query I rowsort
SELECT DISTINCT + + ( + col2 ) + 29 AS col2 FROM tab1 AS cor0
----
125
88
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 53 IS NULL
----

query II rowsort
SELECT ALL - 2 AS col2, + col2 * + col2 FROM tab2 AS cor0
----
-2
1600
-2
3364
-2
529

query I rowsort
SELECT 50 FROM tab2 AS cor0 WHERE NULL IS NULL
----
50
50
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9030
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 49 = - - CAST( - 65 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9030
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 49 = - - CAST ( - 65 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 99 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9032
SELECT ALL - + col0 AS col2, + CAST( 99 AS SIGNED ) + - + col0 FROM tab1 AS cor0
----
-51
48
-85
14
-91
8

skipif mysql # not compatible
query II rowsort label-9032
SELECT ALL - + col0 AS col2, + CAST ( 99 AS INTEGER ) + - + col0 FROM tab1 AS cor0
----
-51
48
-85
14
-91
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE - 9 = + col2
----
0

skipif mysql # not compatible
query I rowsort label-9033
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE - 9 = + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT COUNT( DISTINCT + 14 ) + - COUNT( DISTINCT - 86 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9034
SELECT COUNT ( DISTINCT + 14 ) + - COUNT ( DISTINCT - 86 ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT 39 + - ( - col0 ) FROM tab1
----
124
130
90

query I rowsort
SELECT 57 + - col2 + + col0 * + 51 AS col1 FROM tab2
----
2380
3281
3824

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT DISTINCT - 77 * SUM( DISTINCT + + 20 ) FROM tab2
----
-1540

skipif mysql # not compatible
query I rowsort label-9037
SELECT DISTINCT - 77 * SUM ( DISTINCT + + 20 ) FROM tab2
----
-1540

query I rowsort
SELECT 6 * + - 74 FROM tab0
----
-444
-444
-444

query I rowsort
SELECT - + col1 * + col0 + + + col0 + + - col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( - 72 ) FROM tab0
----
-72
-72
-72

query I rowsort
SELECT ALL - col0 * - + 4 AS col0 FROM tab2
----
184
256
300

query I rowsort
SELECT col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - 25 + + 74
----

query I rowsort
SELECT ALL - 20 + - - 29 FROM tab2 cor0
----
9
9
9

query I rowsort
SELECT DISTINCT - 70 * + ( - col0 ) + - col1 FROM tab2 AS cor0
----
3169
4403
5183

query I rowsort
SELECT DISTINCT - 31 + - - col1 AS col2 FROM tab1 AS cor0
----
-17
-26
16

query II rowsort
SELECT col0 AS col2, col0 FROM tab0
----
15
15
87
87
97
97

query II rowsort
SELECT DISTINCT - col1, col1 + + col0 + - + col2 AS col2 FROM tab2
----
-51
74
-67
84
-77
101

query I rowsort
SELECT 79 * col1 AS col0 FROM tab2
----
4029
5293
6083

query I rowsort
SELECT + - 60 FROM tab1 WHERE NULL IS NULL
----
-60
-60
-60

query II rowsort
SELECT ALL + col2, 76 * col1 FROM tab1 WHERE NOT ( - col2 / + col2 * - 20 + col1 ) IS NULL
----
59
380
68
3572
96
1064

query I rowsort
SELECT ALL 85 + - col1 * - - col0 + col1 FROM tab1
----
-335
-4145
-615

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT DISTINCT - COUNT( * ) col1 FROM tab1, tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9052
SELECT DISTINCT - COUNT ( * ) col1 FROM tab1, tab0 AS cor0
----
-9

query II rowsort
SELECT - + col1 - col0, - 32 AS col1 FROM tab1 cor0
----
-138
-32
-65
-32
-90
-32

query I rowsort
SELECT + + 71 + - 4 + + col0 FROM tab1 AS cor0
----
118
152
158

query I rowsort
SELECT + - col0 + - 99 - + col1 AS col1 FROM tab0 AS cor0
----
-195
-197
-207

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9056
SELECT - 70 + - - 97 DIV - COUNT( * ) FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-9056
SELECT - 70 + - - 97 / - COUNT ( * ) FROM tab2
----
-102

query I rowsort
SELECT DISTINCT + 69 * - ( - 41 ) * + 43 + + col0 - - + col2 + - col2 AS col2 FROM tab2
----
121693
121711
121722

query I rowsort
SELECT - - 6 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT 66 + - 93 AS col0 FROM tab2
----
-27
-27
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9060
SELECT DISTINCT CAST( + col2 AS SIGNED ) + + col2 AS col1 FROM tab1
----
118
136
192

skipif mysql # not compatible
query I rowsort label-9060
SELECT DISTINCT CAST ( + col2 AS INTEGER ) + + col2 AS col1 FROM tab1
----
118
136
192

query I rowsort
SELECT ALL + col0 - 86 FROM tab2
----
-11
-22
-40

query I rowsort
SELECT 40 FROM tab2 AS cor0 WHERE - 80 * - col2 IS NOT NULL
----
40
40
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9063
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > + - CAST( - - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9063
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > + - CAST ( - - col0 AS INTEGER )
----

query II rowsort
SELECT + 7 * col2 AS col1, + col0 FROM tab0 AS cor0
----
329
15
693
97
70
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9065
SELECT * FROM tab1 AS cor0 WHERE ( NOT + + 55 * CAST( + col0 AS SIGNED ) > NULL )
----

skipif mysql # not compatible
query III rowsort label-9065
SELECT * FROM tab1 AS cor0 WHERE ( NOT + + 55 * CAST ( + col0 AS INTEGER ) > NULL )
----

query II rowsort
SELECT + col0 * - col0 AS col0, col1 AS col0 FROM tab0 AS cor0
----
-225
81
-7569
21
-9409
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT - 20 * + COUNT( * ) FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-9067
SELECT - 20 * + COUNT ( * ) FROM tab1 AS cor0
----
-60

query I rowsort
SELECT DISTINCT - ( col2 ) * + 43 FROM tab0 AS cor0
----
-2021
-4257
-430

query I rowsort
SELECT ALL + 18 * + 94 AS col0 FROM tab1
----
1692
1692
1692

onlyif mysql # DIV for integer division: 
query II rowsort label-9070
SELECT col0 * + + col2 * + col0 AS col0, + col0 + + col2 DIV col1 + + col2 AS col0 FROM tab1
----
249696
153
426275
155
563108
160

skipif mysql # not compatible
query II rowsort label-9070
SELECT col0 * + + col2 * + col0 AS col0, + col0 + + col2 / col1 + + col2 AS col0 FROM tab1
----
249696
153
426275
155
563108
160

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9071
SELECT * FROM tab0 WHERE NOT + ( + CAST( + col1 AS SIGNED ) ) + + 71 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9071
SELECT * FROM tab0 WHERE NOT + ( + CAST ( + col1 AS INTEGER ) ) + + 71 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - - col1 ) - 45 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col1, col1 - - col0 * - col2 AS col2 FROM tab1
----
14
-4882
47
-6141
5
-5010

query I rowsort
SELECT col1 * + col1 FROM tab0 WHERE NOT - col2 > + + col1 + - + col1
----
1
441
6561

query II rowsort
SELECT ALL + 80 AS col1, - ( - 63 ) FROM tab1 AS cor0
----
80
63
80
63
80
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT + - MAX( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9076
SELECT + - MAX ( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT - + MAX( DISTINCT + + ( col0 ) ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9077
SELECT - + MAX ( DISTINCT + + ( col0 ) ) FROM tab1 AS cor0
----
-91

query II rowsort
SELECT DISTINCT col2 AS col0, col1 AS col2 FROM tab0 AS cor0 WHERE - 5 + - 97 / 29 IN ( + 81 + col2, - col2 )
----

query I rowsort
SELECT + + ( - 84 ) AS col2 FROM tab0 AS cor0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT ALL MAX( col1 ) * 58 FROM tab1 AS cor0
----
2726

skipif mysql # not compatible
query I rowsort label-9080
SELECT ALL MAX ( col1 ) * 58 FROM tab1 AS cor0
----
2726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9081
SELECT + col0 col2 FROM tab2 AS cor0 WHERE + 19 <> - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9081
SELECT + col0 col2 FROM tab2 AS cor0 WHERE + 19 <> - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - col0 + col1 + 53 FROM tab1
----
-27
16
9

query I rowsort
SELECT DISTINCT - ( col2 ) * - 21 + + ( - + col2 ) AS col0 FROM tab1
----
1180
1360
1920

query I rowsort
SELECT ALL - ( + col0 ) + - 98 AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > - col0 + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9086
SELECT + 54 DIV + - col1 FROM tab1 AS cor0
----
-1
-10
-3

skipif mysql # not compatible
query I rowsort label-9086
SELECT + 54 / + - col1 FROM tab1 AS cor0
----
-1
-10
-3

query II rowsort
SELECT ALL col1 * col2 + 23 AS col2, - col1 FROM tab2 AS cor0
----
1196
-51
3103
-77
3909
-67

query I rowsort
SELECT DISTINCT + 96 FROM tab1 AS cor0 WHERE NOT ( ( col2 IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT DISTINCT + COUNT( ALL col1 ) + + 51 FROM tab1 cor0
----
54

skipif mysql # not compatible
query I rowsort label-9089
SELECT DISTINCT + COUNT ( ALL col1 ) + + 51 FROM tab1 cor0
----
54

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( - 70 ) IS NOT NULL
----

query I rowsort
SELECT 1 - - 48 AS col1 FROM tab1
----
49
49
49

query I rowsort
SELECT 50 - - + 50 * + col0 AS col2 FROM tab2
----
2350
3250
3800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9093
SELECT 52 * + CAST( + col1 AS SIGNED ) - - - col2 * col0 FROM tab0 AS cor0
----
-9551
222
3507

skipif mysql # not compatible
query I rowsort label-9093
SELECT 52 * + CAST ( + col1 AS INTEGER ) - - - col2 * col0 FROM tab0 AS cor0
----
-9551
222
3507

query I rowsort
SELECT 26 + col2 AS col2 FROM tab2 AS cor0
----
49
66
84

query I rowsort
SELECT DISTINCT - + col0 * - + col0 / - col1 * + + col1 + + + col1 AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) NOT IN ( col2, - col2, + + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9096
SELECT DISTINCT COUNT( CAST( - CAST( + col0 AS SIGNED ) AS DECIMAL ) ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9096
SELECT DISTINCT COUNT ( CAST ( - CAST ( + col0 AS INTEGER ) AS REAL ) ) AS col1 FROM tab1 cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 8 * col0 + 55 + + col2 < + + 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT DISTINCT + MIN( DISTINCT + - 37 ) AS col2 FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-9098
SELECT DISTINCT + MIN ( DISTINCT + - 37 ) AS col2 FROM tab0 AS cor0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT - - COUNT( * ) * + 79 + 13 AS col1 FROM tab0 AS cor0
----
250

skipif mysql # not compatible
query I rowsort label-9099
SELECT - - COUNT ( * ) * + 79 + 13 AS col1 FROM tab0 AS cor0
----
250

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT DISTINCT MAX( ALL + + 40 ) AS col0 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-9100
SELECT DISTINCT MAX ( ALL + + 40 ) AS col0 FROM tab1 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT DISTINCT + MAX( DISTINCT + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT + MAX ( DISTINCT + col0 ) FROM tab0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9102
SELECT - CAST( + 58 AS SIGNED ) AS col2, - COUNT( * ) AS col1 FROM tab0
----
-58
-3

skipif mysql # not compatible
query II rowsort label-9102
SELECT - CAST ( + 58 AS INTEGER ) AS col2, - COUNT ( * ) AS col1 FROM tab0
----
-58
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT + COUNT( * ) * - + 6 AS col2 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-9103
SELECT + COUNT ( * ) * - + 6 AS col2 FROM tab0
----
-18

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL = - col0 * - + col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < + col1 * col2
----

query II rowsort
SELECT ALL - - col2, 86 AS col0 FROM tab1 AS cor0
----
59
86
68
86
96
86

query I rowsort
SELECT ALL + + 42 * + col0 FROM tab0 AS cor0
----
3654
4074
630

query I rowsort
SELECT DISTINCT - - col1 * - - col2 + - col0 AS col2 FROM tab1 cor0
----
1293
210
3105

query I rowsort
SELECT col2 * col0 AS col0 FROM tab2 cor0 WHERE - 61 IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9110
SELECT DISTINCT + col1 DIV + - 86 * 38 * col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9110
SELECT DISTINCT + col1 / + - 86 * 38 * col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9111
SELECT * FROM tab0 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) / + col1 IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-9111
SELECT * FROM tab0 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) / + col1 IS NOT NULL )
----

query I rowsort
SELECT ALL - - 51 AS col2 FROM tab2 cor0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 cor0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9113
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NULL = NULL
----
0

query II rowsort
SELECT DISTINCT - + 11 + - + 58 * 30 AS col1, + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1751
-1344
-1751
-295
-1751
-3196

query I rowsort
SELECT DISTINCT - 51 + + col2 AS col0 FROM tab0
----
-4
-41
48

onlyif mysql # DIV for integer division: 
query I rowsort label-9116
SELECT + col2 DIV - col1 AS col1 FROM tab2 WHERE - col1 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9116
SELECT + col2 / - col1 AS col1 FROM tab2 WHERE - col1 IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9117
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT 93 + - COUNT( col0 ) + - 71 AS col1 FROM tab0 cor0
----
19

skipif mysql # not compatible
query I rowsort label-9118
SELECT 93 + - COUNT ( col0 ) + - 71 AS col1 FROM tab0 cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT ALL - ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL - ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 57 FROM tab1 AS cor0 WHERE - 59 NOT IN ( - col0 * + + col1 + - col0, 44 ) AND + col2 - - col1 + + col0 IS NULL
----

query I rowsort
SELECT + 47 FROM tab2 WHERE NOT col1 * col2 = + + 63 * col1
----
47
47
47

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col1 + ( + - 77 ) * + ( col2 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT + MIN( ALL + 55 ) AS col2 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-9123
SELECT + MIN ( ALL + 55 ) AS col2 FROM tab2
----
55

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9124
SELECT ALL 49 DIV + + CAST( 62 AS SIGNED ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL 49 / + + CAST ( 62 AS INTEGER ) FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT - 52 * + SUM( + - 57 ) col0 FROM tab0 AS cor0
----
8892

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9125
SELECT - 52 * + SUM ( + - 57 ) col0 FROM tab0 AS cor0
----
8892

query I rowsort
SELECT ALL 60 AS col2 FROM tab1 AS cor0
----
60
60
60

query I rowsort
SELECT - + col2 * - 53 - + col2 AS col0 FROM tab2 AS cor0
----
1196
2080
3016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9128
SELECT + 62 DIV COUNT( * ) - + - COUNT( * ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9128
SELECT + 62 / COUNT ( * ) - + - COUNT ( * ) FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT - MIN( + - col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-9129
SELECT - MIN ( + - col2 ) AS col1 FROM tab0
----
99

query II rowsort
SELECT DISTINCT 99 AS col1, - col1 + - 47 + - col0 FROM tab0
----
99
-143
99
-145
99
-155

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < ( + col1 )
----

query II rowsort
SELECT col1 AS col2, col2 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9133
SELECT ALL + 33 DIV - col1 FROM tab1
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL + 33 / - col1 FROM tab1
----
-2
-6
0

query II rowsort
SELECT col2 AS col0, 67 FROM tab2
----
23
67
40
67
58
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9135
SELECT ALL - 22 DIV - 9 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-9135
SELECT ALL - 22 / - 9 FROM tab2
----
2
2
2

query I rowsort
SELECT - 17 * - col0 FROM tab2 cor0
----
1088
1275
782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 18 col0 FROM tab0 AS cor0
----
-18
-18
-18

query II rowsort
SELECT + col0 + + 80 AS col0, - col2 FROM tab2 AS cor0
----
126
-23
144
-40
155
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * col1 * - col1 + - - col1 col1 FROM tab1 AS cor0
----
-1470
-150165
-18802

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9140
SELECT col2 * - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) IS NOT NULL
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-9140
SELECT col2 * - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) IS NOT NULL
----
-1344
-295
-3196

query I rowsort
SELECT + col2 * - ( - + col2 ) * + col0 FROM tab0
----
33135
8700
950697

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT ( - ( COUNT( - + 42 ) ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9142
SELECT ( - ( COUNT ( - + 42 ) ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + - 65 * ( + col0 ) FROM tab2 AS cor0
----
-2990
-4160
-4875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT + - col2 * - - col0 + col1 + col1 FROM tab1 AS cor0
----
-4868
-5005
-6094

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT + ( COUNT( * ) ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9146
SELECT + ( COUNT ( * ) ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT + - 94 + - ( - COUNT( * ) ) FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9147
SELECT + - 94 + - ( - COUNT ( * ) ) FROM tab0 AS cor0
----
-91

query I rowsort
SELECT DISTINCT - 54 + - col2 FROM tab2 cor0
----
-112
-77
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-9149
SELECT DISTINCT 39 DIV 25 + col0 + - - 95 col2 FROM tab1 AS cor0
----
147
181
187

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9149
SELECT DISTINCT 39 / 25 + col0 + - - 95 col2 FROM tab1 AS cor0
----
147
181
187

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT ( col2 ) IS NULL
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-9151
SELECT - col1 * - col0 + col1 DIV col0 * - col2 FROM tab0
----
1827
97
980

skipif mysql # not compatible
query I rowsort label-9151
SELECT - col1 * - col0 + col1 / col0 * - col2 FROM tab0
----
1827
97
980

query I rowsort
SELECT 92 + + col1 + + 6 FROM tab0
----
119
179
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT ALL 2 - + COUNT( * ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9153
SELECT ALL 2 - + COUNT ( * ) AS col1 FROM tab2
----
-1

query I rowsort
SELECT col2 + + col0 * col1 + - - col2 AS col2 FROM tab2
----
2392
5008
5141

query I rowsort
SELECT 40 + - - col0 AS col1 FROM tab2
----
104
115
86

query I rowsort
SELECT ALL col2 - + ( - col2 ) - - col0 FROM tab1
----
203
227
243

query I rowsort
SELECT + col0 + col0 * - 71 FROM tab1
----
-3570
-5950
-6370

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT DISTINCT 87 - - + COUNT( * ) FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-9158
SELECT DISTINCT 87 - - + COUNT ( * ) FROM tab1
----
90

query I rowsort
SELECT 96 FROM tab1 WHERE NOT ( col2 ) * + col0 IS NULL
----
96
96
96

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 * - col0 ) < NULL
----

query I rowsort
SELECT col2 + - ( - 16 + + col1 * col2 ) AS col0 FROM tab2
----
-1134
-3024
-3812

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT MAX( ALL 7 ) + 51 AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-9162
SELECT MAX ( ALL 7 ) + 51 AS col0 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT DISTINCT + 19 + - COUNT( * ) * 87 FROM tab0
----
-242

skipif mysql # not compatible
query I rowsort label-9163
SELECT DISTINCT + 19 + - COUNT ( * ) * 87 FROM tab0
----
-242

query I rowsort
SELECT ALL ( - col1 ) + col0 FROM tab0
----
-66
66
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9165
SELECT + col1 - col1 DIV - 15 col2 FROM tab1
----
14
5
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9165
SELECT + col1 - col1 / - 15 col2 FROM tab1
----
14
5
50

query III rowsort
SELECT * FROM tab1 WHERE col0 * 67 >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9167
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 NOT IN ( CAST( - col0 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-9167
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 NOT IN ( CAST ( - col0 AS REAL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 77 col0 FROM tab2
----
77

query I rowsort
SELECT ALL col0 + - ( - col2 + col2 * + col1 ) AS col2 FROM tab1
----
-1197
-151
-3037

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 36 BETWEEN NULL AND + col0
----

query I rowsort
SELECT - col1 * + 3 - - col2 FROM tab0 WHERE col0 NOT BETWEEN ( NULL ) AND - 25
----
-196
-53
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT DISTINCT - MAX( DISTINCT + 93 ) AS col0 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-9172
SELECT DISTINCT - MAX ( DISTINCT + 93 ) AS col0 FROM tab2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT DISTINCT + MAX( + 66 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9173
SELECT DISTINCT + MAX ( + 66 ) FROM tab1
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 40 ) col0 FROM tab2
----
40
40
40

query I rowsort
SELECT DISTINCT 58 + col1 AS col2 FROM tab0
----
139
59
79

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE col2 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9177
SELECT DISTINCT + col0 * CAST( + col0 AS SIGNED ) AS col2 FROM tab0 WHERE NULL IS NULL
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-9177
SELECT DISTINCT + col0 * CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 WHERE NULL IS NULL
----
225
7569
9409

query I rowsort
SELECT ( + 59 ) FROM tab1
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT ALL - 21 + + COUNT( * ) FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-9179
SELECT ALL - 21 + + COUNT ( * ) FROM tab2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT DISTINCT SUM( + 25 ) AS col1 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-9180
SELECT DISTINCT SUM ( + 25 ) AS col1 FROM tab1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9181
SELECT DISTINCT col0 * col1 + - CAST( col0 AS SIGNED ) FROM tab1
----
340
4186
663

skipif mysql # not compatible
query I rowsort label-9181
SELECT DISTINCT col0 * col1 + - CAST ( col0 AS INTEGER ) FROM tab1
----
340
4186
663

onlyif mysql # DIV for integer division: 
query I rowsort label-9182
SELECT DISTINCT + col0 DIV - col2 + col1 DIV + 3 AS col2 FROM tab0
----
-1
0
27

skipif mysql # not compatible
query I rowsort label-9182
SELECT DISTINCT + col0 / - col2 + col1 / + 3 AS col2 FROM tab0
----
-1
0
27

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 AND - col1 + - 74
----

query I rowsort
SELECT DISTINCT + 10 FROM tab2 cor0
----
10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 51 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 80 * - 0 + 12 AS col0 FROM tab1
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 - - col2 col2 FROM tab0 WHERE ( 65 ) IS NOT NULL
----
102
139
191

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9188
SELECT * FROM tab0 WHERE + col1 * CAST( NULL AS SIGNED ) NOT IN ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-9188
SELECT * FROM tab0 WHERE + col1 * CAST ( NULL AS INTEGER ) NOT IN ( + col2 )
----

query I rowsort
SELECT + col1 + - 94 * + col2 AS col0 FROM tab1 AS cor0
----
-5541
-6345
-9010

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT + COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9190
SELECT + COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT + + COUNT( * ) * 81 FROM tab1 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-9192
SELECT + + COUNT ( * ) * 81 FROM tab1 AS cor0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT + - MAX( - col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9193
SELECT + - MAX ( - col1 ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT DISTINCT col1 + col1 FROM tab1 cor0 WHERE NOT - col1 NOT BETWEEN col2 * col1 + col0 AND col2
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE + col1 * + ( - col0 ) NOT BETWEEN ( col1 + + col2 ) AND NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT + col0 + ( - 2 ) * + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT + col0 + ( - 2 ) * + col0 IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 * col1 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9198
SELECT DISTINCT - 68 DIV + - 46 + col2 FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-9198
SELECT DISTINCT - 68 / + - 46 + col2 FROM tab2
----
24
41
59

query I rowsort
SELECT ALL + col2 * + 66 + - 47 AS col1 FROM tab2
----
1471
2593
3781

query I rowsort
SELECT DISTINCT - col0 + - - col0 AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9201
SELECT * FROM tab0 WHERE 80 + CAST( 58 AS SIGNED ) / col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9201
SELECT * FROM tab0 WHERE 80 + CAST ( 58 AS INTEGER ) / col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9202
SELECT DISTINCT 69 DIV 73 - col0 DIV + 17 AS col2 FROM tab0
----
-5
0

skipif mysql # not compatible
query I rowsort label-9202
SELECT DISTINCT 69 / 73 - col0 / + 17 AS col2 FROM tab0
----
-5
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - 8 col2 FROM tab0
----
-7
13
73

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9204
SELECT CAST( 48 AS DECIMAL ) * col1 FROM tab0 WHERE - CAST( NULL AS SIGNED ) BETWEEN - col1 + 67 AND col1
----

skipif mysql # not compatible
query I rowsort label-9204
SELECT CAST ( 48 AS REAL ) * col1 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) BETWEEN - col1 + 67 AND col1
----

query I rowsort
SELECT DISTINCT ( - 26 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-26

query I rowsort
SELECT - 58 * + col2 + + 3 AS col2 FROM tab0 AS cor0
----
-2723
-5739
-577

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col1 * + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT - 68 * + SUM( DISTINCT - 12 ) FROM tab2 AS cor0
----
816

skipif mysql # not compatible
query I rowsort label-9208
SELECT - 68 * + SUM ( DISTINCT - 12 ) FROM tab2 AS cor0
----
816

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * + col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 col1 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT ALL + 26 / - ( + 19 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 51 IS NOT NULL
----

query I rowsort
SELECT + 51 * + 0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT + 58 * COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
522

skipif mysql # not compatible
query I rowsort label-9213
SELECT + 58 * COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT DISTINCT + COUNT( + 60 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9215
SELECT DISTINCT + COUNT ( + 60 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT - - SUM( + ( + + col2 ) ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9217
SELECT - - SUM ( + ( + + col2 ) ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT - MAX( DISTINCT - - col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9218
SELECT - MAX ( DISTINCT - - col2 ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT DISTINCT - - col0 * + 28 FROM tab2 AS cor0
----
1288
1792
2100

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 94 * - - 70 * + col0 ) >= col2
----

query I rowsort
SELECT - 7 FROM tab1 WHERE NOT ( + col2 ) NOT BETWEEN 22 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT - COUNT( * ) * + COUNT( * ) FROM tab1 WHERE NOT - 73 + col1 * - 82 IN ( 60 )
----
-9

skipif mysql # not compatible
query I rowsort label-9222
SELECT - COUNT ( * ) * + COUNT ( * ) FROM tab1 WHERE NOT - 73 + col1 * - 82 IN ( 60 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT ALL COUNT( ( 27 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL COUNT ( ( 27 ) ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 19 IS NOT NULL
----

query I rowsort
SELECT ALL ( + + col0 ) FROM tab2
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 24 IS NOT NULL
----

query I rowsort
SELECT - col0 * - 81 + + + 34 * + - 77 AS col2 FROM tab0 AS cor0
----
-1403
4429
5239

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9228
SELECT + col0 DIV CAST( col2 AS SIGNED ) - - col2 - ( - col2 ) + + col1 col2 FROM tab2 AS cor0
----
158
184
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9228
SELECT + col0 / CAST ( col2 AS INTEGER ) - - col2 - ( - col2 ) + + col1 col2 FROM tab2 AS cor0
----
158
184
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <> - col1
----

query I rowsort
SELECT - + col0 + - ( + - col2 ) AS col2 FROM tab0 AS cor0
----
-77
2
32

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( col2 / + col0 + + col0 )
----

query I rowsort
SELECT ALL - - 91 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # aggregate syntax: 
query II rowsort label-9233
SELECT ALL COUNT( * ) col0, 51 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9233
SELECT ALL COUNT ( * ) col0, 51 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9234
SELECT + CAST( NULL AS DECIMAL ) * col1 - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9234
SELECT + CAST ( NULL AS REAL ) * col1 - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 91 - + col2 + ( - 93 ) * - col2 + 71 * col2 FROM tab0 AS cor0
----
16228
1721
7752

query I rowsort
SELECT ALL - + col1 - - col2 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9237
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 54 col0 FROM tab2 AS cor0
----
-54

query I rowsort
SELECT col1 - + 91 FROM tab1 AS cor0
----
-44
-77
-86

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 30 + - 77 ) NOT BETWEEN NULL AND ( col2 + - + 38 + - col2 * 30 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9241
SELECT + MAX( ALL + + ( + col0 ) ) + + ( ( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9241
SELECT + MAX ( ALL + + ( + col0 ) ) + + ( ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 86 + col2 FROM tab1 AS cor0 WHERE ( ( + col2 ) - + 77 ) IN ( + 37 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9243
SELECT ALL - col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL - col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT DISTINCT COUNT( * ) + - + ( - 5 ) AS col0 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-9244
SELECT DISTINCT COUNT ( * ) + - + ( - 5 ) AS col0 FROM tab0
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 * col1 col1 FROM tab2
----
1428
1876
2156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9246
SELECT 32 AS col2, + CAST( + - 81 AS SIGNED ) FROM tab2
----
32
-81
32
-81
32
-81

skipif mysql # not compatible
query II rowsort label-9246
SELECT 32 AS col2, + CAST ( + - 81 AS INTEGER ) FROM tab2
----
32
-81
32
-81
32
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-9247
SELECT + 3, SUM( ALL 36 ) col2 FROM tab1
----
3
108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9247
SELECT + 3, SUM ( ALL 36 ) col2 FROM tab1
----
3
108

query I rowsort
SELECT ALL + col0 + + 53 FROM tab2
----
117
128
99

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, 52 col1 FROM tab1
----
-59
52
-68
52
-96
52

query I rowsort
SELECT ALL + ( 92 ) FROM tab0
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT - COUNT( DISTINCT + - col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9252
SELECT - COUNT ( DISTINCT + - col2 ) FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, - 32 * - 57 * - + 99 col1 FROM tab0
----
10
-180576
47
-180576
99
-180576

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9255
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL OR NOT CAST( - col2 AS SIGNED ) NOT BETWEEN NULL AND + - col0 + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9255
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL OR NOT CAST ( - col2 AS INTEGER ) NOT BETWEEN NULL AND + - col0 + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9256
SELECT + col2 * + CAST( NULL AS SIGNED ) + 9 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9256
SELECT + col2 * + CAST ( NULL AS INTEGER ) + 9 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT ( MIN( DISTINCT + 35 ) ) col1 FROM tab2 WHERE NOT ( - - col1 - - - 3 / col1 * - 13 ) NOT BETWEEN ( 62 * col0 ) AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9257
SELECT ( MIN ( DISTINCT + 35 ) ) col1 FROM tab2 WHERE NOT ( - - col1 - - - 3 / col1 * - 13 ) NOT BETWEEN ( 62 * col0 ) AND NULL
----
NULL

query I rowsort
SELECT + col0 * 79 FROM tab2
----
3634
5056
5925

query I rowsort
SELECT + ( + - ( col1 ) ) FROM tab2
----
-51
-67
-77

query I rowsort
SELECT ALL col0 * + col2 + col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + col0 * + 84 / + 69 * - + 6
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT ALL + SUM( ALL - 95 ) col1 FROM tab0 AS cor0
----
-285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9263
SELECT ALL + SUM ( ALL - 95 ) col1 FROM tab0 AS cor0
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT - MAX( ALL + col1 ) FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN - col1 AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9264
SELECT - MAX ( ALL + col1 ) FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN - col1 AND col2
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( - + col2 ) AND NULL
----

query I rowsort
SELECT ALL + + 41 * - ( - 42 ) + + - 64 FROM tab1 cor0
----
1658
1658
1658

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT - - col0 / - col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT 78 + + + COUNT( * ) FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9268
SELECT 78 + + + COUNT ( * ) FROM tab2 AS cor0
----
81

query I rowsort
SELECT ALL col0 * + 94 + col2 FROM tab2
----
4347
6056
7108

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9270
SELECT * FROM tab1 WHERE NOT - col0 - - + col0 NOT IN ( - col2 / - + col1, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9270
SELECT * FROM tab1 WHERE NOT - col0 - - + col0 NOT IN ( - col2 / - + col1, CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - 67 * + - 73 * + 51 AS col2 FROM tab2
----
249441
249441
249441

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 98 + - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + ( 73 ) BETWEEN + - 3 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 66 * 81 FROM tab2
----
5346

query I rowsort
SELECT DISTINCT - + 51 AS col2 FROM tab1 cor0
----
-51

query I rowsort
SELECT ALL + - col2 * - ( col2 ) - + + 60 FROM tab0 AS cor0
----
2149
40
9741

onlyif mysql # DIV for integer division: 
query I rowsort label-9277
SELECT DISTINCT + - col0 DIV + - 54 AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9277
SELECT DISTINCT + - col0 / + - 54 AS col1 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT 11 + + - 90 + - col1 AS col0 FROM tab2 AS cor0
----
-130
-146
-156

query I rowsort
SELECT DISTINCT - col0 + - - 84 FROM tab0
----
-13
-3
69

query III rowsort
SELECT * FROM tab1 WHERE + + col0 / - 77 - - 10 IS NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NOT - + 31 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9282
SELECT ALL + ( col1 ) DIV col1 * 25 - - ( + col1 ) AS col0 FROM tab0
----
106
26
46

skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL + ( col1 ) / col1 * 25 - - ( + col1 ) AS col0 FROM tab0
----
106
26
46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9283
SELECT ALL 87 * + col2 - + col0 - + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9283
SELECT ALL 87 * + col2 - + col0 - + CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9284
SELECT DISTINCT - - CAST( COUNT( * ) AS SIGNED ) DIV 14 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9284
SELECT DISTINCT - - CAST ( COUNT ( * ) AS INTEGER ) / 14 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 6 * - ( + + col1 ) FROM tab1 AS cor0
----
-282
-30
-84

query I rowsort
SELECT ALL - - 97 AS col1 FROM tab1 AS cor0
----
97
97
97

query I rowsort
SELECT + 74 * - col2 * + 35 + + + 44 FROM tab1 AS cor0
----
-152766
-176076
-248596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9288
SELECT DISTINCT - + MIN( + col2 ) DIV - 89 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9288
SELECT DISTINCT - + MIN ( + col2 ) / - 89 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN ( NULL ) AND + col2 * + - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9290
SELECT - COUNT( * ) - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + 97 * - 48 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9290
SELECT - COUNT ( * ) - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + 97 * - 48 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 - + - col2 col1 FROM tab1 AS cor0
----
-3
34
6

onlyif mysql # DIV for integer division: 
query II rowsort label-9292
SELECT - col1, col0 DIV - col1 + 62 AS col1 FROM tab2
----
-51
62
-67
61
-77
62

skipif mysql # not compatible
query II rowsort label-9292
SELECT - col1, col0 / - col1 + 62 AS col1 FROM tab2
----
-51
62
-67
61
-77
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT DISTINCT + MIN( DISTINCT + - col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-9293
SELECT DISTINCT + MIN ( DISTINCT + - col2 ) FROM tab0
----
-99

query I rowsort
SELECT + + col2 AS col0 FROM tab0 WHERE NOT + col0 = col2
----
10
47
99

query I rowsort
SELECT ALL + col2 * - - 86 FROM tab2
----
1978
3440
4988

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9296
SELECT ALL - SUM( DISTINCT + + col0 ) DIV - COUNT( * ) AS col2 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-9296
SELECT ALL - SUM ( DISTINCT + + col0 ) / - COUNT ( * ) AS col2 FROM tab0
----
66

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 BETWEEN - 83 + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT DISTINCT + SUM( DISTINCT - - 67 ) FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-9298
SELECT DISTINCT + SUM ( DISTINCT - - 67 ) FROM tab1 AS cor0
----
67

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 42 + + - col0 = col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT ALL COUNT( DISTINCT 83 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL COUNT ( DISTINCT 83 ) AS col0 FROM tab0
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 45 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT ALL + MAX( + - 26 ) FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL + MAX ( + - 26 ) FROM tab1 AS cor0
----
-26

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN col2 * + - col2 * col2 + col2 / - col1 / - col0 - + + 21 AND ( col1 )
----

query II rowsort
SELECT DISTINCT col0 AS col0, + col2 AS col1 FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT DISTINCT 54 + - 72 FROM tab2 AS cor0
----
-18

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( 73, - 8, - 10, + 45, + col1 / + + 27 * col2 / col0 + - col1 )
----

query I rowsort
SELECT ALL - + 23 + col2 FROM tab1 cor0
----
36
45
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9308
SELECT DISTINCT col0 DIV - - col2 + + - col2 AS col0 FROM tab1
----
-58
-67
-96

skipif mysql # not compatible
query I rowsort label-9308
SELECT DISTINCT col0 / - - col2 + + - col2 AS col0 FROM tab1
----
-58
-67
-96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9309
SELECT 32 + + + CAST( NULL AS DECIMAL ) + + COUNT( * ) AS col0 FROM tab0, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9309
SELECT 32 + + + CAST ( NULL AS REAL ) + + COUNT ( * ) AS col0 FROM tab0, tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9310
SELECT + 25 * CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9310
SELECT + 25 * CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col1 + + + col2 + + - 90 AS col2 FROM tab0
----
-101
-124
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9312
SELECT * FROM tab2 WHERE + CAST( col0 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-9312
SELECT * FROM tab2 WHERE + CAST ( col0 AS INTEGER ) <> NULL
----

query I rowsort
SELECT ALL - ( col0 ) AS col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 + - 19 col0 FROM tab1
----
-68
-68
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 + - col0 col2 FROM tab0 AS cor0
----
-107
-25
-97

query II rowsort
SELECT ALL - 64 * 41, 68 AS col1 FROM tab1 AS cor0
----
-2624
68
-2624
68
-2624
68

query I rowsort
SELECT ALL col1 + + + col0 AS col2 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT + + COUNT( * ) FROM tab2 WHERE col2 < NULL AND NOT ( + col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9318
SELECT + + COUNT ( * ) FROM tab2 WHERE col2 < NULL AND NOT ( + col1 ) IS NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE col0 >= ( + col2 )
----
87
21
10

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <= - ( - + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col2 NOT BETWEEN NULL AND - + 41 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9322
SELECT ALL 61 DIV 27 AS col1 FROM tab0 cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL 61 / 27 AS col1 FROM tab0 cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT COUNT( * ) * - + 64 * + 93 col0 FROM tab0 AS cor0 WHERE col0 * + 24 IS NOT NULL
----
-17856

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9323
SELECT COUNT ( * ) * - + 64 * + 93 col0 FROM tab0 AS cor0 WHERE col0 * + 24 IS NOT NULL
----
-17856

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( - 59 ) IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9325
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, - MIN( + col1 ) AS col1 FROM tab2 AS cor0
----
NULL
-51

skipif mysql # not compatible
query II rowsort label-9325
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, - MIN ( + col1 ) AS col1 FROM tab2 AS cor0
----
NULL
-51

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT - col2 IS NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 54 * - col2 >= - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9328
SELECT + col2 DIV - - col2 col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9328
SELECT + col2 / - - col2 col2 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT ALL MIN( 7 ) AS col1 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-9329
SELECT ALL MIN ( 7 ) AS col1 FROM tab2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9330
SELECT ALL - ( + + COUNT( * ) ) * - 30 * + CAST( + - 2 AS SIGNED ) + + 89 AS col2 FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-9330
SELECT ALL - ( + + COUNT ( * ) ) * - 30 * + CAST ( + - 2 AS INTEGER ) + + 89 AS col2 FROM tab0
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-9331
SELECT 63 DIV - + col0 AS col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9331
SELECT 63 / - + col0 AS col0 FROM tab2
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9332
SELECT - col2 DIV + + col1 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-9332
SELECT - col2 / + + col1 FROM tab1
----
-1
-11
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT - - COUNT( * ) * 39 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 + - 83 AND + - col2 * - - col1 * - 5
----
0

skipif mysql # not compatible
query I rowsort label-9333
SELECT - - COUNT ( * ) * 39 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 + - 83 AND + - col2 * - - col1 * - 5
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9335
SELECT ALL COUNT( * ) DIV - 15 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
0

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL COUNT ( * ) / - 15 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
0

query I rowsort
SELECT DISTINCT ( + 97 ) AS col2 FROM tab1
----
97

query I rowsort
SELECT ALL + 13 AS col0 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT ALL col0 * + col0 + + + 2 FROM tab0
----
227
7571
9411

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9339
SELECT DISTINCT - COUNT( * ) DIV - - ( + 96 ) * + + ( + 71 ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9339
SELECT DISTINCT - COUNT ( * ) / - - ( + 96 ) * + + ( + 71 ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( + col1 ) <= NULL )
----

query I rowsort
SELECT + + col0 FROM tab2 AS cor0 WHERE NOT + ( 98 ) * + + col0 * - col2 + 35 + 6 IN ( 88 - + + 3 * + col2 + col2, - col2 )
----
46
64
75

query I rowsort
SELECT ALL + - 57 AS col0 FROM tab0 cor0
----
-57
-57
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9343
SELECT DISTINCT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9343
SELECT DISTINCT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - 55 + col2 FROM tab0 AS cor0
----
-45
-8
44

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + 50 / col2 NOT IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-9346
SELECT DISTINCT - + COUNT( * ) AS col2, 1 AS col0 FROM tab2 cor0
----
-3
1

skipif mysql # not compatible
query II rowsort label-9346
SELECT DISTINCT - + COUNT ( * ) AS col2, 1 AS col0 FROM tab2 cor0
----
-3
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9347
SELECT DISTINCT - + col0 * CAST( NULL AS SIGNED ) + col0 AS col0, + 85 - + + col0 AS col1 FROM tab1 AS cor0
----
NULL
-6
NULL
0
NULL
34

skipif mysql # not compatible
query II rowsort label-9347
SELECT DISTINCT - + col0 * CAST ( NULL AS INTEGER ) + col0 AS col0, + 85 - + + col0 AS col1 FROM tab1 AS cor0
----
NULL
-6
NULL
0
NULL
34

query I rowsort
SELECT - + col2 / - col0 AS col1 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9349
SELECT DISTINCT - CAST( NULL AS SIGNED ), col0 AS col1 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-9349
SELECT DISTINCT - CAST ( NULL AS INTEGER ), col0 AS col1 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 95 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT - - SUM( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9351
SELECT - - SUM ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT MIN( + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9352
SELECT MIN ( + col0 ) FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT + MAX( + 61 ) FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-9353
SELECT + MAX ( + 61 ) FROM tab2
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-9354
SELECT ALL + col2 + + col0 DIV + - col1 FROM tab2
----
23
40
57

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL + col2 + + col0 / + - col1 FROM tab2
----
23
40
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT DISTINCT + 42 + + + ( COUNT( * ) ) + 19 + - ( - ( + COUNT( * ) ) ) AS col2 FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-9355
SELECT DISTINCT + 42 + + + ( COUNT ( * ) ) + 19 + - ( - ( + COUNT ( * ) ) ) AS col2 FROM tab1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT + COUNT( * ) FROM tab2 WHERE - 80 * - 83 + col1 IN ( col0 + 13 * 8 * 0 + col2 * - 68 / - - 94 )
----
0

skipif mysql # not compatible
query I rowsort label-9356
SELECT + COUNT ( * ) FROM tab2 WHERE - 80 * - 83 + col1 IN ( col0 + 13 * 8 * 0 + col2 * - 68 / - - 94 )
----
0

query I rowsort
SELECT ALL + col0 * 94 + + col2 FROM tab0 WHERE - col0 NOT IN ( ( 94 ), + col0 / + 20 )
----
1457
8188
9217

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col1, + 36 col1 FROM tab2
----
-51
36
-67
36
-77
36

query I rowsort
SELECT DISTINCT + col2 + - 1 AS col0 FROM tab0
----
46
9
98

query I rowsort
SELECT + + col0 * col1 FROM tab0 WHERE + 77 < 83 + + col2
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT + + SUM( ALL - col1 ) col2 FROM tab2 cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9361
SELECT + + SUM ( ALL - col1 ) col2 FROM tab2 cor0
----
-195

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 NOT IN ( - col0, + col0 * - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 94 * ( + ( + - col0 ) ) + col0 * - 22 + col1 AS col0 FROM tab2 AS cor0
----
-5285
-7347
-8633

query II rowsort
SELECT DISTINCT + col1, 73 FROM tab2 AS cor0
----
51
73
67
73
77
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9365
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - col2 + col0 * - + col0 + - 87 AS col1 FROM tab2 AS cor0
----
-2226
-4223
-5770

query I rowsort
SELECT DISTINCT 63 * + col2 + ( + 63 ) + - + col0 FROM tab2
----
1466
2519
3642

query II rowsort
SELECT ALL - col2 * + col1 + + 42 AS col0, - 34 + + + 53 + - col0 AS col2 FROM tab1
----
-1302
-32
-253
-66
-3154
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - ( - col2 ) - col2 * 86 col2 FROM tab0
----
-1833
-760
1287

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9371
SELECT ALL col2 * - ( - col2 ) + CAST( NULL AS SIGNED ) * - 96 + + ( 78 ) * - 9 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL col2 * - ( - col2 ) + CAST ( NULL AS INTEGER ) * - 96 + + ( 78 ) * - 9 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 * - col0 + + col2 AS col2 FROM tab2 AS cor0
----
-2323
-4888
-4967

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 15 col2 FROM tab0 AS cor0
----
-15
-15
-15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + + col1 + - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 / - + col2 FROM tab1 AS cor0 WHERE NOT ( + col1 * - 44 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9376
SELECT ALL + CAST( NULL AS SIGNED ) * + - 99 / - COUNT( * ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9376
SELECT ALL + CAST ( NULL AS INTEGER ) * + - 99 / - COUNT ( * ) col1 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT - col2, + col0 * + 56 AS col1 FROM tab2
----
-23
2576
-40
3584
-58
4200

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT DISTINCT + COUNT( DISTINCT 2 ) col0 FROM tab1 WHERE NOT ( NOT col0 IS NOT NULL )
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9378
SELECT DISTINCT + COUNT ( DISTINCT 2 ) col0 FROM tab1 WHERE NOT ( NOT col0 IS NOT NULL )
----
1

query III rowsort
SELECT * FROM tab2 WHERE NOT - 88 * col1 NOT BETWEEN + col0 AND + col0 * + col2
----

query II rowsort
SELECT - + col2 AS col2, col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT ALL - COUNT( * ) * - COUNT( + + col1 ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9381
SELECT ALL - COUNT ( * ) * - COUNT ( + + col1 ) AS col0 FROM tab2 AS cor0
----
9

query I rowsort
SELECT - 44 * - col0 + - 35 FROM tab0 AS cor0
----
3793
4233
625

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT SUM( - - col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-9383
SELECT SUM ( - - col0 ) FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT ALL + COUNT( + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9384
SELECT ALL + COUNT ( + col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9385
SELECT DISTINCT - 19 + - CAST( NULL AS SIGNED ) AS col2, col1 * - 45 + - + 97 + + CAST( NULL AS SIGNED ) * + ( + ( col2 ) ) * - + col2 FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9385
SELECT DISTINCT - 19 + - CAST ( NULL AS INTEGER ) AS col2, col1 * - 45 + - + 97 + + CAST ( NULL AS INTEGER ) * + ( + ( col2 ) ) * - + col2 FROM tab2 AS cor0
----
NULL
NULL

query I rowsort
SELECT - + col1 + + 57 FROM tab0 AS cor0
----
-24
36
56

query I rowsort
SELECT ALL + col2 - + - col2 AS col2 FROM tab0
----
198
20
94

query I rowsort
SELECT DISTINCT col2 + - + 90 FROM tab1
----
-22
-31
6

query I rowsort
SELECT - 10 + + col0 FROM tab1
----
41
75
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT ALL + 13 + COUNT( * ) FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-9390
SELECT ALL + 13 + COUNT ( * ) FROM tab0
----
16

query I rowsort
SELECT DISTINCT + + col1 - col1 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9392
SELECT + MAX( DISTINCT - + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9392
SELECT + MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT ALL + MAX( - - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9393
SELECT ALL + MAX ( - - col2 ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT + 3 AS col0 FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9395
SELECT - col1 - - + 32 / + + CAST( NULL AS SIGNED ) - + + col0 + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9395
SELECT - col1 - - + 32 / + + CAST ( NULL AS INTEGER ) - + + col0 + col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT + + 83 + - + MIN( - 11 ) FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
94

skipif mysql # not compatible
query I rowsort label-9396
SELECT + + 83 + - + MIN ( - 11 ) FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT + COUNT( * ) - + 7 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-9397
SELECT + COUNT ( * ) - + 7 FROM tab2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9398
SELECT ALL col2, - CAST( - col1 AS SIGNED ) * ( + - col0 ) FROM tab0 AS cor0
----
10
-1827
47
-1215
99
-97

skipif mysql # not compatible
query II rowsort label-9398
SELECT ALL col2, - CAST ( - col1 AS INTEGER ) * ( + - col0 ) FROM tab0 AS cor0
----
10
-1827
47
-1215
99
-97

query II rowsort
SELECT - col0, - 63 * + col0 AS col1 FROM tab1 AS cor0
----
-51
-3213
-85
-5355
-91
-5733

query II rowsort
SELECT DISTINCT - + col1 AS col1, col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 66 * - col2 col0 FROM tab1 AS cor0 WHERE NOT ( 32 ) >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT ALL COUNT( + - col1 ) * - COUNT( * ) FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL COUNT ( + - col1 ) * - COUNT ( * ) FROM tab0 cor0
----
-9

query II rowsort
SELECT - col0 * col2, 45 AS col1 FROM tab0 AS cor0
----
-705
45
-870
45
-9603
45

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9405
SELECT - 10 AS col2, CAST( NULL AS SIGNED ) * + CAST( - col0 AS SIGNED ) col1 FROM tab2 AS cor0
----
-10
NULL
-10
NULL
-10
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9405
SELECT - 10 AS col2, CAST ( NULL AS INTEGER ) * + CAST ( - col0 AS INTEGER ) col1 FROM tab2 AS cor0
----
-10
NULL
-10
NULL
-10
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col0 - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9407
SELECT 81 DIV - - col1 FROM tab0
----
1
3
81

skipif mysql # not compatible
query I rowsort label-9407
SELECT 81 / - - col1 FROM tab0
----
1
3
81

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 <= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col2 * + col2, + 88 AS col0 FROM tab1
----
3481
88
4624
88
9216
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT - 47 * + MIN( ALL + + col0 ) FROM tab1
----
-2397

skipif mysql # not compatible
query I rowsort label-9410
SELECT - 47 * + MIN ( ALL + + col0 ) FROM tab1
----
-2397

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT ALL MIN( - 93 ) AS col1 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-9411
SELECT ALL MIN ( - 93 ) AS col1 FROM tab2
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9412
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + CAST( NULL AS SIGNED ) * + col0 AND col0
----

skipif mysql # not compatible
query III rowsort label-9412
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) * + col0 AND col0
----

query I rowsort
SELECT - col2 * 86 * + + 36 AS col1 FROM tab2
----
-123840
-179568
-71208

onlyif mysql # DIV for integer division: 
query I rowsort label-9414
SELECT ( + + col0 ) DIV col0 + - 47 AS col2 FROM tab1
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-9414
SELECT ( + + col0 ) / col0 + - 47 AS col2 FROM tab1
----
-46
-46
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 + + col2 - + 21 col0 FROM tab0
----
-43
-80
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9416
SELECT ( - 48 ) * - CAST( NULL AS SIGNED ) + - - 73 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9416
SELECT ( - 48 ) * - CAST ( NULL AS INTEGER ) + - - 73 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + + col1 ) * + col1 * + 21 * - 49 * - col0 + col1 - + ( - - col2 ) - + col0 FROM tab1 AS cor0
----
10285751
206848439
2186486

query II rowsort
SELECT - col1 + + col2 + + 93 + + - col0 * + ( - col0 ) AS col0, + col1 FROM tab0 cor0
----
284
81
7651
21
9600
1

query II rowsort
SELECT + - col2 AS col1, + col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9420
SELECT - col0 DIV ( - col1 ) * - col0 + col0 AS col1 FROM tab2 AS cor0
----
0
46
64

skipif mysql # not compatible
query I rowsort label-9420
SELECT - col0 / ( - col1 ) * - col0 + col0 AS col1 FROM tab2 AS cor0
----
0
46
64

query I rowsort
SELECT col1 * + - col1 AS col1 FROM tab1
----
-196
-2209
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9422
SELECT DISTINCT + COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab1 WHERE ( NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9422
SELECT DISTINCT + COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab1 WHERE ( NULL IS NOT NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9423
SELECT + CAST( + 50 AS SIGNED ), + col2 AS col2 FROM tab2
----
50
23
50
40
50
58

skipif mysql # not compatible
query II rowsort label-9423
SELECT + CAST ( + 50 AS INTEGER ), + col2 AS col2 FROM tab2
----
50
23
50
40
50
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT + MAX( - 69 ) FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-9425
SELECT + MAX ( - 69 ) FROM tab1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT ALL COUNT( * ) * - COUNT( * ) - + 79 AS col1 FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-9426
SELECT ALL COUNT ( * ) * - COUNT ( * ) - + 79 AS col1 FROM tab2
----
-88

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 4 <> + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 - - - 49 FROM tab2 AS cor0
----
-3
15
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT MAX( + 55 ) AS col1 FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-9429
SELECT MAX ( + 55 ) AS col1 FROM tab0 AS cor0
----
55

query III rowsort
SELECT * FROM tab2 WHERE NOT - 47 IS NOT NULL
----

query II rowsort
SELECT + + col1, + col0 * - ( + + 11 ) AS col0 FROM tab2 cor0
----
51
-506
67
-825
77
-704

query I rowsort
SELECT - + col0 * + - ( - col0 ) FROM tab0 AS cor0
----
-225
-7569
-9409

query II rowsort
SELECT col1 AS col2, - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN - - col0 AND - 94
----
14
-14
47
-47
5
-5

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 cor0 WHERE NULL >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 col2 FROM tab2 cor0 WHERE NOT ( - + 66 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( + + col0 )
----

query I rowsort
SELECT + - 80 AS col0 FROM tab0 AS cor0
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT DISTINCT + MAX( + + 42 ) AS col2 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-9438
SELECT DISTINCT + MAX ( + + 42 ) AS col2 FROM tab0 AS cor0
----
42

query II rowsort
SELECT - 94 AS col0, - 29 FROM tab1
----
-94
-29
-94
-29
-94
-29

query II rowsort
SELECT DISTINCT + 40, + 86 AS col1 FROM tab2
----
40
86

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 24 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 BETWEEN NULL AND + col2 - - - col1
----
91
47
68

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 * col0 + col1 * ( + + col0 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE - col2 < 52 + col1
----
3

skipif mysql # not compatible
query I rowsort label-9444
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE - col2 < 52 + col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT DISTINCT MAX( col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN - 91 + - + col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9445
SELECT DISTINCT MAX ( col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN - 91 + - + col0 AND NULL
----
NULL

query I rowsort
SELECT + col0 - - ( + 69 ) AS col1 FROM tab0 AS cor0
----
156
166
84

query II rowsort
SELECT DISTINCT + col2 + - col2 + 48, col0 FROM tab1 AS cor0
----
48
51
48
85
48
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9448
SELECT CAST( NULL AS SIGNED ) + - - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9448
SELECT CAST ( NULL AS INTEGER ) + - - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9449
SELECT * FROM tab0 AS cor0 WHERE - col1 * + col0 + + CAST( - + col0 AS SIGNED ) * col1 NOT BETWEEN + - col2 AND - + col1 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9449
SELECT * FROM tab0 AS cor0 WHERE - col1 * + col0 + + CAST ( - + col0 AS INTEGER ) * col1 NOT BETWEEN + - col2 AND - + col1 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9450
SELECT - col0 * - 55 + - CAST( + col1 AS SIGNED ) FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
2791
4670
4958

skipif mysql # not compatible
query I rowsort label-9450
SELECT - col0 * - 55 + - CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
2791
4670
4958

query I rowsort
SELECT ALL - + col2 * ( + ( col1 ) ) FROM tab1 AS cor0
----
-1344
-295
-3196

query II rowsort
SELECT DISTINCT + 89, 37 * - col0 / + col1 FROM tab2 AS cor0 WHERE NULL <> - 99
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9453
SELECT ALL 63 DIV COUNT( * ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-9453
SELECT ALL 63 / COUNT ( * ) FROM tab0
----
21

query I rowsort
SELECT DISTINCT col1 * + col2 * - + col1 + 74 FROM tab2
----
-237086
-260288
-59749

query I rowsort
SELECT DISTINCT - 13 + - - 27 FROM tab2
----
14

query I rowsort
SELECT + 96 + - col2 AS col0 FROM tab0
----
-3
49
86

query I rowsort
SELECT ALL ( - col2 ) + + col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9458
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - + col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9458
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - + col1 FROM tab0
----
NULL

query I rowsort
SELECT 23 * - 0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT - ( + COUNT( * ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9460
SELECT - ( + COUNT ( * ) ) AS col1 FROM tab1
----
-3

query II rowsort
SELECT DISTINCT + col0 - - 61 * - col1, col0 AS col2 FROM tab1 AS cor0
----
-220
85
-2776
91
-803
51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 71 + - col2 <> NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - col2 col2 FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND - + 47
----

query I rowsort
SELECT - col2 * - - col2 * col2 * - + col0 FROM tab0 AS cor0 WHERE NOT ( + 57 + + 23 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT ALL - - COUNT( * ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9465
SELECT ALL - - COUNT ( * ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9466
SELECT + col0 DIV + 4 AS col1 FROM tab2
----
11
16
18

skipif mysql # not compatible
query I rowsort label-9466
SELECT + col0 / + 4 AS col1 FROM tab2
----
11
16
18

query I rowsort
SELECT - col2 - - col1 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - col2 * - + col2 col1 FROM tab1 WHERE NOT col1 * 17 + + 60 > + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9469
SELECT ALL + CAST( - 72 AS SIGNED ) FROM tab2 AS cor0
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL + CAST ( - 72 AS INTEGER ) FROM tab2 AS cor0
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT - ( - 68 ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-9470
SELECT - ( - 68 ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
204

onlyif mysql # aggregate syntax: 
query II rowsort label-9471
SELECT + + MAX( DISTINCT - col2 ), 20 AS col2 FROM tab0 AS cor0
----
-10
20

skipif mysql # not compatible
query II rowsort label-9471
SELECT + + MAX ( DISTINCT - col2 ), 20 AS col2 FROM tab0 AS cor0
----
-10
20

query I rowsort
SELECT col0 * col1 AS col0 FROM tab1 WHERE NOT + - col0 IS NULL
----
425
4277
714

query I rowsort
SELECT + 16 * 38 FROM tab0
----
608
608
608

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT - MIN( DISTINCT col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-9475
SELECT - MIN ( DISTINCT col0 ) AS col1 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT + 1 * + + 19 + - + ( + MIN( - col2 ) ) FROM tab0 WHERE NOT ( NOT ( NULL ) NOT BETWEEN NULL AND ( col1 ) * - ( - ( - col2 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9476
SELECT + 1 * + + 19 + - + ( + MIN ( - col2 ) ) FROM tab0 WHERE NOT ( NOT ( NULL ) NOT BETWEEN NULL AND ( col1 ) * - ( - ( - col2 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9477
SELECT DISTINCT COUNT( DISTINCT + col1 ), - COUNT( * ) FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----
0
0

skipif mysql # not compatible
query II rowsort label-9477
SELECT DISTINCT COUNT ( DISTINCT + col1 ), - COUNT ( * ) FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT DISTINCT MIN( - + col0 ) col2 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9478
SELECT DISTINCT MIN ( - + col0 ) col2 FROM tab1
----
-91

query II rowsort
SELECT DISTINCT col2, 35 FROM tab1
----
59
35
68
35
96
35

query I rowsort
SELECT ALL + - 8 FROM tab1 cor0
----
-8
-8
-8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 14 * - + 63 IS NULL
----

query I rowsort
SELECT ALL - col1 + + + 94 FROM tab1 cor0
----
47
80
89

query I rowsort
SELECT + col1 + + 97 FROM tab1 cor0
----
102
111
144

query I rowsort
SELECT + + col1 + + ( + ( + col2 ) ) AS col2 FROM tab2 cor0
----
117
125
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9485
SELECT ALL 77 * - - CAST( MAX( + 41 ) AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE col2 * col0 * col2 + col1 * - col1 * + col1 IN ( + + col0 * + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9485
SELECT ALL 77 * - - CAST ( MAX ( + 41 ) AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE col2 * col0 * col2 + col1 * - col1 * + col1 IN ( + + col0 * + col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT ( + + 90 ) + - + COUNT( * ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-9486
SELECT ( + + 90 ) + - + COUNT ( * ) FROM tab2
----
87

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 < + 56 * - 80
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( + col1 ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 93 * - + 53 AS col0 FROM tab0 AS cor0
----
4929
4929
4929

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT ALL COUNT( * ) + + - 27 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-9490
SELECT ALL COUNT ( * ) + + - 27 FROM tab2 AS cor0
----
-24

query I rowsort
SELECT - col0 + - col1 * + 59 * col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-17490
-188655
-79347

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9492
SELECT + + CAST( NULL AS SIGNED ) * - ( + + col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9492
SELECT + + CAST ( NULL AS INTEGER ) * - ( + + col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 10 FROM tab2 AS cor0 WHERE NOT 86 IS NOT NULL
----

query II rowsort
SELECT - - col1 AS col2, col1 FROM tab0 cor0
----
1
1
21
21
81
81

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 / + col1 * col1 + 79 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9496
SELECT col1 - - col1 col0, CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
10
NULL
28
NULL
94
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9496
SELECT col1 - - col1 col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
10
NULL
28
NULL
94
NULL

query I rowsort
SELECT col2 * - col0 * + 91 - + col0 AS col0 FROM tab1
----
-445587
-456450
-563199

onlyif mysql # DIV for integer division: 
query I rowsort label-9498
SELECT DISTINCT 61 + col0 DIV + 89 * - - col1 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-9498
SELECT DISTINCT 61 + col0 / + 89 * - - col1 FROM tab2
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9499
SELECT ALL + col1 + + CAST( + col0 AS SIGNED ) FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL + col1 + + CAST ( + col0 AS INTEGER ) FROM tab1
----
138
65
90

query I rowsort
SELECT ALL 46 * - - 11 FROM tab1
----
506
506
506

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT MIN( ALL + - col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-9501
SELECT MIN ( ALL + - col1 ) AS col1 FROM tab1
----
-47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9502
SELECT ALL + CAST( 1 AS SIGNED ) DIV + 48 * - col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9502
SELECT ALL + CAST ( 1 AS INTEGER ) / + 48 * - col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT SUM( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-9503
SELECT SUM ( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 col1 FROM tab1 AS cor0
----
28
28
28

query I rowsort
SELECT ALL + col0 FROM tab1 cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( + col0 ) / - col2 FROM tab1 AS cor0 WHERE NOT - 10 - + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT + COUNT( * ) * - - ( + + 6 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9507
SELECT + COUNT ( * ) * - - ( + + 6 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9508
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-3

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT 89 * - col2 AS col2 FROM tab2
----
-2047
-3560
-5162

query I rowsort
SELECT ALL 80 * - col2 FROM tab1
----
-4720
-5440
-7680

query II rowsort
SELECT ALL - + col0, - col2 AS col0 FROM tab0 AS cor0 WHERE NOT col0 / + + col1 / + col1 + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9513
SELECT DISTINCT - col2 DIV ( - - col1 ) FROM tab0 AS cor0
----
-99
0

skipif mysql # not compatible
query I rowsort label-9513
SELECT DISTINCT - col2 / ( - - col1 ) FROM tab0 AS cor0
----
-99
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9514
SELECT + ( - + 39 ) DIV - COUNT( + 95 ) FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-9514
SELECT + ( - + 39 ) / - COUNT ( + 95 ) FROM tab0 AS cor0
----
13

query II rowsort
SELECT + 16 AS col1, + 34 FROM tab1 AS cor0
----
16
34
16
34
16
34

query II rowsort
SELECT + 73, col1 AS col0 FROM tab1 AS cor0
----
73
14
73
47
73
5

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 71 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 30, col1 col2 FROM tab2 AS cor0
----
30
51
30
67
30
77

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9519
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 BETWEEN + col1 AND - CAST( NULL AS DECIMAL ) * + 56
----

skipif mysql # not compatible
query III rowsort label-9519
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 BETWEEN + col1 AND - CAST ( NULL AS REAL ) * + 56
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + - col1 + - col2 * + - 83 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9521
SELECT ALL - + CAST( + + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL - + CAST ( + + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query II rowsort
SELECT - col1 AS col0, - 54 * + + col1 FROM tab0 cor0
----
-1
-54
-21
-1134
-81
-4374

query I rowsort
SELECT ALL - 51 + - col0 FROM tab2
----
-115
-126
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT ALL + ( - SUM( ALL - col0 ) ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL + ( - SUM ( ALL - col0 ) ) AS col2 FROM tab1
----
227

query I rowsort
SELECT ( - col2 ) * + 60 * - col1 * 4 + - 74 FROM tab2
----
281446
739126
932566

query I rowsort
SELECT DISTINCT + col2 + + col1 + col1 FROM tab0
----
101
209
52

query II rowsort
SELECT + col0 + col2 AS col1, col0 - + ( - - col1 ) FROM tab1 cor0
----
144
80
147
37
159
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT + 65 * - COUNT( DISTINCT - 37 ) FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-9528
SELECT + 65 * - COUNT ( DISTINCT - 37 ) FROM tab1 AS cor0
----
-65

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 = - 28
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT DISTINCT - COUNT( * ) + + - COUNT( * ) AS col1 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-9530
SELECT DISTINCT - COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab0
----
-6

query I rowsort
SELECT ALL + 38 FROM tab1 WHERE + col0 * col2 + + + 49 + - + col1 + col0 + - col2 + 98 + - col1 * - col1 < - col1 * + 96
----

query I rowsort
SELECT 67 - + - 45 * + 15 FROM tab0
----
742
742
742

query I rowsort
SELECT - col1 - + + col2 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT + col2 * - 95 + 84 - 3 + + col1 FROM tab1 AS cor0
----
-5519
-6332
-9025

query I rowsort
SELECT + - 65 + + col1 AS col1 FROM tab2 AS cor0
----
-14
12
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9536
SELECT - 15 + - 98 - + CAST( NULL AS SIGNED ) - 18 * ( + + col2 ) * col2 / - + col2 * + col0 * + col1 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9536
SELECT - 15 + - 98 - + CAST ( NULL AS INTEGER ) - 18 * ( + + col2 ) * col2 / - + col2 * + col0 * + col1 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 - - - col1 + - + 96 FROM tab2 AS cor0
----
-96
-96
-96

query I rowsort
SELECT 11 * - - col2 + - + 88 + + col0 AS col2 FROM tab0 AS cor0
----
109
1098
444

query I rowsort
SELECT DISTINCT 12 - - + col2 FROM tab1 cor0
----
108
71
80

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 81 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9542
SELECT + 91 DIV - col0 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9542
SELECT + 91 / - col0 AS col0 FROM tab2
----
-1
-1
-1

query II rowsort
SELECT ALL + col0 AS col2, col0 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT DISTINCT + 35 * - 5 * - col1 AS col2 FROM tab0
----
14175
175
3675

query I rowsort
SELECT + 89 * + col2 * - col0 FROM tab1
----
-435744
-446335
-550732

query I rowsort
SELECT ALL - 2 * + col2 AS col1 FROM tab2
----
-116
-46
-80

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col0 * - col0 * - col2 < + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9548
SELECT DISTINCT 14, 95 * - COUNT( ALL 0 ) + 75 AS col2 FROM tab1
----
14
-210

skipif mysql # not compatible
query II rowsort label-9548
SELECT DISTINCT 14, 95 * - COUNT ( ALL 0 ) + 75 AS col2 FROM tab1
----
14
-210

onlyif mysql # DIV for integer division: 
query I rowsort label-9549
SELECT DISTINCT - 9 DIV - col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9549
SELECT DISTINCT - 9 / - col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + 3 FROM tab0 cor0
----
3

query I rowsort
SELECT ALL + col2 + - + col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 col2 FROM tab2 AS cor0
----
66
66
66

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 NOT BETWEEN NULL AND + + col2 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT - COUNT( DISTINCT 12 ) * + MAX( - + col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9554
SELECT - COUNT ( DISTINCT 12 ) * + MAX ( - + col2 ) AS col2 FROM tab1
----
59

query I rowsort
SELECT - ( + 28 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT 12 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9557
SELECT ALL + - 32 * col2 FROM tab0 WHERE NOT + - CAST( NULL AS SIGNED ) IS NOT NULL
----
-1504
-3168
-320

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL + - 32 * col2 FROM tab0 WHERE NOT + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-1504
-3168
-320

query I rowsort
SELECT DISTINCT - col0 * - 2 AS col2 FROM tab0
----
174
194
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9559
SELECT - CAST( + ( + ( - col1 ) ) AS SIGNED ) * 97 AS col0 FROM tab2
----
4947
6499
7469

skipif mysql # not compatible
query I rowsort label-9559
SELECT - CAST ( + ( + ( - col1 ) ) AS INTEGER ) * 97 AS col0 FROM tab2
----
4947
6499
7469

query I rowsort
SELECT 56 * col2 + + - col2 + + col0 FROM tab2 AS cor0
----
1311
2264
3265

query I rowsort
SELECT + 13 + - + col0 FROM tab2 AS cor0
----
-33
-51
-62

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 79 * + 74 * - + 58 - 97 / - 20 IS NULL
----

query I rowsort
SELECT - col1 + + col0 * col0 FROM tab2 AS cor0
----
2065
4019
5558

query I rowsort
SELECT DISTINCT + col0 + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT + 10 / + 97 * 60 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT + - COUNT( DISTINCT col0 ) FROM tab2 AS cor0 WHERE NULL = 67
----
0

skipif mysql # not compatible
query I rowsort label-9565
SELECT + - COUNT ( DISTINCT col0 ) FROM tab2 AS cor0 WHERE NULL = 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT DISTINCT - COUNT( * ) + + + 49 AS col1 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9566
SELECT DISTINCT - COUNT ( * ) + + + 49 AS col1 FROM tab0 AS cor0
----
46

query III rowsort
SELECT * FROM tab2 WHERE + 69 BETWEEN + col2 AND NULL
----

query I rowsort
SELECT ALL + col0 + - + 43 FROM tab1
----
42
48
8

query I rowsort
SELECT ( + - col0 ) AS col0 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9570
SELECT DISTINCT CAST( - ( - - col0 ) AS SIGNED ) + - - col0 AS col1, + 95 FROM tab2
----
0
95

skipif mysql # not compatible
query II rowsort label-9570
SELECT DISTINCT CAST ( - ( - - col0 ) AS INTEGER ) + - - col0 AS col1, + 95 FROM tab2
----
0
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col1, 41 + - col2 col2 FROM tab0
----
15
-6
87
31
97
-58

query I rowsort
SELECT - ( col0 ) + - - col2 AS col2 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT + + col1 + - - col2 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9574
SELECT DISTINCT - - col1 + + CAST( col2 AS SIGNED ) * + col0 + col2 AS col0 FROM tab2 AS cor0
----
1132
2677
4475

skipif mysql # not compatible
query I rowsort label-9574
SELECT DISTINCT - - col1 + + CAST ( col2 AS INTEGER ) * + col0 + col2 AS col0 FROM tab2 AS cor0
----
1132
2677
4475

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 / col2 IS NULL AND col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( + 41 IS NULL )
----

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE + 30 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9578
SELECT - - col0 DIV + + ( - + col0 ) + - col1 FROM tab0 AS cor0
----
-2
-22
-82

skipif mysql # not compatible
query I rowsort label-9578
SELECT - - col0 / + + ( - + col0 ) + - col1 FROM tab0 AS cor0
----
-2
-22
-82

query II rowsort
SELECT 17 * + col0, - col0 + - - col2 AS col1 FROM tab2 cor0
----
1088
-24
1275
-17
782
-23

query I rowsort
SELECT col1 * + + col0 * 71 AS col2 FROM tab0 AS cor0
----
129717
6887
86265

query I rowsort
SELECT 18 * - 7 AS col1 FROM tab2
----
-126
-126
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT ALL SUM( - 23 ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-9582
SELECT ALL SUM ( - 23 ) FROM tab2
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9583
SELECT ALL + col0 + col2 col2 FROM tab1 WHERE + CAST( ( col0 ) AS SIGNED ) + + col1 / + col1 IS NOT NULL
----
144
147
159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9583
SELECT ALL + col0 + col2 col2 FROM tab1 WHERE + CAST ( ( col0 ) AS INTEGER ) + + col1 / + col1 IS NOT NULL
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT DISTINCT MIN( DISTINCT ( + 92 ) ) AS col0 FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT MIN ( DISTINCT ( + 92 ) ) AS col0 FROM tab0
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-9585
SELECT ALL col1 * col1 DIV + 86 col0 FROM tab0
----
0
5
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9585
SELECT ALL col1 * col1 / + 86 col0 FROM tab0
----
0
5
76

query II rowsort
SELECT + 90, col2 * ( - + col2 ) AS col2 FROM tab0
----
90
-100
90
-2209
90
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9587
SELECT ALL col1 * + col0 FROM tab2 AS cor0 WHERE ( NOT + 7 < CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9587
SELECT ALL col1 * + col0 FROM tab2 AS cor0 WHERE ( NOT + 7 < CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9588
SELECT ALL col2 * + + col0 - - ( - ( - CAST( - ( + col0 ) AS SIGNED ) ) ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1012
2496
4275

skipif mysql # not compatible
query I rowsort label-9588
SELECT ALL col2 * + + col0 - - ( - ( - CAST ( - ( + col0 ) AS INTEGER ) ) ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1012
2496
4275

query II rowsort
SELECT - - col2, - col0 AS col2 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

query I rowsort
SELECT 73 * + col1 - col2 AS col0 FROM tab2 AS cor0
----
3700
4833
5581

onlyif mysql # DIV for integer division: 
query I rowsort label-9591
SELECT DISTINCT col2 DIV - ( + col1 ) AS col2 FROM tab0
----
-99
0

skipif mysql # not compatible
query I rowsort label-9591
SELECT DISTINCT col2 / - ( + col1 ) AS col2 FROM tab0
----
-99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT + 5 * + - MAX( DISTINCT + 79 ) FROM tab2
----
-395

skipif mysql # not compatible
query I rowsort label-9592
SELECT + 5 * + - MAX ( DISTINCT + 79 ) FROM tab2
----
-395

query I rowsort
SELECT ALL - 2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT ALL + - 88 * - 63 AS col2 FROM tab2 AS cor0
----
5544
5544
5544

onlyif mysql # DIV for integer division: 
query I rowsort label-9595
SELECT + + 44 DIV - 75 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9595
SELECT + + 44 / - 75 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT DISTINCT - MAX( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9596
SELECT DISTINCT - MAX ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + col1 * + + 82 FROM tab0 AS cor0
----
-1722
-6642
-82

query I rowsort
SELECT 17 + - ( + - col0 ) * + col1 FROM tab2
----
2363
4945
5042

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9600
SELECT * FROM tab2 WHERE + - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9600
SELECT * FROM tab2 WHERE + - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 + col2 + - - 9 FROM tab0
----
106
205
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9602
SELECT + col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9602
SELECT + col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT - - 20 * COUNT( * ) FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-9603
SELECT - - 20 * COUNT ( * ) FROM tab0 AS cor0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9604
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * 73 + - 17 AS col1 FROM tab2 AS cor0
----
-3740
-4908
-5638

skipif mysql # not compatible
query I rowsort label-9604
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * 73 + - 17 AS col1 FROM tab2 AS cor0
----
-3740
-4908
-5638

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 30 * 78, - col1 col0 FROM tab0 cor0
----
-2340
-1
-2340
-21
-2340
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT DISTINCT - 61 + - COUNT( ALL + + col0 ) AS col0 FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-9606
SELECT DISTINCT - 61 + - COUNT ( ALL + + col0 ) AS col0 FROM tab1 AS cor0
----
-64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 + 71 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 = ( col1 ) - col2 + col2 / - - col0 * + 62 / - - 28
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-9609
SELECT DISTINCT - COUNT( * ) AS col0, COUNT( * ) * ( + COUNT( * ) ) FROM tab2 AS cor0
----
-3
9

skipif mysql # not compatible
query II rowsort label-9609
SELECT DISTINCT - COUNT ( * ) AS col0, COUNT ( * ) * ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-3
9

query I rowsort
SELECT 25 * - 31 FROM tab0 AS cor0
----
-775
-775
-775

onlyif mysql # aggregate syntax: 
query II rowsort label-9611
SELECT ALL - - COUNT( * ), + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
3
3

skipif mysql # not compatible
query II rowsort label-9611
SELECT ALL - - COUNT ( * ), + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT + MAX( + col1 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-9612
SELECT + MAX ( + col1 ) AS col2 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT 95 * - COUNT( * ) col1 FROM tab1
----
-285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9613
SELECT 95 * - COUNT ( * ) col1 FROM tab1
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT + COUNT( + col1 ) col0 FROM tab1 WHERE NOT NULL IS NULL OR 7 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9614
SELECT + COUNT ( + col1 ) col0 FROM tab1 WHERE NOT NULL IS NULL OR 7 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - 88 * - 23 + 56 * + 20 + - ( 16 ) FROM tab1 cor0
----
3128

query I rowsort
SELECT DISTINCT + + 77 + col0 FROM tab2 AS cor0
----
123
141
152

query I rowsort
SELECT DISTINCT - + 42 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-42

query I rowsort
SELECT 32 + + - col0 AS col1 FROM tab1
----
-19
-53
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9619
SELECT CAST( NULL AS SIGNED ) + + ( - COUNT( DISTINCT - + col2 ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9619
SELECT CAST ( NULL AS INTEGER ) + + ( - COUNT ( DISTINCT - + col2 ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT - COUNT( * ) + + 94 * - COUNT( * ) FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-9620
SELECT - COUNT ( * ) + + 94 * - COUNT ( * ) FROM tab1 AS cor0
----
-285

query I rowsort
SELECT 81 FROM tab0 AS cor0 WHERE 69 BETWEEN + ( - 33 ) AND - 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT ALL COUNT( + - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9622
SELECT ALL COUNT ( + - col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT ALL - ( + COUNT( * ) ) + 78 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL - ( + COUNT ( * ) ) + 78 FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL + col1 * + + col2 AS col2 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT + col2 + + + col2 AS col2 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT - ( + + MAX( - col2 ) ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-9626
SELECT - ( + + MAX ( - col2 ) ) FROM tab2 cor0
----
23

query II rowsort
SELECT + col1, + col0 AS col0 FROM tab0 cor0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query II rowsort label-9628
SELECT - 25, ( - ( - + 21 ) ) - - - MIN( DISTINCT - - 72 ) col1 FROM tab1
----
-25
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9628
SELECT - 25, ( - ( - + 21 ) ) - - - MIN ( DISTINCT - - 72 ) col1 FROM tab1
----
-25
-51

query I rowsort
SELECT DISTINCT 35 * - + col0 * 61 AS col0 FROM tab1
----
-108885
-181475
-194285

query II rowsort
SELECT - col1, 42 AS col2 FROM tab0
----
-1
42
-21
42
-81
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9631
SELECT DISTINCT + col0 - + col0 + - + 50 + 52 FROM tab1 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
2

skipif mysql # not compatible
query I rowsort label-9631
SELECT DISTINCT + col0 - + col0 + - + 50 + 52 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
2

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( + col2 )
----

query I rowsort
SELECT DISTINCT + 24 * - col1 FROM tab2
----
-1224
-1608
-1848

onlyif mysql # DIV for integer division: 
query I rowsort label-9634
SELECT DISTINCT col1 DIV + + col0 + col2 FROM tab0
----
10
52
99

skipif mysql # not compatible
query I rowsort label-9634
SELECT DISTINCT col1 / + + col0 + col2 FROM tab0
----
10
52
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9635
SELECT ALL - col2 - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9635
SELECT ALL - col2 - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 9 - 54 AS col0 FROM tab0 AS cor0
----
-45
-45
-45

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col2 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9638
SELECT - CAST( NULL AS SIGNED ) + - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9638
SELECT - CAST ( NULL AS INTEGER ) + - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9639
SELECT DISTINCT - - ( - col0 ) DIV col0 + - - CAST( + ( + col0 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
50
84
90

skipif mysql # not compatible
query I rowsort label-9639
SELECT DISTINCT - - ( - col0 ) / col0 + - - CAST ( + ( + col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
50
84
90

query I rowsort
SELECT ALL col1 * - 90 FROM tab2 AS cor0
----
-4590
-6030
-6930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9641
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9641
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT DISTINCT COUNT( - 80 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9642
SELECT DISTINCT COUNT ( - 80 ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 88 * - col1 col2 FROM tab0 cor0
----
-1848
-7128
-88

query II rowsort
SELECT ( - col0 ) AS col2, col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT ALL SUM( ALL col1 ) col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9645
SELECT ALL SUM ( ALL col1 ) col2 FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9646
SELECT ALL + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col0 * + 16 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col0 * + 16 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9647
SELECT - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9647
SELECT - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - - col2 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9648
SELECT DISTINCT + 74 col2, COUNT( * ) col1 FROM tab2
----
74
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9648
SELECT DISTINCT + 74 col2, COUNT ( * ) col1 FROM tab2
----
74
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT ALL - MAX( ALL col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-9649
SELECT ALL - MAX ( ALL col1 ) FROM tab1
----
-47

query II rowsort
SELECT DISTINCT + col2 AS col1, col0 + + ( - 56 ) * col1 * + col1 FROM tab0
----
10
-24609
47
-367401
99
41

query I rowsort
SELECT + col2 + - + col2 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( col1 ) + - col2 FROM tab0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT - SUM( 6 ) FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-9653
SELECT - SUM ( 6 ) FROM tab2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT DISTINCT COUNT( * ) * + 35 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-9654
SELECT DISTINCT COUNT ( * ) * + 35 FROM tab0
----
105

query I rowsort
SELECT ( col1 ) * col1 + + 56 AS col2 FROM tab1
----
2265
252
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9656
SELECT - 33 - - CAST( + col1 AS SIGNED ) AS col2 FROM tab2
----
18
34
44

skipif mysql # not compatible
query I rowsort label-9656
SELECT - 33 - - CAST ( + col1 AS INTEGER ) AS col2 FROM tab2
----
18
34
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT - COUNT( col0 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9657
SELECT - COUNT ( col0 ) AS col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT ALL COUNT( * ) * 4 AS col2 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-9658
SELECT ALL COUNT ( * ) * 4 AS col2 FROM tab2
----
12

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 / + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT COUNT( ALL - 67 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9660
SELECT COUNT ( ALL - 67 ) FROM tab1
----
3

query I rowsort
SELECT - 23 + + 41 AS col0 FROM tab2
----
18
18
18

query III rowsort
SELECT * FROM tab1 WHERE NOT 46 NOT IN ( + 70 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT - COUNT( * ) FROM tab0 WHERE 50 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9663
SELECT - COUNT ( * ) FROM tab0 WHERE 50 IS NULL
----
0

query I rowsort
SELECT ALL - 2 * 19 FROM tab1
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT ALL + SUM( - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-9665
SELECT ALL + SUM ( - col2 ) FROM tab2
----
-121

query III rowsort
SELECT * FROM tab1 WHERE + col2 + col0 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 69 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT ALL 2 * COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL 2 * COUNT ( * ) FROM tab0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 col0 FROM tab0
----
-62
-62
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-9670
SELECT + 13 DIV + col1 + 97 * col1 AS col2 FROM tab1
----
1358
4559
487

skipif mysql # not compatible
query I rowsort label-9670
SELECT + 13 / + col1 + 97 * col1 AS col2 FROM tab1
----
1358
4559
487

onlyif mysql # DIV for integer division: 
query I rowsort label-9671
SELECT DISTINCT 6 * + col1 - + 47 DIV col0 FROM tab1
----
282
30
84

skipif mysql # not compatible
query I rowsort label-9671
SELECT DISTINCT 6 * + col1 - + 47 / col0 FROM tab1
----
282
30
84

query I rowsort
SELECT DISTINCT + 20 AS col1 FROM tab0
----
20

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9674
SELECT DISTINCT - SUM( ALL + col1 ) FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
-195

skipif mysql # not compatible
query I rowsort label-9674
SELECT DISTINCT - SUM ( ALL + col1 ) FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
-195

query I rowsort
SELECT 13 * col0 AS col1 FROM tab1
----
1105
1183
663

query I rowsort
SELECT + 16 * - col2 FROM tab2
----
-368
-640
-928

query III rowsort
SELECT * FROM tab0 WHERE col0 * + col1 NOT BETWEEN NULL AND + col2
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT ALL - COUNT( * ) * - 73 FROM tab0
----
219

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL - COUNT ( * ) * - 73 FROM tab0
----
219

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col2 ) NOT IN ( col2 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT 24 * - MIN( DISTINCT col0 ) FROM tab2
----
-1104

skipif mysql # not compatible
query I rowsort label-9680
SELECT 24 * - MIN ( DISTINCT col0 ) FROM tab2
----
-1104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9681
SELECT ALL CAST( NULL AS SIGNED ) * + 24 + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL CAST ( NULL AS INTEGER ) * + 24 + COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9682
SELECT ALL - 14 DIV + col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9682
SELECT ALL - 14 / + col0 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT DISTINCT + COUNT( * ) * 22 AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9683
SELECT DISTINCT + COUNT ( * ) * 22 AS col1 FROM tab1
----
66

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col1 ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 43 - - 53 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * + col1 + + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + col0 ) * 22 FROM tab1
----
-1122
-1870
-2002

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= col1 * 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT - 30 * + 16 - - 77 * - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
-480

skipif mysql # not compatible
query I rowsort label-9689
SELECT - 30 * + 16 - - 77 * - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
-480

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * 62 > + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 0 NOT IN ( 59 * col1 + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 - - col1 FROM tab2 AS cor0 WHERE + 0 * 87 IS NULL
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 28 + + col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9695
SELECT ALL - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL - CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT ALL MAX( ALL + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL MAX ( ALL + col0 ) FROM tab0
----
97

query I rowsort
SELECT col2 FROM tab1 WHERE NOT ( col2 * - col0 ) > - col1 * ( ( col1 ) * + col1 )
----
59
96

query I rowsort
SELECT - 37 * - 33 FROM tab0
----
1221
1221
1221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9699
SELECT DISTINCT + col0 * CAST( - 77 AS SIGNED ) AS col0 FROM tab2
----
-3542
-4928
-5775

skipif mysql # not compatible
query I rowsort label-9699
SELECT DISTINCT + col0 * CAST ( - 77 AS INTEGER ) AS col0 FROM tab2
----
-3542
-4928
-5775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - - 62 * + 37 col2 FROM tab1
----
-135346
-155992
-220224

query I rowsort
SELECT col0 * + col2 * 87 FROM tab2
----
222720
378450
92046

query I rowsort
SELECT + 3 * + col1 FROM tab0
----
243
3
63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9703
SELECT CAST( + - 38 AS SIGNED ) DIV 13 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-9703
SELECT CAST ( + - 38 AS INTEGER ) / 13 FROM tab2
----
-2
-2
-2

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 >= - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9705
SELECT ALL 51 DIV - col0 col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9705
SELECT ALL 51 / - col0 col2 FROM tab1
----
-1
0
0

query I rowsort
SELECT 95 * - 71 FROM tab0
----
-6745
-6745
-6745

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9707
SELECT + COUNT( * ) * - 50 DIV + 46 AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9707
SELECT + COUNT ( * ) * - 50 / + 46 AS col2 FROM tab1
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 + 69 ) > + 67
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( ( - 74 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col0 )
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT col2 * col1 IS NOT NULL
----

query I rowsort
SELECT + - ( 69 ) FROM tab2 AS cor0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT DISTINCT - MAX( DISTINCT - col0 ) + + COUNT( * ) FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-9713
SELECT DISTINCT - MAX ( DISTINCT - col0 ) + + COUNT ( * ) FROM tab1 AS cor0
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9714
SELECT DISTINCT + COUNT( * ) DIV + - SUM( ALL + col2 ) + + 40 col1 FROM tab1
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9714
SELECT DISTINCT + COUNT ( * ) / + - SUM ( ALL + col2 ) + + 40 col1 FROM tab1
----
40

query I rowsort
SELECT + 92 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9716
SELECT 11 col0 FROM tab2 AS cor0 WHERE ( col1 + - + 14 + ( CAST( 86 AS SIGNED ) + col0 ) * CAST( NULL AS SIGNED ) / col2 ) IS NULL
----
11
11
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9716
SELECT 11 col0 FROM tab2 AS cor0 WHERE ( col1 + - + 14 + ( CAST ( 86 AS INTEGER ) + col0 ) * CAST ( NULL AS INTEGER ) / col2 ) IS NULL
----
11
11
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9717
SELECT CAST( col1 AS SIGNED ) * + ( col1 ) + 36 AS col0 FROM tab1 cor0
----
2245
232
61

skipif mysql # not compatible
query I rowsort label-9717
SELECT CAST ( col1 AS INTEGER ) * + ( col1 ) + 36 AS col0 FROM tab1 cor0
----
2245
232
61

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN 6 * + col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT ALL COUNT( - col0 ) col0 FROM tab1 AS cor0 WHERE NOT ( col1 / 88 ) IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9719
SELECT ALL COUNT ( - col0 ) col0 FROM tab1 AS cor0 WHERE NOT ( col1 / 88 ) IS NULL
----
3

query I rowsort
SELECT ALL - - ( - col2 ) FROM tab1 cor0
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 28 + - col2 col2 FROM tab0 AS cor0
----
-19
-71
18

query I rowsort
SELECT DISTINCT - + 80 + + + col1 FROM tab2 AS cor0
----
-13
-29
-3

query I rowsort
SELECT DISTINCT + 73 FROM tab0 AS cor0 WHERE NOT ( col1 - col2 ) IS NULL
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT MIN( 37 ) - - 52 AS col2 FROM tab1 WHERE - 23 BETWEEN NULL AND ( 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9724
SELECT MIN ( 37 ) - - 52 AS col2 FROM tab1 WHERE - 23 BETWEEN NULL AND ( 64 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT ALL COUNT( * ) + - 76 AS col0 FROM tab2 WHERE ( 42 * - col0 + - 66 ) IS NULL
----
-76

skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL COUNT ( * ) + - 76 AS col0 FROM tab2 WHERE ( 42 * - col0 + - 66 ) IS NULL
----
-76

query III rowsort
SELECT * FROM tab0 WHERE ( col2 ) >= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 90 - col2 FROM tab1
----
-149
-158
-186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9728
SELECT ALL col0 * + - 26 * col0 + col1 + ( + col2 ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9728
SELECT ALL col0 * + - 26 * col0 + col1 + ( + col2 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 42 - 35 - 13 + + col0 FROM tab0
----
81
9
91

query III rowsort
SELECT * FROM tab2 WHERE - ( + col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT ( + col0 ) * col0 + + col1 FROM tab0
----
306
7590
9410

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT DISTINCT COUNT( * ) - - - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9732
SELECT DISTINCT COUNT ( * ) - - - COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT + ( 98 ) AS col1 FROM tab1 WHERE NOT 2 IS NOT NULL AND ( - 63 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9734
SELECT ALL - CAST( NULL AS SIGNED ) + ( COUNT( * ) ) * - + 3 col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9734
SELECT ALL - CAST ( NULL AS INTEGER ) + ( COUNT ( * ) ) * - + 3 col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT - MIN( - - col0 ) AS col2 FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9735
SELECT - MIN ( - - col0 ) AS col2 FROM tab2 cor0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( - - col1 ) col1 FROM tab2 AS cor0
----
51
67
77

query II rowsort
SELECT - + col0 * + col0 AS col2, ( + + col0 ) FROM tab0 AS cor0
----
-225
15
-7569
87
-9409
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT DISTINCT - MIN( - - 82 ) FROM tab2
----
-82

skipif mysql # not compatible
query I rowsort label-9738
SELECT DISTINCT - MIN ( - - 82 ) FROM tab2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT ALL - SUM( 3 ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9739
SELECT ALL - SUM ( 3 ) FROM tab1 cor0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-9740
SELECT + 42 AS col0, SUM( DISTINCT col0 ) + ( - 1 ) col0 FROM tab2 AS cor0
----
42
184

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9740
SELECT + 42 AS col0, SUM ( DISTINCT col0 ) + ( - 1 ) col0 FROM tab2 AS cor0
----
42
184

query I rowsort
SELECT col1 * + + col0 AS col0 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT ( + - 40 ) FROM tab1 AS cor0
----
-40
-40
-40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 AND 81
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9744
SELECT ALL + col2 DIV + 2 AS col2 FROM tab0
----
23
49
5

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL + col2 / + 2 AS col2 FROM tab0
----
23
49
5

query I rowsort
SELECT DISTINCT col1 + - col2 + 50 FROM tab0
----
-48
61
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT - MAX( DISTINCT - + col2 ) * + MIN( ALL + + col1 ) FROM tab1
----
295

skipif mysql # not compatible
query I rowsort label-9746
SELECT - MAX ( DISTINCT - + col2 ) * + MIN ( ALL + + col1 ) FROM tab1
----
295

query III rowsort
SELECT * FROM tab2 WHERE NOT + 93 NOT BETWEEN NULL AND ( 88 / - col0 + col2 + - 52 + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9748
SELECT + col0 * col1 FROM tab1 WHERE NOT ( NOT + col1 + + CAST( NULL AS SIGNED ) < ( NULL ) )
----

skipif mysql # not compatible
query I rowsort label-9748
SELECT + col0 * col1 FROM tab1 WHERE NOT ( NOT + col1 + + CAST ( NULL AS INTEGER ) < ( NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9749
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 WHERE NOT + + col2 <> ( + 54 ) * - col0 + - 20 * - CAST( col1 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9749
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 WHERE NOT + + col2 <> ( + 54 ) * - col0 + - 20 * - CAST ( col1 AS INTEGER )
----
0

query III rowsort
SELECT * FROM tab0 WHERE ( 13 NOT IN ( + col2 * col1 / col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 - col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 91 > ( NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9753
SELECT - col1, - col2 * - + 92 * col0 * - + 9 * - col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
-1
-7951284
-21
-720360
-81
-583740

skipif mysql # not compatible
query II rowsort label-9753
SELECT - col1, - col2 * - + 92 * col0 * - + 9 * - col1 / - col1 AS col2 FROM tab0 AS cor0
----
-1
-7951284
-21
-720360
-81
-583740

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT ALL + ( - COUNT( * ) ) + COUNT( * ) col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9754
SELECT ALL + ( - COUNT ( * ) ) + COUNT ( * ) col0 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9755
SELECT DISTINCT + - 61 DIV + + 65 + - - 52 - - - 45 AS col1 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-9755
SELECT DISTINCT + - 61 / + + 65 + - - 52 - - - 45 AS col1 FROM tab1 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT ALL - SUM( - col1 ) col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9756
SELECT ALL - SUM ( - col1 ) col2 FROM tab0 AS cor0
----
103

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - - 17 IS NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 <> - 62 / + - col1 * - 17
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - ( + 3 ) + col2 * - + 39 FROM tab1 cor0
----
-2298
-2649
-3741

query I rowsort
SELECT DISTINCT - - 63 AS col2 FROM tab0 AS cor0 WHERE col1 / - + col1 * - ( + - col2 ) IS NOT NULL
----
63

query I rowsort
SELECT - - col1 AS col2 FROM tab1 WHERE - col1 + + col0 IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT col1 + - - 70 AS col0 FROM tab2
----
121
137
147

query III rowsort
SELECT * FROM tab0 WHERE + col0 - - col2 IS NULL
----

query II rowsort
SELECT - col1, ( col1 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-51
51
-67
67
-77
77

query I rowsort
SELECT + ( - 9 ) FROM tab1
----
-9
-9
-9

query I rowsort
SELECT + ( - - col1 ) AS col2 FROM tab0
----
1
21
81

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT + - COUNT( * ) + + - MIN( col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 AND + - col2 - - + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9768
SELECT + - COUNT ( * ) + + - MIN ( col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 AND + - col2 - - + col2
----
NULL

query I rowsort
SELECT DISTINCT 11 * col2 AS col2 FROM tab2 AS cor0
----
253
440
638

onlyif mysql # DIV for integer division: 
query I rowsort label-9770
SELECT col1 * col1 * 34 DIV col1 FROM tab2 AS cor0
----
1734
2278
2618

skipif mysql # not compatible
query I rowsort label-9770
SELECT col1 * col1 * 34 / col1 FROM tab2 AS cor0
----
1734
2278
2618

query II rowsort
SELECT DISTINCT ( + 35 ) AS col0, - col1 AS col2 FROM tab1 AS cor0
----
35
-14
35
-47
35
-5

query I rowsort
SELECT + - 58 AS col2 FROM tab1 cor0
----
-58
-58
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 58 AND ( - - col2 * + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT ALL - COUNT( DISTINCT 75 ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL - COUNT ( DISTINCT 75 ) FROM tab1 cor0
----
-1

query I rowsort
SELECT + + col2 FROM tab2 AS cor0 WHERE NOT - 72 IS NOT NULL
----

query I rowsort
SELECT ALL - 6 AS col1 FROM tab0 WHERE - col1 IS NOT NULL
----
-6
-6
-6

query I rowsort
SELECT ALL 76 + - + col1 FROM tab0
----
-5
55
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9778
SELECT col2 * - col2 DIV + col2 AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9778
SELECT col2 * - col2 / + col2 AS col2 FROM tab1
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-9779
SELECT DISTINCT col0 DIV + col2 + - col0 + - 34 AS col1 FROM tab0
----
-113
-131
-49

skipif mysql # not compatible
query I rowsort label-9779
SELECT DISTINCT col0 / + col2 + - col0 + - 34 AS col1 FROM tab0
----
-113
-131
-49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 < - - 14 * + col2
----

query I rowsort
SELECT ALL - col1 * + - 67 AS col0 FROM tab2 AS cor0 WHERE col2 <= NULL
----

query I rowsort
SELECT ALL col1 * + col0 + - + ( - 37 ) FROM tab0 AS cor0
----
1252
134
1864

query I rowsort
SELECT + col2 + + 91 FROM tab2 AS cor0
----
114
131
149

query I rowsort
SELECT - ( 43 ) + - - ( col1 ) FROM tab2 AS cor0
----
24
34
8

query I rowsort
SELECT col2 + + 35 AS col2 FROM tab0 cor0
----
134
45
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + - 13 + + col1 + - + col0, - col1 col1 FROM tab1
----
-8
-5
1
-14
34
-47

query I rowsort
SELECT + 26 * + col1 * + 44 + + + col1 + - 25 AS col2 FROM tab2
----
58370
76690
88140

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9789
SELECT col0 + 68 DIV + 57 col0 FROM tab1
----
52
86
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9789
SELECT col0 + 68 / + 57 col0 FROM tab1
----
52
86
92

query II rowsort
SELECT ALL col2, col2 * 37 + - + col0 FROM tab0
----
10
283
47
1724
99
3566

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE col0 + + col0 >= + 46
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT + COUNT( * ) + 62 * + - 21 - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1302

skipif mysql # not compatible
query I rowsort label-9792
SELECT + COUNT ( * ) + 62 * + - 21 - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1302

query I rowsort
SELECT ALL col2 - - 43 + col2 * + + 97 + - 96 FROM tab2 AS cor0
----
2201
3867
5631

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 44 = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT - - ( - COUNT( * ) ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9795
SELECT - - ( - COUNT ( * ) ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9796
SELECT ALL - col2 DIV 22 * + 55 AS col2 FROM tab0 AS cor0
----
-110
-220
0

skipif mysql # not compatible
query I rowsort label-9796
SELECT ALL - col2 / 22 * + 55 AS col2 FROM tab0 AS cor0
----
-110
-220
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9797
SELECT ALL + col0 DIV + ( - + col2 ) FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-9797
SELECT ALL + col0 / + ( - + col2 ) FROM tab0 AS cor0
----
-8
0
0

query I rowsort
SELECT 2 - - col1 + - - col1 + col0 AS col2 FROM tab2 AS cor0
----
150
211
220

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT COUNT( - ( + col1 ) ) - - MAX( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-9799
SELECT COUNT ( - ( + col1 ) ) - - MAX ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
61

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT 38 - MIN( + col1 ) + - + MIN( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-9801
SELECT 38 - MIN ( + col1 ) + - + MIN ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
36

query II rowsort
SELECT DISTINCT + col0 AS col1, + ( - col2 ) AS col1 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

query I rowsort
SELECT - - ( + col2 ) AS col0 FROM tab2 WHERE NOT NULL IN ( col1 * - col1, + col2, + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT ALL + ( + + ( + - SUM( + 53 ) ) ) FROM tab0 cor0 WHERE NULL = - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9804
SELECT ALL + ( + + ( + - SUM ( + 53 ) ) ) FROM tab0 cor0 WHERE NULL = - col0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 80 * + 13 + - - 18 * - + ( - - col0 ) AS col2 FROM tab1 AS cor0
----
-490
-598
122

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9807
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 > + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9807
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 > + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT - SUM( - ( 13 ) ) FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-9808
SELECT - SUM ( - ( 13 ) ) FROM tab0 AS cor0
----
39

query II rowsort
SELECT DISTINCT - - col2, col2 AS col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT + SUM( + - 48 ) col2 FROM tab1 cor0
----
-144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9810
SELECT + SUM ( + - 48 ) col2 FROM tab1 cor0
----
-144

query II rowsort
SELECT - - 45 AS col0, ( - + col0 ) AS col1 FROM tab0 AS cor0
----
45
-15
45
-87
45
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9812
SELECT + ( + col1 ) DIV - col0 AS col1 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9812
SELECT + ( + col1 ) / - col0 AS col1 FROM tab2 cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT DISTINCT + 27 + + COUNT( * ) FROM tab1 cor0
----
30

skipif mysql # not compatible
query I rowsort label-9813
SELECT DISTINCT + 27 + + COUNT ( * ) FROM tab1 cor0
----
30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 NOT BETWEEN + - 1 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9815
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - ( - 15 ) + + + col0 AS col0, col0 AS col1 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-9815
SELECT DISTINCT + CAST ( NULL AS REAL ) + - ( - 15 ) + + + col0 AS col0, col0 AS col1 FROM tab2
----
NULL
46
NULL
64
NULL
75

query III rowsort
SELECT * FROM tab2 WHERE col2 <> - col1 * + 77 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + - col2 + col0 + - - 27 * + col0 - - col0 FROM tab2
----
1334
1856
2175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9818
SELECT DISTINCT CAST( - - 44 AS SIGNED ) FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-9818
SELECT DISTINCT CAST ( - - 44 AS INTEGER ) FROM tab0
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 76 col0 FROM tab2
----
-3496
-4864
-5700

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT 56 + - COUNT( * ) AS col2 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-9820
SELECT 56 + - COUNT ( * ) AS col2 FROM tab2
----
53

query I rowsort
SELECT + + col1 + + - 69 + ( ( 15 ) ) FROM tab1 AS cor0
----
-40
-49
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT ALL - - ( COUNT( * ) ) * 81 AS col2 FROM tab1 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-9822
SELECT ALL - - ( COUNT ( * ) ) * 81 AS col2 FROM tab1 AS cor0
----
243

onlyif mysql # DIV for integer division: 
query I rowsort label-9823
SELECT DISTINCT 91 DIV + - 37 + - 23 DIV + 92 * + col1 AS col0 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-9823
SELECT DISTINCT 91 / + - 37 + - 23 / + 92 * + col1 AS col0 FROM tab1 AS cor0
----
-2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * + col2 * col2 * - col0 NOT BETWEEN col2 * - col2 - + 48 + + 98 - - + col0 * col2 + + 66 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9825
SELECT * FROM tab0 AS cor0 WHERE - col0 * - col1 + col1 IN ( + - CAST( - + 93 AS SIGNED ) + - + col2, 30 )
----

skipif mysql # not compatible
query III rowsort label-9825
SELECT * FROM tab0 AS cor0 WHERE - col0 * - col1 + col1 IN ( + - CAST ( - + 93 AS INTEGER ) + - + col2, 30 )
----

query I rowsort
SELECT ALL + + 23 * 64 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 41a279b87b67ac97ed128c230374de5d

query I rowsort
SELECT ALL + 77 AS col1 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT + 27 + + COUNT( * ) col2 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9828
SELECT + 27 + + COUNT ( * ) col2 FROM tab2 AS cor0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9829
SELECT - + CAST( NULL AS SIGNED ) + + COUNT( - - col0 ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9829
SELECT - + CAST ( NULL AS INTEGER ) + + COUNT ( - - col0 ) FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - + 94 + col2 col2 FROM tab2 AS cor0
----
-2139
-3720
-5394

query I rowsort
SELECT - 36 + + + col1 AS col0 FROM tab0 AS cor0
----
-15
-35
45

query I rowsort
SELECT - col0 + - ( + col1 ) + + col2 FROM tab2 AS cor0
----
-101
-74
-84

query I rowsort
SELECT ALL + - ( + col0 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9834
SELECT DISTINCT - - col1 DIV - col2 AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9834
SELECT DISTINCT - - col1 / - col2 AS col1 FROM tab1 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 75 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col2 AS col2, + col0 + - col0 FROM tab1
----
59
0
68
0
96
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9837
SELECT - 44 DIV + col1 FROM tab0
----
-2
-44
0

skipif mysql # not compatible
query I rowsort label-9837
SELECT - 44 / + col1 FROM tab0
----
-2
-44
0

query I rowsort
SELECT DISTINCT 23 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9839
SELECT 47 DIV + - col2 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9839
SELECT 47 / + - col2 FROM tab2
----
-1
-2
0

query II rowsort
SELECT col2 AS col0, + 17 AS col1 FROM tab2
----
23
17
40
17
58
17

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + - 33 / + 10 AND + 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT + COUNT( * ) * 33 AS col0 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-9842
SELECT + COUNT ( * ) * 33 AS col0 FROM tab1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9843
SELECT DISTINCT + col1 * - CAST( NULL AS SIGNED ) * + col2 col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9843
SELECT DISTINCT + col1 * - CAST ( NULL AS INTEGER ) * + col2 col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

query II rowsort
SELECT DISTINCT - - 87 AS col0, + col0 * 74 FROM tab1 AS cor0
----
87
3774
87
6290
87
6734

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-9845
SELECT ALL - CAST( NULL AS DECIMAL ), + COUNT( * ) DIV - + CAST( ( - - 71 ) AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9845
SELECT ALL - CAST ( NULL AS REAL ), + COUNT ( * ) / - + CAST ( ( - - 71 ) AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 AS col1, - col1 col0 FROM tab1 AS cor0
----
-51
-14
-85
-5
-91
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-9847
SELECT ALL 12 DIV - - col0 + + col0 + + 61 * col0 FROM tab0
----
5394
6014
930

skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL 12 / - - col0 + + col0 + + 61 * col0 FROM tab0
----
5394
6014
930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9848
SELECT DISTINCT + + CAST( - - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9848
SELECT DISTINCT + + CAST ( - - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9849
SELECT col1, + col2 + - + CAST( + col2 AS SIGNED ) * 16 AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
1
-1485
21
-150
81
-705

skipif mysql # not compatible
query II rowsort label-9849
SELECT col1, + col2 + - + CAST ( + col2 AS INTEGER ) * 16 AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
1
-1485
21
-150
81
-705

query I rowsort
SELECT 0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9851
SELECT - MIN( col2 ), 3 AS col2 FROM tab0 AS cor0
----
-10
3

skipif mysql # not compatible
query II rowsort label-9851
SELECT - MIN ( col2 ), 3 AS col2 FROM tab0 AS cor0
----
-10
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 * + 64 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col2 * + 42 + 68 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 24, + 24 AS col1 FROM tab0
----
-24
24
-24
24
-24
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9855
SELECT ALL + CAST( + col0 AS SIGNED ) + col1 FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL + CAST ( + col0 AS INTEGER ) + col1 FROM tab1
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, + col2 col1 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT COUNT( + + col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9857
SELECT COUNT ( + + col1 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - col0 * + col1 * col1 + - - col1 AS col1 FROM tab2
----
-119595
-336608
-379379

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT ALL + + 1 - - 50 + + COUNT( DISTINCT + col2 ) FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL + + 1 - - 50 + + COUNT ( DISTINCT + col2 ) FROM tab1 AS cor0
----
54

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT col1 + + - col2 IS NOT NULL
----

query I rowsort
SELECT + col2 + + col1 * - col0 FROM tab1 AS cor0
----
-366
-4209
-618

query II rowsort
SELECT ALL - col0 AS col0, - 34 * + 97 FROM tab2 AS cor0
----
-46
-3298
-64
-3298
-75
-3298

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT ALL ( - - COUNT( - col0 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9863
SELECT ALL ( - - COUNT ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT col2 + + 61 AS col0 FROM tab2 AS cor0
----
101
119
84

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL <= 18
----

query I rowsort
SELECT DISTINCT - 61 * + 69 + + 41 FROM tab0
----
-4168

query I rowsort
SELECT - 85 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9868
SELECT DISTINCT 30 * - CAST( + 18 AS SIGNED ) FROM tab1 AS cor0
----
-540

skipif mysql # not compatible
query I rowsort label-9868
SELECT DISTINCT 30 * - CAST ( + 18 AS INTEGER ) FROM tab1 AS cor0
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT - SUM( ALL + col0 ) * MAX( + - col1 ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-9869
SELECT - SUM ( ALL + col0 ) * MAX ( + - col1 ) FROM tab0 cor0
----
199

query I rowsort
SELECT DISTINCT ( + 44 ) AS col1 FROM tab2 AS cor0
----
44

query I rowsort
SELECT + col0 * + 91 FROM tab0 AS cor0
----
1365
7917
8827

query I rowsort
SELECT - 19 * + 43 FROM tab0 AS cor0
----
-817
-817
-817

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 82 * - + col1 / - + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT + + SUM( col0 ) col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9874
SELECT + + SUM ( col0 ) col2 FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9875
SELECT CAST( - col2 AS SIGNED ) * + 67 + - col1 * 80 FROM tab1 cor0
----
-4353
-7552
-8316

skipif mysql # not compatible
query I rowsort label-9875
SELECT CAST ( - col2 AS INTEGER ) * + 67 + - col1 * 80 FROM tab1 cor0
----
-4353
-7552
-8316

onlyif mysql # DIV for integer division: 
query I rowsort label-9876
SELECT ALL 14 DIV 83 + - 78 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL 14 / 83 + - 78 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-78
-78
-78

query I rowsort
SELECT DISTINCT + col2 * - - col1 AS col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT - col0 * + + col2 * col2 + + col1 FROM tab1 WHERE NOT NULL > - col0
----

query I rowsort
SELECT ALL + col2 * + 49 FROM tab2
----
1127
1960
2842

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9880
SELECT * FROM tab0 WHERE NOT + - CAST( NULL AS SIGNED ) * + 26 = NULL
----

skipif mysql # not compatible
query III rowsort label-9880
SELECT * FROM tab0 WHERE NOT + - CAST ( NULL AS INTEGER ) * + 26 = NULL
----

query I rowsort
SELECT col0 * col0 / col0 + + col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 - - + 56 + - 57, + col1, + ( 56 ) / + + col2 / + ( - col0 ) ) AND NOT ( NULL NOT IN ( - col1, + col2 + + + col0 + + - col0 / - col2 ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col2 * - 99 AND col2
----

query II rowsort
SELECT + - 16 * + 71 * - + 14, + 25 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( - 89 < NULL )
----

query I rowsort
SELECT + col2 * + - col0 * + - 72 FROM tab0 cor0
----
50760
62640
691416

query II rowsort
SELECT + 87, 47 * + col0 AS col0 FROM tab0 AS cor0
----
87
4089
87
4559
87
705

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9886
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IN ( - col2 * - CAST( CAST( - - 88 AS SIGNED ) AS DECIMAL ) * + col1 - ( - col1 ), col0 )
----

skipif mysql # not compatible
query III rowsort label-9886
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IN ( - col2 * - CAST ( CAST ( - - 88 AS INTEGER ) AS REAL ) * + col1 - ( - col1 ), col0 )
----

query I rowsort
SELECT DISTINCT ( - 69 ) FROM tab2 AS cor0
----
-69

query I rowsort
SELECT + + col2 + 9 * - - 54 + - + col0 FROM tab0 AS cor0
----
409
488
518

query I rowsort
SELECT - col1 * + 6 + col1 AS col0 FROM tab0 cor0
----
-105
-405
-5

query II rowsort
SELECT ALL 64, col0 + - col2 - col1 * col2 * + col2 - - + 52 AS col1 FROM tab1 AS cor0
----
64
-129017
64
-17327
64
-217253

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 82 * + col0 * - - col0 * - col1 + 33 IS NULL
----

query II rowsort
SELECT + col2 + - + col0, + col2 + col2 AS col2 FROM tab0
----
-77
20
2
198
32
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9893
SELECT DISTINCT - COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9893
SELECT DISTINCT - COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( - col2 ) AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9895
SELECT ALL * FROM tab0 WHERE + - CAST( NULL AS SIGNED ) * + ( + col2 ) * + 92 = NULL
----

skipif mysql # not compatible
query III rowsort label-9895
SELECT ALL * FROM tab0 WHERE + - CAST ( NULL AS INTEGER ) * + ( + col2 ) * + 92 = NULL
----

query I rowsort
SELECT - 99 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-99
-99
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 BETWEEN + + 47 AND + col2
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE - col2 / - 65 = NULL
----

query II rowsort
SELECT ALL 77 AS col1, + col2 AS col2 FROM tab0 AS cor0
----
77
10
77
47
77
99

query I rowsort
SELECT DISTINCT - 68 AS col2 FROM tab1 cor0
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9901
SELECT ALL SUM( ALL - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE + 86 + col1 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL SUM ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE + 86 + col1 <= NULL
----
NULL

query II rowsort
SELECT + 34, col1 FROM tab0 AS cor0
----
34
1
34
21
34
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 BETWEEN - - col1 AND + 63 - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT + + COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL AND NOT ( NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9904
SELECT + + COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL AND NOT ( NULL IS NOT NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9905
SELECT + CAST( + 71 AS SIGNED ) * col1 AS col2, - col0 col1 FROM tab2 AS cor0
----
3621
-46
4757
-75
5467
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9905
SELECT + CAST ( + 71 AS INTEGER ) * col1 AS col2, - col0 col1 FROM tab2 AS cor0
----
3621
-46
4757
-75
5467
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9906
SELECT ALL CAST( + col0 AS SIGNED ) * + - col2 + + - 42 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9906
SELECT ALL CAST ( + col0 AS INTEGER ) * + - col2 + + - 42 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col1 * - + col0 AS col0 FROM tab0
----
1215
1827
97

query I rowsort
SELECT ALL - col0 * + 95 FROM tab1
----
-4845
-8075
-8645

query II rowsort
SELECT 70 * - col0, col0 + - + col1 AS col1 FROM tab1
----
-3570
37
-5950
80
-6370
44

onlyif mysql # DIV for integer division: 
query I rowsort label-9910
SELECT ALL 72 DIV + 42 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL 72 / + 42 FROM tab0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL <= NULL )
----

query I rowsort
SELECT ALL 52 * - ( 30 ) FROM tab2
----
-1560
-1560
-1560

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT - COUNT( * ) * - 59 AS col0 FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-9913
SELECT - COUNT ( * ) * - 59 AS col0 FROM tab1 AS cor0
----
177

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) = col1 + + col1 + - - col2
----

query I rowsort
SELECT - - 5 * 26 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN - col0 + - - col0 AND - 99 * - col2
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 55 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + col2 / - 54 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col1, col1 + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 < + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9920
SELECT - 50 DIV - col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9920
SELECT - 50 / - col0 FROM tab2 AS cor0
----
0
0
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( ( - col0 ) IS NOT NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9922
SELECT + col2 DIV 34 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9922
SELECT + col2 / 34 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT + ( + + col0 ) AS col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT - col1 * + 46 + col0 FROM tab1 AS cor0
----
-145
-2071
-593

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9925
SELECT ALL + CAST( NULL AS SIGNED ), - col0 AS col2 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-9925
SELECT ALL + CAST ( NULL AS INTEGER ), - col0 AS col2 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

query I rowsort
SELECT ALL ( col1 ) + - col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + - 82 * - col1 FROM tab1
----
1097
325
3763

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9928
SELECT ALL + - CAST( NULL AS SIGNED ) * - + COUNT( * ) + - 69 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL + - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) + - 69 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT COUNT( * ) - + 61 AS col0 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-9929
SELECT COUNT ( * ) - + 61 AS col0 FROM tab0
----
-58

query I rowsort
SELECT DISTINCT 82 * - - col0 + + + col0 * + - col2 + + 44 FROM tab2
----
1844
2732
2758

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 - + col0 col1 FROM tab2
----
-22
-40
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9932
SELECT DISTINCT col2 - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9932
SELECT DISTINCT col2 - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL + ( - col0 ) - 28 + + col1 AS col2 FROM tab2 AS cor0
----
-15
-23
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT ALL + + ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL + + ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + 29 + col1 + - - col1 AS col1 FROM tab1 AS cor0
----
123
39
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT + - 6 * - - 30 * COUNT( * ) * - COUNT( * ) + + ( + 88 ) FROM tab0 AS cor0
----
1708

skipif mysql # not compatible
query I rowsort label-9936
SELECT + - 6 * - - 30 * COUNT ( * ) * - COUNT ( * ) + + ( + 88 ) FROM tab0 AS cor0
----
1708

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 76 * + - col0 col1 FROM tab1 AS cor0
----
3876
6460
6916

query I rowsort
SELECT DISTINCT 61 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
61

query I rowsort
SELECT ALL col2 FROM tab2 WHERE ( col1 ) IS NULL
----

query I rowsort
SELECT col0 * + col2 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 37 col1 FROM tab2 cor0
----
-37
-37
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9942
SELECT - CAST( + 21 AS SIGNED ) FROM tab2 AS cor0
----
-21
-21
-21

skipif mysql # not compatible
query I rowsort label-9942
SELECT - CAST ( + 21 AS INTEGER ) FROM tab2 AS cor0
----
-21
-21
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9943
SELECT DISTINCT + + CAST( + - 13 AS SIGNED ), + col2 FROM tab1 AS cor0
----
-13
59
-13
68
-13
96

skipif mysql # not compatible
query II rowsort label-9943
SELECT DISTINCT + + CAST ( + - 13 AS INTEGER ), + col2 FROM tab1 AS cor0
----
-13
59
-13
68
-13
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT ALL MIN( - 97 ) FROM tab2 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL MIN ( - 97 ) FROM tab2 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT ALL - COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) * - col0 col2 FROM tab0 cor0
----
-1215
-1827
-97

query I rowsort
SELECT + - 35 * + col0 AS col2 FROM tab1 WHERE NOT + + 21 IS NULL
----
-1785
-2975
-3185

query I rowsort
SELECT ALL - col2 * + - col1 AS col0 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT DISTINCT - MIN( DISTINCT - col2 ) + - SUM( ALL - 53 ) FROM tab2
----
217

skipif mysql # not compatible
query I rowsort label-9949
SELECT DISTINCT - MIN ( DISTINCT - col2 ) + - SUM ( ALL - 53 ) FROM tab2
----
217

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9950
SELECT ALL + ( + CAST( + COUNT( * ) AS SIGNED ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL + ( + CAST ( + COUNT ( * ) AS INTEGER ) ) FROM tab1
----
3

query II rowsort
SELECT DISTINCT col2, - col1 FROM tab0
----
10
-21
47
-81
99
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9952
SELECT col0 DIV - - col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9952
SELECT col0 / - - col0 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9953
SELECT - - CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9953
SELECT - - CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9954
SELECT + + 72 + - 47 - - 99 + + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9954
SELECT + + 72 + - 47 - - 99 + + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN + col2 / + 63 - + 31 AND + col0 - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 + + 61 AS col1 FROM tab2 AS cor0
----
-16
-6
10

query I rowsort
SELECT ALL - col2 + - col0 * + col0 + + 49 FROM tab2
----
-2090
-4087
-5634

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT + MAX( - 66 ) AS col0 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-9958
SELECT + MAX ( - 66 ) AS col0 FROM tab2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT + 62 - - MAX( + col2 ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
161

skipif mysql # not compatible
query I rowsort label-9959
SELECT + 62 - - MAX ( + col2 ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT - - COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9960
SELECT - - COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9961
SELECT + CAST( - MAX( CAST( NULL AS DECIMAL ) ) AS SIGNED ) + - - 50 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9961
SELECT + CAST ( - MAX ( CAST ( NULL AS REAL ) ) AS INTEGER ) + - - 50 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col0 + + - 39 AS col2 FROM tab2 AS cor0
----
-103
-114
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 73 * + col2 * col0 col0 FROM tab2 AS cor0
----
186880
317550
77234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9964
SELECT DISTINCT - 83 + + CAST( 77 AS SIGNED ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9964
SELECT DISTINCT - 83 + + CAST ( 77 AS INTEGER ) FROM tab0 AS cor0
----
-6

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9966
SELECT ALL + CAST( NULL AS SIGNED ) / + col2 * - col0 col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9966
SELECT ALL + CAST ( NULL AS INTEGER ) / + col2 * - col0 col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT - ( + + SUM( - 53 ) ) AS col2 FROM tab1 cor0 WHERE ( + 13 ) > col2 * + + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-9967
SELECT - ( + + SUM ( - 53 ) ) AS col2 FROM tab1 cor0 WHERE ( + 13 ) > col2 * + + 55
----
NULL

query I rowsort
SELECT 81 * - - col0 * 57 AS col0 FROM tab1
----
235467
392445
420147

query I rowsort
SELECT DISTINCT col2 * col2 - 2 FROM tab2
----
1598
3362
527

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT + COUNT( - col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9970
SELECT + COUNT ( - col0 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT ALL + MAX( - + col2 ) + + 40 AS col0 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-9971
SELECT ALL + MAX ( - + col2 ) + + 40 AS col0 FROM tab0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9972
SELECT DISTINCT col1 - - + col1 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9972
SELECT DISTINCT col1 - - + col1 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT + - 10 AS col0, 34 + - 38 FROM tab1 AS cor0
----
-10
-4

query I rowsort
SELECT - ( - 20 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col1 + - - 42 NOT IN ( - + col0, 10 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9975
SELECT DISTINCT + COUNT( * ) DIV - 48 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9975
SELECT DISTINCT + COUNT ( * ) / - 48 FROM tab2 cor0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT DISTINCT + + 68 + COUNT( * ) + + 59 + - - 57 * 15 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
991

skipif mysql # not compatible
query I rowsort label-9977
SELECT DISTINCT + + 68 + COUNT ( * ) + + 59 + - - 57 * 15 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
991

query I rowsort
SELECT - col2 * + + 20 FROM tab2
----
-1160
-460
-800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9979
SELECT DISTINCT + 77 * MIN( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9979
SELECT DISTINCT + 77 * MIN ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

query II rowsort
SELECT DISTINCT col2, ( - col2 ) AS col1 FROM tab2
----
23
-23
40
-40
58
-58

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + - ( 22 ) ) <> NULL
----

query I rowsort
SELECT - col1 * - + 69 * col1 FROM tab1 AS cor0
----
13524
152421
1725

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - col2
----

query II rowsort
SELECT ALL - col1, - col1 AS col0 FROM tab1 cor0
----
-14
-14
-47
-47
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9985
SELECT ALL + col0, - 33 + - + ( + CAST( + 85 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
15
-118
87
-118
97
-118

skipif mysql # not compatible
query II rowsort label-9985
SELECT ALL + col0, - 33 + - + ( + CAST ( + 85 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
15
-118
87
-118
97
-118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 AS col0, - col2 col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT + - 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-9987
SELECT + - COUNT ( + col2 ) col1 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9988
SELECT ALL - CAST( NULL AS SIGNED ) * + col0 - col1 + + col1 * - col1 * + col2 / - col2 + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL - CAST ( NULL AS INTEGER ) * + col0 - col1 + + col1 * - col1 * + col2 / - col2 + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT DISTINCT COUNT( * ) * + COUNT( * ) col2 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9989
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) col2 FROM tab1
----
9

query I rowsort
SELECT ALL - 27 * - + 24 + + col0 AS col2 FROM tab1
----
699
733
739

query I rowsort
SELECT ALL + 48 * - - col1 + + col1 * - col2 + col1 - + + col1 * - + 26 AS col2 FROM tab0
----
-24
1365
2268

query II rowsort
SELECT - col2, - col2 FROM tab2 WHERE NOT + col0 * + + col1 - 77 * ( + 73 ) < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9993
SELECT COUNT( * ) DIV COUNT( ALL - col1 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9993
SELECT COUNT ( * ) / COUNT ( ALL - col1 ) AS col1 FROM tab2
----
1

query I rowsort
SELECT - 25 + - - col0 AS col2 FROM tab2 WHERE - col1 BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9995
SELECT col1 * - col0 AS col0, - 68 * CAST( NULL AS DECIMAL ) FROM tab0
----
-1215
NULL
-1827
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-9995
SELECT col1 * - col0 AS col0, - 68 * CAST ( NULL AS REAL ) FROM tab0
----
-1215
NULL
-1827
NULL
-97
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 2 * col0 * + 67 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( - + col2 ) AS col1 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT col0 + + 67 AS col2 FROM tab1
----
118
152
158

query III rowsort
SELECT * FROM tab1 WHERE 32 IS NULL
----

