sqllogictest
Artifact Content
Not logged in

Artifact 07db3c880bfb335a17545580ea1afbba2a857a9d:


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)

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

query I rowsort
SELECT ALL + 96 + - 86 AS col0 FROM tab0
----
10
10
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2
SELECT DISTINCT - COUNT( ALL - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 / - col1 NOT IN ( CAST( - + col1 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-2
SELECT DISTINCT - COUNT ( ALL - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 / - col1 NOT IN ( CAST ( - + col1 AS INTEGER ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3
SELECT + col0 - col1 + - + col1 + col1 DIV - - col1 FROM tab2 AS cor0
----
-55
-58
-89

skipif mysql # not compatible
query I rowsort label-3
SELECT + col0 - col1 + - + col1 + col1 / - - col1 FROM tab2 AS cor0
----
-55
-58
-89

query I rowsort
SELECT ALL - - col2 - - col2 AS col1 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5
SELECT ALL CAST( + - col2 AS SIGNED ) - col1 * - - 29 AS col2 FROM tab0 AS cor0
----
-128
-2396
-619

skipif mysql # not compatible
query I rowsort label-5
SELECT ALL CAST ( + - col2 AS INTEGER ) - col1 * - - 29 AS col2 FROM tab0 AS cor0
----
-128
-2396
-619

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7
SELECT ALL col0 - + 81 * + col2 DIV col2 * - 99 - col1 FROM tab0 AS cor0
----
7953
8085
8115

skipif mysql # not compatible
query I rowsort label-7
SELECT ALL col0 - + 81 * + col2 / col2 * - 99 - col1 FROM tab0 AS cor0
----
7953
8085
8115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 * - 76 col1 FROM tab0
----
-15960
-289332
-7524

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 56 * + col0 col0 FROM tab0
----
4872
5432
840

query I rowsort
SELECT ALL - 43 AS col1 FROM tab0 WHERE NOT ( - 37 IS NULL )
----
-43
-43
-43

query I rowsort
SELECT + col1 * - 99 FROM tab2
----
-5049
-6633
-7623

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, - 43 - + - 83 * - col2 FROM tab2 AS cor0
----
-51
-1952
-67
-4857
-77
-3363

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

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

query I rowsort
SELECT ( + - ( - col0 ) ) * 5 FROM tab1 AS cor0
----
255
425
455

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

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

skipif mysql # not compatible
query I rowsort label-18
SELECT + + 37 / + + COUNT ( * ) + - COUNT ( + col2 ) FROM tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + 51 col1, 58 + - col1 + + col1 * - col2 AS col0 FROM tab1 AS cor0
----
56
-242
65
-1300
98
-3185

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT - COUNT( * ) + + 41 FROM tab0 cor0
----
38

skipif mysql # not compatible
query I rowsort label-20
SELECT - COUNT ( * ) + + 41 FROM tab0 cor0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-21
SELECT DISTINCT col0 + + - col1 + + 22 DIV col2 FROM tab0
----
-66
68
96

skipif mysql # not compatible
query I rowsort label-21
SELECT DISTINCT col0 + + - col1 + + 22 / col2 FROM tab0
----
-66
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-22
SELECT - CAST( 90 AS SIGNED ) FROM tab2
----
-90
-90
-90

skipif mysql # not compatible
query I rowsort label-22
SELECT - CAST ( 90 AS INTEGER ) FROM tab2
----
-90
-90
-90

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

query I rowsort
SELECT DISTINCT col2 + 76 - col1 AS col2 FROM tab1
----
130
158
97

query I rowsort
SELECT col2 * + 29 + + col0 AS col2 FROM tab1
----
1796
2063
2835

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 45 * + ( - col2 ) col1 FROM tab1 cor0
----
2655
3060
4320

query I rowsort
SELECT DISTINCT + 76 * - + col1 AS col0 FROM tab0 AS cor0
----
-1596
-6156
-76

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= 78
----

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

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

query II rowsort
SELECT col2, col2 * ( - - col0 ) AS col2 FROM tab1
----
59
5015
68
6188
96
4896

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

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

query I rowsort
SELECT - + 94 * - + col2 FROM tab0 AS cor0
----
4418
9306
940

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

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

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

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

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

query I rowsort
SELECT - 82 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-82
-82
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT - 91 * - COUNT( * ) FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-39
SELECT - 91 * - COUNT ( * ) FROM tab0
----
273

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

query I rowsort
SELECT - + col1 * + 19 AS col0 FROM tab0 AS cor0
----
-1539
-19
-399

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

query I rowsort
SELECT DISTINCT - 71 * - col0 AS col2 FROM tab1 AS cor0
----
3621
6035
6461

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 + 2 + ( + + 61 ) IS NULL
----

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

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

query I rowsort
SELECT ALL col2 + 99 + col2 * 60 + + ( - col0 ) + 36 AS col2 FROM tab2
----
1492
2511
3598

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

onlyif mysql # aggregate syntax: 
query II rowsort label-48
SELECT - COUNT( * ) + + 71 AS col0, 11 FROM tab0
----
68
11

skipif mysql # not compatible
query II rowsort label-48
SELECT - COUNT ( * ) + + 71 AS col0, 11 FROM tab0
----
68
11

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

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL + COUNT ( + - 62 ) + COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT ALL col2 * + - col1 - - + col2 AS col1 FROM tab0
----
-200
-3760
0

query I rowsort
SELECT ALL + col1 * + + col0 * col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
36125
36414
389207

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT ALL 53 + COUNT( * ) FROM tab1 cor0 WHERE NOT NULL BETWEEN + col2 AND - col0 + + 8
----
53

skipif mysql # not compatible
query I rowsort label-53
SELECT ALL 53 + COUNT ( * ) FROM tab1 cor0 WHERE NOT NULL BETWEEN + col2 AND - col0 + + 8
----
53

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

query I rowsort
SELECT DISTINCT col2 + + - 50 AS col0 FROM tab0
----
-3
-40
49

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

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

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

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

query II rowsort
SELECT DISTINCT - 36 + col0 AS col2, + col2 + + 51 FROM tab0 AS cor0 WHERE NULL < + 23 - - col0 * - - 49
----

query I rowsort
SELECT DISTINCT col0 * + + 98 FROM tab2 AS cor0
----
4508
6272
7350

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT ALL COUNT( * ) * + MAX( - - col1 ) FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL COUNT ( * ) * + MAX ( - - col1 ) FROM tab1
----
141

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

query I rowsort
SELECT ALL + + 97 + - col0 AS col2 FROM tab1 WHERE NULL IS NULL
----
12
46
6

query I rowsort
SELECT col1 * 61 * + + col1 FROM tab1
----
11956
134749
1525

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT DISTINCT + 85 * - COUNT( * ) AS col1 FROM tab0
----
-255

skipif mysql # not compatible
query I rowsort label-66
SELECT DISTINCT + 85 * - COUNT ( * ) AS col1 FROM tab0
----
-255

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 84 + + 18 <> + col2 + 22
----

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

query I rowsort
SELECT ALL + 95 * - 16 AS col2 FROM tab2 AS cor0
----
-1520
-1520
-1520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-70
SELECT ALL + 24 * COUNT( * ) + + MAX( DISTINCT - - col1 ) + - COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-70
SELECT ALL + 24 * COUNT ( * ) + + MAX ( DISTINCT - - col1 ) + - COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 60 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
60

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 96 < NULL
----

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

query I rowsort
SELECT col0 + + + 12 FROM tab0 AS cor0
----
109
27
99

query I rowsort
SELECT ALL - col0 + ( 21 ) + col2 AS col1 FROM tab0 AS cor0
----
-56
23
53

query I rowsort
SELECT - - ( + col1 ) + - col0 + - 37 AS col1 FROM tab1 AS cor0
----
-117
-74
-81

query I rowsort
SELECT ALL - 94 * - 13 FROM tab2 AS cor0
----
1222
1222
1222

query I rowsort
SELECT col0 + col2 + - 42 * - 64 FROM tab0 AS cor0
----
2750
2785
2884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 + col0 col1 FROM tab1 AS cor0
----
103
63
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-80
SELECT - col1 * + 47 * - - ( + - CAST( - col1 AS SIGNED ) ) + - - col0 * - 62 AS col1 FROM tab1 AS cor0
----
-109465
-12374
-6445

skipif mysql # not compatible
query I rowsort label-80
SELECT - col1 * + 47 * - - ( + - CAST ( - col1 AS INTEGER ) ) + - - col0 * - 62 AS col1 FROM tab1 AS cor0
----
-109465
-12374
-6445

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

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

query I rowsort
SELECT DISTINCT + col2 + + col1 + + 29 * - col1 FROM tab2
----
-1405
-1818
-2116

query I rowsort
SELECT DISTINCT 40 + col2 AS col0 FROM tab0 WHERE NULL >= + 74
----

query I rowsort
SELECT DISTINCT col0 + 99 FROM tab0
----
114
186
196

query I rowsort
SELECT DISTINCT col2 - + col0 AS col0 FROM tab1
----
-23
-26
45

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

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

query I rowsort
SELECT ALL 51 * - col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - col0 - + - col1 * - - 61 + - col0 + 66 AS col0 FROM tab1 AS cor0
----
2933
371
920

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col2 - + 21 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT ALL 67 * COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
603

skipif mysql # not compatible
query I rowsort label-90
SELECT ALL 67 * COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
603

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT - MAX( ALL - 96 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-91
SELECT - MAX ( ALL - 96 ) FROM tab1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-92
SELECT ALL 81 * 93 * col0 DIV col0 AS col0 FROM tab2
----
7533
7533
7533

skipif mysql # not compatible
query I rowsort label-92
SELECT ALL 81 * 93 * col0 / col0 AS col0 FROM tab2
----
7533
7533
7533

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

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

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

query I rowsort
SELECT col2 * + 20 AS col2 FROM tab2
----
1160
460
800

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

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

query I rowsort
SELECT ALL + col1 * + - 34 FROM tab1
----
-1598
-170
-476

query I rowsort
SELECT + col0 + 36 FROM tab0
----
123
133
51

query I rowsort
SELECT 4 * + col0 FROM tab2
----
184
256
300

query I rowsort
SELECT - 94 - - 41 * col0 AS col1 FROM tab2
----
1792
2530
2981

query I rowsort
SELECT 10 + 13 FROM tab1
----
23
23
23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT MIN( DISTINCT + ( 51 ) ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-103
SELECT MIN ( DISTINCT + ( 51 ) ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-105
SELECT - 53 DIV 60 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-105
SELECT - 53 / 60 AS col2 FROM tab2
----
0
0
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-107
SELECT - SUM( ALL + 68 ) DIV + MAX( 83 ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-107
SELECT - SUM ( ALL + 68 ) / + MAX ( 83 ) FROM tab0
----
-2

query I rowsort
SELECT + col2 * + col2 + - col0 AS col2 FROM tab1
----
3396
4533
9165

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - 80 * - col0 <> - 90
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > - col2
----

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

query I rowsort
SELECT 49 * + 5 FROM tab1
----
245
245
245

query I rowsort
SELECT ALL col0 + col1 AS col2 FROM tab2 WHERE ( + col0 ) NOT BETWEEN col1 + - ( + col1 ) * 34 AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 39 col1 FROM tab0
----
-3159
-39
-819

query I rowsort
SELECT ( + col1 ) * ( 15 ) FROM tab1
----
210
705
75

query III rowsort
SELECT * FROM tab0 WHERE col2 <> + 16 * ( 95 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT - col2 * + ( + col0 ) FROM tab2 AS cor0
----
-1058
-2560
-4350

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

query I rowsort
SELECT - 90 * + col0 FROM tab0
----
-1350
-7830
-8730

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT + 56 * MIN( ALL + col0 ) AS col2 FROM tab1
----
2856

skipif mysql # not compatible
query I rowsort label-123
SELECT + 56 * MIN ( ALL + col0 ) AS col2 FROM tab1
----
2856

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

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

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NOT col0 NOT BETWEEN 53 AND 94
----
-10

query I rowsort
SELECT DISTINCT 67 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
67

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( + 34 - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT MAX( + 89 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-128
SELECT MAX ( + 89 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-129
SELECT + 71 DIV 25 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-129
SELECT + 71 / 25 FROM tab1 AS cor0
----
2
2
2

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 > ( col1 )
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-135
SELECT - col0 AS col2 FROM tab2 WHERE NOT 24 IN ( col0 + + CAST( - 23 AS SIGNED ) )
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-135
SELECT - col0 AS col2 FROM tab2 WHERE NOT 24 IN ( col0 + + CAST ( - 23 AS INTEGER ) )
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( ( col2 ) )
----

query I rowsort
SELECT DISTINCT - col1 + + 55 FROM tab2
----
-12
-22
4

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-140
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-140
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-141
SELECT - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-141
SELECT - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1, tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NULL BETWEEN 90 / + col2 AND col1 * col0
----

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

query II rowsort
SELECT ALL col1 AS col2, col1 AS col0 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-145
SELECT ALL 53 FROM tab0 cor0 WHERE NOT col1 + col2 NOT BETWEEN 53 / + ( 83 ) AND + CAST( NULL AS SIGNED ) * + 19 - - col0 * + 6
----

skipif mysql # not compatible
query I rowsort label-145
SELECT ALL 53 FROM tab0 cor0 WHERE NOT col1 + col2 NOT BETWEEN 53 / + ( 83 ) AND + CAST ( NULL AS INTEGER ) * + 19 - - col0 * + 6
----

query I rowsort
SELECT ALL + + col0 * + col2 - 24 FROM tab0 AS cor0
----
681
846
9579

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - col1 ) <> ( 70 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT COUNT( * ) * + - 38 AS col0 FROM tab2 cor0
----
-114

skipif mysql # not compatible
query I rowsort label-149
SELECT COUNT ( * ) * + - 38 AS col0 FROM tab2 cor0
----
-114

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) < ( NULL )
----

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

query I rowsort
SELECT DISTINCT 1 * ( - + col1 ) FROM tab2
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 WHERE - - 13 <= NULL
----

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

query I rowsort
SELECT col0 * - 97 - col0 AS col0 FROM tab0
----
-1470
-8526
-9506

onlyif mysql # DIV for integer division: 
query I rowsort label-156
SELECT DISTINCT col0 DIV - + col1 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-156
SELECT DISTINCT col0 / - + col1 FROM tab0
----
-4
-97
0

query I rowsort
SELECT 94 - 23 + 82 * col0 FROM tab1
----
4253
7041
7533

query I rowsort
SELECT DISTINCT col0 * - - col0 + - 10 AS col1 FROM tab2
----
2106
4086
5615

query I rowsort
SELECT + col0 * + 23 - + 33 FROM tab1
----
1140
1922
2060

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT + MIN( + col0 ) * + 65 FROM tab2 WHERE + - col2 * - ( - 19 ) / 36 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-160
SELECT + MIN ( + col0 ) * + 65 FROM tab2 WHERE + - col2 * - ( - 19 ) / 36 IS NULL
----
NULL

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

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

query I rowsort
SELECT ALL 69 * col2 AS col1 FROM tab0 AS cor0 WHERE + col2 BETWEEN + 20 AND NULL
----

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

query I rowsort
SELECT ALL + 12 FROM tab1 cor0
----
12
12
12

query I rowsort
SELECT DISTINCT - 43 AS col2 FROM tab0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT DISTINCT MAX( 56 ) * - 13 + COUNT( * ) FROM tab1 WHERE ( NULL ) >= + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-166
SELECT DISTINCT MAX ( 56 ) * - 13 + COUNT ( * ) FROM tab1 WHERE ( NULL ) >= + 84
----
NULL

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * - col1 > ( - col2 )
----
51
14
96
91
47
68

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

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

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

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

onlyif mysql # DIV for integer division: 
query III rowsort label-172
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 6 DIV + - col2 IN ( - - col1 DIV col2 )
----
97
1
99

skipif mysql # not compatible
query III rowsort label-172
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 6 / + - col2 IN ( - - col1 / col2 )
----
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-173
SELECT ALL - 82 DIV - 24 col1 FROM tab2 AS cor0
----
3
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-173
SELECT ALL - 82 / - 24 col1 FROM tab2 AS cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT + COUNT( * ) + + 61 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = + col2 * + 18
----
61

skipif mysql # not compatible
query I rowsort label-174
SELECT + COUNT ( * ) + + 61 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = + col2 * + 18
----
61

query II rowsort
SELECT ALL col2 AS col1, - ( - - col2 ) AS col1 FROM tab0
----
10
-10
47
-47
99
-99

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

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

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - + col0 )
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-185
SELECT - - MIN( ALL 79 ) + CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-185
SELECT - - MIN ( ALL 79 ) + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT col0, - col1 AS col2 FROM tab0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE NULL <> NULL
----

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

query I rowsort
SELECT + col2 + col2 + + col2 + - - col1 AS col0 FROM tab2 AS cor0
----
120
197
241

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

query I rowsort
SELECT DISTINCT - 22 + col1 FROM tab1 AS cor0
----
-17
-8
25

query I rowsort
SELECT - ( + 57 ) - - + 30 + + 33 - 14 FROM tab2 AS cor0
----
-8
-8
-8

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

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

query I rowsort
SELECT DISTINCT + col0 * - - 86 - + - col2 AS col2 FROM tab1 AS cor0
----
4482
7369
7894

query I rowsort
SELECT - - 58 + 41 * col0 * - col0 FROM tab0 cor0
----
-310271
-385711
-9167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-197
SELECT DISTINCT + + CAST( + col0 AS SIGNED ) - - col1 FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-197
SELECT DISTINCT + + CAST ( + col0 AS INTEGER ) - - col1 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-198
SELECT DISTINCT ( - 83 ) FROM tab1 AS cor0 WHERE NOT + CAST( col2 AS DECIMAL ) <> + 8 * 59 + - 96 + - 61 + col1 * col2
----

skipif mysql # not compatible
query I rowsort label-198
SELECT DISTINCT ( - 83 ) FROM tab1 AS cor0 WHERE NOT + CAST ( col2 AS REAL ) <> + 8 * 59 + - 96 + - 61 + col1 * col2
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-200
SELECT + col0 + col2 DIV + col0 AS col2 FROM tab1
----
52
85
91

skipif mysql # not compatible
query I rowsort label-200
SELECT + col0 + col2 / + col0 AS col2 FROM tab1
----
52
85
91

query I rowsort
SELECT col1 + + + 73 AS col0 FROM tab0
----
154
74
94

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE NOT + 53 + 54 <= ( + col0 )
----
3

skipif mysql # not compatible
query I rowsort label-202
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE NOT + 53 + 54 <= ( + col0 )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + col2 * - ( + col1 ) AS col2, + col1 AS col2, - col2 + - - 78 - + col1 * - - 64 col2 FROM tab2
----
9 values hashing to cf2d55422921ea7ee1bd8db46d3cc133

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

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

query II rowsort
SELECT ALL - col1 AS col2, col1 FROM tab1
----
-14
14
-47
47
-5
5

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

skipif mysql # not compatible
query I rowsort label-206
SELECT - MIN ( - + 92 ) AS col0 FROM tab2
----
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 15 AS col1, - 67 col2 FROM tab1
----
-15
-67
-15
-67
-15
-67

onlyif mysql # DIV for integer division: 
query II rowsort label-208
SELECT DISTINCT + 29 DIV + ( col2 ) + + - col1 AS col2, 35 FROM tab2 AS cor0
----
-50
35
-67
35
-77
35

skipif mysql # not compatible
query II rowsort label-208
SELECT DISTINCT + 29 / + ( col2 ) + + - col1 AS col2, 35 FROM tab2 AS cor0
----
-50
35
-67
35
-77
35

query I rowsort
SELECT col1 * - - col2 * col0 - - + col0 FROM tab2 AS cor0
----
197184
291525
54004

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-210
SELECT DISTINCT + - MIN( - col0 ) DIV 27 AS col0 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-210
SELECT DISTINCT + - MIN ( - col0 ) / 27 AS col0 FROM tab2 AS cor0
----
2

query I rowsort
SELECT DISTINCT + 45 + 50 + + + 28 AS col2 FROM tab0 WHERE ( NULL ) NOT IN ( col1 )
----

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 41 / + 39 <> + 26
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( 48 ) OR NULL = col0 + + 57
----

query I rowsort
SELECT DISTINCT - - col1 * - + 98 AS col1 FROM tab1 cor0
----
-1372
-4606
-490

query I rowsort
SELECT 72 + 36 FROM tab0 AS cor0
----
108
108
108

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-219
SELECT + + 30 + - 2 + + 92 + + col0 DIV + col1 FROM tab2 AS cor0
----
120
120
121

skipif mysql # not compatible
query I rowsort label-219
SELECT + + 30 + - 2 + + 92 + + col0 / + col1 FROM tab2 AS cor0
----
120
120
121

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 * - - 26 + - 94 > ( + 54 * col1 * + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT - COUNT( col0 ) FROM tab2 WHERE NOT NULL IS NULL AND col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-221
SELECT - COUNT ( col0 ) FROM tab2 WHERE NOT NULL IS NULL AND col2 IS NOT NULL
----
0

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

query I rowsort
SELECT ALL col2 + ( - col0 ) + col1 + - col0 AS col2 FROM tab2
----
-11
-18
-25

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + col0 - - + 36 FROM tab1 AS cor0
----
121
127
87

query I rowsort
SELECT 92 + - ( - - col0 ) FROM tab1
----
1
41
7

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT - 21 + - COUNT( + + ( + col2 ) ) * + COUNT( * ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-231
SELECT - 21 + - COUNT ( + + ( + col2 ) ) * + COUNT ( * ) FROM tab0
----
-30

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT MAX( DISTINCT - + ( - - col0 ) ) * COUNT( ALL + + col0 ) + 11 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-127

skipif mysql # not compatible
query I rowsort label-234
SELECT MAX ( DISTINCT - + ( - - col0 ) ) * COUNT ( ALL + + col0 ) + 11 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT MIN( DISTINCT col2 ) * - 37 FROM tab0 AS cor0
----
-370

skipif mysql # not compatible
query I rowsort label-235
SELECT MIN ( DISTINCT col2 ) * - 37 FROM tab0 AS cor0
----
-370

onlyif mysql # DIV for integer division: 
query II rowsort label-236
SELECT - ( - + col1 ) col2, col0 - + + 54 + col2 DIV - col2 + + + col1 FROM tab0 AS cor0
----
1
43
21
53
81
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-236
SELECT - ( - + col1 ) col2, col0 - + + 54 + col2 / - col2 + + + col1 FROM tab0 AS cor0
----
1
43
21
53
81
41

query I rowsort
SELECT ALL + + 40 + - 47 * - - col1 * + col0 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-239
SELECT - SUM( - + 91 ) DIV 66 DIV 3 AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-239
SELECT - SUM ( - + 91 ) / 66 / 3 AS col2 FROM tab0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-240
SELECT 79 DIV + COUNT( ALL + col0 ) AS col2 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-240
SELECT 79 / + COUNT ( ALL + col0 ) AS col2 FROM tab1
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + col0 * + col2 col0, - col1 AS col0, + + col0 col1 FROM tab0
----
9 values hashing to f39d76dfe9d44d48ef3e30819e93b042

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-242
SELECT DISTINCT COUNT( * ) * + 44 + + COUNT( * ) * + + CAST( 6 AS SIGNED ) col0 FROM tab2 AS cor0
----
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-242
SELECT DISTINCT COUNT ( * ) * + 44 + + COUNT ( * ) * + + CAST ( 6 AS INTEGER ) col0 FROM tab2 AS cor0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT + 44 * + - COUNT( * ) * - + COUNT( * ) FROM tab0 AS cor0
----
396

skipif mysql # not compatible
query I rowsort label-243
SELECT + 44 * + - COUNT ( * ) * - + COUNT ( * ) FROM tab0 AS cor0
----
396

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

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

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

query I rowsort
SELECT ALL - - col0 * + - 95 FROM tab2 AS cor0
----
-4370
-6080
-7125

query I rowsort
SELECT DISTINCT - 42 * 31 * - col1 AS col1 FROM tab1 cor0
----
18228
61194
6510

onlyif mysql # DIV for integer division: 
query I rowsort label-248
SELECT DISTINCT + 12 DIV ( + + 64 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-248
SELECT DISTINCT + 12 / ( + + 64 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + - col0 AS col0 FROM tab2 WHERE NOT 5 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 NOT BETWEEN NULL AND - col0 - - col2
----
15
81
47
87
21
10

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-251
SELECT ALL + + MAX ( - 37 ) col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-37

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

query I rowsort
SELECT DISTINCT - 71 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT - 87 * - - 80 FROM tab0 AS cor0
----
-6960

onlyif mysql # DIV for integer division: 
query II rowsort label-255
SELECT DISTINCT - col2 AS col1, 20 DIV - col1 FROM tab1 cor0
----
-59
-4
-68
0
-96
-1

skipif mysql # not compatible
query II rowsort label-255
SELECT DISTINCT - col2 AS col1, 20 / - col1 FROM tab1 cor0
----
-59
-4
-68
0
-96
-1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 97 + - col1 NOT IN ( + - col0, - ( + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 + col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
144
147
159

query I rowsort
SELECT + 89 * - - col2 AS col1 FROM tab0 AS cor0
----
4183
8811
890

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-261
SELECT 60 + ( - col0 ) DIV + + col2 col2, col2 DIV + col1 DIV col1 - CAST( NULL AS DECIMAL ) FROM tab2
----
58
NULL
59
NULL
59
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-261
SELECT 60 + ( - col0 ) / + + col2 col2, col2 / + col1 / col1 - CAST ( NULL AS REAL ) FROM tab2
----
58
NULL
59
NULL
59
NULL

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

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

query I rowsort
SELECT col2 + + - 16 FROM tab0
----
-6
31
83

query I rowsort
SELECT DISTINCT 66 + col2 AS col0 FROM tab0
----
113
165
76

query I rowsort
SELECT DISTINCT + 86 + col0 FROM tab0
----
101
173
183

query III rowsort
SELECT * FROM tab1 WHERE NULL >= col0 + + 87 * - - 13 - - col1 * + col1 * - 92 - + - 96 * - col0
----

query II rowsort
SELECT DISTINCT + col2 AS col2, col0 FROM tab2 WHERE NULL IN ( + col2, + col0 + 44, 62 )
----

query I rowsort
SELECT 18 + 61 + + + 59 + - col1 * col1 * col0 * col2 * + - col2 AS col1 FROM tab0
----
217398873
3836838
950835

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 <= + 76
----
46
51
23
75
67
58

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

onlyif mysql # DIV for integer division: 
query I rowsort label-271
SELECT DISTINCT + + 10 DIV + 69 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-271
SELECT DISTINCT + + 10 / + 69 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT DISTINCT - + MAX( 63 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-63

skipif mysql # not compatible
query I rowsort label-272
SELECT DISTINCT - + MAX ( 63 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-63

query I rowsort
SELECT + 80 * + - col1 AS col1 FROM tab1
----
-1120
-3760
-400

onlyif mysql # DIV for integer division: 
query I rowsort label-274
SELECT col1 DIV 44 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-274
SELECT col1 / 44 AS col2 FROM tab0
----
0
0
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT + MIN( DISTINCT - 79 ) FROM tab0, tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-276
SELECT + MIN ( DISTINCT - 79 ) FROM tab0, tab0 AS cor0
----
-79

query I rowsort
SELECT ALL - col1 - col0 + 94 AS col2 FROM tab2 AS cor0
----
-3
-47
-48

query I rowsort
SELECT - + 73 - col2 FROM tab1 AS cor0
----
-132
-141
-169

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 >= - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT + SUM( 70 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
210

skipif mysql # not compatible
query I rowsort label-280
SELECT + SUM ( 70 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
210

query II rowsort
SELECT + + 41, + 83 + - 97 AS col1 FROM tab0 AS cor0
----
41
-14
41
-14
41
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-282
SELECT DISTINCT 47, - ( + MAX( DISTINCT - 72 ) ) AS col1 FROM tab2 AS cor0
----
47
72

skipif mysql # not compatible
query II rowsort label-282
SELECT DISTINCT 47, - ( + MAX ( DISTINCT - 72 ) ) AS col1 FROM tab2 AS cor0
----
47
72

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

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

query I rowsort
SELECT ALL - - 66 AS col0 FROM tab2 WHERE NULL < + 82
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-286
SELECT DISTINCT + CAST( + ( 40 ) AS SIGNED ) AS col1 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-286
SELECT DISTINCT + CAST ( + ( 40 ) AS INTEGER ) AS col1 FROM tab1
----
40

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

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

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

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

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

query II rowsort
SELECT ALL + 10 AS col1, - 40 FROM tab1 AS cor0
----
10
-40
10
-40
10
-40

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

skipif mysql # not compatible
query I rowsort label-291
SELECT - + MAX ( + ( - 70 ) ) FROM tab1 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-292
SELECT ALL 29 col2, - MIN( DISTINCT col1 ) FROM tab2 AS cor0
----
29
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-292
SELECT ALL 29 col2, - MIN ( DISTINCT col1 ) FROM tab2 AS cor0
----
29
-51

query I rowsort
SELECT DISTINCT - 27 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT + COUNT( * ) col1 FROM tab1 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-294
SELECT + COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT + MIN( 68 ) + - - 52 AS col2 FROM tab0 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-295
SELECT + MIN ( 68 ) + - - 52 AS col2 FROM tab0 AS cor0
----
120

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 + + col1 col2 FROM tab0 AS cor0
----
121
2290
9802

query I rowsort
SELECT - 68 + col0 + col2 FROM tab1 cor0
----
76
79
91

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-302
SELECT ALL CAST( + 20 AS SIGNED ), - CAST( + COUNT( * ) AS SIGNED ) col1 FROM tab0 AS cor0
----
20
-3

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

onlyif mysql # aggregate syntax: 
query II rowsort label-303
SELECT - + 41 + - - COUNT( * ), 72 col2 FROM tab1 AS cor0
----
-38
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-303
SELECT - + 41 + - - COUNT ( * ), 72 col2 FROM tab1 AS cor0
----
-38
72

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

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

query I rowsort
SELECT ALL + 45 AS col0 FROM tab2 WHERE NOT ( 61 ) > NULL
----

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( 55 * + + 84 + + - col0, 5, + col2, - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT - - COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-309
SELECT - - COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-311
SELECT - 82 DIV - COUNT( * ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-311
SELECT - 82 / - COUNT ( * ) FROM tab0
----
27

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-313
SELECT + col1 DIV - col1, col2 FROM tab1
----
-1
59
-1
68
-1
96

skipif mysql # not compatible
query II rowsort label-313
SELECT + col1 / - col1, col2 FROM tab1
----
-1
59
-1
68
-1
96

onlyif mysql # DIV for integer division: 
query I rowsort label-314
SELECT - 53 DIV - col1 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-314
SELECT - 53 / - col1 AS col2 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT + 54 * + + 14 AS col0 FROM tab2 AS cor0
----
756
756
756

onlyif mysql # aggregate syntax: 
query II rowsort label-316
SELECT + - MIN( - col0 ), MAX( ALL - 53 ) * - - 73 AS col1 FROM tab2 AS cor0
----
75
-3869

skipif mysql # not compatible
query II rowsort label-316
SELECT + - MIN ( - col0 ), MAX ( ALL - 53 ) * - - 73 AS col1 FROM tab2 AS cor0
----
75
-3869

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT ALL - COUNT( * ) * - 78 FROM tab1 cor0
----
234

skipif mysql # not compatible
query I rowsort label-317
SELECT ALL - COUNT ( * ) * - 78 FROM tab1 cor0
----
234

onlyif mysql # DIV for integer division: 
query I rowsort label-318
SELECT ALL + 43 DIV + 91 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL + 43 / + 91 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 14 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14

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

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

query I rowsort
SELECT - col0 * + + col0 AS col0 FROM tab2
----
-2116
-4096
-5625

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

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

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

query I rowsort
SELECT - col1 * - + 7 FROM tab0 AS cor0
----
147
567
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-326
SELECT + col2 * 45 * + + CAST( + 90 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
190350
400950
40500

skipif mysql # not compatible
query I rowsort label-326
SELECT + col2 * 45 * + + CAST ( + 90 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
190350
400950
40500

query I rowsort
SELECT DISTINCT ( - 95 ) + + 10 AS col0 FROM tab0
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-328
SELECT col2 DIV + 16 col0 FROM tab1
----
3
4
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-328
SELECT col2 / + 16 col0 FROM tab1
----
3
4
6

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE + col1 * + 46 IS NULL
----

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT 1 AS col0, 83 * + col2 FROM tab2 AS cor0
----
1
1909
1
3320
1
4814

onlyif mysql # DIV for integer division: 
query I rowsort label-334
SELECT DISTINCT + + col0 + 63 DIV + - col1 AS col2 FROM tab0 cor0
----
15
34
84

skipif mysql # not compatible
query I rowsort label-334
SELECT DISTINCT + + col0 + 63 / + - col1 AS col2 FROM tab0 cor0
----
15
34
84

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

query I rowsort
SELECT ALL - col1 * col0 + 99 * - 29 AS col1 FROM tab1 AS cor0
----
-3296
-3585
-7148

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IN ( - ( 23 ), ( + + col0 ) * col0, + 40 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-340
SELECT ALL - + col1 AS col1, CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-340
SELECT ALL - + col1 AS col1, CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-341
SELECT ALL + 37 + - COUNT( col0 ) FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-341
SELECT ALL + 37 + - COUNT ( col0 ) FROM tab1
----
34

query I rowsort
SELECT col1 * 29 + + + ( col2 ) * - col0 FROM tab1
----
-4490
-4825
-4870

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

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

query II rowsort
SELECT + col2 + + 61 + 95, + 85 AS col0 FROM tab2
----
179
85
196
85
214
85

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

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

query II rowsort
SELECT + + col2 * - 99, + col2 AS col2 FROM tab2 WHERE ( + + col2 ) IN ( col2, 31 / - - col2 * + + 31, col2 )
----
-2277
23
-3960
40
-5742
58

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-348
SELECT ALL - MAX( ALL - col0 ) DIV - 42 + - 12 * - + 9 - - 20 AS col1 FROM tab2 AS cor0
----
127

skipif mysql # not compatible
query I rowsort label-348
SELECT ALL - MAX ( ALL - col0 ) / - 42 + - 12 * - + 9 - - 20 AS col1 FROM tab2 AS cor0
----
127

query I rowsort
SELECT DISTINCT - col1 * + col2 * 70 + - + col0 AS col0 FROM tab1 AS cor0
----
-20735
-223811
-94131

onlyif mysql # aggregate syntax: 
query II rowsort label-350
SELECT DISTINCT 96, 59 * - - COUNT( * ) AS col1 FROM tab1
----
96
177

skipif mysql # not compatible
query II rowsort label-350
SELECT DISTINCT 96, 59 * - - COUNT ( * ) AS col1 FROM tab1
----
96
177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-351
SELECT ALL + CAST( + 89 AS SIGNED ) * - col0 AS col1 FROM tab2
----
-4094
-5696
-6675

skipif mysql # not compatible
query I rowsort label-351
SELECT ALL + CAST ( + 89 AS INTEGER ) * - col0 AS col1 FROM tab2
----
-4094
-5696
-6675

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL 13 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

skipif mysql # not compatible
query I rowsort label-356
SELECT ALL col0 / - - col0 FROM tab1 AS cor0
----
1
1
1

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

skipif mysql # not compatible
query I rowsort label-357
SELECT + col1 / + 59 AS col2 FROM tab2
----
0
1
1

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

query I rowsort
SELECT + 63 * + + col2 FROM tab0 AS cor0
----
2961
6237
630

query I rowsort
SELECT 16 * - - 37 + + 22 + - 72 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3d845be4aca52d35c336a12fe7a9162b

query I rowsort
SELECT - + col2 * - col1 + col2 + col0 AS col1 FROM tab1 AS cor0
----
1491
3355
439

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-363
SELECT ALL - + 26 * CAST( + + col2 AS SIGNED ) col2, + ( + ( + ( col1 ) ) ) AS col2 FROM tab0 AS cor0
----
-1222
81
-2574
1
-260
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-363
SELECT ALL - + 26 * CAST ( + + col2 AS INTEGER ) col2, + ( + ( + ( col1 ) ) ) AS col2 FROM tab0 AS cor0
----
-1222
81
-2574
1
-260
21

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT + SUM( DISTINCT + 2 ) FROM tab2 AS cor0 WHERE + col1 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-364
SELECT + SUM ( DISTINCT + 2 ) FROM tab2 AS cor0 WHERE + col1 = NULL
----
NULL

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

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

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

query I rowsort
SELECT + 13 + 18 + col0 FROM tab0 AS cor0
----
118
128
46

query II rowsort
SELECT + col1 * - col2 * + col0 AS col1, - col2 AS col0 FROM tab1 AS cor0
----
-25075
-59
-290836
-68
-68544
-96

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

query I rowsort
SELECT ALL col2 + col1 * + + col1 AS col1 FROM tab0
----
100
451
6608

query I rowsort
SELECT DISTINCT - col0 * 29 + 44 FROM tab2
----
-1290
-1812
-2131

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT ALL - COUNT( - - col2 ) * - 61 FROM tab2
----
183

skipif mysql # not compatible
query I rowsort label-372
SELECT ALL - COUNT ( - - col2 ) * - 61 FROM tab2
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT DISTINCT - COUNT( * ) + 50 AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-373
SELECT DISTINCT - COUNT ( * ) + 50 AS col0 FROM tab1
----
47

query I rowsort
SELECT + 50 - + col0 AS col2 FROM tab0
----
-37
-47
35

query I rowsort
SELECT DISTINCT col1 * + - 14 + 88 FROM tab0
----
-1046
-206
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-376
SELECT ALL - col2 + - CAST( + col0 AS SIGNED ) AS col1 FROM tab0
----
-196
-62
-97

skipif mysql # not compatible
query I rowsort label-376
SELECT ALL - col2 + - CAST ( + col0 AS INTEGER ) AS col1 FROM tab0
----
-196
-62
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - col0 col0 FROM tab2 AS cor0
----
128
150
92

query II rowsort
SELECT ALL col2 * + 51 + col2 + - - col1, 55 * - 92 AS col0 FROM tab2 AS cor0
----
1247
-5060
2157
-5060
3083
-5060

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

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT DISTINCT COUNT( * ) * ( 36 ) FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-380
SELECT DISTINCT COUNT ( * ) * ( 36 ) FROM tab1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT DISTINCT MIN( DISTINCT + + 41 ) FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-381
SELECT DISTINCT MIN ( DISTINCT + + 41 ) FROM tab1
----
41

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + + col0 ) col2 FROM tab0 cor0
----
-15
-87
-97

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

query I rowsort
SELECT ALL - 85 AS col0 FROM tab2 WHERE NULL > - 53 * + col1 + 84
----

onlyif mysql # DIV for integer division: 
query I rowsort label-387
SELECT ALL ( - 7 ) DIV + col0 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-387
SELECT ALL ( - 7 ) / + col0 AS col0 FROM tab0
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT - 10 AS col2 FROM tab2 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT - MAX( - 13 ) FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-390
SELECT - MAX ( - 13 ) FROM tab2
----
13

query I rowsort
SELECT col0 * + 41 FROM tab1
----
2091
3485
3731

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

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

query I rowsort
SELECT DISTINCT 8 * + 76 * - col1 AS col1 FROM tab2
----
-31008
-40736
-46816

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

query II rowsort
SELECT ALL 14 * col0 + + - 64, col1 AS col0 FROM tab2
----
580
51
832
77
986
67

query I rowsort
SELECT - 76 FROM tab2 AS cor0 WHERE NOT ( NOT + col1 <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT COUNT( * ) + + + 51 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-397
SELECT COUNT ( * ) + + + 51 FROM tab2 AS cor0
----
54

query I rowsort
SELECT 11 + + col1 AS col2 FROM tab2 AS cor0
----
62
78
88

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

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

query I rowsort
SELECT DISTINCT + - col0 * col0 + + 7 AS col2 FROM tab0 AS cor0
----
-218
-7562
-9402

query I rowsort
SELECT 32 - + 81 FROM tab0 cor0
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT + MAX( ALL + 16 ) FROM tab2 cor0 WHERE NULL IS NULL
----
16

skipif mysql # not compatible
query I rowsort label-402
SELECT + MAX ( ALL + 16 ) FROM tab2 cor0 WHERE NULL IS NULL
----
16

query I rowsort
SELECT - col0 + col1 + - col0 AS col2 FROM tab0 AS cor0
----
-153
-193
51

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

onlyif mysql # DIV for integer division: 
query I rowsort label-405
SELECT DISTINCT col1 + + 79 DIV + 37 AS col1 FROM tab1
----
16
49
7

skipif mysql # not compatible
query I rowsort label-405
SELECT DISTINCT col1 + + 79 / + 37 AS col1 FROM tab1
----
16
49
7

query II rowsort
SELECT col0 * col2 + + col0, + col1 AS col0 FROM tab1
----
4947
14
5100
5
6279
47

query I rowsort
SELECT col2 + col1 - - + col2 * + 23 FROM tab2
----
1037
1459
603

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-408
SELECT DISTINCT COUNT( * ) col1 FROM tab1 WHERE ( NOT NULL > col0 / + col0 + CAST( NULL AS DECIMAL ) )
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-411
SELECT ALL 67 AS col0, - 35 - - COUNT( * ) FROM tab2
----
67
-32

skipif mysql # not compatible
query II rowsort label-411
SELECT ALL 67 AS col0, - 35 - - COUNT ( * ) FROM tab2
----
67
-32

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

query I rowsort
SELECT + - col1 * - + 18 FROM tab0 AS cor0
----
1458
18
378

query I rowsort
SELECT - - 79 * - col1 * - - 29 + + - col2 * - ( + 85 ) * + - col1 AS col2 FROM tab1 AS cor0
----
-146314
-36530
-379337

query I rowsort
SELECT 57 * + col1 + - - col1 FROM tab0 cor0
----
1218
4698
58

onlyif mysql # DIV for integer division: 
query I rowsort label-416
SELECT + col2 * + col1 DIV col1 AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-416
SELECT + col2 * + col1 / col1 AS col0 FROM tab0 AS cor0
----
10
47
99

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

query I rowsort
SELECT + 65 + col1 AS col2 FROM tab0
----
146
66
86

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + 37 + + - 91 <> NULL
----

query I rowsort
SELECT - 30 FROM tab2 WHERE NOT NULL > - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-422
SELECT ALL + col0 + + ( col0 ) DIV col0 FROM tab1
----
52
86
92

skipif mysql # not compatible
query I rowsort label-422
SELECT ALL + col0 + + ( col0 ) / col0 FROM tab1
----
52
86
92

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

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

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0 WHERE 56 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-427
SELECT ALL - col1 DIV + col0 + + col2 DIV - 17 AS col1 FROM tab0
----
-5
-7
0

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL - col1 / + col0 + + col2 / - 17 AS col1 FROM tab0
----
-5
-7
0

query I rowsort
SELECT DISTINCT col2 * + + col2 + + + 45 AS col1 FROM tab2
----
1645
3409
574

query I rowsort
SELECT ALL col0 * + col1 * - col2 + 2 + col0 FROM tab1 AS cor0
----
-24988
-290743
-68491

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-431
SELECT DISTINCT - 51 AS col0, + ( + COUNT( * ) ) col0 FROM tab1 AS cor0
----
-51
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-431
SELECT DISTINCT - 51 AS col0, + ( + COUNT ( * ) ) col0 FROM tab1 AS cor0
----
-51
3

query I rowsort
SELECT ALL + + col2 * 65 FROM tab1 AS cor0 WHERE col0 + - 96 IN ( - 2, + col2, - 92 )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-434
SELECT ALL + 14 - + + 70 DIV - col0 col1 FROM tab0
----
14
14
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-434
SELECT ALL + 14 - + + 70 / - col0 col1 FROM tab0
----
14
14
18

query I rowsort
SELECT + - col2 FROM tab2 WHERE NULL < NULL
----

query I rowsort
SELECT + 10 - col0 FROM tab0
----
-5
-77
-87

query I rowsort
SELECT - col2 * 18 FROM tab0
----
-1782
-180
-846

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( - col0 / + + ( + 46 ) )
----

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT + 84 * + ( + 61 ) + col1 + + - col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-440
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) >= col2 * + col1 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-440
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) >= col2 * + col1 + CAST ( NULL AS INTEGER )
----

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

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

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

query I rowsort
SELECT - + 82 * + - col0 AS col2 FROM tab0 AS cor0
----
1230
7134
7954

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

onlyif mysql # DIV for integer division: 
query III rowsort label-445
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 DIV - 27 >= col1 DIV + 77 * + + col2
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-445
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 / - 27 >= col1 / + 77 * + + col2
----
87
21
10
97
1
99

query II rowsort
SELECT col0, + 46 * + col0 AS col1 FROM tab2
----
46
2116
64
2944
75
3450

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-447
SELECT DISTINCT col2 * + col0 + + + ( + ( - 4 ) ) + col1 AS col1, CAST( - - col1 AS SIGNED ) FROM tab1
----
4906
14
5016
5
6231
47

skipif mysql # not compatible
query II rowsort label-447
SELECT DISTINCT col2 * + col0 + + + ( + ( - 4 ) ) + col1 AS col1, CAST ( - - col1 AS INTEGER ) FROM tab1
----
4906
14
5016
5
6231
47

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-451
SELECT DISTINCT + col1 * + 14 * + col1 + CAST( - 59 AS SIGNED ) FROM tab0
----
-45
6115
91795

skipif mysql # not compatible
query I rowsort label-451
SELECT DISTINCT + col1 * + 14 * + col1 + CAST ( - 59 AS INTEGER ) FROM tab0
----
-45
6115
91795

query I rowsort
SELECT - col1 + + + ( - col2 ) FROM tab1
----
-110
-115
-64

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

query I rowsort
SELECT + ( - col0 ) + 41 FROM tab2
----
-23
-34
-5

query I rowsort
SELECT DISTINCT + col1 FROM tab0 cor0 WHERE NULL >= NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-457
SELECT DISTINCT col1 DIV + - 43 - + + col2 AS col2 FROM tab1 AS cor0
----
-59
-69
-96

skipif mysql # not compatible
query I rowsort label-457
SELECT DISTINCT col1 / + - 43 - + + col2 AS col2 FROM tab1 AS cor0
----
-59
-69
-96

query II rowsort
SELECT ALL + col2 AS col0, col1 + - + col2 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 29 + + + col2 > NULL
----

query II rowsort
SELECT ALL - 79 + col0 AS col1, 13 * - col2 + + 48 + + - col1 + + 68 + - 45 FROM tab1 AS cor0
----
-28
-1191
12
-860
6
-701

query I rowsort
SELECT + - 42 * - 14 + + + col0 FROM tab1 AS cor0
----
639
673
679

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

onlyif mysql # DIV for integer division: 
query I rowsort label-463
SELECT - - 56 DIV - col1 * - col1 DIV - col1 FROM tab1 AS cor0
----
-1
-11
-4

skipif mysql # not compatible
query I rowsort label-463
SELECT - - 56 / - col1 * - col1 / - col1 FROM tab1 AS cor0
----
-1
-11
-4

query I rowsort
SELECT + ( + + ( - col1 ) ) * + col2 AS col1 FROM tab1
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + 33 * + col2 col0 FROM tab0
----
125631
3267
6930

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

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

skipif mysql # not compatible
query III rowsort label-467
SELECT ALL * FROM tab2 WHERE col2 * + - 20 BETWEEN col2 AND - CAST ( NULL AS INTEGER ) OR NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-469
SELECT - COUNT( * ) FROM tab1 WHERE NOT - ( - + col2 ) * + col1 / + col1 * + col0 NOT IN ( - col1, + col0, CAST( ( - col1 ) AS SIGNED ) / - 53 + + 67 * - col2 + + + 38 )
----
0

skipif mysql # not compatible
query I rowsort label-469
SELECT - COUNT ( * ) FROM tab1 WHERE NOT - ( - + col2 ) * + col1 / + col1 * + col0 NOT IN ( - col1, + col0, CAST ( ( - col1 ) AS INTEGER ) / - 53 + + 67 * - col2 + + + 38 )
----
0

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

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

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

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

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

query I rowsort
SELECT - 48 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

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

query I rowsort
SELECT - 8 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-479
SELECT + + ( + 40 ) DIV - - 20 + - col2 + col1 + + col1 FROM tab2 AS cor0
----
116
78
81

skipif mysql # not compatible
query I rowsort label-479
SELECT + + ( + 40 ) / - - 20 + - col2 + col1 + + col1 FROM tab2 AS cor0
----
116
78
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT + - 51 + - COUNT( * ) * + - 94 AS col0 FROM tab1 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-481
SELECT + - 51 + - COUNT ( * ) * + - 94 AS col0 FROM tab1 AS cor0
----
231

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-484
SELECT CAST( NULL AS SIGNED ) + - col0 AS col1, + col2 + + - 44 FROM tab0 AS cor0
----
NULL
-34
NULL
3
NULL
55

skipif mysql # not compatible
query II rowsort label-484
SELECT CAST ( NULL AS INTEGER ) + - col0 AS col1, + col2 + + - 44 FROM tab0 AS cor0
----
NULL
-34
NULL
3
NULL
55

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-486
SELECT ALL - COUNT( * ) * - 78 DIV - CAST( + + 3 AS SIGNED ) AS col0 FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-486
SELECT ALL - COUNT ( * ) * - 78 / - CAST ( + + 3 AS INTEGER ) AS col0 FROM tab2
----
-78

query I rowsort
SELECT ALL 78 + + + 18 AS col2 FROM tab0
----
96
96
96

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

query I rowsort
SELECT + + 15 * + 12 + col1 FROM tab0 AS cor0
----
181
201
261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 91 - + 39 col1 FROM tab1 AS cor0
----
-1313
-4316
-494

query I rowsort
SELECT + - col1 - - col1 * - col0 * col1 FROM tab1 AS cor0
----
-10010
-201066
-2130

query I rowsort
SELECT col2 - + - 10 FROM tab0 AS cor0
----
109
20
57

query I rowsort
SELECT - ( - col0 ) + - col1 + - 57 AS col2 FROM tab2 AS cor0
----
-49
-62
-70

query I rowsort
SELECT ( + 16 ) + - ( + + 77 ) FROM tab0
----
-61
-61
-61

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-496
SELECT + CAST( - + col1 AS SIGNED ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-496
SELECT + CAST ( - + col1 AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

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

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

skipif mysql # not compatible
query II rowsort label-498
SELECT DISTINCT + + COUNT ( * ) AS col0, + 76 AS col1 FROM tab2 AS cor0
----
3
76

query II rowsort
SELECT + 27, + col1 AS col1 FROM tab2 AS cor0
----
27
51
27
67
27
77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 48 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 84 col1, 8 FROM tab1 AS cor0
----
-84
8
-84
8
-84
8

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

skipif mysql # not compatible
query I rowsort label-502
SELECT DISTINCT + col0 / - col2 AS col1 FROM tab2 AS cor0
----
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT ALL + + COUNT( * ) * - - 10 AS col2 FROM tab0 cor0
----
30

skipif mysql # not compatible
query I rowsort label-503
SELECT ALL + + COUNT ( * ) * - - 10 AS col2 FROM tab0 cor0
----
30

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

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

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

query I rowsort
SELECT 3 * - 2 AS col2 FROM tab0
----
-6
-6
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-508
SELECT - COUNT( * ) DIV - 30 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-508
SELECT - COUNT ( * ) / - 30 FROM tab1
----
0

query I rowsort
SELECT + col0 + - col1 FROM tab0 AS cor0 WHERE NOT col1 / - - col2 * + col0 = NULL
----

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

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

query I rowsort
SELECT DISTINCT col1 * ( 46 ) - - col1 FROM tab1 AS cor0
----
2209
235
658

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

onlyif mysql # DIV for integer division: 
query I rowsort label-513
SELECT col0 DIV 29 AS col0 FROM tab0 cor0 WHERE 44 >= - col0
----
0
3
3

skipif mysql # not compatible
query I rowsort label-513
SELECT col0 / 29 AS col0 FROM tab0 cor0 WHERE 44 >= - col0
----
0
3
3

query I rowsort
SELECT + col0 / - - col0 + + + ( 33 ) FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-516
SELECT - MAX( ALL + CAST( NULL AS SIGNED ) ) * + 26 + - MIN( DISTINCT + col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-516
SELECT - MAX ( ALL + CAST ( NULL AS INTEGER ) ) * + 26 + - MIN ( DISTINCT + col1 ) FROM tab1
----
NULL

query I rowsort
SELECT + col2 + 13 * + col1 AS col2 FROM tab0
----
1100
112
283

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

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

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

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

query I rowsort
SELECT + col1 + - - col1 AS col1 FROM tab0
----
162
2
42

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col0 ) + + - 20 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-522
SELECT + 67 + + 39 AS col1, - ( + COUNT( * ) ) DIV - SUM( + + col2 ) col0 FROM tab1
----
106
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-522
SELECT + 67 + + 39 AS col1, - ( + COUNT ( * ) ) / - SUM ( + + col2 ) col0 FROM tab1
----
106
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col1 - + + col2 col0 FROM tab2 AS cor0
----
1150
3040
3828

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

query I rowsort
SELECT ALL ( - - 34 ) - + - col0 * + - ( - + 84 ) FROM tab2 AS cor0
----
3898
5410
6334

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 85 * 2 * + + col1 + + ( col0 ) + + col2 * - 26 col1, col2 FROM tab1 cor0
----
-599
59
-65
96
6313
68

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

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

query I rowsort
SELECT + 74 * + + col2 * - col1 FROM tab0
----
-15540
-281718
-7326

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

query I rowsort
SELECT DISTINCT col2 * 20 AS col0 FROM tab1
----
1180
1360
1920

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

query II rowsort
SELECT ALL + col0 AS col1, + 81 AS col2 FROM tab0 cor0
----
15
81
87
81
97
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-534
SELECT * FROM tab2 cor0 WHERE NOT + CAST( - 80 AS SIGNED ) / col2 <= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-534
SELECT * FROM tab2 cor0 WHERE NOT + CAST ( - 80 AS INTEGER ) / col2 <= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

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

query I rowsort
SELECT ALL col0 * - 25 FROM tab1 AS cor0
----
-1275
-2125
-2275

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

skipif mysql # not compatible
query I rowsort label-540
SELECT DISTINCT + 1 / - COUNT ( * ) FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT col1 * + + col2 * + - col2 AS col0 FROM tab1
----
-129024
-17405
-217328

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT + 74 * + COUNT( * ) AS col2 FROM tab0
----
222

skipif mysql # not compatible
query I rowsort label-545
SELECT + 74 * + COUNT ( * ) AS col2 FROM tab0
----
222

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col1 BETWEEN + 13 + - col1 AND ( 88 )
----
97
1
99

query I rowsort
SELECT ALL - - 51 * - - col2 AS col2 FROM tab0 AS cor0
----
2397
5049
510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-548
SELECT DISTINCT 44 * 86 * - CAST( + COUNT( DISTINCT col2 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-11352

skipif mysql # not compatible
query I rowsort label-548
SELECT DISTINCT 44 * 86 * - CAST ( + COUNT ( DISTINCT col2 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-11352

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

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NULL > - col0
----

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

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

query III rowsort
SELECT * FROM tab1 WHERE + ( + col0 ) NOT BETWEEN + col2 + - - col1 AND - - ( col2 ) + - - 96
----
51
14
96
91
47
68

query II rowsort
SELECT 9 + col2 + + col1 AS col1, 39 FROM tab2 AS cor0
----
126
39
134
39
83
39

onlyif mysql # aggregate syntax: 
query II rowsort label-555
SELECT - 75 AS col2, MIN( + col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-75
59

skipif mysql # not compatible
query II rowsort label-555
SELECT - 75 AS col2, MIN ( + col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-75
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-556
SELECT + 3 + - + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-48
-64
-74

skipif mysql # not compatible
query I rowsort label-556
SELECT + 3 + - + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-48
-64
-74

query I rowsort
SELECT col2 * col2 + 23 + col1 FROM tab2 cor0
----
1700
3454
603

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, - 3 * - + col1 * + + 89 AS col0 FROM tab2
----
23
13617
40
20559
58
17889

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

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

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 WHERE + col2 > ( - col1 )
----
-23
-40
-58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT + ( MIN( + 14 ) ) - + 9 AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-564
SELECT + ( MIN ( + 14 ) ) - + 9 AS col0 FROM tab1
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 49 * + col2 * + - col1 col2 FROM tab2
----
-150984
-190489
-57523

query I rowsort
SELECT ALL - - col0 - + 84 AS col1 FROM tab1 AS cor0
----
-33
1
7

query I rowsort
SELECT + - 6 - col2 AS col1 FROM tab2 AS cor0
----
-29
-46
-64

query I rowsort
SELECT - - col1 + col1 * + col2 * col2 AS col1 FROM tab2 AS cor0
----
123277
225455
27030

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT DISTINCT - MIN( 77 ) AS col2 FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-571
SELECT DISTINCT - MIN ( 77 ) AS col2 FROM tab0
----
-77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( + 9 )
----

query I rowsort
SELECT DISTINCT col0 + - col1 AS col0 FROM tab2 WHERE NOT - col0 IS NULL
----
-13
-5
8

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 ) > + col1 + - 19
----

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

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

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

query I rowsort
SELECT 43 * 21 - + 26 FROM tab1 WHERE col1 * col1 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-578
SELECT DISTINCT - COUNT( * ) * 94 - CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-578
SELECT DISTINCT - COUNT ( * ) * 94 - CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-580
SELECT 69 + - COUNT ( * ) AS col1 FROM tab0
----
66

query I rowsort
SELECT 43 AS col1 FROM tab2 WHERE NULL <= ( NULL )
----

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

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE ( NULL ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT - 40 - COUNT( ALL col0 + col0 ) FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-584
SELECT - 40 - COUNT ( ALL col0 + col0 ) FROM tab2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT - COUNT( - col0 ) + COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-585
SELECT - COUNT ( - col0 ) + COUNT ( * ) AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT DISTINCT COUNT( * ) + 53 col1 FROM tab1
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-586
SELECT DISTINCT COUNT ( * ) + 53 col1 FROM tab1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT ALL COUNT( * ) col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-587
SELECT ALL COUNT ( * ) col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT + col0 + 90 AS col1 FROM tab1
----
141
175
181

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 43 * 73 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( 5 ) FROM tab2
----
5

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 * 16 = col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT col2 FROM tab2 WHERE - 77 IS NULL
----

query I rowsort
SELECT ALL 4 * col0 FROM tab0 AS cor0
----
348
388
60

query I rowsort
SELECT ALL - col0 * 16 AS col0 FROM tab2 cor0
----
-1024
-1200
-736

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

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

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

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

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

query I rowsort
SELECT ALL + col0 * + 11 AS col1 FROM tab1
----
1001
561
935

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

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

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

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

query I rowsort
SELECT + + 67 * ( + 30 ) - - 35 FROM tab2 AS cor0
----
2045
2045
2045

query I rowsort
SELECT - col2 + - col1 * 56 AS col1 FROM tab2 AS cor0
----
-2879
-3810
-4352

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE NOT - 18 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 + + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
198
20
94

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

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

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

query I rowsort
SELECT DISTINCT col2 * - 5 AS col2 FROM tab0
----
-235
-495
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT DISTINCT - SUM( ALL col2 ) * 80 FROM tab0
----
-12480

skipif mysql # not compatible
query I rowsort label-615
SELECT DISTINCT - SUM ( ALL col2 ) * 80 FROM tab0
----
-12480

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT COUNT( + col1 ) + COUNT( * ) * - SUM( DISTINCT + col1 * - 86 ) col1 FROM tab0
----
26577

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-617
SELECT col0 * - - CAST( + CAST( ( ( - 84 ) ) AS SIGNED ) AS SIGNED ) + - ( col0 ) * 93 AS col0 FROM tab2
----
-11328
-13275
-8142

skipif mysql # not compatible
query I rowsort label-617
SELECT col0 * - - CAST ( + CAST ( ( ( - 84 ) ) AS INTEGER ) AS INTEGER ) + - ( col0 ) * 93 AS col0 FROM tab2
----
-11328
-13275
-8142

query I rowsort
SELECT ALL 35 FROM tab0 WHERE ( NULL ) IN ( col1 )
----

query I rowsort
SELECT ALL - 52 * - 10 - col0 FROM tab0
----
423
433
505

query I rowsort
SELECT DISTINCT col0 * + col0 - - col1 AS col0 FROM tab2
----
2167
4173
5692

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

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

query I rowsort
SELECT + + 96 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

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

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

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT ( 9 ) <= col0
----

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

skipif mysql # not compatible
query I rowsort label-627
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT col2 - - 98 + col0 * 87 * + col0 IN ( ( + CAST ( NULL AS INTEGER ) ) + - col0 )
----

query I rowsort
SELECT AVG ( DISTINCT ( + col0 ) ) AS col2 FROM tab2 cor0 WHERE NOT NULL IN ( ( col2 ) )
----
NULL

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

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

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

query I rowsort
SELECT + col0 AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) < - + 40
----

query II rowsort
SELECT ALL + + 19 AS col2, + ( col0 ) * 34 AS col2 FROM tab0 AS cor0
----
19
2958
19
3298
19
510

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-634
SELECT ALL - MIN( ALL - + col2 ) + CAST( - - SUM( DISTINCT col1 ) AS SIGNED ) AS col0 FROM tab2
----
253

skipif mysql # not compatible
query I rowsort label-634
SELECT ALL - MIN ( ALL - + col2 ) + CAST ( - - SUM ( DISTINCT col1 ) AS INTEGER ) AS col0 FROM tab2
----
253

onlyif mysql # aggregate syntax: 
query II rowsort label-635
SELECT MIN( - - 17 ) col1, 5 + + - SUM( - col0 ) * - 49 FROM tab0
----
17
-9746

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-635
SELECT MIN ( - - 17 ) col1, 5 + + - SUM ( - col0 ) * - 49 FROM tab0
----
17
-9746

query I rowsort
SELECT ALL 65 * 79 AS col2 FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND + col0 * - + col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 NOT BETWEEN NULL AND col0
----

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( + 18 ) < + 6
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( col2 + + + 1 + - + col1 ) <= ( 21 - col1 )
----

query I rowsort
SELECT DISTINCT + col0 * + - 33 FROM tab1 AS cor0
----
-1683
-2805
-3003

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

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

query I rowsort
SELECT col1 * ( + col2 ) * - col0 + - + col2 + col0 FROM tab1 AS cor0
----
-25049
-290813
-68589

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-648
SELECT DISTINCT - - COUNT( + 50 ) - CAST( NULL AS SIGNED ) + COUNT( * ) * + MIN( 24 ) - MIN( DISTINCT col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-648
SELECT DISTINCT - - COUNT ( + 50 ) - CAST ( NULL AS INTEGER ) + COUNT ( * ) * + MIN ( 24 ) - MIN ( DISTINCT col1 ) FROM tab1 AS cor0
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-651
SELECT DISTINCT SUM( ALL - + CAST( + - col0 AS SIGNED ) ), + SUM( col1 ) AS col0 FROM tab0 AS cor0
----
199
103

skipif mysql # not compatible
query II rowsort label-651
SELECT DISTINCT SUM ( ALL - + CAST ( + - col0 AS INTEGER ) ), + SUM ( col1 ) AS col0 FROM tab0 AS cor0
----
199
103

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

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

query I rowsort
SELECT DISTINCT + ( - col1 ) * 93 AS col2 FROM tab2 AS cor0
----
-4743
-6231
-7161

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

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

query I rowsort
SELECT DISTINCT - 39 * col2 * - col0 + 4 * - + col2 AS col1 FROM tab2 AS cor0
----
169418
41170
99680

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-658
SELECT DISTINCT 5 DIV COUNT( * ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-658
SELECT DISTINCT 5 / COUNT ( * ) AS col1 FROM tab0
----
1

query I rowsort
SELECT - col1 * + col1 * - 88 - - + col0 * 22 * + + ( 88 ) + col2 * - 36 FROM tab2
----
317116
538144
644216

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-660
SELECT * FROM tab0 WHERE ( NOT CAST( NULL AS SIGNED ) * - - col1 + + ( + 29 ) + + col1 * col0 IS NULL )
----

skipif mysql # not compatible
query III rowsort label-660
SELECT * FROM tab0 WHERE ( NOT CAST ( NULL AS INTEGER ) * - - col1 + + ( + 29 ) + + col1 * col0 IS NULL )
----

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

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

query I rowsort
SELECT - 47 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

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

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT ( - MAX( ALL - - 69 ) ) * + COUNT( * ) FROM tab1 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-665
SELECT ( - MAX ( ALL - - 69 ) ) * + COUNT ( * ) FROM tab1 AS cor0
----
-207

query I rowsort
SELECT DISTINCT + 72 - col0 AS col1 FROM tab0 cor0 WHERE NOT NULL <= ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT DISTINCT - MIN( - 28 ) - COUNT( * ) AS col0 FROM tab2 WHERE ( NULL ) IS NULL
----
25

skipif mysql # not compatible
query I rowsort label-667
SELECT DISTINCT - MIN ( - 28 ) - COUNT ( * ) AS col0 FROM tab2 WHERE ( NULL ) IS NULL
----
25

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

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

query I rowsort
SELECT ALL - col1 + - - col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-670
SELECT ( + - CAST( NULL AS DECIMAL ) ) * + ( col1 ) - 61 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-670
SELECT ( + - CAST ( NULL AS REAL ) ) * + ( col1 ) - 61 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + + 50 FROM tab2
----
114
125
96

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-677
SELECT DISTINCT - COUNT( * ) col1, + COUNT( * ) FROM tab2
----
-3
3

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 35 IN ( - + ( + 17 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-679
SELECT DISTINCT MIN( ALL - CAST( - - col1 AS SIGNED ) ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-679
SELECT DISTINCT MIN ( ALL - CAST ( - - col1 AS INTEGER ) ) FROM tab1 AS cor0
----
-47

query I rowsort
SELECT DISTINCT + + ( col0 ) * col1 + col2 AS col1 FROM tab2 AS cor0
----
2369
4968
5083

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT + MIN( 57 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
57

skipif mysql # not compatible
query I rowsort label-681
SELECT + MIN ( 57 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
57

query I rowsort
SELECT ALL 11 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT ALL + + 60 * col2 - - 83 AS col1 FROM tab2 AS cor0
----
1463
2483
3563

query I rowsort
SELECT DISTINCT col0 + - 81 FROM tab0 cor0
----
-66
16
6

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT - 84 + - col2 NOT IN ( - + col0 * + 47, col1 * col1 )
----

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

query II rowsort
SELECT ALL + - col1 - - + col0 AS col2, + col1 FROM tab2 AS cor0
----
-13
77
-5
51
8
67

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

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

query II rowsort
SELECT col1 + - - col0 AS col1, + col2 - - col0 - + - 63 + 33 * - + col1 AS col0 FROM tab2 AS cor0
----
141
-2374
142
-2015
97
-1551

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 95 >= col0
----
97
1
99

query I rowsort
SELECT + - 81 + + 0 * + 64 FROM tab1 AS cor0
----
-81
-81
-81

query II rowsort
SELECT DISTINCT 91 - col0 AS col2, col1 FROM tab0 AS cor0
----
-6
1
4
21
76
81

query II rowsort
SELECT ALL - 39 * - 69 * + col2 AS col0, 50 AS col2 FROM tab0
----
126477
50
266409
50
26910
50

query I rowsort
SELECT + col1 + + 12 + col1 AS col0 FROM tab1
----
106
22
40

query I rowsort
SELECT - + ( + 12 ) AS col2 FROM tab0 WHERE - + col0 IS NULL
----

query I rowsort
SELECT + col1 * + col2 * + + 88 * - - ( - col0 ) FROM tab2
----
-17346560
-25647600
-4748304

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

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

query I rowsort
SELECT 37 FROM tab0 WHERE NOT ( - + col0 + + col0 + 57 + 0 * col2 * ( + 47 ) ) IS NULL
----
37
37
37

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

query I rowsort
SELECT ALL - col1 - 55 * + col0 - - ( col0 ) * - 75 + - col2 AS col1 FROM tab2 WHERE NULL IS NULL
----
-6054
-8437
-9875

query I rowsort
SELECT - col1 * - ( + col2 ) * - - col1 + - + col1 + - 95 AS col2 FROM tab0 AS cor0
----
3
308191
4294

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-704
SELECT DISTINCT + col2 DIV - - col1 AS col2 FROM tab0
----
0
99

skipif mysql # not compatible
query I rowsort label-704
SELECT DISTINCT + col2 / - - col1 AS col2 FROM tab0
----
0
99

query II rowsort
SELECT DISTINCT col0 * - + 95, + col2 FROM tab1 cor0
----
-4845
96
-8075
59
-8645
68

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

query I rowsort
SELECT + 78 + col0 * - 34 - - - col2 + + col1 - col2 + + col1 FROM tab0 cor0
----
-2858
-3416
-364

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 < - col0
----

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

query II rowsort
SELECT ALL + ( 44 ) AS col2, 27 AS col1 FROM tab2 AS cor0
----
44
27
44
27
44
27

onlyif mysql # DIV for integer division: 
query II rowsort label-711
SELECT col1 * col1 * + col2 col0, - 13 DIV col2 col2 FROM tab0 AS cor0 WHERE NOT + col2 IN ( col2 + + col0 )
----
308367
0
4410
-1
99
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-711
SELECT col1 * col1 * + col2 col0, - 13 / col2 col2 FROM tab0 AS cor0 WHERE NOT + col2 IN ( col2 + + col0 )
----
308367
0
4410
-1
99
0

onlyif mysql # aggregate syntax: 
query II rowsort label-712
SELECT DISTINCT 89, + MAX( + col1 ) AS col1 FROM tab0 AS cor0
----
89
81

skipif mysql # not compatible
query II rowsort label-712
SELECT DISTINCT 89, + MAX ( + col1 ) AS col1 FROM tab0 AS cor0
----
89
81

query II rowsort
SELECT ALL + col2 AS col2, + col0 * - col0 AS col0 FROM tab2 AS cor0
----
23
-2116
40
-4096
58
-5625

query I rowsort
SELECT - 21 + 43 * + 8 FROM tab2
----
323
323
323

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-716
SELECT DISTINCT - 9 * + 8 * col2 + + CAST( NULL AS SIGNED ) * + 32 * + col2 + - col2 * + 15 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-716
SELECT DISTINCT - 9 * + 8 * col2 + + CAST ( NULL AS INTEGER ) * + 32 * + col2 + - col2 * + 15 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 87 * - 60 FROM tab2, tab0 AS cor0
----
-5220

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col2 - + 1 BETWEEN + col0 AND + - ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 57 * + + 52 + + col2 AS col1, col1 col2 FROM tab0 AS cor0
----
2974
21
3011
81
3063
1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 62 + + col2 * - col1 col1, - col1 FROM tab2 AS cor0
----
-1111
-51
-3018
-77
-3824
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT DISTINCT + 93 + COUNT( * ) - + + 42 AS col0 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-722
SELECT DISTINCT + 93 + COUNT ( * ) - + + 42 AS col0 FROM tab1 AS cor0
----
54

query I rowsort
SELECT DISTINCT - col0 - 50 AS col0 FROM tab0 AS cor0
----
-137
-147
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, 56 col1 FROM tab1 AS cor0
----
59
56
68
56
96
56

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

query I rowsort
SELECT ALL - col0 * - 49 AS col2 FROM tab2 AS cor0
----
2254
3136
3675

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

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

query I rowsort
SELECT ALL + 45 * + 87 AS col1 FROM tab1 AS cor0
----
3915
3915
3915

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - 44 / + - 40 IS NOT NULL
----

query II rowsort
SELECT + col1 * + - 76, 70 * + - ( + col0 ) * 17 AS col1 FROM tab1
----
-1064
-60690
-3572
-108290
-380
-101150

query I rowsort
SELECT 27 * - 68 FROM tab2
----
-1836
-1836
-1836

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

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NOT col0 > ( col0 )
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-735
SELECT ALL - - CAST( - MAX( ALL - col0 ) AS SIGNED ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL - - CAST ( - MAX ( ALL - col0 ) AS INTEGER ) FROM tab0 AS cor0
----
15

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col1 IN ( - 65 * - - col1, - col0, - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # DIV for integer division: 
query I rowsort label-738
SELECT ALL - col0 DIV - 47 - + 6 FROM tab1 AS cor0 WHERE NOT 64 <= 52
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-738
SELECT ALL - col0 / - 47 - + 6 FROM tab1 AS cor0 WHERE NOT 64 <= 52
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT DISTINCT MIN( DISTINCT - col0 ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-739
SELECT DISTINCT MIN ( DISTINCT - col0 ) AS col0 FROM tab2
----
-75

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-743
SELECT ALL - col0 DIV col1 col0 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-743
SELECT ALL - col0 / col1 col0 FROM tab2 cor0
----
-1
0
0

query I rowsort
SELECT 57 * - col1 FROM tab1 AS cor0
----
-2679
-285
-798

onlyif mysql # DIV for integer division: 
query I rowsort label-745
SELECT DISTINCT 76 DIV - col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-745
SELECT DISTINCT 76 / - col0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL - + 74 FROM tab2 AS cor0 WHERE - col2 / + - 84 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT 41 * - - COUNT( * ) FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-747
SELECT 41 * - - COUNT ( * ) FROM tab1 AS cor0
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-748
SELECT + SUM( - 84 ) AS col2, + 12 AS col2 FROM tab1
----
-252
12

skipif mysql # not compatible
query II rowsort label-748
SELECT + SUM ( - 84 ) AS col2, + 12 AS col2 FROM tab1
----
-252
12

onlyif mysql # DIV for integer division: 
query I rowsort label-749
SELECT + col1 + - + 48 DIV 72 + + col2 * + col2 * + col0 FROM tab0
----
33216
8721
950698

skipif mysql # not compatible
query I rowsort label-749
SELECT + col1 + - + 48 / 72 + + col2 * + col2 * + col0 FROM tab0
----
33216
8721
950698

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-750
SELECT ALL + 71 + + ( - - SUM( ALL - 43 ) ) DIV + 31 + - COUNT( * ) + + - COUNT( ALL + 88 ) FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-750
SELECT ALL + 71 + + ( - - SUM ( ALL - 43 ) ) / + 31 + - COUNT ( * ) + + - COUNT ( ALL + 88 ) FROM tab2
----
61

query II rowsort
SELECT DISTINCT + col2 AS col0, 92 + + col0 FROM tab2
----
23
138
40
156
58
167

query I rowsort
SELECT + 37 + 94 * + col0 AS col1 FROM tab0
----
1447
8215
9155

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

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT + COUNT( * ) * + - ( + - 41 ) + 40 AS col0 FROM tab1
----
163

skipif mysql # not compatible
query I rowsort label-754
SELECT + COUNT ( * ) * + - ( + - 41 ) + 40 AS col0 FROM tab1
----
163

query I rowsort
SELECT col0 + 34 FROM tab0
----
121
131
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + 63 + 74 col0 FROM tab2 WHERE NULL <= + - 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT ALL 91 + SUM( + + ( - + ( + col0 ) ) ) FROM tab0
----
-108

skipif mysql # not compatible
query I rowsort label-757
SELECT ALL 91 + SUM ( + + ( - + ( + col0 ) ) ) FROM tab0
----
-108

query I rowsort
SELECT + 58 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN - 76 - col2 AND - - col1
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-761
SELECT DISTINCT - - col1 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-761
SELECT DISTINCT - - col1 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) <= NULL
----

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

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

query II rowsort
SELECT - 68 * col0 AS col2, col2 + 48 FROM tab0 cor0
----
-1020
95
-5916
58
-6596
147

query I rowsort
SELECT DISTINCT 72 * col0 * - col1 + + col2 * + + col0 FROM tab2 AS cor0
----
-167854
-352256
-357450

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

query I rowsort
SELECT - col0 * - 44 AS col2 FROM tab1 AS cor0
----
2244
3740
4004

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-769
SELECT + 41 DIV + - 46 * + + COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-769
SELECT + 41 / + - 46 * + + COUNT ( * ) AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT MIN( - 98 ) FROM tab2
----
-98

skipif mysql # not compatible
query I rowsort label-770
SELECT MIN ( - 98 ) FROM tab2
----
-98

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT DISTINCT + + AVG ( - 77 ) * SUM( DISTINCT col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL OR NOT + 44 <> + col0 * + - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-773
SELECT DISTINCT + + AVG ( - 77 ) * SUM ( DISTINCT col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL OR NOT + 44 <> + col0 * + - col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT COUNT( * ) col1 FROM tab1 WHERE NOT col0 * - col0 + + - col0 / col2 < col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-775
SELECT COUNT ( * ) col1 FROM tab1 WHERE NOT col0 * - col0 + + - col0 / col2 < col2
----
0

query I rowsort
SELECT ALL col2 + + + 31 FROM tab1
----
127
90
99

query I rowsort
SELECT ALL + 33 * 74 AS col2 FROM tab0
----
2442
2442
2442

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

skipif mysql # not compatible
query I rowsort label-778
SELECT DISTINCT + 39 * - COUNT ( * ) FROM tab2
----
-117

query I rowsort
SELECT DISTINCT - col2 * + col0 + + 24 AS col1 FROM tab2 AS cor0
----
-1034
-2536
-4326

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

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT DISTINCT ( + 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-781
SELECT DISTINCT ( + MIN ( + col0 ) ) col0 FROM tab0 AS cor0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-782
SELECT col2 DIV - 87 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-782
SELECT col2 / - 87 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - 13 * + col2 AS col0 FROM tab0
----
-1287
-130
-611

query I rowsort
SELECT ALL - col2 * - 33 FROM tab0
----
1551
3267
330

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-785
SELECT DISTINCT * FROM tab0 WHERE NOT col2 BETWEEN + CAST( - col1 AS SIGNED ) AND 25
----
15
81
47
97
1
99

skipif mysql # not compatible
query III rowsort label-785
SELECT DISTINCT * FROM tab0 WHERE NOT col2 BETWEEN + CAST ( - col1 AS INTEGER ) AND 25
----
15
81
47
97
1
99

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

query I rowsort
SELECT ALL - col0 + - + ( - col1 ) AS col0 FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT SUM( 39 ) FROM tab2
----
117

skipif mysql # not compatible
query I rowsort label-788
SELECT SUM ( 39 ) FROM tab2
----
117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 - 43 col2 FROM tab2 AS cor0
----
-110
-120
-94

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

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

query I rowsort
SELECT + 85 - + col1 AS col0 FROM tab0 AS cor0
----
4
64
84

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

query I rowsort
SELECT - 99 + col0 FROM tab1 AS cor0
----
-14
-48
-8

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

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

query II rowsort
SELECT - col1 AS col0, col2 AS col0 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query II rowsort
SELECT DISTINCT - col1 AS col1, ( - 90 ) + + - 73 - - col2 + - 43 * + - 91 + - col2 * - 15 * ( + col2 ) AS col1 FROM tab1 AS cor0
----
-14
142086
-47
73178
-5
56024

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-797
SELECT + col0 AS col0, - col0 + + CAST( NULL AS SIGNED ) + - 35 * - - 4 AS col0 FROM tab1 cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-797
SELECT + col0 AS col0, - col0 + + CAST ( NULL AS INTEGER ) + - 35 * - - 4 AS col0 FROM tab1 cor0
----
51
NULL
85
NULL
91
NULL

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

skipif mysql # not compatible
query II rowsort label-798
SELECT + COUNT ( * ), - 12 AS col2 FROM tab2 AS cor0
----
3
-12

query II rowsort
SELECT + - col1 AS col1, 4 AS col2 FROM tab1 AS cor0
----
-14
4
-47
4
-5
4

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

query II rowsort
SELECT DISTINCT - 4 AS col1, - 90 + + 47 * + 83 FROM tab2 AS cor0
----
-4
3811

query I rowsort
SELECT ALL + 39 AS col0 FROM tab1 cor0
----
39
39
39

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + 18 col0 FROM tab1 WHERE NOT - + 29 > - col1 * + - col2 + + - col0
----
-1530
-1638
-918

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 20 + - col2 BETWEEN NULL AND + 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT + COUNT( ALL - col0 ) FROM tab2 WHERE NOT + col0 + + 77 BETWEEN NULL AND + 55
----
3

skipif mysql # not compatible
query I rowsort label-807
SELECT + COUNT ( ALL - col0 ) FROM tab2 WHERE NOT + col0 + + 77 BETWEEN NULL AND + 55
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT 75 * 88 * + COUNT( ALL + - col1 ) FROM tab1
----
19800

skipif mysql # not compatible
query I rowsort label-810
SELECT 75 * 88 * + COUNT ( ALL + - col1 ) FROM tab1
----
19800

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT SUM( ALL - ( + 74 ) ) FROM tab1
----
-222

skipif mysql # not compatible
query I rowsort label-811
SELECT SUM ( ALL - ( + 74 ) ) FROM tab1
----
-222

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-813
SELECT - 7 DIV + - col0 * - 96 * + - col1 - col1 * - - 1 FROM tab0 WHERE NOT ( - + col1 ) IS NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-813
SELECT - 7 / + - col0 * - 96 * + - col1 - col1 * - - 1 FROM tab0 WHERE NOT ( - + col1 ) IS NULL
----
-1
-21
-81

query I rowsort
SELECT 16 * + col2 AS col1 FROM tab1
----
1088
1536
944

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT - + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( ( col1 ) * + col2 * + 82 IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-815
SELECT - + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( ( col1 ) * + col2 * + 82 IS NULL )
----
-3

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

skipif mysql # not compatible
query I rowsort label-816
SELECT DISTINCT - MAX ( DISTINCT col2 ) AS col2 FROM tab0 cor0 WHERE + col1 IS NULL
----
NULL

query II rowsort
SELECT DISTINCT - col0 AS col0, - 68 FROM tab2
----
-46
-68
-64
-68
-75
-68

query I rowsort
SELECT DISTINCT + 72 + - 5 + - col1 * - col1 AS col2 FROM tab2
----
2668
4556
5996

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

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

skipif mysql # not compatible
query I rowsort label-820
SELECT DISTINCT 10 + COUNT ( * ) FROM tab2
----
13

query I rowsort
SELECT ALL + 78 + - - col1 FROM tab1
----
125
83
92

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT DISTINCT + COUNT( * ) + 14 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-822
SELECT DISTINCT + COUNT ( * ) + 14 FROM tab0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-823
SELECT ALL 25 * ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-823
SELECT ALL 25 * ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + 21 * + col1 AS col1 FROM tab0
----
118
1716
528

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

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT COUNT( * ) * + 84 + MAX( + col0 ) AS col2 FROM tab1
----
343

skipif mysql # not compatible
query I rowsort label-826
SELECT COUNT ( * ) * + 84 + MAX ( + col0 ) AS col2 FROM tab1
----
343

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

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT ALL + SUM( ALL + 12 ) + + 97 FROM tab0
----
133

skipif mysql # not compatible
query I rowsort label-828
SELECT ALL + SUM ( ALL + 12 ) + + 97 FROM tab0
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-829
SELECT DISTINCT MIN( 74 ) DIV - COUNT( * ) + COUNT( * ) * - 21 AS col1 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-829
SELECT DISTINCT MIN ( 74 ) / - COUNT ( * ) + COUNT ( * ) * - 21 AS col1 FROM tab0
----
-87

query III rowsort
SELECT * FROM tab1 WHERE + 38 IS NULL
----

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-834
SELECT ( + col0 ) DIV ( col1 ) FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-834
SELECT ( + col0 ) / ( col1 ) FROM tab1
----
1
17
3

query I rowsort
SELECT DISTINCT + col1 * - - 26 FROM tab2
----
1326
1742
2002

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT ALL - SUM( - 27 ) FROM tab2 cor0
----
81

skipif mysql # not compatible
query I rowsort label-836
SELECT ALL - SUM ( - 27 ) FROM tab2 cor0
----
81

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

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

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

query I rowsort
SELECT ALL col0 - + + col0 FROM tab1 AS cor0 WHERE + col2 = NULL
----

query I rowsort
SELECT - ( + + 88 ) * - + col2 AS col0 FROM tab1
----
5192
5984
8448

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 NOT BETWEEN NULL AND - 16 * - 16
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, + 25 col1 FROM tab1
----
59
25
68
25
96
25

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

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

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

query II rowsort
SELECT - col1, 30 AS col1 FROM tab2 AS cor0
----
-51
30
-67
30
-77
30

query I rowsort
SELECT DISTINCT - 62 + + - col2 * - + col2 * + - 89 AS col1 FROM tab0
----
-196663
-872351
-8962

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + ( + col0 ) col0 FROM tab0 AS cor0
----
108
96
98

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

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

query I rowsort
SELECT DISTINCT 74 - ( - 17 ) FROM tab0 AS cor0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-851
SELECT ALL - SUM( 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-851
SELECT ALL - SUM ( CAST ( NULL AS INTEGER ) ) col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + 64 * - col0 * - ( - + 58 ) * + col1 + + col2 FROM tab1 AS cor0
----
-1577541
-15876156
-2650272

query I rowsort
SELECT - col0 * + - col1 + + col2 * + - col1 FROM tab0 AS cor0
----
-2
-2592
1617

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT - COUNT( * ) AS col2 FROM tab1 cor0 WHERE + 90 * + + 25 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-854
SELECT - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE + 90 * + + 25 IS NULL
----
0

query I rowsort
SELECT DISTINCT 94 * + col2 * col0 + + - col0 AS col0 FROM tab0 cor0
----
66255
81693
902585

query I rowsort
SELECT 89 * + + col1 AS col0 FROM tab0
----
1869
7209
89

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT DISTINCT - COUNT( * ) * - 85 AS col0 FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-857
SELECT DISTINCT - COUNT ( * ) * - 85 AS col0 FROM tab0
----
255

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + + col2 > - - 49 + + 8
----
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-859
SELECT ALL col0 * - col0 + 23 DIV - col0 col2 FROM tab0
----
-226
-7569
-9409

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-859
SELECT ALL col0 * - col0 + 23 / - col0 col2 FROM tab0
----
-226
-7569
-9409

query II rowsort
SELECT - ( - + 86 ) + + col1, - col1 AS col0 FROM tab0 AS cor0
----
107
-21
167
-81
87
-1

query I rowsort
SELECT DISTINCT col2 * - + 21 FROM tab1 cor0
----
-1239
-1428
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT ALL COUNT( * ) * - 18 AS col2 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-862
SELECT ALL COUNT ( * ) * - 18 AS col2 FROM tab1
----
-54

query I rowsort
SELECT DISTINCT 23 * col2 FROM tab2 cor0 WHERE NULL IS NULL
----
1334
529
920

onlyif mysql # aggregate syntax: 
query I rowsort label-864
SELECT ALL 95 * - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-864
SELECT ALL 95 * - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-285

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-865
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * - CAST( NULL AS SIGNED ) + + - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-865
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * - CAST ( NULL AS INTEGER ) + + - col2 IS NOT NULL
----

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

query II rowsort
SELECT DISTINCT - 93 + + 76, col0 FROM tab1 AS cor0 WHERE ( - col1 ) NOT BETWEEN - 62 AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-868
SELECT ALL - col2 DIV 13 FROM tab1 AS cor0
----
-4
-5
-7

skipif mysql # not compatible
query I rowsort label-868
SELECT ALL - col2 / 13 FROM tab1 AS cor0
----
-4
-5
-7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT DISTINCT - - 56 * + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - col2 <> - - 12 * col0
----
168

skipif mysql # not compatible
query I rowsort label-870
SELECT DISTINCT - - 56 * + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - col2 <> - - 12 * col0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT DISTINCT MAX( DISTINCT - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-871
SELECT DISTINCT MAX ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-873
SELECT ALL 12 DIV + 95 * ( - col0 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL 12 / + 95 * ( - col0 ) FROM tab1
----
0
0
0

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

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

query I rowsort
SELECT ALL - col0 * - - col0 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT col1 + + - col2 - + 2 AS col1 FROM tab2
----
26
35
7

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

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

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

skipif mysql # not compatible
query I rowsort label-878
SELECT + 41 + - - MAX ( + + CAST ( - col1 AS INTEGER ) ) FROM tab2 AS cor0
----
-10

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 <= + ( - col0 ) * - 12 * col1 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> col1 + + + 3
----

query I rowsort
SELECT ALL + 28 + - + 33 * + col1 FROM tab2 WHERE NULL < NULL
----

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-884
SELECT + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE ( - col2 ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-885
SELECT DISTINCT - CAST( - 35 AS SIGNED ) AS col0 FROM tab0 cor0
----
35

skipif mysql # not compatible
query I rowsort label-885
SELECT DISTINCT - CAST ( - 35 AS INTEGER ) AS col0 FROM tab0 cor0
----
35

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col1 BETWEEN - col0 AND NULL )
----
15
81
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + col2 * + 85, - 68 * 7, + col0 + 66, col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 + col1 col1 FROM tab2 AS cor0
----
138
154
164

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

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT COUNT( * ) + 57 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-890
SELECT COUNT ( * ) + 57 FROM tab0
----
60

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

skipif mysql # not compatible
query I rowsort label-891
SELECT 66 + + COUNT ( * ) FROM tab2
----
69

query I rowsort
SELECT ALL 21 * + 12 * - + ( + col1 ) + + - col1 * col2 FROM tab1
----
-15040
-1555
-4872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 90 * - col2 col2 FROM tab0
----
-4230
-8910
-900

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

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

query I rowsort
SELECT ALL - - 31 * col1 FROM tab1 cor0
----
1457
155
434

query I rowsort
SELECT + col0 * - + 49 FROM tab1 AS cor0
----
-2499
-4165
-4459

query I rowsort
SELECT DISTINCT + 7 * col0 FROM tab0 cor0 WHERE NOT 21 <= 32
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-899
SELECT - + 69 + 91 DIV COUNT( * ) AS col1 FROM tab2 cor0
----
-39

skipif mysql # not compatible
query I rowsort label-899
SELECT - + 69 + 91 / COUNT ( * ) AS col1 FROM tab2 cor0
----
-39

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

query I rowsort
SELECT DISTINCT - 66 + - col2 FROM tab0
----
-113
-165
-76

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

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

query I rowsort
SELECT DISTINCT col1 + + 87 AS col1 FROM tab1
----
101
134
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * - 57 + + 22 * + - col2 col1, + ( col2 ) FROM tab2
----
-3413
23
-5095
58
-5269
40

query III rowsort
SELECT * FROM tab1 WHERE - + col0 * - - col0 * + 3 * + ( + col1 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT DISTINCT - + MAX( DISTINCT + col2 ) + 74 FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-907
SELECT DISTINCT - + MAX ( DISTINCT + col2 ) + 74 FROM tab2 AS cor0
----
16

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-909
SELECT ALL + CAST( + - CAST( 13 AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-909
SELECT ALL + CAST ( + - CAST ( 13 AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
-13
-13
-13

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

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

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

query I rowsort
SELECT 31 + 92 AS col2 FROM tab0
----
123
123
123

query I rowsort
SELECT ALL - - 91 - - col0 AS col2 FROM tab0 AS cor0
----
106
178
188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-914
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL > 90 * + CAST( - 74 AS SIGNED ) * - 64 - - 16
----

skipif mysql # not compatible
query III rowsort label-914
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL > 90 * + CAST ( - 74 AS INTEGER ) * - 64 - - 16
----

query I rowsort
SELECT ALL 65 + + - 35 FROM tab0 AS cor0
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT ALL MIN( + col1 ) + ( - 11 ) col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-916
SELECT ALL MIN ( + col1 ) + ( - 11 ) col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
40

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

skipif mysql # not compatible
query I rowsort label-917
SELECT MAX ( ALL + 20 ) FROM tab2 AS cor0
----
20

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

skipif mysql # not compatible
query III rowsort label-918
SELECT * FROM tab0 AS cor0 WHERE ( col2 * col0 ) BETWEEN - col2 * CAST ( NULL AS INTEGER ) + col1 AND + + col0
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT + col2 col0, - col0 * 65 * + col1, + 60 col1 FROM tab2
----
9 values hashing to 809830e22e185f2a86612fb158521a6e

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

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT DISTINCT MIN( ALL - + 76 ) FROM tab1
----
-76

skipif mysql # not compatible
query I rowsort label-923
SELECT DISTINCT MIN ( ALL - + 76 ) FROM tab1
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-924
SELECT DISTINCT - COUNT( * ) AS col2, SUM( - 64 ) FROM tab0
----
-3
-192

skipif mysql # not compatible
query II rowsort label-924
SELECT DISTINCT - COUNT ( * ) AS col2, SUM ( - 64 ) FROM tab0
----
-3
-192

query I rowsort
SELECT ( 31 ) FROM tab2
----
31
31
31

query I rowsort
SELECT DISTINCT col0 * - + col0 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT + AVG ( ALL + 35 ) AS col1 FROM tab1 WHERE + col0 = NULL
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-929
SELECT ALL - 83 AS col1, COUNT( * ) + - + MIN( + col0 ) AS col1 FROM tab1 cor0 WHERE NULL IS NULL
----
-83
-48

skipif mysql # not compatible
query II rowsort label-929
SELECT ALL - 83 AS col1, COUNT ( * ) + - + MIN ( + col0 ) AS col1 FROM tab1 cor0 WHERE NULL IS NULL
----
-83
-48

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

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

query I rowsort
SELECT + col1 * + + 31 * + col0 FROM tab0 AS cor0
----
3007
37665
56637

query I rowsort
SELECT col1 * + - 83 + - 28 FROM tab0 AS cor0
----
-111
-1771
-6751

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT COUNT( + 28 ) * 52 AS col0 FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-934
SELECT COUNT ( + 28 ) * 52 AS col0 FROM tab1 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT ALL MIN( 55 ) FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-935
SELECT ALL MIN ( 55 ) FROM tab1 AS cor0
----
55

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT DISTINCT ( - - COUNT( * ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-939
SELECT DISTINCT ( - - COUNT ( * ) ) FROM tab0 cor0
----
3

query I rowsort
SELECT ALL - col2 + - col2 * + ( col2 ) * + - col0 + - col2 * - col0 AS col0 FROM tab2 AS cor0 WHERE NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT ALL SUM( col0 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-941
SELECT ALL SUM ( col0 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 23 + - + 14 * 13 AS col1 FROM tab0
----
-159
-159
-159

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-943
SELECT - col2 + col1 - + - CAST( NULL AS SIGNED ), col2 AS col2, - 0 AS col2 FROM tab1
----
9 values hashing to c5b2f0ae6d62ed93701c0d12ba1e0b84

skipif mysql # not compatible
query III rowsort label-943
SELECT - col2 + col1 - + - CAST ( NULL AS INTEGER ), col2 AS col2, - 0 AS col2 FROM tab1
----
9 values hashing to c5b2f0ae6d62ed93701c0d12ba1e0b84

query I rowsort
SELECT col2 + + col0 + 31 * col1 AS col1 FROM tab2
----
1650
2210
2491

query I rowsort
SELECT + 53 + + col2 AS col2 FROM tab2
----
111
76
93

query I rowsort
SELECT 43 * 81 * 56 + - - col0 FROM tab0
----
195063
195135
195145

query I rowsort
SELECT DISTINCT 36 * + - 55 + + + ( - - col0 ) + + col1 AS col0 FROM tab2
----
-1838
-1839
-1883

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

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

query I rowsort
SELECT ALL 59 + - + col0 FROM tab1
----
-26
-32
8

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 91 * - 1 * + col0 < col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + col0 * - + 97 FROM tab1 cor0
----
-4947
-8245
-8827

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT DISTINCT - ( + + SUM( + ( - 47 ) ) ) * - 72 AS col2 FROM tab0 AS cor0
----
-10152

skipif mysql # not compatible
query I rowsort label-952
SELECT DISTINCT - ( + + SUM ( + ( - 47 ) ) ) * - 72 AS col2 FROM tab0 AS cor0
----
-10152

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

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

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

query I rowsort
SELECT ALL col1 - - 70 FROM tab0 AS cor0
----
151
71
91

query II rowsort
SELECT DISTINCT - - col2 * col0 AS col0, col2 * 81 AS col1 FROM tab2 AS cor0
----
1058
1863
2560
3240
4350
4698

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL >= col2 / col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-958
SELECT col2 col1, 54 DIV + col1 AS col2 FROM tab0
----
10
2
47
0
99
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-958
SELECT col2 col1, 54 / + col1 AS col2 FROM tab0
----
10
2
47
0
99
54

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

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

skipif mysql # not compatible
query III rowsort label-960
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT col0 > + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-961
SELECT + 86 FROM tab1 AS cor0 WHERE NOT + ( - col2 ) * + + CAST( 24 AS SIGNED ) IS NULL
----
86
86
86

skipif mysql # not compatible
query I rowsort label-961
SELECT + 86 FROM tab1 AS cor0 WHERE NOT + ( - col2 ) * + + CAST ( 24 AS INTEGER ) IS NULL
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT ALL + 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-962
SELECT ALL + MAX ( DISTINCT + col2 ) col1 FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL + 59 * + - 15 FROM tab2 AS cor0
----
-885
-885
-885

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-967
SELECT 98 DIV - + 63 - + CAST( + + col2 AS SIGNED ) + + col2 * - 37 AS col2 FROM tab1 AS cor0
----
-2243
-2585
-3649

skipif mysql # not compatible
query I rowsort label-967
SELECT 98 / - + 63 - + CAST ( + + col2 AS INTEGER ) + + col2 * - 37 AS col2 FROM tab1 AS cor0
----
-2243
-2585
-3649

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

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

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

query I rowsort
SELECT col0 + col0 * + col2 * + - col1 AS col2 FROM tab2 cor0
----
-197056
-291375
-53912

query I rowsort
SELECT + col0 * col1 * - + col1 + 16 - - 39 * 71 + - col1 AS col1 FROM tab2 cor0
----
-116912
-333957
-376748

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT DISTINCT + COUNT( * ) * + 13 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-972
SELECT DISTINCT + COUNT ( * ) * + 13 FROM tab0
----
39

query I rowsort
SELECT ALL 82 * + - ( + col2 ) FROM tab2
----
-1886
-3280
-4756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 18 ) col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT DISTINCT + COUNT( * ) * + 25 FROM tab0 WHERE NULL BETWEEN + col0 * + + col2 * col0 * - col0 * + - col2 AND ( + 32 )
----
0

skipif mysql # not compatible
query I rowsort label-975
SELECT DISTINCT + COUNT ( * ) * + 25 FROM tab0 WHERE NULL BETWEEN + col0 * + + col2 * col0 * - col0 * + - col2 AND ( + 32 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-976
SELECT ALL + 62 - - - 4 * - 13 * SUM( ALL 19 ) AS col1, COUNT( * ) FROM tab2
----
3026
3

skipif mysql # not compatible
query II rowsort label-976
SELECT ALL + 62 - - - 4 * - 13 * SUM ( ALL 19 ) AS col1, COUNT ( * ) FROM tab2
----
3026
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 35 + - col2 * col2 col1 FROM tab1 AS cor0
----
-3516
-4659
-9251

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-979
SELECT DISTINCT COUNT( * ) + + + SUM( - CAST( col2 AS SIGNED ) ) FROM tab1 AS cor0
----
-220

skipif mysql # not compatible
query I rowsort label-979
SELECT DISTINCT COUNT ( * ) + + + SUM ( - CAST ( col2 AS INTEGER ) ) FROM tab1 AS cor0
----
-220

query II rowsort
SELECT DISTINCT col2 * - col2 AS col0, col2 AS col1 FROM tab1 AS cor0
----
-3481
59
-4624
68
-9216
96

query I rowsort
SELECT ( - col1 ) + + 98 * + col2 AS col0 FROM tab2 AS cor0
----
2203
3843
5617

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - - col0 * - col2 + + 79 AND 87
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-983
SELECT - ( - CAST( NULL AS SIGNED ) ) / COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-983
SELECT - ( - CAST ( NULL AS INTEGER ) ) / COUNT ( * ) FROM tab2
----
NULL

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

query II rowsort
SELECT + col1 AS col2, - col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

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

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

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

query I rowsort
SELECT ALL + col2 * col1 + + col2 + + - col2 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT DISTINCT - col2 * + 94 * + - col1 AS col1 FROM tab0 AS cor0
----
19740
357858
9306

onlyif mysql # DIV for integer division: 
query I rowsort label-990
SELECT ALL col0 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-990
SELECT ALL col0 / col2 col0 FROM tab2 AS cor0
----
1
1
2

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

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

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

query I rowsort
SELECT + 26 * + - col2 FROM tab1
----
-1534
-1768
-2496

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( + col0 ) + - - col1 BETWEEN 74 * + 0 AND + + 43
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

query I rowsort
SELECT col1 + + - col0 * - - col1 * + - col1 AS col0 FROM tab1 AS cor0
----
10010
201066
2130

query I rowsort
SELECT ALL + - 70 * + + ( col2 ) AS col1 FROM tab1 cor0
----
-4130
-4760
-6720

query III rowsort
SELECT * FROM tab0 WHERE NOT + 28 IS NOT NULL
----

query I rowsort
SELECT + 48 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT + col2 * + 36 AS col1 FROM tab0
----
1692
3564
360

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

query I rowsort
SELECT - col2 * - 3 + - col2 * + + 67 AS col1 FROM tab1 AS cor0
----
-3776
-4352
-6144

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

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

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

query I rowsort
SELECT ALL + col0 * + 2 AS col2 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT DISTINCT + col2 * + ( - + col0 ) + + - 21 FROM tab0
----
-726
-891
-9624

onlyif mysql # DIV for integer division: 
query I rowsort label-1011
SELECT DISTINCT + 28 + - + col1 DIV - col0 AS col0 FROM tab0
----
28
33

skipif mysql # not compatible
query I rowsort label-1011
SELECT DISTINCT + 28 + - + col1 / - col0 AS col0 FROM tab0
----
28
33

onlyif mysql # DIV for integer division: 
query I rowsort label-1012
SELECT DISTINCT col2 DIV - 78 + col2 + - ( col1 ) col0 FROM tab1
----
21
54
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1012
SELECT DISTINCT col2 / - 78 + col2 + - ( col1 ) col0 FROM tab1
----
21
54
81

query I rowsort
SELECT ALL + 25 * col0 + + + col0 FROM tab0
----
2262
2522
390

query I rowsort
SELECT ALL + col2 * col1 + - col1 * - + col0 * 1 * + + 6 + - ( + 50 ) FROM tab0
----
11047
11122
631

onlyif mysql # DIV for integer division: 
query I rowsort label-1015
SELECT + col2 * col0 + - - col1 + + col1 * col1 DIV 85 + - - col1 col2 FROM tab0 AS cor0
----
917
944
9605

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1015
SELECT + col2 * col0 + - - col1 + + col1 * col1 / 85 + - - col1 col2 FROM tab0 AS cor0
----
917
944
9605

query I rowsort
SELECT - - 24 - - + col2 AS col2 FROM tab2 AS cor0
----
47
64
82

query I rowsort
SELECT ALL ( + - 64 ) FROM tab0
----
-64
-64
-64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1018
SELECT + CAST( - col0 AS SIGNED ) DIV - + col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1018
SELECT + CAST ( - col0 AS INTEGER ) / - + col0 FROM tab1
----
1
1
1

query I rowsort
SELECT - col0 FROM tab2 cor0 WHERE NOT col0 + col1 >= NULL
----

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

skipif mysql # not compatible
query I rowsort label-1020
SELECT MIN ( + 72 ) FROM tab0 AS cor0
----
72

query I rowsort
SELECT DISTINCT + 33 * col1 FROM tab2 AS cor0
----
1683
2211
2541

onlyif mysql # DIV for integer division: 
query I rowsort label-1022
SELECT ALL 83 DIV + 92 * + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1022
SELECT ALL 83 / + 92 * + col0 FROM tab1 AS cor0
----
0
0
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT ( + MIN( 24 ) ) FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-1025
SELECT ( + MIN ( 24 ) ) FROM tab1
----
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT ALL 71 * + COUNT( + - col2 ) AS col1 FROM tab0
----
213

skipif mysql # not compatible
query I rowsort label-1027
SELECT ALL 71 * + COUNT ( + - col2 ) AS col1 FROM tab0
----
213

query I rowsort
SELECT DISTINCT + - 99 AS col0 FROM tab0 WHERE NOT NULL <= col2
----

query I rowsort
SELECT DISTINCT 98 * col1 AS col0 FROM tab2
----
4998
6566
7546

onlyif mysql # aggregate syntax: 
query II rowsort label-1030
SELECT + 94 AS col0, + COUNT( ALL - 71 ) * COUNT( * ) + - 2 AS col1 FROM tab0 AS cor0
----
94
7

skipif mysql # not compatible
query II rowsort label-1030
SELECT + 94 AS col0, + COUNT ( ALL - 71 ) * COUNT ( * ) + - 2 AS col1 FROM tab0 AS cor0
----
94
7

query I rowsort
SELECT ALL + 38 * - col1 * - - col2 FROM tab1 AS cor0
----
-11210
-121448
-51072

onlyif mysql # DIV for integer division: 
query I rowsort label-1032
SELECT ALL - 58 DIV + - 40 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1032
SELECT ALL - 58 / + - 40 FROM tab2 AS cor0
----
1
1
1

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1035
SELECT - col1 DIV + - 48 + col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1035
SELECT - col1 / + - 48 + col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE 74 * col2 * + 25 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 1 < ( col2 * + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <> - col0 / 39
----

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

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) <= + 3 * + 0
----

query I rowsort
SELECT + ( - col0 ) * col0 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1042
SELECT ALL - 93 + COUNT( * ) DIV - 27 AS col2 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-1042
SELECT ALL - 93 + COUNT ( * ) / - 27 AS col2 FROM tab2
----
-93

query I rowsort
SELECT ALL 62 FROM tab1 WHERE ( + col0 ) BETWEEN ( - col0 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1044
SELECT + 35 FROM tab0 WHERE ( + col0 ) IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1044
SELECT + 35 FROM tab0 WHERE ( + col0 ) IN ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 IN ( 84 )
----

query I rowsort
SELECT ALL col1 * col2 + + ( col2 ) FROM tab1
----
1440
3264
354

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT MIN( col1 ) FROM tab2 WHERE NOT - 26 * col0 + - col0 * + 74 IS NULL
----
51

skipif mysql # not compatible
query I rowsort label-1047
SELECT MIN ( col1 ) FROM tab2 WHERE NOT - 26 * col0 + - col0 * + 74 IS NULL
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1048
SELECT ALL * FROM tab2 WHERE ( + CAST( NULL AS DECIMAL ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1048
SELECT ALL * FROM tab2 WHERE ( + CAST ( NULL AS REAL ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 37 + ( - col2 ) FROM tab2
----
-21
-3
14

query I rowsort
SELECT + 82 * - 67 + 95 FROM tab0
----
-5399
-5399
-5399

query I rowsort
SELECT 55 * + col1 AS col2 FROM tab0
----
1155
4455
55

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - 62 * - ( - 39 ) AND NULL
----

query I rowsort
SELECT 62 FROM tab0 WHERE NOT - 4 * + col2 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1054
SELECT DISTINCT + CAST( MIN( ( col1 ) ) AS SIGNED ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT + CAST ( MIN ( ( col1 ) ) AS INTEGER ) AS col2 FROM tab0
----
1

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

query I rowsort
SELECT + 17 + - 34 FROM tab0
----
-17
-17
-17

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = ( col0 )
----

query I rowsort
SELECT DISTINCT - col1 * ( 74 ) AS col0 FROM tab0
----
-1554
-5994
-74

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 71 ) BETWEEN 91 AND ( - col2 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT ( + MAX( ALL ( + col0 ) ) ) - - 76 AS col1 FROM tab0
----
173

skipif mysql # not compatible
query I rowsort label-1061
SELECT ( + MAX ( ALL ( + col0 ) ) ) - - 76 AS col1 FROM tab0
----
173

query I rowsort
SELECT ALL - 77 * 57 FROM tab2
----
-4389
-4389
-4389

query I rowsort
SELECT DISTINCT + 93 - - 98 AS col0 FROM tab1
----
191

query I rowsort
SELECT - col1 - + 33 FROM tab2
----
-100
-110
-84

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1066
SELECT DISTINCT + 17 - - 50 DIV - MAX( - col1 + - col2 ) AS col2 FROM tab0 cor0
----
18

skipif mysql # not compatible
query I rowsort label-1066
SELECT DISTINCT + 17 - - 50 / - MAX ( - col1 + - col2 ) AS col2 FROM tab0 cor0
----
18

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - 84 ) >= + 99 + + col1 * - col1
----
51
14
96
91
47
68

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL IN ( ( + 27 ) / - col2 )
----

query I rowsort
SELECT + 64 * col0 FROM tab1 AS cor0
----
3264
5440
5824

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT DISTINCT - MIN( col0 ) * 73 FROM tab1 AS cor0
----
-3723

skipif mysql # not compatible
query I rowsort label-1075
SELECT DISTINCT - MIN ( col0 ) * 73 FROM tab1 AS cor0
----
-3723

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

skipif mysql # not compatible
query I rowsort label-1076
SELECT ALL + - SUM ( ALL col2 ) / 55 FROM tab0 cor0
----
-2

query I rowsort
SELECT DISTINCT - col1 / col2 + ( - col0 ) FROM tab2 AS cor0 WHERE - col2 + + col1 IS NULL
----

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

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

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

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

query I rowsort
SELECT ALL - ( - - 34 ) AS col2 FROM tab1
----
-34
-34
-34

query I rowsort
SELECT ALL + col1 * 23 AS col2 FROM tab2 WHERE NOT ( + 87 ) <= NULL
----

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

skipif mysql # not compatible
query I rowsort label-1084
SELECT ALL - 18 * - CAST ( NULL AS INTEGER ) * + 33 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * 26 AS col2 FROM tab2
----
1040
1508
598

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT + COUNT( DISTINCT + 56 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1086
SELECT + COUNT ( DISTINCT + 56 ) AS col0 FROM tab0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT COUNT( * ) * - 77 col2 FROM tab1
----
-231

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1090
SELECT DISTINCT CAST( NULL AS SIGNED ) * MAX( - 95 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1090
SELECT DISTINCT CAST ( NULL AS INTEGER ) * MAX ( - 95 ) AS col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1091
SELECT ALL + 91 DIV 57 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL + 91 / 57 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT col2 * - col1 * 32 AS col2 FROM tab1
----
-102272
-43008
-9440

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

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

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT col0 * - 3 >= col0
----
51
67
77

query I rowsort
SELECT col0 * - col0 + 92 + + col0 AS col1 FROM tab1 AS cor0
----
-2458
-7048
-8098

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1098
SELECT ALL + 14 * + CAST( + 18 AS SIGNED ) + MIN( DISTINCT - 33 ) FROM tab2 cor0
----
219

skipif mysql # not compatible
query I rowsort label-1098
SELECT ALL + 14 * + CAST ( + 18 AS INTEGER ) + MIN ( DISTINCT - 33 ) FROM tab2 cor0
----
219

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1099
SELECT ALL - 14 FROM tab1 WHERE + CAST( NULL AS DECIMAL ) IN ( + ( + 42 ) + + col1 )
----

skipif mysql # not compatible
query I rowsort label-1099
SELECT ALL - 14 FROM tab1 WHERE + CAST ( NULL AS REAL ) IN ( + ( + 42 ) + + col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT SUM( 69 ) AS col2 FROM tab0 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-1101
SELECT SUM ( 69 ) AS col2 FROM tab0 AS cor0
----
207

query I rowsort
SELECT col2 - - + 40 - - - 83 AS col0 FROM tab1 AS cor0
----
16
25
53

query I rowsort
SELECT ALL - col1 - - 58 + + col2 AS col1 FROM tab0 AS cor0
----
156
24
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT ALL + SUM( DISTINCT + 37 ) FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-1104
SELECT ALL + SUM ( DISTINCT + 37 ) FROM tab1 AS cor0
----
37

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

query I rowsort
SELECT col0 + - ( col1 ) AS col2 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT DISTINCT - 68 * + - col1 FROM tab0 AS cor0
----
1428
5508
68

onlyif mysql # DIV for integer division: 
query I rowsort label-1108
SELECT col2 DIV + col1 + 73 FROM tab0 AS cor0
----
172
73
73

skipif mysql # not compatible
query I rowsort label-1108
SELECT col2 / + col1 + 73 FROM tab0 AS cor0
----
172
73
73

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

query I rowsort
SELECT 18 * - + 81 + 11 + + col2 FROM tab0
----
-1348
-1400
-1437

query II rowsort
SELECT ALL ( + col0 ), col0 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1112
SELECT col1 + 91 - - col0 DIV + + ( col1 ) + col1 AS col0 FROM tab0
----
137
190
253

skipif mysql # not compatible
query I rowsort label-1112
SELECT col1 + 91 - - col0 / + + ( col1 ) + col1 AS col0 FROM tab0
----
137
190
253

query I rowsort
SELECT col2 + - 77 AS col2 FROM tab1
----
-18
-9
19

query III rowsort
SELECT * FROM tab2 WHERE col0 BETWEEN - col0 AND + col1
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1115
SELECT ALL + col0 * - 48 * + col1 + + CAST( + col2 AS SIGNED ) FROM tab1
----
-20341
-205228
-34176

skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL + col0 * - 48 * + col1 + + CAST ( + col2 AS INTEGER ) FROM tab1
----
-20341
-205228
-34176

onlyif mysql # DIV for integer division: 
query I rowsort label-1116
SELECT - 94 * col0 DIV col2 + col2 AS col2 FROM tab2
----
-110
-165
-63

skipif mysql # not compatible
query I rowsort label-1116
SELECT - 94 * col0 / col2 + col2 AS col2 FROM tab2
----
-110
-165
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-1117
SELECT DISTINCT col1 * + - 11 + + + 70 + - col1 DIV col2 AS col1 FROM tab1
----
-447
-84
15

skipif mysql # not compatible
query I rowsort label-1117
SELECT DISTINCT col1 * + - 11 + + + 70 + - col1 / col2 AS col1 FROM tab1
----
-447
-84
15

query I rowsort
SELECT DISTINCT - col0 + col1 * col1 AS col2 FROM tab0 WHERE NULL = + col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT ALL COUNT( * ) * + 89 AS col2 FROM tab0 WHERE + col2 + - + col1 NOT IN ( - 49 )
----
267

skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL COUNT ( * ) * + 89 AS col2 FROM tab0 WHERE + col2 + - + col1 NOT IN ( - 49 )
----
267

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

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

query I rowsort
SELECT ALL + 32 AS col0 FROM tab2 WHERE col1 < - - col0 + - col0
----

query I rowsort
SELECT ALL col0 * + - 86 + + + col2 + - col1 + + col2 AS col2 FROM tab2
----
-3961
-5501
-6401

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT ( MAX( - 33 ) ) FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-1124
SELECT ( MAX ( - 33 ) ) FROM tab2 AS cor0
----
-33

query I rowsort
SELECT ALL + col2 * - col0 * 84 AS col1 FROM tab0 AS cor0 WHERE NULL > NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1127
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 * - 52 + + CAST( NULL AS SIGNED ) - - 68 )
----

skipif mysql # not compatible
query I rowsort label-1127
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 * - 52 + + CAST ( NULL AS INTEGER ) - - 68 )
----

query I rowsort
SELECT + col0 * - + col2 * - col0 FROM tab0 AS cor0
----
10575
75690
931491

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

query I rowsort
SELECT + 79 * - 2 FROM tab2 AS cor0
----
-158
-158
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT + MAX( - + col1 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1131
SELECT + MAX ( - + col1 ) AS col1 FROM tab0
----
-1

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

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

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT + ( 66 ) IS NULL
----
-51
-85
-91

query I rowsort
SELECT - - 67 FROM tab2 cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT DISTINCT + + MIN( - + col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1135
SELECT DISTINCT + + MIN ( - + col1 ) AS col0 FROM tab0 AS cor0
----
-81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT MIN( ( - 52 ) ) FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-1137
SELECT MIN ( ( - 52 ) ) FROM tab0
----
-52

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1139
SELECT DISTINCT col2 * + col1 * - CAST( - 75 AS SIGNED ) * - - col2 FROM tab0
----
13419675
157500
735075

skipif mysql # not compatible
query I rowsort label-1139
SELECT DISTINCT col2 * + col1 * - CAST ( - 75 AS INTEGER ) * - - col2 FROM tab0
----
13419675
157500
735075

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + col1 col2 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1141
SELECT - 68 * col1 AS col0 FROM tab0 WHERE NOT 92 + - + col0 + + + 80 IN ( + + 40 - + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-1141
SELECT - 68 * col1 AS col0 FROM tab0 WHERE NOT 92 + - + col0 + + + 80 IN ( + + 40 - + CAST ( NULL AS REAL ) )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1143
SELECT - 28 * 44 AS col1 FROM tab1 WHERE ( NOT NULL IN ( + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-1143
SELECT - 28 * 44 AS col1 FROM tab1 WHERE ( NOT NULL IN ( + CAST ( NULL AS INTEGER ) ) )
----

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

skipif mysql # not compatible
query II rowsort label-1144
SELECT ALL 9 AS col0, + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9
3

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

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

query II rowsort
SELECT + col1, + col2 * col1 + col1 + - - col2 FROM tab2 AS cor0
----
51
1247
67
4011
77
3197

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

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

query I rowsort
SELECT ALL ( + - col1 ) * col0 FROM tab2
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab2 WHERE - 93 - + - 65 IS NULL
----

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

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

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

query I rowsort
SELECT col1 * - + 43 - + col0 AS col1 FROM tab1 AS cor0
----
-2112
-300
-653

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 7 ) NOT BETWEEN + 47 AND + 12 * - col2 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1155
SELECT ALL col1 * - CAST( - + 40 AS SIGNED ) * - - 62 - - - 17 AS col0 FROM tab2 AS cor0
----
126463
166143
190943

skipif mysql # not compatible
query I rowsort label-1155
SELECT ALL col1 * - CAST ( - + 40 AS INTEGER ) * - - 62 - - - 17 AS col0 FROM tab2 AS cor0
----
126463
166143
190943

query I rowsort
SELECT DISTINCT - + col2 * - + col2 + + col0 FROM tab2 AS cor0
----
1664
3439
575

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT DISTINCT + 31 * - MIN( ALL + col0 ) + + - COUNT( * ) AS col2 FROM tab0
----
-468

skipif mysql # not compatible
query I rowsort label-1159
SELECT DISTINCT + 31 * - MIN ( ALL + col0 ) + + - COUNT ( * ) AS col2 FROM tab0
----
-468

query II rowsort
SELECT DISTINCT - col0, - 46 AS col0 FROM tab0
----
-15
-46
-87
-46
-97
-46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1161
SELECT * FROM tab1 WHERE ( - col0 + ( - col0 ) ) >= + col1 + - ( 48 ) / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1161
SELECT * FROM tab1 WHERE ( - col0 + ( - col0 ) ) >= + col1 + - ( 48 ) / CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 31 + - col2 FROM tab2
----
-27
-9
8

query I rowsort
SELECT - 2 - - 52 FROM tab0
----
50
50
50

query I rowsort
SELECT + 8 FROM tab0 WHERE - - 60 IN ( - + 47 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1165
SELECT + col1 DIV + 37 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1165
SELECT + col1 / + 37 AS col2 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1166
SELECT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( 93 * col2 - - col1 * - - 6 )
----

skipif mysql # not compatible
query III rowsort label-1166
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( 93 * col2 - - col1 * - - 6 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT + COUNT( DISTINCT + 98 ) col2 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1167
SELECT + COUNT ( DISTINCT + 98 ) col2 FROM tab1
----
1

query II rowsort
SELECT ALL + col0, 75 * + col1 FROM tab0
----
15
6075
87
1575
97
75

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1169
SELECT + COUNT ( DISTINCT ( - col2 ) ) col0 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) >= + + 98 / + col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 51 * + 54 + - + col2 + - col0 / + col2 <> - - col2 + + col0 * 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT - MAX( ALL col0 ) AS col1 FROM tab0 WHERE NOT NULL <> ( + + col2 + + - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1172
SELECT - MAX ( ALL col0 ) AS col1 FROM tab0 WHERE NOT NULL <> ( + + col2 + + - col2 )
----
NULL

query I rowsort
SELECT col1 * 85 * + col1 FROM tab2
----
221085
381565
503965

query III rowsort
SELECT ALL * FROM tab1 WHERE + 65 / - - 6 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 26 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT col0 * + 94 AS col1 FROM tab1 AS cor0 WHERE NOT - 17 / col2 IS NULL
----
4794
7990
8554

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT + MAX( DISTINCT col0 ) * + 5 FROM tab0 AS cor0
----
485

skipif mysql # not compatible
query I rowsort label-1177
SELECT + MAX ( DISTINCT col0 ) * + 5 FROM tab0 AS cor0
----
485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1178
SELECT ( - col2 ) * - 69 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( 46 + - col0 ) >= ( - col2 * col0 * col1 + - col1 )
----

skipif mysql # not compatible
query I rowsort label-1178
SELECT ( - col2 ) * - 69 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( 46 + - col0 ) >= ( - col2 * col0 * col1 + - col1 )
----

query I rowsort
SELECT - 10 * - col1 + + col2 AS col1 FROM tab1 AS cor0
----
109
236
538

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col2 NOT BETWEEN - col1 AND - col0 * + 41 + + 31
----

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

query I rowsort
SELECT DISTINCT 87 * - - col0 AS col2 FROM tab0
----
1305
7569
8439

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT ALL COUNT( * ) + + COUNT( * ) * - 87 FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-1183
SELECT ALL COUNT ( * ) + + COUNT ( * ) * - 87 FROM tab2
----
-258

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

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

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

query I rowsort
SELECT col2 + - - col2 + - 16 FROM tab1
----
102
120
176

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT ALL - + 83 + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
-83

skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL - + 83 + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - col1 col2 FROM tab1
----
-1344
-295
-3196

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

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

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

query I rowsort
SELECT 52 - + - ( - col2 ) FROM tab0 AS cor0
----
-47
42
5

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1193
SELECT ALL + col1 DIV 14 - + col2 * - 39 * - + 86 - - - ( col1 ) col0 FROM tab0 AS cor0
----
-157714
-332047
-33560

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1193
SELECT ALL + col1 / 14 - + col2 * - 39 * - + 86 - - - ( col1 ) col0 FROM tab0 AS cor0
----
-157714
-332047
-33560

query I rowsort
SELECT - - ( + - ( + - col1 ) ) + 83 FROM tab1 AS cor0
----
130
88
97

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1197
SELECT DISTINCT 79 DIV col1 * + col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1197
SELECT DISTINCT 79 / col1 * + col0 FROM tab2
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 * + col2 col2 FROM tab2
----
1600
2320
920

query I rowsort
SELECT 31 * - + col0 FROM tab0
----
-2697
-3007
-465

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1200
SELECT - 25 DIV COUNT( ALL + 45 ) FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-1200
SELECT - 25 / COUNT ( ALL + 45 ) FROM tab0
----
-8

onlyif mysql # DIV for integer division: 
query II rowsort label-1201
SELECT + ( col1 ), col1 DIV + 89 col2 FROM tab0
----
1
0
21
0
81
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1201
SELECT + ( col1 ), col1 / + 89 col2 FROM tab0
----
1
0
21
0
81
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT + 51 IN ( + col0, 32, - + 15, + col0 + 75 ) )
----

query I rowsort
SELECT DISTINCT + 13 * + - 87 FROM tab0
----
-1131

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

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

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

skipif mysql # not compatible
query I rowsort label-1205
SELECT DISTINCT - COUNT ( col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT - 51 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = + col2
----

query I rowsort
SELECT ALL + 59 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # aggregate syntax: 
query II rowsort label-1208
SELECT ALL + SUM( - + 65 ) * - 16, COUNT( * ) AS col0 FROM tab2 AS cor0
----
3120
3

skipif mysql # not compatible
query II rowsort label-1208
SELECT ALL + SUM ( - + 65 ) * - 16, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3120
3

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1210
SELECT ALL + 60 AS col0, MIN( ALL ( col1 ) ) AS col1 FROM tab0 AS cor0
----
60
1

skipif mysql # not compatible
query II rowsort label-1210
SELECT ALL + 60 AS col0, MIN ( ALL ( col1 ) ) AS col1 FROM tab0 AS cor0
----
60
1

query I rowsort
SELECT + + 20 + col1 AS col2 FROM tab2 AS cor0
----
71
87
97

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1213
SELECT ALL col2, col2 DIV + + col1 FROM tab2 AS cor0
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-1213
SELECT ALL col2, col2 / + + col1 FROM tab2 AS cor0
----
23
0
40
0
58
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1214
SELECT DISTINCT 32 DIV - MIN( ALL + col1 ) col0 FROM tab1
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1214
SELECT DISTINCT 32 / - MIN ( ALL + col1 ) col0 FROM tab1
----
-6

query I rowsort
SELECT col2 * - col1 * + col1 FROM tab2 WHERE NULL IS NULL
----
-237160
-260362
-59823

query I rowsort
SELECT DISTINCT + 69 + + col1 AS col1 FROM tab2
----
120
136
146

query I rowsort
SELECT ALL + + ( - + col0 ) FROM tab1 WHERE NULL > + col0
----

query II rowsort
SELECT DISTINCT 70 + 56 AS col1, - col0 * col1 * - + 19 AS col2 FROM tab1
----
126
13566
126
8075
126
81263

query I rowsort
SELECT + col0 + + + 97 FROM tab1 cor0
----
148
182
188

query IIIIII rowsort
SELECT * FROM tab0, tab0 cor0 WHERE NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + - col0 <= + col0 OR NOT + col2 * - col0 - + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

query I rowsort
SELECT ALL + + col1 * - col2 * - col0 + - - 59 FROM tab0 AS cor0
----
18329
57164
9662

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col0, - col1 * + + 59 col1 FROM tab0
----
15
-4779
87
-1239
97
-59

query I rowsort
SELECT DISTINCT 89 * - col0 * + 26 AS col1 FROM tab0
----
-201318
-224458
-34710

query I rowsort
SELECT 92 * - 64 AS col2 FROM tab1
----
-5888
-5888
-5888

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

query I rowsort
SELECT ALL + 53 * ( col1 ) * - col1 * 39 FROM tab0
----
-13561587
-2067
-911547

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT MIN( col1 ) * - + SUM( ALL + + col2 ) FROM tab2
----
-6171

skipif mysql # not compatible
query I rowsort label-1231
SELECT MIN ( col1 ) * - + SUM ( ALL + + col2 ) FROM tab2
----
-6171

query I rowsort
SELECT ALL 39 * - 77 * + 5 + - col2 AS col2 FROM tab0 AS cor0
----
-15025
-15062
-15114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 2 * - - col0 - + - col1 col2 FROM tab0 AS cor0
----
-153
-193
51

query I rowsort
SELECT DISTINCT + - ( - col0 ) * 24 AS col0 FROM tab1 AS cor0
----
1224
2040
2184

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL >= + - 89 )
----

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 WHERE NOT NULL > - + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1238
SELECT MAX( - - col0 ) * - + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * - - COUNT( * ) AS col0, - 38 AS col0 FROM tab2
----
NULL
-38

skipif mysql # not compatible
query II rowsort label-1238
SELECT MAX ( - - col0 ) * - + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) AS col0, - 38 AS col0 FROM tab2
----
NULL
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-1239
SELECT + + 11 DIV - 91 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1239
SELECT + + 11 / - 91 AS col1 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT - ( + 88 ) AS col1, - col2 AS col0 FROM tab2 AS cor0
----
-88
-23
-88
-40
-88
-58

query I rowsort
SELECT + col0 + - + ( - ( - col2 ) ) * + 87 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-5048
-5825
-8301

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT ALL 0 / - - MIN( - - 54 ) * + - MIN( + col1 ) * - MIN( DISTINCT + col2 ) FROM tab0 AS cor0 WHERE NOT - col2 * col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1244
SELECT ALL 0 / - - MIN ( - - 54 ) * + - MIN ( + col1 ) * - MIN ( DISTINCT + col2 ) FROM tab0 AS cor0 WHERE NOT - col2 * col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT ALL 11 * + COUNT( col1 ) + + + ( - 61 ) FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL 11 * + COUNT ( col1 ) + + + ( - 61 ) FROM tab1
----
-28

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT COUNT( * ) + + 50 AS col2 FROM tab2
----
53

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

query I rowsort
SELECT ALL 20 * - - col1 * col1 + - col1 FROM tab0
----
131139
19
8799

query I rowsort
SELECT ( + + col0 ) * col1 + - col1 FROM tab2
----
2295
4851
4958

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

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

query I rowsort
SELECT ALL - 20 + + - 4 AS col0 FROM tab2
----
-24
-24
-24

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

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

query I rowsort
SELECT ALL col1 - 6 + 35 + col0 AS col2 FROM tab0 AS cor0
----
125
127
137

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

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

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

query I rowsort
SELECT ALL col1 * - + 14 * + col0 AS col2 FROM tab2 WHERE + + 86 / col2 NOT IN ( - + col0 )
----
-32844
-68992
-70350

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1258
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - col1 * - 92 NOT BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-1258
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - col1 * - 92 NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

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

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

query I rowsort
SELECT - + col1 * - - 19 FROM tab2 AS cor0
----
-1273
-1463
-969

query I rowsort
SELECT - col0 * 9 - 29 FROM tab2 AS cor0
----
-443
-605
-704

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 96 < ( + + 78 - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query II rowsort
SELECT - col1, - ( - col0 ) + 53 * + 57 AS col0 FROM tab1
----
-14
3072
-47
3112
-5
3106

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN + col2 - - col1 AND - - 68
----

query I rowsort
SELECT ALL col0 * + 63 FROM tab2
----
2898
4032
4725

query I rowsort
SELECT DISTINCT - col0 * + 50 FROM tab0 AS cor0
----
-4350
-4850
-750

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT - - ( 70 ) * - - SUM( DISTINCT - col2 ) FROM tab2 AS cor0
----
-8470

skipif mysql # not compatible
query I rowsort label-1272
SELECT - - ( 70 ) * - - SUM ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-8470

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

query II rowsort
SELECT + + col1 AS col1, - col0 + - col1 FROM tab2 AS cor0
----
51
-97
67
-142
77
-141

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

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

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

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT NULL >= + + col2
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 85 IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1282
SELECT - MAX( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1282
SELECT - MAX ( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

query I rowsort
SELECT + - col1 * - col0 + - - 93 + - col2 FROM tab2 cor0
----
2416
4981
5060

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE + col1 * - 4 IS NOT NULL
----
1
21
81

query I rowsort
SELECT col2 * - + col0 + - + 81 FROM tab1 AS cor0
----
-4977
-5096
-6269

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

query II rowsort
SELECT ALL + + col1, + 2 FROM tab2 AS cor0
----
51
2
67
2
77
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT DISTINCT COUNT( * ) * ( - - 28 ) * - COUNT( * ) * COUNT( * ) col1 FROM tab2 WHERE ( - col1 * 8 + - + 83 ) IS NOT NULL
----
-756

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1288
SELECT DISTINCT COUNT ( * ) * ( - - 28 ) * - COUNT ( * ) * COUNT ( * ) col1 FROM tab2 WHERE ( - col1 * 8 + - + 83 ) IS NOT NULL
----
-756

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

query II rowsort
SELECT DISTINCT + col1 + + col2 AS col0, + col1 * + col0 FROM tab1
----
110
714
115
4277
64
425

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

query I rowsort
SELECT - 55 + - col2 FROM tab1 AS cor0
----
-114
-123
-151

onlyif mysql # DIV for integer division: 
query I rowsort label-1293
SELECT + + col2 DIV + 50 + col1 + + ( ( - col0 ) ) FROM tab0 AS cor0
----
-66
-95
66

skipif mysql # not compatible
query I rowsort label-1293
SELECT + + col2 / + 50 + col1 + + ( ( - col0 ) ) FROM tab0 AS cor0
----
-66
-95
66

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

query I rowsort
SELECT - 27 * - + 48 + + ( - 77 ) AS col0 FROM tab2 cor0 WHERE NOT + col1 IS NULL
----
1219
1219
1219

query I rowsort
SELECT ( - 91 ) * - 93 FROM tab0 cor0
----
8463
8463
8463

onlyif mysql # aggregate syntax: 
query II rowsort label-1297
SELECT DISTINCT + + ( + MIN( ALL 79 ) ) AS col2, + MIN( DISTINCT + 5 ) FROM tab2 AS cor0
----
79
5

skipif mysql # not compatible
query II rowsort label-1297
SELECT DISTINCT + + ( + MIN ( ALL 79 ) ) AS col2, + MIN ( DISTINCT + 5 ) FROM tab2 AS cor0
----
79
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1298
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT CAST( 32 AS SIGNED ) - + 77 IS NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1298
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT CAST ( 32 AS INTEGER ) - + 77 IS NULL
----
-23
-40
-58

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 29 col2 FROM tab2 AS cor0 WHERE NOT - 21 / 48 * - 35 * col2 > NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT ALL + COUNT( * ) * - 49 + + 89 + - 6 + + - 11 * - MAX( ALL - + col1 ) FROM tab1 WHERE + col0 IS NOT NULL
----
-119

skipif mysql # not compatible
query I rowsort label-1302
SELECT ALL + COUNT ( * ) * - 49 + + 89 + - 6 + + - 11 * - MAX ( ALL - + col1 ) FROM tab1 WHERE + col0 IS NOT NULL
----
-119

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT COUNT( DISTINCT + 82 ) FROM tab1, tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1305
SELECT COUNT ( DISTINCT + 82 ) FROM tab1, tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1306
SELECT + + col0 DIV + col0 + - + col2 AS col2 FROM tab2 AS cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-1306
SELECT + + col0 / + col0 + - + col2 AS col2 FROM tab2 AS cor0
----
-22
-39
-57

query II rowsort
SELECT - + 47 + col0, - col0 AS col0 FROM tab1 AS cor0
----
38
-85
4
-51
44
-91

query I rowsort
SELECT DISTINCT - - col0 * + + 12 FROM tab0 WHERE + 29 + - col0 <> NULL
----

query I rowsort
SELECT + 33 FROM tab0 AS cor0 WHERE 93 IN ( - ( 62 ) )
----

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

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

query I rowsort
SELECT ALL + + 11 * + col2 AS col0 FROM tab2 AS cor0
----
253
440
638

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 * - - 81 + - 63, + col1 * - - col0 col1 FROM tab0 AS cor0
----
1638
1827
18
97
6498
1215

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

skipif mysql # not compatible
query I rowsort label-1313
SELECT DISTINCT + COUNT ( * ) + - 76 FROM tab0
----
-73

query I rowsort
SELECT - ( col0 ) + - - col1 FROM tab2
----
-8
13
5

query I rowsort
SELECT + col2 + + - col1 * + col1 * 14 AS col1 FROM tab0
----
-6164
-91807
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1316
SELECT DISTINCT + 24 + + CAST( NULL AS DECIMAL ) - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1316
SELECT DISTINCT + 24 + + CAST ( NULL AS REAL ) - COUNT ( * ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - ( - 52 ) AS col2 FROM tab0
----
52
52
52

query I rowsort
SELECT DISTINCT 20 + - - col0 AS col2 FROM tab1
----
105
111
71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1319
SELECT * FROM tab1 AS cor0 WHERE 1 / + + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1319
SELECT * FROM tab1 AS cor0 WHERE 1 / + + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query II rowsort
SELECT + col1, 98 FROM tab2 AS cor0
----
51
98
67
98
77
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1322
SELECT - col1 * CAST( - col2 AS SIGNED ) + col1 FROM tab2 AS cor0
----
1224
3157
3953

skipif mysql # not compatible
query I rowsort label-1322
SELECT - col1 * CAST ( - col2 AS INTEGER ) + col1 FROM tab2 AS cor0
----
1224
3157
3953

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

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

query I rowsort
SELECT - - col1 FROM tab2 WHERE NOT col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1325
SELECT DISTINCT * FROM tab1 WHERE NULL <= - CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1325
SELECT DISTINCT * FROM tab1 WHERE NULL <= - CAST ( col0 AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col1 * - + col0 * col2 + + col2 * - col2 * + - col1 FROM tab1 AS cor0
----
197568
42480
508164

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

skipif mysql # not compatible
query I rowsort label-1327
SELECT MAX ( col1 ) AS col1 FROM tab1 cor0
----
47

query I rowsort
SELECT ( - 97 ) FROM tab0 AS cor0
----
-97
-97
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 + - 65 = - 76
----

query I rowsort
SELECT ALL - 57 * - 69 AS col2 FROM tab1
----
3933
3933
3933

onlyif mysql # DIV for integer division: 
query I rowsort label-1331
SELECT DISTINCT + col0 DIV ( - col1 ) FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-1331
SELECT DISTINCT + col0 / ( - col1 ) FROM tab0
----
-4
-97
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT ALL + MIN( ALL + 79 ) AS col0 FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-1333
SELECT ALL + MIN ( ALL + 79 ) AS col0 FROM tab0
----
79

query I rowsort
SELECT DISTINCT col2 + + - 5 * + 22 AS col0 FROM tab1
----
-14
-42
-51

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

skipif mysql # not compatible
query II rowsort label-1335
SELECT DISTINCT COUNT ( * ), COUNT ( * ) FROM tab0
----
3
3

query I rowsort
SELECT - ( + + col0 ) * - 99 AS col2 FROM tab0 AS cor0 WHERE NULL < 98
----

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

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

query I rowsort
SELECT DISTINCT - + ( + col1 ) + 13 * - col2 * - col2 * + col1 FROM tab2 AS cor0
----
1601523
2929977
350676

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT ALL - 85 + MIN( - + 0 ) AS col1 FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-1340
SELECT ALL - 85 + MIN ( - + 0 ) AS col1 FROM tab1 AS cor0
----
-85

query I rowsort
SELECT DISTINCT + + 17 + - col1 AS col2 FROM tab0 cor0
----
-4
-64
16

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT + COUNT( * ) * ( 63 ) col0 FROM tab1 AS cor0
----
189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1343
SELECT + COUNT ( * ) * ( 63 ) col0 FROM tab1 AS cor0
----
189

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 37 * + 7 AS col1, - col1 + 13 + + + col1 + col0 col1 FROM tab0 AS cor0
----
-259
100
-259
110
-259
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1346
SELECT DISTINCT MIN( DISTINCT - ( - 29 ) ) + COUNT( 23 ) * + - 86 FROM tab1
----
-229

skipif mysql # not compatible
query I rowsort label-1346
SELECT DISTINCT MIN ( DISTINCT - ( - 29 ) ) + COUNT ( 23 ) * + - 86 FROM tab1
----
-229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + 68 col0 FROM tab0
----
-47
-67
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT DISTINCT + 62 * - COUNT( * ) * - SUM( DISTINCT - + col2 ) FROM tab1 AS cor0
----
-41478

skipif mysql # not compatible
query I rowsort label-1348
SELECT DISTINCT + 62 * - COUNT ( * ) * - SUM ( DISTINCT - + col2 ) FROM tab1 AS cor0
----
-41478

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

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

query I rowsort
SELECT ALL + - 90 FROM tab0 AS cor0
----
-90
-90
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1351
SELECT ALL + col1 * - CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE ( + 65 ) IN ( - CAST( NULL AS SIGNED ), ( + + ( col2 ) ), + col0, 90 )
----

skipif mysql # not compatible
query I rowsort label-1351
SELECT ALL + col1 * - CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE ( + 65 ) IN ( - CAST ( NULL AS INTEGER ), ( + + ( col2 ) ), + col0, 90 )
----

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

query III rowsort
SELECT col1 AS col2, + col1 AS col2, - + col0 + + 46 + + 33 FROM tab1 AS cor0
----
9 values hashing to a0274f500ab3a5808bb3ca9fcb5ed600

query I rowsort
SELECT ALL col0 * - ( + - 15 ) + - ( + - 52 ) + + col1 + + col2 FROM tab2 AS cor0
----
1129
1302
816

query I rowsort
SELECT 27 * - + 38 FROM tab0 AS cor0
----
-1026
-1026
-1026

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1360
SELECT DISTINCT 3 DIV + ( col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1360
SELECT DISTINCT 3 / + ( col1 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1361
SELECT DISTINCT + - ( - + COUNT( * ) ) AS col0 FROM tab0 WHERE - col2 = - 95
----
0

skipif mysql # not compatible
query I rowsort label-1361
SELECT DISTINCT + - ( - + COUNT ( * ) ) AS col0 FROM tab0 WHERE - col2 = - 95
----
0

query I rowsort
SELECT DISTINCT 62 * - col1 + 18 * - - ( - 28 ) * col1 FROM tab0
----
-11886
-45846
-566

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

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

query I rowsort
SELECT 42 * - col2 + - + 35 AS col2 FROM tab0
----
-2009
-4193
-455

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT - 51 * 7 BETWEEN + col1 AND - col1 * - col1 * + 62
----
10
47
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT ALL - MAX( ALL + ( + col2 ) ) + - 60 FROM tab1
----
-156

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL - MAX ( ALL + ( + col2 ) ) + - 60 FROM tab1
----
-156

query II rowsort
SELECT DISTINCT - 21, 29 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-21
29

query I rowsort
SELECT ALL col1 * - col2 + - - 4 - + + col2 * 52 * 72 AS col1 FROM tab0
----
-179771
-370751
-37646

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 79 col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
79

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

query I rowsort
SELECT ALL + col2 - 1 AS col1 FROM tab1 cor0
----
58
67
95

query I rowsort
SELECT + + 98 - - col0 FROM tab1 AS cor0
----
149
183
189

query I rowsort
SELECT ALL + + col1 + - col2 + + + 31 * + + 29 - - col0 FROM tab1 AS cor0
----
868
930
969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 45 ) * + col0 + col1 col0 FROM tab0 cor0
----
3936
4366
756

query I rowsort
SELECT DISTINCT + col2 - + 70 FROM tab0 cor0
----
-23
-60
29

query I rowsort
SELECT ALL col0 * + + col1 + + col1 / + + col2 FROM tab2 AS cor0 WHERE NOT + 39 + - 24 IS NOT NULL
----

query I rowsort
SELECT + col2 + 92 - col2 * + - 49 FROM tab1 AS cor0
----
3042
3492
4892

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( 12 ) < - col2
----
3

skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( 12 ) < - col2
----
3

query I rowsort
SELECT ALL + 85 - col0 - + + col0 FROM tab2 AS cor0
----
-43
-65
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-1382
SELECT col1 DIV + + col1 + col0 AS col1 FROM tab1
----
52
86
92

skipif mysql # not compatible
query I rowsort label-1382
SELECT col1 / + + col1 + col0 AS col1 FROM tab1
----
52
86
92

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

query II rowsort
SELECT col0 + + col2 AS col2, + col0 * - - col1 FROM tab1
----
144
425
147
714
159
4277

onlyif mysql # aggregate syntax: 
query II rowsort label-1385
SELECT - COUNT( * ), + 91 AS col0 FROM tab1 WHERE - 28 IS NULL
----
0
91

skipif mysql # not compatible
query II rowsort label-1385
SELECT - COUNT ( * ), + 91 AS col0 FROM tab1 WHERE - 28 IS NULL
----
0
91

query I rowsort
SELECT + 61 * - col2 AS col2 FROM tab0
----
-2867
-6039
-610

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

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

query I rowsort
SELECT + 27 * - ( + 55 ) FROM tab0
----
-1485
-1485
-1485

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

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

query I rowsort
SELECT ALL + 75 * 7 - + col2 FROM tab1 cor0
----
429
457
466

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1393
SELECT DISTINCT + 14 DIV col0 * + col0 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT + 14 / col0 * + col0 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT ALL + - COUNT( * ) * + 42 + - MAX( DISTINCT - 82 ) AS col0 FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-1394
SELECT ALL + - COUNT ( * ) * + 42 + - MAX ( DISTINCT - 82 ) AS col0 FROM tab0 AS cor0
----
-44

query I rowsort
SELECT + col0 * col1 + col0 - - 49 * + col0 + - col1 AS col1 FROM tab2 AS cor0
----
4595
8051
8708

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

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

query I rowsort
SELECT DISTINCT - - col1 * - 27 * 28 FROM tab2 AS cor0
----
-38556
-50652
-58212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1398
SELECT + CAST( - - AVG ( - 93 ) AS SIGNED ) FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-1398
SELECT + CAST ( - - AVG ( - 93 ) AS INTEGER ) FROM tab1
----
-93

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

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

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

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

query I rowsort
SELECT DISTINCT col1 * - 71 AS col1 FROM tab2
----
-3621
-4757
-5467

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

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE - col2 * + - col0 NOT BETWEEN NULL AND - - ( + - col0 ) * + col2 + - col1
----
51
67
77

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1406
SELECT - COUNT( - + col0 ) DIV 58 + + - 99 AS col2 FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-1406
SELECT - COUNT ( - + col0 ) / 58 + + - 99 AS col2 FROM tab2
----
-99

query I rowsort
SELECT DISTINCT - 11 - - + ( col1 ) FROM tab2 AS cor0
----
40
56
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * col0 AS col2, - col2 col1 FROM tab1 AS cor0
----
-2601
-96
-7225
-59
-8281
-68

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59
-68
-96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1411
SELECT - - 34 * COUNT( * ) - SUM( DISTINCT col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1411
SELECT - - 34 * COUNT ( * ) - SUM ( DISTINCT col0 ) FROM tab0 AS cor0
----
-97

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1412
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT + 96 ) col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT COUNT( * ) * - + 96 AS col2 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-1413
SELECT COUNT ( * ) * - + 96 AS col2 FROM tab1
----
-288

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 / - + 79 * - + ( - - col1 ) IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT ALL COUNT( * ) * + ( - + MIN( col2 ) ) AS col2 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL COUNT ( * ) * + ( - + MIN ( col2 ) ) AS col2 FROM tab0
----
-30

query II rowsort
SELECT - col2 * + col0, + ( - col1 ) * - col1 + + + 45 AS col2 FROM tab2
----
-1058
2646
-2560
5974
-4350
4534

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

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

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

query I rowsort
SELECT ALL - 27 * col1 AS col2 FROM tab2 AS cor0
----
-1377
-1809
-2079

query I rowsort
SELECT ALL - 13 * + col0 FROM tab1 AS cor0
----
-1105
-1183
-663

query I rowsort
SELECT DISTINCT 47 FROM tab1 AS cor0 WHERE NOT col2 <> - + col0 + + col0 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT - - 63 * + MIN( DISTINCT + 52 ) AS col1 FROM tab2 AS cor0
----
3276

skipif mysql # not compatible
query I rowsort label-1423
SELECT - - 63 * + MIN ( DISTINCT + 52 ) AS col1 FROM tab2 AS cor0
----
3276

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

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

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

query I rowsort
SELECT + 49 + + 97 + - 4 AS col1 FROM tab1
----
142
142
142

query II rowsort
SELECT ALL - 84 * + + col2 + + 3 AS col1, - col0 AS col2 FROM tab2
----
-1929
-46
-3357
-64
-4869
-75

query I rowsort
SELECT DISTINCT 11 * + col1 AS col0 FROM tab1
----
154
517
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1429
SELECT col2 + col1 - + 87 + col1 + 70 + - col0 * + - col1 * 55 * + + col1 * col1 AS col0, + 82 * + + CAST( NULL AS SIGNED ) - - 87 * col1 col2 FROM tab2
----
1240647550
NULL
1606996337
NULL
335607138
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1429
SELECT col2 + col1 - + 87 + col1 + 70 + - col0 * + - col1 * 55 * + + col1 * col1 AS col0, + 82 * + + CAST ( NULL AS INTEGER ) - - 87 * col1 col2 FROM tab2
----
1240647550
NULL
1606996337
NULL
335607138
NULL

query I rowsort
SELECT - col2 + - 82 - + - ( + col0 ) FROM tab1
----
-127
-56
-59

query I rowsort
SELECT - 42 + - 39 FROM tab2
----
-81
-81
-81

query I rowsort
SELECT col0 + 70 AS col2 FROM tab0
----
157
167
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 + - 52 col0 FROM tab2
----
-2653
-4541
-5981

query I rowsort
SELECT ALL 95 + - + 36 + - + ( + + col0 ) FROM tab0
----
-28
-38
44

query I rowsort
SELECT DISTINCT + col0 + - - col0 AS col0 FROM tab1
----
102
170
182

query I rowsort
SELECT ALL - - col2 + - 25 FROM tab0 AS cor0
----
-15
22
74

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1438
SELECT + 52 AS col0 FROM tab0 AS cor0 WHERE CAST( + + 15 AS SIGNED ) * - + col1 + - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1438
SELECT + 52 AS col0 FROM tab0 AS cor0 WHERE CAST ( + + 15 AS INTEGER ) * - + col1 + - col2 IS NULL
----

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

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

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

query I rowsort
SELECT + col1 - + + 11 FROM tab2
----
40
56
66

query I rowsort
SELECT ALL 16 * + + col2 FROM tab1
----
1088
1536
944

onlyif mysql # aggregate syntax: 
query II rowsort label-1444
SELECT DISTINCT + 76 + + COUNT( * ) + ( 40 ), - 89 * - 98 AS col2 FROM tab0
----
119
8722

skipif mysql # not compatible
query II rowsort label-1444
SELECT DISTINCT + 76 + + COUNT ( * ) + ( 40 ), - 89 * - 98 AS col2 FROM tab0
----
119
8722

query II rowsort
SELECT ALL + col2 + 97 AS col2, 91 * + ( + col0 ) FROM tab2
----
120
4186
137
5824
155
6825

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

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

query I rowsort
SELECT ALL col1 * + 80 - 49 AS col0 FROM tab0 AS cor0
----
1631
31
6431

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 AS cor0 WHERE NOT + 84 + col2 >= - 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT ALL + MIN( col1 ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL + MIN ( col1 ) FROM tab1 cor0
----
5

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

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

query I rowsort
SELECT - 94 * - - col1 AS col0 FROM tab2 AS cor0
----
-4794
-6298
-7238

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1455
SELECT DISTINCT col0 DIV - 40, + col2 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
-1
NULL
-2
NULL

skipif mysql # not compatible
query II rowsort label-1455
SELECT DISTINCT col0 / - 40, + col2 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
-1
NULL
-2
NULL

query I rowsort
SELECT ALL 42 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1457
SELECT DISTINCT CAST( + 81 AS SIGNED ) col2, col2 FROM tab2 AS cor0
----
81
23
81
40
81
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1457
SELECT DISTINCT CAST ( + 81 AS INTEGER ) col2, col2 FROM tab2 AS cor0
----
81
23
81
40
81
58

query II rowsort
SELECT ALL col1, 2 * + + 99 + 97 * - col1 FROM tab1
----
14
-1160
47
-4361
5
-287

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 - + col1 + - ( - ( - - 76 ) ) / - - 4 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 80 AS col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1461
SELECT + 82 AS col1, - COUNT( * ) + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
82
0

skipif mysql # not compatible
query II rowsort label-1461
SELECT + 82 AS col1, - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
82
0

query I rowsort
SELECT 39 + - col1 AS col1 FROM tab1 AS cor0
----
-8
25
34

query II rowsort
SELECT - col1 + - col0, + 9 AS col2 FROM tab1 AS cor0 WHERE ( col2 * - col2 * - + col0 IS NOT NULL )
----
-138
9
-65
9
-90
9

query I rowsort
SELECT + 86 * - 68 AS col2 FROM tab0 AS cor0
----
-5848
-5848
-5848

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1466
SELECT 5 DIV + - COUNT( * ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1466
SELECT 5 / + - COUNT ( * ) FROM tab1
----
-1

query III rowsort
SELECT * FROM tab2 WHERE col1 + + - col0 / + col2 - + col2 IS NULL
----

query I rowsort
SELECT ALL col2 + 88 FROM tab0
----
135
187
98

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

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

query III rowsort
SELECT * FROM tab2 WHERE - - ( + + col0 ) / col0 NOT IN ( - col0, - 4, - - 62 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 46 - + col2 col1 FROM tab2
----
1035
1800
2610

onlyif mysql # DIV for integer division: 
query II rowsort label-1472
SELECT ( + - 38 ) DIV + - col0 - + 44 AS col1, - 3 * + col0 FROM tab1
----
-44
-153
-44
-255
-44
-273

skipif mysql # not compatible
query II rowsort label-1472
SELECT ( + - 38 ) / + - col0 - + 44 AS col1, - 3 * + col0 FROM tab1
----
-44
-153
-44
-255
-44
-273

query I rowsort
SELECT + - col0 * - col2 - + col0 * col2 - + + 2 * - - 20 FROM tab1 cor0
----
-40
-40
-40

query I rowsort
SELECT ALL - 9 FROM tab2 AS cor0 WHERE NOT - col0 * + col1 IS NOT NULL
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 48 AS col0 FROM tab1 cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NULL > col2 + + 48
----
0

skipif mysql # not compatible
query I rowsort label-1479
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL > col2 + + 48
----
0

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

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

query I rowsort
SELECT + col0 * - 49 FROM tab1
----
-2499
-4165
-4459

query II rowsort
SELECT DISTINCT + 93 AS col2, + 25 + - col2 FROM tab2
----
93
-15
93
-33
93
2

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1485
SELECT DISTINCT COUNT( * ) col2, 40 col0 FROM tab1
----
3
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1485
SELECT DISTINCT COUNT ( * ) col2, 40 col0 FROM tab1
----
3
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, col2 * - col2 col2 FROM tab0
----
-1
-9801
-21
-100
-81
-2209

onlyif mysql # aggregate syntax: 
query II rowsort label-1487
SELECT ALL - 34 AS col0, + SUM( 23 ) FROM tab1
----
-34
69

skipif mysql # not compatible
query II rowsort label-1487
SELECT ALL - 34 AS col0, + SUM ( 23 ) FROM tab1
----
-34
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col1 col1, + col2 AS col1, - 60 AS col0 FROM tab2 AS cor0
----
9 values hashing to 228c0f0bdc0163b9bc3853b37769b3d1

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE col1 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1491
SELECT - - 5 DIV - - COUNT( DISTINCT - 62 ) + + 47 - + COUNT( * ) + 22 DIV 5 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
47

skipif mysql # not compatible
query I rowsort label-1491
SELECT - - 5 / - - COUNT ( DISTINCT - 62 ) + + 47 - + COUNT ( * ) + 22 / 5 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
47

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

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

query I rowsort
SELECT ALL + 10 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 <= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT ALL - MAX( ALL + 61 ) * + ( + MIN( col2 ) ) AS col2 FROM tab1 AS cor0
----
-3599

skipif mysql # not compatible
query I rowsort label-1497
SELECT ALL - MAX ( ALL + 61 ) * + ( + MIN ( col2 ) ) AS col2 FROM tab1 AS cor0
----
-3599

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

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

query II rowsort
SELECT DISTINCT 19 AS col2, + 85 FROM tab0
----
19
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1500
SELECT ALL + CAST( COUNT( - col1 ) AS SIGNED ) * - 81 + + - 20 AS col0 FROM tab2
----
-263

skipif mysql # not compatible
query I rowsort label-1500
SELECT ALL + CAST ( COUNT ( - col1 ) AS INTEGER ) * - 81 + + - 20 AS col0 FROM tab2
----
-263

query I rowsort
SELECT - 78 * - 3 + + col0 AS col0 FROM tab0
----
249
321
331

onlyif mysql # DIV for integer division: 
query I rowsort label-1502
SELECT + col2 * + col1 + - + col0 - col2 DIV - 68 FROM tab2
----
1127
3016
3811

skipif mysql # not compatible
query I rowsort label-1502
SELECT + col2 * + col1 + - + col0 - col2 / - 68 FROM tab2
----
1127
3016
3811

query I rowsort
SELECT ALL col2 + + - col2 + + col2 AS col0 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT COUNT( * ) * + - 79 + - - 99 * + ( + COUNT( * ) ) * MIN( + col1 ) col2 FROM tab0
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1504
SELECT COUNT ( * ) * + - 79 + - - 99 * + ( + COUNT ( * ) ) * MIN ( + col1 ) col2 FROM tab0
----
60

query I rowsort
SELECT DISTINCT - 34 * - col0 - col2 AS col2 FROM tab2
----
1541
2136
2492

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1507
SELECT DISTINCT + col0 - + + col0 DIV - 47 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-1507
SELECT DISTINCT + col0 - + + col0 / - 47 FROM tab1 AS cor0
----
52
86
92

query I rowsort
SELECT DISTINCT col2 - + 46 AS col1 FROM tab2 AS cor0 WHERE + 22 NOT BETWEEN - col0 AND 24
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1509
SELECT DISTINCT + + COUNT( * ), - CAST( + COUNT( * ) AS SIGNED ) + - + 60 * + - 0 FROM tab0 AS cor0 WHERE NOT NULL < col2
----
0
0

skipif mysql # not compatible
query II rowsort label-1509
SELECT DISTINCT + + COUNT ( * ), - CAST ( + COUNT ( * ) AS INTEGER ) + - + 60 * + - 0 FROM tab0 AS cor0 WHERE NOT NULL < col2
----
0
0

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

query I rowsort
SELECT DISTINCT + 68 + + 92 AS col2 FROM tab0
----
160

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 73 col1 FROM tab2
----
-4
22
6

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

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

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

query I rowsort
SELECT - col2 + + col0 * 31 AS col0 FROM tab0
----
2687
2908
418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1519
SELECT ALL 99 * - COUNT( * ) FROM tab1 WHERE CAST( - col2 AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1519
SELECT ALL 99 * - COUNT ( * ) FROM tab1 WHERE CAST ( - col2 AS INTEGER ) IS NULL
----
0

query I rowsort
SELECT + 45 + + col1 AS col0 FROM tab1
----
50
59
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT ALL 90 + + COUNT( * ) AS col0 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL 90 + + COUNT ( * ) AS col0 FROM tab1
----
93

query I rowsort
SELECT - 36 AS col1 FROM tab2 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1523
SELECT ( col1 ) - - CAST( col1 AS SIGNED ) FROM tab0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-1523
SELECT ( col1 ) - - CAST ( col1 AS INTEGER ) FROM tab0
----
162
2
42

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NOT + col1 IN ( - col1 )
----
46
64
75

query I rowsort
SELECT - 49 * + col0 - - col2 AS col2 FROM tab0
----
-4253
-4654
-688

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 91 IS NOT NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 9 = 21
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT DISTINCT + col0 + 11 * col1 AS col0 FROM tab2
----
607
812
911

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 + 57 * col2 AS col1 FROM tab2
----
1362
2357
3373

query I rowsort
SELECT + col2 + - ( + col1 ) AS col1 FROM tab2
----
-28
-37
-9

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1536
SELECT + 22 - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT ( col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1536
SELECT + 22 - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT ( col2 ) IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT + SUM( ALL - 11 ) FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-1538
SELECT + SUM ( ALL - 11 ) FROM tab0
----
-33

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

query I rowsort
SELECT col1 * 82 + - col0 AS col2 FROM tab2
----
4136
5419
6250

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

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

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

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

query I rowsort
SELECT DISTINCT ( + col2 ) - col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-77
2
32

query I rowsort
SELECT DISTINCT 44 AS col1 FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN ( 30 ) AND ( + col1 + col1 )
----
44

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

skipif mysql # not compatible
query I rowsort label-1545
SELECT 85 / + COUNT ( * ) AS col2 FROM tab0 cor0
----
28

query I rowsort
SELECT ALL 66 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

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

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

query I rowsort
SELECT DISTINCT - col2 + 61 FROM tab1 AS cor0
----
-35
-7
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT 34 * + MIN( col2 ) FROM tab1 cor0
----
2006

skipif mysql # not compatible
query I rowsort label-1549
SELECT 34 * + MIN ( col2 ) FROM tab1 cor0
----
2006

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( col1 / + col0 - 81 * col1 )
----

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

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1555
SELECT * FROM tab2 AS cor0 WHERE col2 * 97 BETWEEN ( NULL ) AND CAST( 38 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1555
SELECT * FROM tab2 AS cor0 WHERE col2 * 97 BETWEEN ( NULL ) AND CAST ( 38 AS REAL )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1557
SELECT DISTINCT CAST( SUM( - 87 ) AS SIGNED ) * - 58 AS col1 FROM tab1 WHERE NOT ( - 34 ) IS NOT NULL OR NOT ( NULL ) <> ( 90 + + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1557
SELECT DISTINCT CAST ( SUM ( - 87 ) AS INTEGER ) * - 58 AS col1 FROM tab1 WHERE NOT ( - 34 ) IS NOT NULL OR NOT ( NULL ) <> ( 90 + + col1 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1558
SELECT DISTINCT col2 DIV + col2 + - col0 AS col1 FROM tab0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-1558
SELECT DISTINCT col2 / + col2 + - col0 AS col1 FROM tab0
----
-14
-86
-96

query I rowsort
SELECT ALL - col2 + + + col0 FROM tab2
----
17
23
24

query III rowsort
SELECT * FROM tab2 WHERE col1 / col2 + + 34 IS NULL
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE NULL IN ( - col0 )
----

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

query I rowsort
SELECT ALL - 45 + col1 FROM tab1 WHERE NULL NOT IN ( col1 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1565
SELECT * FROM tab1 WHERE + 96 + + 83 BETWEEN ( NULL ) AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1565
SELECT * FROM tab1 WHERE + 96 + + 83 BETWEEN ( NULL ) AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - - ( + - 63 ) - + col2 FROM tab2 AS cor0
----
-103
-121
-86

query I rowsort
SELECT - + 37 + + col0 FROM tab0 AS cor0
----
-22
50
60

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT ( - - COUNT( DISTINCT - 94 ) ) * - COUNT( 50 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1571
SELECT ( - - COUNT ( DISTINCT - 94 ) ) * - COUNT ( 50 ) FROM tab1 AS cor0
----
-3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1573
SELECT DISTINCT + ( + + col2 ) DIV col0 AS col0 FROM tab0 cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-1573
SELECT DISTINCT + ( + + col2 ) / col0 AS col0 FROM tab0 cor0
----
0
1
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1574
SELECT + 32 DIV - 19 + 8 + 43 FROM tab1 cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-1574
SELECT + 32 / - 19 + 8 + 43 FROM tab1 cor0
----
50
50
50

query I rowsort
SELECT DISTINCT + col0 * 2 * - col2 AS col1 FROM tab1 AS cor0
----
-10030
-12376
-9792

query I rowsort
SELECT DISTINCT - col2 FROM tab0 cor0 WHERE ( 39 ) IS NOT NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1577
SELECT col2 FROM tab0 AS cor0 WHERE NOT - col0 * CAST( - col0 AS SIGNED ) NOT BETWEEN 94 AND NULL
----

skipif mysql # not compatible
query I rowsort label-1577
SELECT col2 FROM tab0 AS cor0 WHERE NOT - col0 * CAST ( - col0 AS INTEGER ) NOT BETWEEN 94 AND NULL
----

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

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

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE ( + 27 ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL + 65 * + + col0 - + 79 FROM tab1 cor0
----
3236
5446
5836

query I rowsort
SELECT col0 / - 43 AS col0 FROM tab1 WHERE NOT ( - + col1 * col2 ) IS NOT NULL
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1583
SELECT DISTINCT + + 75 * + col1 + CAST ( NULL AS INTEGER ) col0 FROM tab1 WHERE NOT + 98 < NULL
----

query I rowsort
SELECT + col0 * col1 * col1 FROM tab0
----
38367
97
98415

query III rowsort
SELECT ALL * FROM tab1 WHERE 7 IN ( col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 91 / - + 63 BETWEEN 7 * 70 + + col2 AND ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

query I rowsort
SELECT DISTINCT 75 + - - 40 FROM tab0 AS cor0
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT DISTINCT - + SUM( 75 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + col1 ) >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1590
SELECT DISTINCT - + SUM ( 75 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + col1 ) >= ( NULL )
----
NULL

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

query I rowsort
SELECT - + 6 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-6
-6
-6

query I rowsort
SELECT ALL + col2 * - ( - + col2 ) + - col1 AS col0 FROM tab1
----
3476
4577
9202

onlyif mysql # DIV for integer division: 
query I rowsort label-1594
SELECT col0 DIV 81 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1594
SELECT col0 / 81 FROM tab1
----
0
1
1

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

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

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

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

query I rowsort
SELECT ALL - 84 + col0 FROM tab1 AS cor0
----
-33
1
7

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col1 NOT IN ( - + 74 ) AND NOT ( 0 ) IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT + + col2 + col1 + - 37 AS col1 FROM tab0 AS cor0
----
-6
63
91

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1602
SELECT CAST( + col2 AS SIGNED ) + + + 78 FROM tab0 cor0
----
125
177
88

skipif mysql # not compatible
query I rowsort label-1602
SELECT CAST ( + col2 AS INTEGER ) + + + 78 FROM tab0 cor0
----
125
177
88

query I rowsort
SELECT col2 * + 93 * - col0 + - col2 + 50 FROM tab0 AS cor0
----
-65562
-80870
-893128

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + + col2 col0 FROM tab1
----
110
115
64

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1608
SELECT DISTINCT - MIN ( DISTINCT 62 ) AS col0 FROM tab1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT + AVG ( col1 ) * COUNT( ALL 72 * + 81 ) FROM tab0 WHERE - 2 NOT BETWEEN + 15 * - col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1609
SELECT + AVG ( col1 ) * COUNT ( ALL 72 * + 81 ) FROM tab0 WHERE - 2 NOT BETWEEN + 15 * - col1 AND NULL
----
NULL

query I rowsort
SELECT 66 * + + 26 * + 48 FROM tab1
----
82368
82368
82368

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1611
SELECT ALL 68 AS col2, 54 * + - CAST( NULL AS DECIMAL ) - + - col2 * - col2 FROM tab1 AS cor0
----
68
NULL
68
NULL
68
NULL

skipif mysql # not compatible
query II rowsort label-1611
SELECT ALL 68 AS col2, 54 * + - CAST ( NULL AS REAL ) - + - col2 * - col2 FROM tab1 AS cor0
----
68
NULL
68
NULL
68
NULL

query I rowsort
SELECT - 45 * col1 + col1 AS col1 FROM tab2 AS cor0
----
-2244
-2948
-3388

query I rowsort
SELECT ALL + - 29 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT ALL + 81 AS col1 FROM tab2 WHERE - 82 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT ALL MAX( ALL - 93 ) * + COUNT( * ) FROM tab1 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL MAX ( ALL - 93 ) * + COUNT ( * ) FROM tab1 AS cor0
----
-279

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

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

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

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

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

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

query II rowsort
SELECT - col1, + col1 * - + 16 AS col2 FROM tab2
----
-51
-816
-67
-1072
-77
-1232

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT DISTINCT 47 + + MIN( DISTINCT + + col0 ) * + ( - - 37 ) AS col0 FROM tab0
----
602

skipif mysql # not compatible
query I rowsort label-1623
SELECT DISTINCT 47 + + MIN ( DISTINCT + + col0 ) * + ( - - 37 ) AS col0 FROM tab0
----
602

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

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

query I rowsort
SELECT + col2 - col1 AS col0 FROM tab1 WHERE col1 / + 81 * - + col2 * col0 * - col0 NOT IN ( + - col2 )
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT COUNT( DISTINCT - 85 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1627
SELECT COUNT ( DISTINCT - 85 ) AS col1 FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1628
SELECT - ( + 77 ) DIV - col0 FROM tab2 AS cor0
----
1
1
1

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

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

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL - SUM ( ALL + CAST ( NULL AS REAL ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT + 90 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

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

skipif mysql # not compatible
query I rowsort label-1632
SELECT 59 * 11 * - - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
5841

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT ALL + - MIN( - + col2 ) FROM tab0 WHERE - col0 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL + - MIN ( - + col2 ) FROM tab0 WHERE - col0 <= NULL
----
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL - 75 * + 98 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * - col0 + col0 * 35 AS col2 FROM tab1 AS cor0
----
-1092
1071
2550

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

query I rowsort
SELECT - 73 * col1 FROM tab2 AS cor0
----
-3723
-4891
-5621

query I rowsort
SELECT - 58 FROM tab2 AS cor0 WHERE ( 64 + - col1 / - col1 + + + col1 - - - 31 + - col2 + col2 + 71 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT ALL - + 59 - + ( + - SUM( + 96 ) ) FROM tab0 AS cor0
----
229

skipif mysql # not compatible
query I rowsort label-1641
SELECT ALL - + 59 - + ( + - SUM ( + 96 ) ) FROM tab0 AS cor0
----
229

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

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

query III rowsort
SELECT * FROM tab2 WHERE NULL <= - - 35
----

query I rowsort
SELECT - - 96 AS col0 FROM tab2 WHERE - col0 / col2 * - + 61 NOT BETWEEN ( - - col2 * - + 31 ) AND ( NULL )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1647
SELECT 10 DIV + 45 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1647
SELECT 10 / + 45 AS col2 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1648
SELECT 28 DIV - 67 col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1648
SELECT 28 / - 67 col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * - 5 FROM tab1 AS cor0 WHERE 34 + - col2 <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < 39
----

query I rowsort
SELECT - + 64 FROM tab0 cor0
----
-64
-64
-64

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 34 + 95 IS NOT NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1657
SELECT 51 / + col2 FROM tab1 AS cor0
----
0
0
0

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

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

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

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

query II rowsort
SELECT col2, col1 AS col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 + - + col2 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1663
SELECT ALL CAST( - ( - - 93 ) AS SIGNED ), col0 FROM tab2
----
-93
46
-93
64
-93
75

skipif mysql # not compatible
query II rowsort label-1663
SELECT ALL CAST ( - ( - - 93 ) AS INTEGER ), col0 FROM tab2
----
-93
46
-93
64
-93
75

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 WHERE - + 55 * - - 5 + col1 + - col0 * + + col0 / + 70 * col1 * 54 * + col2 IS NULL
----

query I rowsort
SELECT - 12 + + col1 FROM tab1
----
-7
2
35

query II rowsort
SELECT col0 + col1 AS col1, col0 FROM tab0
----
108
87
96
15
98
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1667
SELECT ALL CAST( NULL AS SIGNED ) + + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1667
SELECT ALL CAST ( NULL AS INTEGER ) + + col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * col1 + - ( col2 ) FROM tab1
----
-34
100
2141

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IN ( + col0 + + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1670
SELECT DISTINCT CAST( - + 67 AS SIGNED ) + - + 8 AS col0 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-1670
SELECT DISTINCT CAST ( - + 67 AS INTEGER ) + - + 8 AS col0 FROM tab0
----
-75

query I rowsort
SELECT DISTINCT 98 + col2 AS col0 FROM tab0
----
108
145
197

query I rowsort
SELECT 66 * - 28 + col0 AS col0 FROM tab1
----
-1757
-1763
-1797

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT + COUNT( * ) * + 54 + + ( - COUNT( * ) ) col0 FROM tab2 AS cor0
----
159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1673
SELECT + COUNT ( * ) * + 54 + + ( - COUNT ( * ) ) col0 FROM tab2 AS cor0
----
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 col2 FROM tab2 AS cor0 WHERE NOT + 39 <> - - 76
----

query I rowsort
SELECT - col2 - - 84 + - - col0 FROM tab1
----
107
110
39

query I rowsort
SELECT col2 * - col1 - - col1 FROM tab2
----
-1122
-3003
-3819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 95 + col1 + - - col2 col1, + col0 FROM tab1 AS cor0
----
159
85
205
51
210
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 25 <= col2
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT ALL - 31 * COUNT( * ) - - 20 AS col1 FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-1679
SELECT ALL - 31 * COUNT ( * ) - - 20 AS col1 FROM tab1 AS cor0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1680
SELECT ALL - col2 * + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1680
SELECT ALL - col2 * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT 8, col1 AS col1 FROM tab1 AS cor0
----
8
14
8
47
8
5

query I rowsort
SELECT - ( - 40 ) * col2 AS col1 FROM tab1 AS cor0
----
2360
2720
3840

query I rowsort
SELECT DISTINCT + 53 * col2 * + - col2 AS col1 FROM tab2
----
-178292
-28037
-84800

onlyif mysql # DIV for integer division: 
query I rowsort label-1684
SELECT - col0 DIV - - 37 FROM tab1
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-1684
SELECT - col0 / - - 37 FROM tab1
----
-1
-2
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1685
SELECT DISTINCT col2 DIV - + col1 * - - col1 AS col0 FROM tab0
----
-99
0

skipif mysql # not compatible
query I rowsort label-1685
SELECT DISTINCT col2 / - + col1 * - - col1 AS col0 FROM tab0
----
-99
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + 82 col2 FROM tab2
----
4182
5494
6314

query I rowsort
SELECT ALL + 60 * + col1 * - col2 FROM tab1
----
-17700
-191760
-80640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1688
SELECT 48 DIV - MIN( col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1688
SELECT 48 / - MIN ( col0 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT ALL + SUM( DISTINCT col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL + SUM ( DISTINCT col0 ) FROM tab2
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - 24 ) AS col1, col2 col0 FROM tab0 AS cor0
----
-24
10
-24
47
-24
99

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + col0 ) < - 48
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1692
SELECT COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col0 + 76 FROM tab0 AS cor0
----
163
173
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1694
SELECT ALL + COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL + COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1695
SELECT + + 58 DIV - 89 + + ( 67 ) + - col0 + col0 * 82 col1 FROM tab1 AS cor0
----
4198
6952
7438

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1695
SELECT + + 58 / - 89 + + ( 67 ) + - col0 + col0 * 82 col1 FROM tab1 AS cor0
----
4198
6952
7438

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT MIN( - col0 ) col2 FROM tab2 cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1696
SELECT MIN ( - col0 ) col2 FROM tab2 cor0
----
-75

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + + col0 AND col0
----

query I rowsort
SELECT + col0 + - col1 AS col2 FROM tab2 WHERE + col1 NOT IN ( + col1 + + 73, col2 * 27, col2 * 46 + col2 )
----
-13
-5
8

query I rowsort
SELECT DISTINCT - 44 + 25 FROM tab1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1700
SELECT COUNT( * ) - - COUNT( * ) * COUNT( DISTINCT + 72 ) * - CAST( + 34 AS SIGNED ), - 79 AS col0 FROM tab2 AS cor0
----
-99
-79

skipif mysql # not compatible
query II rowsort label-1700
SELECT COUNT ( * ) - - COUNT ( * ) * COUNT ( DISTINCT + 72 ) * - CAST ( + 34 AS INTEGER ), - 79 AS col0 FROM tab2 AS cor0
----
-99
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT ALL - 40 - + + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
-40

skipif mysql # not compatible
query I rowsort label-1701
SELECT ALL - 40 - + + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
-40

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 16 * - 35 BETWEEN + + ( + 31 ) AND col0 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( + + col0 ) FROM tab1 cor0 WHERE + col2 < ( - - col1 )
----

query I rowsort
SELECT - + 49 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT DISTINCT 42 + - col2 AS col1 FROM tab0
----
-5
-57
32

query I rowsort
SELECT DISTINCT + 21 + - 38 - + + col2 AS col0 FROM tab2
----
-40
-57
-75

query I rowsort
SELECT ( - 64 ) * col0 + - 27 * - + ( - col1 ) AS col1 FROM tab2 AS cor0
----
-4321
-6175
-6609

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT DISTINCT - COUNT( * ) * - ( + MIN( ALL + - 27 ) ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1708
SELECT DISTINCT - COUNT ( * ) * - ( + MIN ( ALL + - 27 ) ) AS col0 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT + 65 + - 32 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT + SUM( - + col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-1710
SELECT + SUM ( - + col2 ) AS col1 FROM tab0 AS cor0
----
-156

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - + 82 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT + COUNT( ALL + col0 ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1712
SELECT + COUNT ( ALL + col0 ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + 65 * + 87 FROM tab1 AS cor0
----
5655
5655
5655

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 col2 FROM tab0 cor0
----
70
70
70

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 * 53 / col0 >= - ( - + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT DISTINCT COUNT( 34 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT COUNT ( 34 ) AS col0 FROM tab2
----
3

query II rowsort
SELECT col1 AS col2, col1 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT - SUM( DISTINCT + + col2 ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-1718
SELECT - SUM ( DISTINCT + + col2 ) AS col1 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT ( + 66 ) AS col0 FROM tab2 AS cor0
----
66
66
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 78 col0, col0 FROM tab1 cor0
----
78
51
78
85
78
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1721
SELECT DISTINCT + col1 - col1 DIV 87 * - col0 + - col1 DIV - - col0 FROM tab1 AS cor0 WHERE 96 IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1721
SELECT DISTINCT + col1 - col1 / 87 * - col0 + - col1 / - - col0 FROM tab1 AS cor0 WHERE 96 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-1722
SELECT DISTINCT 87 * COUNT( * ) AS col1, + COUNT( * ) FROM tab0
----
261
3

skipif mysql # not compatible
query II rowsort label-1722
SELECT DISTINCT 87 * COUNT ( * ) AS col1, + COUNT ( * ) FROM tab0
----
261
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1723
SELECT + 66 DIV - - col2 col1 FROM tab0
----
0
1
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1723
SELECT + 66 / - - col2 col1 FROM tab0
----
0
1
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NULL ) <> ( + + col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1725
SELECT + col2 * CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-1725
SELECT + col2 * CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( - col0 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT ( NOT - col2 IS NOT NULL )
----
14
47
5

query I rowsort
SELECT ALL + 94 AS col2 FROM tab0 cor0
----
94
94
94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 32 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE 20 * + 92 / - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 38 + - col2 FROM tab2
----
-2
-20
15

query I rowsort
SELECT ALL - 83 + + col2 + - + col2 FROM tab0
----
-83
-83
-83

query I rowsort
SELECT 8 + + 26 FROM tab2
----
34
34
34

query I rowsort
SELECT DISTINCT - col2 * - 88 FROM tab2 WHERE col2 * + col1 >= NULL
----

query I rowsort
SELECT DISTINCT + 59 + - col2 AS col1 FROM tab2
----
1
19
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1736
SELECT ALL CAST( NULL AS SIGNED ) + - + ( - MAX( DISTINCT + col0 ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1736
SELECT ALL CAST ( NULL AS INTEGER ) + - + ( - MAX ( DISTINCT + col0 ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT DISTINCT + 9 - + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-1737
SELECT DISTINCT + 9 - + COUNT ( * ) FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT SUM( ALL - - 50 ) AS col1 FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-1738
SELECT SUM ( ALL - - 50 ) AS col1 FROM tab2 AS cor0
----
150

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col2 ) + - - ( + col1 ) + 68 NOT BETWEEN ( 25 ) AND col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1740
SELECT DISTINCT COUNT( * ) DIV - 83 col1 FROM tab2, tab0 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1740
SELECT DISTINCT COUNT ( * ) / - 83 col1 FROM tab2, tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT SUM( ALL - - col1 ) - - + COUNT( * ) FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-1741
SELECT SUM ( ALL - - col1 ) - - + COUNT ( * ) FROM tab2
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT DISTINCT COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-1742
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-81

query I rowsort
SELECT - + 71 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query II rowsort
SELECT ALL + 93, + col0 AS col0 FROM tab0 AS cor0
----
93
15
93
87
93
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT DISTINCT - + COUNT( * ) FROM tab0 AS cor0 WHERE 8 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1745
SELECT DISTINCT - + COUNT ( * ) FROM tab0 AS cor0 WHERE 8 IS NULL
----
0

query II rowsort
SELECT - + 13 + - col2, col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT + - col0 AS col2, + 33 FROM tab2 AS cor0
----
-46
33
-64
33
-75
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 8 col1 FROM tab2 AS cor0
----
-8

query II rowsort
SELECT col1 AS col2, col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT + 96 * 5 AS col2 FROM tab1 AS cor0
----
480
480
480

query II rowsort
SELECT + ( 34 ) AS col2, col0 FROM tab1
----
34
51
34
85
34
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - 79 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - - 78 ) AS col2, + col0 col2 FROM tab0
----
78
15
78
87
78
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1754
SELECT ALL 47 FROM tab1 WHERE NOT + col2 * - col2 * - col0 + + CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-1754
SELECT ALL 47 FROM tab1 WHERE NOT + col2 * - col2 * - col0 + + CAST ( NULL AS INTEGER ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT + SUM( - col2 ) FROM tab0 AS cor0 WHERE NOT NULL >= 97
----
NULL

skipif mysql # not compatible
query I rowsort label-1755
SELECT + SUM ( - col2 ) FROM tab0 AS cor0 WHERE NOT NULL >= 97
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL NOT BETWEEN - col2 - - col2 AND + - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1757
SELECT ALL - 87 DIV + + col1 col2 FROM tab1 AS cor0
----
-1
-17
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1757
SELECT ALL - 87 / + + col1 col2 FROM tab1 AS cor0
----
-1
-17
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-1758
SELECT col0 DIV col0 - + col0 FROM tab2 AS cor0
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-1758
SELECT col0 / col0 - + col0 FROM tab2 AS cor0
----
-45
-63
-74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1759
SELECT ALL CAST( - - 54 AS SIGNED ) DIV col2 + + + col2 AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1759
SELECT ALL CAST ( - - 54 AS INTEGER ) / col2 + + + col2 AS col2 FROM tab1
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, 26 + + col2 col0 FROM tab2
----
51
49
67
84
77
66

query I rowsort
SELECT + col0 + - - 43 * + col0 FROM tab0
----
3828
4268
660

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT DISTINCT + SUM( - + 88 ) AS col0 FROM tab2 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-1762
SELECT DISTINCT + SUM ( - + 88 ) AS col0 FROM tab2 AS cor0
----
-264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1763
SELECT DISTINCT + col2 / + 40 / - - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) * + + 42 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1763
SELECT DISTINCT + col2 / + 40 / - - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) * + + 42 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + - col1 AS col1, col2 * - col1 + + 48 FROM tab0 AS cor0
----
-1
-51
-21
-162
-81
-3759

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) = - col0
----

query I rowsort
SELECT + + col0 * - 66 AS col2 FROM tab0 AS cor0
----
-5742
-6402
-990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1767
SELECT DISTINCT + col0 * + + 42 * 29 + - col2 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1767
SELECT DISTINCT + col0 * + + 42 * 29 + - col2 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL 22 FROM tab0 WHERE ( NULL BETWEEN col0 * + col0 * - col0 * - - col2 AND NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE + 72 = NULL
----

query I rowsort
SELECT DISTINCT + col0 * col0 + - + col2 FROM tab0
----
178
7559
9310

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 23 <> + + col2 * + - col2 * + - 33 * - + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + + + ( - - col2 ) FROM tab0 AS cor0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1773
SELECT DISTINCT CAST( + + 71 AS SIGNED ) - - col2 * - + col0 col1, 85 AS col0 FROM tab1 AS cor0
----
-4825
85
-4944
85
-6117
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1773
SELECT DISTINCT CAST ( + + 71 AS INTEGER ) - - col2 * - + col0 col1, 85 AS col0 FROM tab1 AS cor0
----
-4825
85
-4944
85
-6117
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1774
SELECT + + 83 + + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1774
SELECT + + 83 + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + 81 + - - ( 38 ) FROM tab1 AS cor0
----
4169
6923
7409

query II rowsort
SELECT - - col2 + + 47, col2 AS col2 FROM tab0 AS cor0
----
146
99
57
10
94
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1777
SELECT CAST( NULL AS SIGNED ) + - - 65 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1777
SELECT CAST ( NULL AS INTEGER ) + - - 65 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT - - MIN( col1 ) + + 88 FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-1778
SELECT - - MIN ( col1 ) + + 88 FROM tab0 AS cor0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1779
SELECT + CAST( NULL AS SIGNED ) * 90 + + + 17 * + 99 - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1779
SELECT + CAST ( NULL AS INTEGER ) * 90 + + + 17 * + 99 - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT DISTINCT + COUNT( * ) * + 7 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT + COUNT ( * ) * + 7 FROM tab1
----
21

query I rowsort
SELECT 29 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 8 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1783
SELECT ALL 7, + COUNT( * ) AS col1 FROM tab0 AS cor0
----
7
3

skipif mysql # not compatible
query II rowsort label-1783
SELECT ALL 7, + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
7
3

query I rowsort
SELECT ALL + + ( + 36 ) AS col1 FROM tab0 AS cor0
----
36
36
36

query I rowsort
SELECT ALL 33 FROM tab2 WHERE NULL BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT ALL MIN( ALL + - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL MIN ( ALL + - col0 ) FROM tab1
----
-91

query III rowsort
SELECT * FROM tab2 WHERE NOT + 37 > col2 * - + col2
----

query II rowsort
SELECT ALL + 27, col1 - - 15 AS col0 FROM tab1
----
27
20
27
29
27
62

query I rowsort
SELECT DISTINCT col2 * - + col1 FROM tab2
----
-1173
-3080
-3886

query II rowsort
SELECT ALL 65 AS col2, 32 FROM tab1
----
65
32
65
32
65
32

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / col1 + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1792
SELECT CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1792
SELECT CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col1 + col0 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT ALL + COUNT( + 13 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1794
SELECT ALL + COUNT ( + 13 ) FROM tab2
----
3

query II rowsort
SELECT DISTINCT + 93 + - + col1, col0 FROM tab0
----
12
15
72
87
92
97

query I rowsort
SELECT - - ( 37 ) - - - col0 - - col0 AS col0 FROM tab1 AS cor0
----
37
37
37

query I rowsort
SELECT - col0 + + - col1 * + col0 * + col2 FROM tab0 AS cor0
----
-18357
-57120
-9700

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1798
SELECT - + CAST( NULL AS DECIMAL ) * - col2 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1798
SELECT - + CAST ( NULL AS REAL ) * - col2 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT ALL 94 * MAX( DISTINCT - 23 ) FROM tab1 AS cor0
----
-2162

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL 94 * MAX ( DISTINCT - 23 ) FROM tab1 AS cor0
----
-2162

query I rowsort
SELECT DISTINCT ( col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1801
SELECT DISTINCT + 9 + + col1 DIV - - 32 col0 FROM tab0
----
11
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1801
SELECT DISTINCT + 9 + + col1 / - - 32 col0 FROM tab0
----
11
9

query I rowsort
SELECT ALL 92 * - 60 FROM tab1
----
-5520
-5520
-5520

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT 76 * 79 + + ( COUNT( * ) ) * + MIN( + col0 ) + + - ( 43 ) FROM tab2
----
6099

skipif mysql # not compatible
query I rowsort label-1803
SELECT 76 * 79 + + ( COUNT ( * ) ) * + MIN ( + col0 ) + + - ( 43 ) FROM tab2
----
6099

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT + COUNT( * ) + + + COUNT( * ) col0 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1804
SELECT + COUNT ( * ) + + + COUNT ( * ) col0 FROM tab0
----
6

query I rowsort
SELECT 8 AS col0 FROM tab2 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT ALL - 51 + + - COUNT( * ) AS col1 FROM tab0 WHERE - col1 IS NOT NULL
----
-54

skipif mysql # not compatible
query I rowsort label-1806
SELECT ALL - 51 + + - COUNT ( * ) AS col1 FROM tab0 WHERE - col1 IS NOT NULL
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT ALL - + 10 * - ( + 97 ) - COUNT( * ) FROM tab2 AS cor0
----
967

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL - + 10 * - ( + 97 ) - COUNT ( * ) FROM tab2 AS cor0
----
967

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1808
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) <= - col0
----

skipif mysql # not compatible
query III rowsort label-1808
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) <= - col0
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - col0 * - + 17 FROM tab0
----
1479
1649
255

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT - - SUM( ALL col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-1811
SELECT - - SUM ( ALL col1 ) AS col2 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL - - col1 * col2 AS col2 FROM tab2 AS cor0 WHERE 98 >= - ( - col2 )
----
1173
3080
3886

query I rowsort
SELECT + + ( + + 23 ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 >= + - col2 + - col1
----

query I rowsort
SELECT ALL ( + - col0 ) - - - 99 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-114
-186
-196

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + + 94 * + 91
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1816
SELECT ALL 61 DIV + - col2 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-1816
SELECT ALL 61 / + - col2 FROM tab0 AS cor0
----
-1
-6
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1817
SELECT - ( + + 3 ) AS col2, COUNT( DISTINCT - col0 ) FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-1817
SELECT - ( + + 3 ) AS col2, COUNT ( DISTINCT - col0 ) FROM tab1 AS cor0
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1818
SELECT CAST( NULL AS SIGNED ), col2 * + ( col2 ) AS col1 FROM tab1
----
NULL
3481
NULL
4624
NULL
9216

skipif mysql # not compatible
query II rowsort label-1818
SELECT CAST ( NULL AS INTEGER ), col2 * + ( col2 ) AS col1 FROM tab1
----
NULL
3481
NULL
4624
NULL
9216

query I rowsort
SELECT DISTINCT - col2 * - - col1 + - - 52 AS col2 FROM tab2
----
-1121
-3028
-3834

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT MAX( - - 31 ) AS col0 FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-1820
SELECT MAX ( - - 31 ) AS col0 FROM tab1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT ALL - MIN( ALL - 72 ) AS col2 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL - MIN ( ALL - 72 ) AS col2 FROM tab2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1822
SELECT ALL CAST( - - col0 AS SIGNED ) AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL CAST ( - - col0 AS INTEGER ) AS col0 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT ALL + MIN( col0 ) AS col1 FROM tab0 WHERE NOT ( col0 ) IS NULL
----
15

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL + MIN ( col0 ) AS col1 FROM tab0 WHERE NOT ( col0 ) IS NULL
----
15

query I rowsort
SELECT DISTINCT - + 54 + + 22 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT DISTINCT 2 * + MAX( + + 26 ) + + COUNT( * ) FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-1825
SELECT DISTINCT 2 * + MAX ( + + 26 ) + + COUNT ( * ) FROM tab0
----
55

query I rowsort
SELECT ALL + col1 * - col0 + - col2 AS col0 FROM tab0 AS cor0
----
-1262
-1837
-196

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1827
SELECT - CAST( NULL AS DECIMAL ), col2 AS col1 FROM tab1 cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-1827
SELECT - CAST ( NULL AS REAL ), col2 AS col1 FROM tab1 cor0
----
NULL
59
NULL
68
NULL
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 >= NULL
----

query I rowsort
SELECT + 50 + - ( - 23 ) FROM tab2
----
73
73
73

onlyif mysql # DIV for integer division: 
query I rowsort label-1830
SELECT - col1 * + + ( - + ( + 50 ) ) * + 91 + + 33 + col1 DIV + + col1 + - + col2 col2 FROM tab0
----
368537
4485
95574

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1830
SELECT - col1 * + + ( - + ( + 50 ) ) * + 91 + + 33 + col1 / + + col1 + - + col2 col2 FROM tab0
----
368537
4485
95574

onlyif mysql # aggregate syntax: 
query II rowsort label-1831
SELECT - - 75 col0, COUNT( * ) FROM tab0 cor0
----
75
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1831
SELECT - - 75 col0, COUNT ( * ) FROM tab0 cor0
----
75
3

query II rowsort
SELECT DISTINCT - col0 * - + ( + col2 ) * col2 AS col0, + col0 - col2 AS col1 FROM tab2 AS cor0
----
102400
24
24334
23
252300
17

query I rowsort
SELECT + 80 * - col0 AS col0 FROM tab0 AS cor0
----
-1200
-6960
-7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - - 15 + - + col2 + col1 col2 FROM tab0 AS cor0
----
-139
-1583
-671

query II rowsort
SELECT ALL col2 AS col1, + col2 + - col0 FROM tab1 cor0 WHERE NOT ( + col0 + + - 16 ) IS NULL
----
59
-26
68
-23
96
45

query I rowsort
SELECT ( + + col2 ) AS col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1837
SELECT + - 80 DIV COUNT( * ) FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-1837
SELECT + - 80 / COUNT ( * ) FROM tab1 AS cor0
----
-26

query I rowsort
SELECT DISTINCT 22 * - - 65 FROM tab2
----
1430

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1839
SELECT ALL + CAST( + + col0 AS SIGNED ) * CAST( - col0 AS SIGNED ) * - + col2 + + col0 DIV + col0 FROM tab1
----
249697
426276
563109

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL + CAST ( + + col0 AS INTEGER ) * CAST ( - col0 AS INTEGER ) * - + col2 + + col0 / + col0 FROM tab1
----
249697
426276
563109

query I rowsort
SELECT DISTINCT col2 + - 80 + + col1 * - 53 * - col1 FROM tab0
----
23303
347700
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT - COUNT( ALL + + col1 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1841
SELECT - COUNT ( ALL + + col1 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT + SUM( ALL - + col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-1842
SELECT + SUM ( ALL - + col1 ) FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1843
SELECT ALL + - SUM( DISTINCT - - 34 ) DIV + 34 AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL + - SUM ( DISTINCT - - 34 ) / + 34 AS col2 FROM tab1 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 / - col2 * - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * - + 6 AS col1 FROM tab2
----
-306
-402
-462

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1846
SELECT ALL * FROM tab0 WHERE NOT - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1846
SELECT ALL * FROM tab0 WHERE NOT - CAST ( NULL AS REAL ) IS NULL
----

query II rowsort
SELECT 13 AS col2, - col2 + - - col2 FROM tab2
----
13
0
13
0
13
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 59, + 50 * + - col0 col1 FROM tab1 AS cor0
----
59
-2550
59
-4250
59
-4550

query I rowsort
SELECT ALL + ( - 62 ) FROM tab2 AS cor0
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT DISTINCT COUNT( ALL + 2 ) FROM tab0 AS cor0 WHERE + 58 > col0
----
1

skipif mysql # not compatible
query I rowsort label-1850
SELECT DISTINCT COUNT ( ALL + 2 ) FROM tab0 AS cor0 WHERE + 58 > col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1851
SELECT ALL COUNT( * ) * - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1851
SELECT ALL COUNT ( * ) * - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + 90, - 46, - + 43, - ( col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT DISTINCT + 32 + + COUNT( * ) FROM tab1 cor0
----
35

skipif mysql # not compatible
query I rowsort label-1853
SELECT DISTINCT + 32 + + COUNT ( * ) FROM tab1 cor0
----
35

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 45 + + col1 * + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT SUM( col2 ) + + 67 AS col2 FROM tab1
----
290

skipif mysql # not compatible
query I rowsort label-1855
SELECT SUM ( col2 ) + + 67 AS col2 FROM tab1
----
290

query II rowsort
SELECT - col0 + + 91 AS col1, - col2 AS col1 FROM tab1
----
0
-68
40
-96
6
-59

query I rowsort
SELECT col0 + + + col0 + 48 FROM tab2
----
140
176
198

query I rowsort
SELECT + + col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + - 3 + - col0 AS col1 FROM tab0 AS cor0
----
-100
-18
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT ALL + + MIN( - col1 ) col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1860
SELECT ALL + + MIN ( - col1 ) col1 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT ALL + col2 FROM tab2 cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1862
SELECT ALL - col1 * col1 DIV 45 FROM tab0 cor0
----
-145
-9
0

skipif mysql # not compatible
query I rowsort label-1862
SELECT ALL - col1 * col1 / 45 FROM tab0 cor0
----
-145
-9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT COUNT( * ) - + MIN( 70 ) FROM tab2
----
-67

skipif mysql # not compatible
query I rowsort label-1863
SELECT COUNT ( * ) - + MIN ( 70 ) FROM tab2
----
-67

query I rowsort
SELECT DISTINCT + - col0 * - 80 FROM tab0 AS cor0
----
1200
6960
7760

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1865
SELECT * FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) > + - 11
----

skipif mysql # not compatible
query III rowsort label-1865
SELECT * FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) > + - 11
----

query I rowsort
SELECT - ( + - col1 ) FROM tab2 cor0 WHERE - col0 <= 14
----
51
67
77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 + 25 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT ALL 75 * + - COUNT( * ) - SUM( DISTINCT col1 ) - MAX( + col1 ) + - SUM( - 3 ) + 51 AS col1 FROM tab2 AS cor0
----
-437

skipif mysql # not compatible
query I rowsort label-1868
SELECT ALL 75 * + - COUNT ( * ) - SUM ( DISTINCT col1 ) - MAX ( + col1 ) + - SUM ( - 3 ) + 51 AS col1 FROM tab2 AS cor0
----
-437

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT DISTINCT - 58 * + COUNT( * ) col0 FROM tab1 AS cor0
----
-174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1869
SELECT DISTINCT - 58 * + COUNT ( * ) col0 FROM tab1 AS cor0
----
-174

query II rowsort
SELECT ALL + col1, col0 * col2 AS col0 FROM tab2
----
51
1058
67
4350
77
2560

query II rowsort
SELECT - 99, col1 FROM tab0 WHERE - - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + - 85 - - col0 * col1 FROM tab2
----
2210
4766
4873

query I rowsort
SELECT col1 * 94 FROM tab1
----
1316
4418
470

query II rowsort
SELECT DISTINCT - col1, + col1 AS col0 FROM tab1
----
-14
14
-47
47
-5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 5, - col2 * + 71 col2 FROM tab0
----
5
-3337
5
-7029
5
-710

query I rowsort
SELECT DISTINCT col0 * + 66 AS col0 FROM tab1 AS cor0
----
3366
5610
6006

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 - - + col2 + ( + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT - + MIN( DISTINCT - + 88 ) FROM tab0 WHERE NOT col2 >= + ( 20 )
----
88

skipif mysql # not compatible
query I rowsort label-1878
SELECT - + MIN ( DISTINCT - + 88 ) FROM tab0 WHERE NOT col2 >= + ( 20 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT DISTINCT ( COUNT( * ) ) * 68 FROM tab1
----
204

skipif mysql # not compatible
query I rowsort label-1879
SELECT DISTINCT ( COUNT ( * ) ) * 68 FROM tab1
----
204

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * - 56 * + ( + - 45 ) NOT BETWEEN - - col1 AND 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT ALL - 23 * + COUNT( ( - ( 57 ) ) ) AS col0 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-1881
SELECT ALL - 23 * + COUNT ( ( - ( 57 ) ) ) AS col0 FROM tab2 AS cor0
----
-69

query I rowsort
SELECT ALL + 53 * col1 FROM tab2 AS cor0
----
2703
3551
4081

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT - - SUM( - ( col1 ) ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-1883
SELECT - - SUM ( - ( col1 ) ) AS col1 FROM tab1 AS cor0
----
-66

query II rowsort
SELECT + + ( - - 75 ) AS col0, col2 AS col2 FROM tab1 AS cor0
----
75
59
75
68
75
96

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NULL > + + col1 * - 74
----

query I rowsort
SELECT DISTINCT 22 * - - 13 + col1 FROM tab0
----
287
307
367

query III rowsort
SELECT * FROM tab1 WHERE NULL = ( - 88 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + - 25 * + 66 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT ALL + + COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL + + COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = + - 39 AND NOT - 39 IS NULL
----

query I rowsort
SELECT - 86 + + 34 FROM tab2 AS cor0
----
-52
-52
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1892
SELECT - col1 * + col2 + col1 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
-1122
-3003
-3819

skipif mysql # not compatible
query I rowsort label-1892
SELECT - col1 * + col2 + col1 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
-1122
-3003
-3819

query I rowsort
SELECT col2 * col2 * - 60 + + 43 + - 25 FROM tab0 AS cor0
----
-132522
-588042
-5982

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN col2 AND 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT + + ( - COUNT( * ) ) FROM tab2 WHERE ( NULL NOT BETWEEN NULL AND ( NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-1895
SELECT + + ( - COUNT ( * ) ) FROM tab2 WHERE ( NULL NOT BETWEEN NULL AND ( NULL ) )
----
0

query I rowsort
SELECT + - 1 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT ALL - COUNT( DISTINCT 98 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1897
SELECT ALL - COUNT ( DISTINCT 98 ) FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + + 2 AS col0 FROM tab1 cor0
----
2

query II rowsort
SELECT DISTINCT col1 - 15, - ( + col0 ) AS col1 FROM tab1 AS cor0
----
-1
-51
-10
-85
32
-91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 7 < ( NULL )
----

query II rowsort
SELECT ( + col1 ), 20 AS col0 FROM tab2 AS cor0
----
51
20
67
20
77
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1902
SELECT - + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1902
SELECT - + CAST ( NULL AS REAL ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1903
SELECT ALL + 9 - - MAX( + 53 ) DIV - 92 * - + 17 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL + 9 - - MAX ( + 53 ) / - 92 * - + 17 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-1904
SELECT + COUNT( * ), COUNT( 44 ) AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-1904
SELECT + COUNT ( * ), COUNT ( 44 ) AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 NOT IN ( col0, - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col0 - 10 + + col2 FROM tab2 cor0
----
123
59
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1907
SELECT - - CAST( NULL AS SIGNED ) - col0 + - col0 + col0 / - + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT - - CAST ( NULL AS INTEGER ) - col0 + - col0 + col0 / - + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 1 * 4 FROM tab0 cor0
----
-4

query I rowsort
SELECT + - 76 * - col0 + - col0 FROM tab2 AS cor0
----
3450
4800
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT DISTINCT + COUNT( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1910
SELECT DISTINCT + COUNT ( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * + 25 * + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( 85 ) FROM tab1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT COUNT( 85 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1913
SELECT COUNT ( 85 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT MIN( 48 ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-1914
SELECT MIN ( 48 ) FROM tab1
----
48

query II rowsort
SELECT ALL - 22 AS col2, ( col2 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-22
59
-22
68
-22
96

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab0 AS cor0 WHERE NOT col1 * + 17 IS NULL
----
-10
-47
-99

query II rowsort
SELECT col1, 31 FROM tab0 AS cor0
----
1
31
21
31
81
31

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 49 * - col0 * - + col1 / - col1 + + col0 <= + - col1 * + - ( - + 31 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1919
SELECT - CAST( NULL AS SIGNED ) * - + AVG ( - col1 ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1919
SELECT - CAST ( NULL AS INTEGER ) * - + AVG ( - col1 ) AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1920
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - 55 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1920
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - 55 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - 56 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col0, col2 + col0 AS col0 FROM tab2 AS cor0
----
46
69
64
104
75
133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab0 AS cor0 WHERE 63 IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1924
SELECT * FROM tab2 WHERE - + CAST( NULL AS SIGNED ) = col2
----

skipif mysql # not compatible
query III rowsort label-1924
SELECT * FROM tab2 WHERE - + CAST ( NULL AS INTEGER ) = col2
----

query I rowsort
SELECT ALL 33 + + + 48 FROM tab0
----
81
81
81

query I rowsort
SELECT - col2 + + 46 AS col2 FROM tab0
----
-1
-53
36

query I rowsort
SELECT ( col1 ) + + + 30 FROM tab2
----
107
81
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1928
SELECT DISTINCT COUNT( * ) DIV - 26 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1928
SELECT DISTINCT COUNT ( * ) / - 26 FROM tab0
----
0

query I rowsort
SELECT ( - - 64 ) + - col1 AS col0 FROM tab0
----
-17
43
63

query I rowsort
SELECT 14 + - col0 AS col0 FROM tab0
----
-1
-73
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1931
SELECT DISTINCT - CAST( + + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> col1 * + ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-1931
SELECT DISTINCT - CAST ( + + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> col1 * + ( + col0 )
----

query II rowsort
SELECT DISTINCT - - 10 - col1, + col2 AS col0 FROM tab1 cor0
----
-37
68
-4
96
5
59

onlyif mysql # aggregate syntax: 
query II rowsort label-1933
SELECT DISTINCT + MAX( ALL + - col2 ), - MIN( + col0 ) col2 FROM tab1 AS cor0
----
-59
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1933
SELECT DISTINCT + MAX ( ALL + - col2 ), - MIN ( + col0 ) col2 FROM tab1 AS cor0
----
-59
-51

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 / col0 IN ( 53, + 24 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * + + 29 * col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( - col2, col0 + + ( + - col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 + - col1 col1 FROM tab1 AS cor0
----
420
4230
700

onlyif mysql # DIV for integer division: 
query II rowsort label-1937
SELECT - + col1, - col0 + - + col1 DIV + + 41 AS col2 FROM tab2 AS cor0
----
-51
-47
-67
-76
-77
-65

skipif mysql # not compatible
query II rowsort label-1937
SELECT - + col1, - col0 + - + col1 / + + 41 AS col2 FROM tab2 AS cor0
----
-51
-47
-67
-76
-77
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-1938
SELECT DISTINCT - COUNT( * ) AS col1, COUNT( * ) AS col1 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-1938
SELECT DISTINCT - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3
3

query I rowsort
SELECT + 59 * - ( col2 ) AS col1 FROM tab1
----
-3481
-4012
-5664

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT - SUM( ALL + 69 ) FROM tab2
----
-207

skipif mysql # not compatible
query I rowsort label-1940
SELECT - SUM ( ALL + 69 ) FROM tab2
----
-207

query III rowsort
SELECT * FROM tab0 WHERE NOT + 76 + - - 81 * + + 61 * + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 40 - 55 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 67 col1 FROM tab2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT DISTINCT - ( + + MAX( + col2 ) ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1944
SELECT DISTINCT - ( + + MAX ( + col2 ) ) FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1945
SELECT DISTINCT - CAST( + CAST( + 20 AS SIGNED ) AS SIGNED ) AS col0 FROM tab0 cor0
----
-20

skipif mysql # not compatible
query I rowsort label-1945
SELECT DISTINCT - CAST ( + CAST ( + 20 AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 cor0
----
-20

query I rowsort
SELECT DISTINCT + 40 * + 12 FROM tab2
----
480

query I rowsort
SELECT - + 21 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1948
SELECT - 70 DIV - 68 + 31 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-1948
SELECT - 70 / - 68 + 31 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
94

query I rowsort
SELECT + 59 AS col2 FROM tab1 AS cor0 WHERE ( 75 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 77 col2 FROM tab1 AS cor0
----
77
77
77

query I rowsort
SELECT DISTINCT 81 * + - col2 * + + 90 * + col2 FROM tab0 AS cor0
----
-16103610
-71449290
-729000

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1952
SELECT + COUNT( DISTINCT + 47 ) DIV 85 AS col2, COUNT( * ) AS col1 FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-1952
SELECT + COUNT ( DISTINCT + 47 ) / 85 AS col2, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0
3

query I rowsort
SELECT ALL col0 + + 37 FROM tab0
----
124
134
52

query II rowsort
SELECT col1 + + col1, + 32 AS col0 FROM tab2 WHERE col0 > + col2 + 46 + - 86 + - - col1
----
102
32

query I rowsort
SELECT DISTINCT 84 + + 9 + - col1 * + col1 * ( + 13 ) * + - 42 * + - col1 + + 72 + - - 39 FROM tab2
----
-164216394
-249266814
-72427242

query III rowsort
SELECT * FROM tab1 WHERE + + 21 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1957
SELECT + SUM( + col0 ) + + + COUNT( ALL CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-1957
SELECT + SUM ( + col0 ) + + + COUNT ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT DISTINCT - 4 - - + col2 AS col2 FROM tab2 AS cor0
----
19
36
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1959
SELECT ALL + CAST( 88 AS SIGNED ) FROM tab2 AS cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-1959
SELECT ALL + CAST ( 88 AS INTEGER ) FROM tab2 AS cor0
----
88
88
88

query I rowsort
SELECT - col1 * - col1 * - col0 + - col0 FROM tab0 AS cor0
----
-194
-38454
-98430

query III rowsort
SELECT * FROM tab2 cor0 WHERE 93 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + - col2 ) IN ( + + col0, col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT + SUM( DISTINCT col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-1963
SELECT + SUM ( DISTINCT col0 ) FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT - + MIN( DISTINCT - col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1964
SELECT - + MIN ( DISTINCT - col0 ) FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-1965
SELECT + 71 * - 77 * COUNT( * ), 24 AS col0 FROM tab0 AS cor0 WHERE NOT col1 * col0 - + + col1 IS NOT NULL
----
0
24

skipif mysql # not compatible
query II rowsort label-1965
SELECT + 71 * - 77 * COUNT ( * ), 24 AS col0 FROM tab0 AS cor0 WHERE NOT col1 * col0 - + + col1 IS NOT NULL
----
0
24

query II rowsort
SELECT + col2 * - col2 * col1 AS col0, 84 AS col2 FROM tab1 AS cor0
----
-129024
84
-17405
84
-217328
84

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 < NULL
----

query I rowsort
SELECT DISTINCT col0 * - ( + col1 ) AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1969
SELECT DISTINCT ( + - MIN( ALL + - col1 ) ) DIV - 64 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT ( + - MIN ( ALL + - col1 ) ) / - 64 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT 50 * + 11 AS col2 FROM tab0 AS cor0
----
550
550
550

query I rowsort
SELECT col0 * - 43 AS col2 FROM tab2
----
-1978
-2752
-3225

query III rowsort
SELECT * FROM tab1 WHERE NOT + - ( + + col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( NULL ) NOT IN ( - + ( + 43 ) + + 96 + - 29, col2, - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT DISTINCT - MIN( ALL + col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-1974
SELECT DISTINCT - MIN ( ALL + col1 ) FROM tab2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1975
SELECT ALL col0 AS col0, CAST( - - 90 AS SIGNED ) * + col1 FROM tab0
----
15
7290
87
1890
97
90

skipif mysql # not compatible
query II rowsort label-1975
SELECT ALL col0 AS col0, CAST ( - - 90 AS INTEGER ) * + col1 FROM tab0
----
15
7290
87
1890
97
90

onlyif mysql # DIV for integer division: 
query I rowsort label-1976
SELECT - col1 DIV + 80 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1976
SELECT - col1 / + 80 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + 42 * + col0 AS col2 FROM tab0
----
3654
4074
630

query II rowsort
SELECT + + col1, - col0 + - 67 FROM tab2 AS cor0
----
51
-113
67
-142
77
-131

query I rowsort
SELECT ALL + + 10 AS col2 FROM tab2 AS cor0
----
10
10
10

onlyif mysql # DIV for integer division: 
query I rowsort label-1980
SELECT col0 + 46 - + 34 DIV col0 * - col0 col1 FROM tab2 AS cor0
----
110
121
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1980
SELECT col0 + 46 - + 34 / col0 * - col0 col1 FROM tab2 AS cor0
----
110
121
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT DISTINCT MIN( DISTINCT + 82 ) FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-1981
SELECT DISTINCT MIN ( DISTINCT + 82 ) FROM tab0 AS cor0
----
82

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 > ( 42 + - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col0 ) NOT IN ( 14 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1984
SELECT DISTINCT * FROM tab1 WHERE CAST( col0 AS SIGNED ) IN ( - col0 * + ( - 84 * + col0 ) + col2 )
----

skipif mysql # not compatible
query III rowsort label-1984
SELECT DISTINCT * FROM tab1 WHERE CAST ( col0 AS INTEGER ) IN ( - col0 * + ( - 84 * + col0 ) + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1985
SELECT col0 DIV col2 + + col1 FROM tab2
----
53
68
78

skipif mysql # not compatible
query I rowsort label-1985
SELECT col0 / col2 + + col1 FROM tab2
----
53
68
78

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 * 60 ) NOT BETWEEN ( 41 ) AND - col1
----

query I rowsort
SELECT col2 + 89 * - 34 FROM tab1
----
-2930
-2958
-2967

query I rowsort
SELECT ALL 1 FROM tab1 WHERE NOT col2 * - col1 + + col1 IS NULL
----
1
1
1

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 73 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 48 FROM tab0 WHERE NOT 94 + 43 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT ALL - MIN( + 69 ) * 35 FROM tab0
----
-2415

skipif mysql # not compatible
query I rowsort label-1991
SELECT ALL - MIN ( + 69 ) * 35 FROM tab0
----
-2415

query I rowsort
SELECT ALL 52 * - 34 + ( ( + col2 ) ) FROM tab2 WHERE NOT NULL NOT BETWEEN + col1 * col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1993
SELECT - col2 + + col0 DIV 21 FROM tab0
----
-47
-6
-95

skipif mysql # not compatible
query I rowsort label-1993
SELECT - col2 + + col0 / 21 FROM tab0
----
-47
-6
-95

query I rowsort
SELECT - ( + ( col0 ) ) FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1995
SELECT * FROM tab0 WHERE ( + CAST( - col2 AS DECIMAL ) + + col1 * + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1995
SELECT * FROM tab0 WHERE ( + CAST ( - col2 AS REAL ) + + col1 * + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * + col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 88 * 4 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
352
352
352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1998
SELECT DISTINCT + col1 / - ( CAST( NULL AS SIGNED ) / + col2 ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1998
SELECT DISTINCT + col1 / - ( CAST ( NULL AS INTEGER ) / + col2 ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) col1 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2000
SELECT DISTINCT * FROM tab2 WHERE ( + ( - CAST( NULL AS SIGNED ) ) * + col0 + + col0 * + ( + 28 * col0 ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2000
SELECT DISTINCT * FROM tab2 WHERE ( + ( - CAST ( NULL AS INTEGER ) ) * + col0 + + col0 * + ( + 28 * col0 ) ) IS NOT NULL
----

query I rowsort
SELECT col0 + 3 AS col1 FROM tab0
----
100
18
90

query I rowsort
SELECT col1 + 74 * col2 AS col1 FROM tab1
----
4371
5079
7118

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE 31 * col0 BETWEEN NULL AND ( 94 )
----

query I rowsort
SELECT DISTINCT - col0 * col2 + col1 AS col2 FROM tab2
----
-1007
-2483
-4283

query I rowsort
SELECT + col2 * 94 AS col2 FROM tab0
----
4418
9306
940

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2006
SELECT ALL ( CAST( + 33 AS SIGNED ) ) * col2 + 24 DIV - 54 FROM tab2
----
1320
1914
759

skipif mysql # not compatible
query I rowsort label-2006
SELECT ALL ( CAST ( + 33 AS INTEGER ) ) * col2 + 24 / - 54 FROM tab2
----
1320
1914
759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 95 col2 FROM tab1
----
5605
6460
9120

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2008
SELECT CAST( NULL AS DECIMAL ) + + ( ( ( + COUNT( ALL col2 ) ) ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2008
SELECT CAST ( NULL AS REAL ) + + ( ( ( + COUNT ( ALL col2 ) ) ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 87 FROM tab1 WHERE 24 - - col2 >= + col2
----
87

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + ( col2 ) ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 * col1 NOT BETWEEN NULL AND 57
----

query I rowsort
SELECT ALL ( - col2 ) * col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT - ( 60 ) - - 57 FROM tab1 WHERE NOT - 5 < col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2014
SELECT * FROM tab2 WHERE ( CAST( NULL AS SIGNED ) ) = + col2
----

skipif mysql # not compatible
query III rowsort label-2014
SELECT * FROM tab2 WHERE ( CAST ( NULL AS INTEGER ) ) = + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2015
SELECT ALL + COUNT( * ) DIV 64 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2015
SELECT ALL + COUNT ( * ) / 64 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT MAX( ALL 47 ) AS col2 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-2016
SELECT MAX ( ALL 47 ) AS col2 FROM tab0
----
47

query I rowsort
SELECT DISTINCT + col0 * - ( - ( - col0 ) ) FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT - 21 * 48 - - 81 FROM tab1 AS cor0
----
-927

query I rowsort
SELECT ALL + ( + col2 ) - col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2020
SELECT + CAST( NULL AS SIGNED ) - 5 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2020
SELECT + CAST ( NULL AS INTEGER ) - 5 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 - + 71 AS col0 FROM tab1 AS cor0
----
-130
-139
-167

query I rowsort
SELECT - 44 + ( 87 + col1 ) AS col0 FROM tab2 WHERE NOT ( - col2 ) * col1 NOT IN ( - col2 - + col2 )
----

query I rowsort
SELECT DISTINCT - 63 FROM tab1 cor0 CROSS JOIN tab0
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) col1 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col0 >= col1
----
-3

skipif mysql # not compatible
query I rowsort label-2025
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col0 >= col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT ALL - - MAX( DISTINCT 46 ) AS col0 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL - - MAX ( DISTINCT 46 ) AS col0 FROM tab2 cor0
----
46

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 87 * - col2 IS NULL
----

query I rowsort
SELECT ALL + + 40 AS col2 FROM tab2 cor0
----
40
40
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2029
SELECT DISTINCT - 64 DIV col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT - 64 / col1 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT ALL + 98 / + 57 + + col0 FROM tab2 AS cor0 WHERE NULL > col1 + 7
----

query I rowsort
SELECT ALL 55 * 39 AS col2 FROM tab0 AS cor0
----
2145
2145
2145

onlyif mysql # DIV for integer division: 
query I rowsort label-2032
SELECT DISTINCT 85 DIV - col1 AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2032
SELECT DISTINCT 85 / - col1 AS col1 FROM tab2
----
-1

query I rowsort
SELECT 94 - 17 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
77
77
77

query I rowsort
SELECT col0 * - 37 * - col2 AS col0 FROM tab1
----
181152
185555
228956

query I rowsort
SELECT col1 * + 51 AS col0 FROM tab2
----
2601
3417
3927

query I rowsort
SELECT ALL + 0 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 + - col0 + 88 FROM tab2
----
-53
-54
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 34 ) col1 FROM tab0 AS cor0
----
34
34
34

query I rowsort
SELECT + col0 * - col2 + - 31 FROM tab2 AS cor0
----
-1089
-2591
-4381

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT DISTINCT + COUNT( * ) * + + 77 FROM tab1 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-2040
SELECT DISTINCT + COUNT ( * ) * + + 77 FROM tab1 AS cor0
----
231

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2041
SELECT DISTINCT + COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2041
SELECT DISTINCT + COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT - - 73 * + 59 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
4307

onlyif mysql # DIV for integer division: 
query I rowsort label-2043
SELECT - col1 * + col1 + + col2 DIV - 92 FROM tab1
----
-197
-2209
-25

skipif mysql # not compatible
query I rowsort label-2043
SELECT - col1 * + col1 + + col2 / - 92 FROM tab1
----
-197
-2209
-25

query I rowsort
SELECT + + 29 * - 6 FROM tab1 AS cor0
----
-174
-174
-174

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2045
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 33 * - - col2 * col1 - CAST( NULL AS SIGNED ) ) < NULL
----

skipif mysql # not compatible
query III rowsort label-2045
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 33 * - - col2 * col1 - CAST ( NULL AS INTEGER ) ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT ALL + SUM( DISTINCT - col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL + SUM ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-223

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE col1 * + col1 * col1 <> NULL
----

query I rowsort
SELECT ALL + - 53 FROM tab1 AS cor0 WHERE col1 > NULL
----

query I rowsort
SELECT DISTINCT + - col2 + col2 - + col1 + col2 AS col0 FROM tab1 AS cor0
----
21
54
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - col0 col1 FROM tab1 AS cor0
----
4896
5015
6188

query II rowsort
SELECT - 78 AS col0, 5 * + 97 AS col2 FROM tab2 cor0
----
-78
485
-78
485
-78
485

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT SUM( DISTINCT + + 70 ) AS col1 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-2052
SELECT SUM ( DISTINCT + + 70 ) AS col1 FROM tab1 AS cor0
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2053
SELECT - - COUNT( * ) DIV COUNT( * ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2053
SELECT - - COUNT ( * ) / COUNT ( * ) FROM tab2 AS cor0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - ( - col1 ) + col1 ) NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2055
SELECT CAST( - COUNT( DISTINCT + col0 ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2055
SELECT CAST ( - COUNT ( DISTINCT + col0 ) AS INTEGER ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + 26 AS col0 FROM tab2 cor0
----
26
26
26

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( 11 ) + - col2 NOT IN ( + col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 - col1 * 49 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2059
SELECT DISTINCT COUNT( DISTINCT col0 ) * - COUNT( * ) - CAST( NULL AS SIGNED ) * - 14 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2059
SELECT DISTINCT COUNT ( DISTINCT col0 ) * - COUNT ( * ) - CAST ( NULL AS INTEGER ) * - 14 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2060
SELECT col1 DIV 6 FROM tab1
----
0
2
7

skipif mysql # not compatible
query I rowsort label-2060
SELECT col1 / 6 FROM tab1
----
0
2
7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN - col1 AND col0 AND 57 - + 38 NOT BETWEEN NULL AND ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2062
SELECT + CAST( + 80 AS SIGNED ) + + col0 * + + col1 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2062
SELECT + CAST ( + 80 AS INTEGER ) + + col0 * + + col1 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2063
SELECT 42 + + 32 + + 31 - - 10 * + ( 10 ) * + ( + SUM( CAST( CAST( - 72 AS SIGNED ) AS SIGNED ) ) ) AS col1 FROM tab2
----
-21495

skipif mysql # not compatible
query I rowsort label-2063
SELECT 42 + + 32 + + 31 - - 10 * + ( 10 ) * + ( + SUM ( CAST ( CAST ( - 72 AS INTEGER ) AS INTEGER ) ) ) AS col1 FROM tab2
----
-21495

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 >= NULL
----

query I rowsort
SELECT ALL 77 + + + 84 AS col1 FROM tab0 AS cor0
----
161
161
161

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT ( COUNT( * ) ) + + COUNT( * ) + + 37 * 95 FROM tab0 AS cor0
----
3521

skipif mysql # not compatible
query I rowsort label-2066
SELECT ( COUNT ( * ) ) + + COUNT ( * ) + + 37 * 95 FROM tab0 AS cor0
----
3521

query I rowsort
SELECT col2 + - - col0 + - + 66 AS col1 FROM tab0 AS cor0
----
-4
130
31

query I rowsort
SELECT DISTINCT + 53 FROM tab2 cor0 WHERE + ( col0 ) NOT BETWEEN + col0 + 97 AND ( NULL )
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-2069
SELECT + 72 * + 84 AS col1, - 7 + + COUNT( * ) FROM tab0 AS cor0
----
6048
-4

skipif mysql # not compatible
query II rowsort label-2069
SELECT + 72 * + 84 AS col1, - 7 + + COUNT ( * ) FROM tab0 AS cor0
----
6048
-4

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 50 + + 54 * + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT ALL + MAX( 11 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
11

skipif mysql # not compatible
query I rowsort label-2071
SELECT ALL + MAX ( 11 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT + COUNT( + col2 ) * + 49 FROM tab0 WHERE NOT ( ( NOT ( - col2 ) IS NULL ) ) OR ( NULL ) IN ( - col1 * col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2072
SELECT + COUNT ( + col2 ) * + 49 FROM tab0 WHERE NOT ( ( NOT ( - col2 ) IS NULL ) ) OR ( NULL ) IN ( - col1 * col2 )
----
0

query I rowsort
SELECT ALL - 85 * - col2 AS col1 FROM tab2
----
1955
3400
4930

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT ALL - + COUNT( * ) * - 57 col1 FROM tab0 AS cor0
----
171

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2074
SELECT ALL - + COUNT ( * ) * - 57 col1 FROM tab0 AS cor0
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2075
SELECT ALL CAST( - 71 AS SIGNED ) - + 1 FROM tab2 cor0 WHERE + col0 IS NOT NULL
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-2075
SELECT ALL CAST ( - 71 AS INTEGER ) - + 1 FROM tab2 cor0 WHERE + col0 IS NOT NULL
----
-72
-72
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - - col0 col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT ALL + SUM( - 75 ) col1 FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2077
SELECT ALL + SUM ( - 75 ) col1 FROM tab2 AS cor0
----
-225

query I rowsort
SELECT DISTINCT - - 47 * + col2 FROM tab2 AS cor0
----
1081
1880
2726

query I rowsort
SELECT ALL ( + 11 ) AS col0 FROM tab0 AS cor0
----
11
11
11

query I rowsort
SELECT ALL - col0 * col2 * - col0 + - col0 * col1 AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND ( + - 3 + + - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 53 <= + ( + - 53 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 37 * - 72 FROM tab1 WHERE NOT + col0 + - col0 NOT IN ( - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT 33 + + + COUNT( * ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-2083
SELECT 33 + + + COUNT ( * ) FROM tab2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT - SUM( ALL col0 ) + + COUNT( * ) AS col1 FROM tab0
----
-196

skipif mysql # not compatible
query I rowsort label-2084
SELECT - SUM ( ALL col0 ) + + COUNT ( * ) AS col1 FROM tab0
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT ALL + MAX( col1 ) FROM tab0 WHERE NOT ( 84 / - col2 + col2 ) NOT IN ( col2 + 3 * ( + col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL + MAX ( col1 ) FROM tab0 WHERE NOT ( 84 / - col2 + col2 ) NOT IN ( col2 + 3 * ( + col0 ) )
----
NULL

query I rowsort
SELECT ALL - 45 + - col1 AS col1 FROM tab1
----
-50
-59
-92

query I rowsort
SELECT ALL 28 * - 96 * - col1 FROM tab0
----
217728
2688
56448

onlyif mysql # DIV for integer division: 
query I rowsort label-2088
SELECT ALL + ( - ( 42 ) ) DIV - 6 col1 FROM tab1
----
7
7
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2088
SELECT ALL + ( - ( 42 ) ) / - 6 col1 FROM tab1
----
7
7
7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 93 ) NOT BETWEEN NULL AND + col1 + + col2 * + 95 * + - 37
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 24 AS col0 FROM tab0 AS cor0 WHERE NOT ( col0 * + 99 ) IS NOT NULL
----

query II rowsort
SELECT ALL col0 + ( col1 ), col0 * col2 * + ( col1 ) AS col0 FROM tab0
----
108
18270
96
57105
98
9603

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2093
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2093
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2094
SELECT ALL - COUNT( * ) DIV + 79 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2094
SELECT ALL - COUNT ( * ) / + 79 AS col2 FROM tab0
----
0

query I rowsort
SELECT + ( - 1 ) - + + ( + col0 ) FROM tab1 WHERE NULL BETWEEN + col0 AND - - 24
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 + - col2 * - + 17 * 36 * - col0 + + ( - 44 ) col0 FROM tab0 AS cor0
----
-431504
-532484
-5877080

query I rowsort
SELECT DISTINCT 97 AS col2 FROM tab1 AS cor0
----
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN col1 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2099
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col1 + CAST( - ( + col2 ) AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2099
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col1 + CAST ( - ( + col2 ) AS INTEGER ) AND NULL
----

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE ( NOT + - 91 IS NULL )
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2101
SELECT ALL - CAST( NULL AS SIGNED ) col0, 85 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
85
NULL
85
NULL
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2101
SELECT ALL - CAST ( NULL AS INTEGER ) col0, 85 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
85
NULL
85
NULL
85

onlyif mysql # DIV for integer division: 
query I rowsort label-2102
SELECT ALL ( + col2 ) DIV col2 + + + col2 + - col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2102
SELECT ALL ( + col2 ) / col2 + + + col2 + - col2 FROM tab1
----
1
1
1

query I rowsort
SELECT - ( 47 ) * - 86 FROM tab1
----
4042
4042
4042

onlyif mysql # DIV for integer division: 
query I rowsort label-2104
SELECT 24 DIV - + col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2104
SELECT 24 / - + col1 AS col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 3 ) col0 FROM tab0
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2106
SELECT + CAST( NULL AS SIGNED ) * + col1 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2106
SELECT + CAST ( NULL AS INTEGER ) * + col1 col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + 40 AS col2, 53 + + 56 FROM tab0
----
40
109

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 20 - col1 + 76 col0, ( + 65 ) col2 FROM tab2
----
19
65
29
65
45
65

query I rowsort
SELECT ALL - col0 + + - 96 + - col1 AS col1 FROM tab2 WHERE NOT - col1 + + col1 >= NULL
----

query I rowsort
SELECT DISTINCT - - 46 AS col0 FROM tab1 cor0
----
46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * - + 9 * + + col2 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 / - 33 * + col2 IN ( - 47 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 36 * - + 22 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-792

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2114
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2114
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( + + CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT + + col0, + col2 + - - 27 AS col1 FROM tab2 AS cor0
----
46
50
64
67
75
85

query II rowsort
SELECT ALL col0 AS col2, + 72 FROM tab0 AS cor0
----
15
72
87
72
97
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT DISTINCT MAX( + + ( + 65 ) ) AS col0 FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-2117
SELECT DISTINCT MAX ( + + ( + 65 ) ) AS col0 FROM tab2
----
65

query I rowsort
SELECT - 65 * + AVG ( ALL 67 ) * + 66 FROM tab0, tab1 AS cor0 WHERE NOT NULL > - 22
----
NULL

query I rowsort
SELECT + col1 * - - 42 FROM tab1
----
1974
210
588

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT DISTINCT + COUNT( + 12 ) FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT + COUNT ( + 12 ) FROM tab1, tab2 AS cor0
----
9

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 2 IS NOT NULL
----

query I rowsort
SELECT + - 3 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT - ( + 9 ) FROM tab1 AS cor0
----
-9
-9
-9

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 + 45 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 75 + col1 AS col1 FROM tab1 AS cor0
----
122
80
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT + COUNT( + 81 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2126
SELECT + COUNT ( + 81 ) col0 FROM tab2
----
3

query I rowsort
SELECT + 73 * + - col0 FROM tab0
----
-1095
-6351
-7081

query I rowsort
SELECT DISTINCT - 45 FROM tab2 WHERE - 72 IS NULL
----

query II rowsort
SELECT - 68 AS col1, + 91 AS col0 FROM tab1 WHERE NOT - 76 = ( col1 )
----
-68
91
-68
91
-68
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 * - ( - col2 ) col1 FROM tab1
----
5487
6324
8928

query I rowsort
SELECT DISTINCT - 78 + col0 FROM tab2
----
-14
-3
-32

query I rowsort
SELECT ALL - col1 * 36 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 73 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2134
SELECT ALL col0 + col0 / CAST( NULL AS SIGNED ) / 40 * + - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL col0 + col0 / CAST ( NULL AS INTEGER ) / 40 * + - col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 5 * - col1 * col2 AS col2 FROM tab0 WHERE NOT + col2 < NULL
----

query I rowsort
SELECT DISTINCT + + col1 + + + col0 * col2 * + + col2 FROM tab0 AS cor0
----
33216
8721
950698

query I rowsort
SELECT + col1 + - col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT 49 + COUNT( * ) col2 FROM tab2 cor0
----
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2138
SELECT 49 + COUNT ( * ) col2 FROM tab2 cor0
----
52

query I rowsort
SELECT + 41 + - + 56 FROM tab0 AS cor0
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT + 13 + - - COUNT( * ) FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-2140
SELECT + 13 + - - COUNT ( * ) FROM tab1 AS cor0
----
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 25 col0 FROM tab0
----
-15
22
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT DISTINCT 25 + COUNT( * ) AS col0 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-2142
SELECT DISTINCT 25 + COUNT ( * ) AS col0 FROM tab0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT ALL + COUNT( * ) + - 66 * + COUNT( DISTINCT + - col2 ) AS col0 FROM tab0
----
-195

skipif mysql # not compatible
query I rowsort label-2143
SELECT ALL + COUNT ( * ) + - 66 * + COUNT ( DISTINCT + - col2 ) AS col0 FROM tab0
----
-195

query I rowsort
SELECT ALL + col1 + - col2 * + col0 - + + col1 + + col1 * + 43 * col1 + col1 FROM tab2
----
110836
188744
252464

query I rowsort
SELECT DISTINCT - col0 + - 29 * + col0 FROM tab2
----
-1380
-1920
-2250

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT + COUNT( * ) + - - COUNT( * ) - + + ( + - COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-2146
SELECT + COUNT ( * ) + - - COUNT ( * ) - + + ( + - COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
9

query I rowsort
SELECT 85 - + + 31 AS col1 FROM tab2 AS cor0
----
54
54
54

query I rowsort
SELECT + 43 * + col1 + col0 - col1 - - - col1 AS col2 FROM tab1 AS cor0
----
2018
290
625

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
-51
-67
-77

query I rowsort
SELECT ALL + - col0 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 13 * + + col2 col1 FROM tab2
----
15249
40040
50518

query I rowsort
SELECT ( - 25 ) FROM tab1
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT ALL - ( - + COUNT( ALL + ( + - 70 ) ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL - ( - + COUNT ( ALL + ( + - 70 ) ) ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2154
SELECT + - 10 DIV - - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2154
SELECT + - 10 / - - col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 47 * - 25 + + + 7 FROM tab0 AS cor0
----
-1168
-1168
-1168

query I rowsort
SELECT - + 27 AS col0 FROM tab2 AS cor0
----
-27
-27
-27

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col1 ) + + col2 <= NULL
----

query I rowsort
SELECT + - 28 AS col2 FROM tab1 AS cor0
----
-28
-28
-28

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col1 + - col1 ) NOT IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 47 FROM tab0 AS cor0 WHERE NOT ( col0 * col1 ) = ( + col0 )
----
47
47

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( - - 71 ) < - + 67 * + + ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2162
SELECT ALL - 13 AS col1, - MIN( + col2 ) col1 FROM tab1
----
-13
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2162
SELECT ALL - 13 AS col1, - MIN ( + col2 ) col1 FROM tab1
----
-13
-59

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN + col0 * + + col1 AND - ( - - 51 )
----

query I rowsort
SELECT col2 * - 4 AS col2 FROM tab2
----
-160
-232
-92

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 # aggregate syntax: 
query I rowsort label-2166
SELECT - - MIN( - col1 ) FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2166
SELECT - - MIN ( - col1 ) FROM tab0 cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT DISTINCT - ( + COUNT( * ) ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2167
SELECT DISTINCT - ( + COUNT ( * ) ) AS col1 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2168
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 + - col0 + ( CAST( NULL AS SIGNED ) ) * + col1 * 88 IN ( + + ( + + 96 ), 95 * col1 + - 84 + - - col2 )
----

skipif mysql # not compatible
query III rowsort label-2168
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 + - col0 + ( CAST ( NULL AS INTEGER ) ) * + col1 * 88 IN ( + + ( + + 96 ), 95 * col1 + - 84 + - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT - 82 * + COUNT( * ) * + 55 FROM tab1 AS cor0
----
-13530

skipif mysql # not compatible
query I rowsort label-2169
SELECT - 82 * + COUNT ( * ) * + 55 FROM tab1 AS cor0
----
-13530

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 24 * col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT ALL - SUM( - 83 ) AS col0 FROM tab0 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL - SUM ( - 83 ) AS col0 FROM tab0 AS cor0
----
249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2172
SELECT - - col2 FROM tab1 WHERE NULL NOT BETWEEN - + col2 * col1 * + + col0 - + CAST( NULL AS SIGNED ) AND + col0
----

skipif mysql # not compatible
query I rowsort label-2172
SELECT - - col2 FROM tab1 WHERE NULL NOT BETWEEN - + col2 * col1 * + + col0 - + CAST ( NULL AS INTEGER ) AND + col0
----

query I rowsort
SELECT - col1 + - 8 FROM tab0
----
-29
-89
-9

query III rowsort
SELECT * FROM tab0 WHERE col1 IN ( - - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + col1 + col2 + - 13, 38 * - 4 col1 FROM tab2
----
38
-152
54
-152
64
-152

query I rowsort
SELECT col1 * + col0 * - + col0 + 98 FROM tab0
----
-158851
-18127
-9311

query I rowsort
SELECT - - col0 FROM tab1 WHERE + 9 * + - 25 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT + ( - - 85 ) + - COUNT( * ) FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-2178
SELECT + ( - - 85 ) + - COUNT ( * ) FROM tab2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT ALL 17 + - + COUNT( DISTINCT + 30 ) AS col2 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-2179
SELECT ALL 17 + - + COUNT ( DISTINCT + 30 ) AS col2 FROM tab2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT - COUNT( * ) + - - 90 AS col0 FROM tab2 WHERE NULL IN ( + - col0, col2 * col2 )
----
90

skipif mysql # not compatible
query I rowsort label-2180
SELECT - COUNT ( * ) + - - 90 AS col0 FROM tab2 WHERE NULL IN ( + - col0, col2 * col2 )
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( col1 ) col2, 0 col1 FROM tab1
----
14
0
47
0
5
0

query I rowsort
SELECT ALL - + 16 FROM tab2 WHERE + col2 * + 30 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * 79 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > col1 * col0 * - 20
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT + col1 / - col0 IS NULL
----
23
40
58

query I rowsort
SELECT + 77 * + - col1 * + + 51 FROM tab2 AS cor0
----
-200277
-263109
-302379

query I rowsort
SELECT 94 * + + ( 0 ) + - 20 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT ALL 34 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT ALL - + 42 - - COUNT( * ) AS col0 FROM tab1 cor0
----
-39

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL - + 42 - - COUNT ( * ) AS col0 FROM tab1 cor0
----
-39

query I rowsort
SELECT ALL + col1 - + 93 FROM tab0 AS cor0
----
-12
-72
-92

query I rowsort
SELECT DISTINCT - col1 * - - 17 * - col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2192
SELECT col0 DIV 81 DIV - 6 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2192
SELECT col0 / 81 / - 6 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2193
SELECT DISTINCT - 18 * col2 AS col0, + ( - 88 ) * ( + col2 ) * + - 60 + - + col1 DIV + + 86 + + ( - col1 ) DIV 93 - + col2 + + + 1 * 62 DIV + + CAST( + col0 AS SIGNED ) + 67 FROM tab1
----
-1062
311528
-1224
359039
-1728
506852

skipif mysql # not compatible
query II rowsort label-2193
SELECT DISTINCT - 18 * col2 AS col0, + ( - 88 ) * ( + col2 ) * + - 60 + - + col1 / + + 86 + + ( - col1 ) / 93 - + col2 + + + 1 * 62 / + + CAST ( + col0 AS INTEGER ) + 67 FROM tab1
----
-1062
311528
-1224
359039
-1728
506852

onlyif mysql # DIV for integer division: 
query I rowsort label-2194
SELECT ALL col2 DIV 11 FROM tab0
----
0
4
9

skipif mysql # not compatible
query I rowsort label-2194
SELECT ALL col2 / 11 FROM tab0
----
0
4
9

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 IN ( + 12 + + ( col2 ) * - col0 * + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2196
SELECT ALL + 85 DIV + - col1 FROM tab0
----
-1
-4
-85

skipif mysql # not compatible
query I rowsort label-2196
SELECT ALL + 85 / + - col1 FROM tab0
----
-1
-4
-85

query II rowsort
SELECT ALL + 14 AS col1, + 47 FROM tab0
----
14
47
14
47
14
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT COUNT( * ) * 51 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-2198
SELECT COUNT ( * ) * 51 FROM tab1
----
153

query II rowsort
SELECT 71 AS col2, - col0 FROM tab0
----
71
-15
71
-87
71
-97

query I rowsort
SELECT 96 * - ( + col0 ) * + - col0 FROM tab2
----
203136
393216
540000

query I rowsort
SELECT DISTINCT - 16 * + col0 AS col1 FROM tab2
----
-1024
-1200
-736

query II rowsort
SELECT ALL col1 AS col0, + col2 * col2 + - col0 FROM tab1
----
14
9165
47
4533
5
3396

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT COUNT( DISTINCT - col0 ) * 72 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-2204
SELECT COUNT ( DISTINCT - col0 ) * 72 FROM tab1
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT - + COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT 63 >= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2205
SELECT - + COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT 63 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT COUNT( ALL 52 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2206
SELECT COUNT ( ALL 52 ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2207
SELECT 5 * - 8 + + col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT 15 NOT BETWEEN + - col2 * + + 75 AND col2
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2207
SELECT 5 * - 8 + + col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT 15 NOT BETWEEN + - col2 * + + 75 AND col2
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2208
SELECT DISTINCT col0 AS col0, + ( - col2 ) * - - col0 + + 78 + col2 DIV col0 + col1 FROM tab0 AS cor0
----
15
-543
87
-771
97
-9523

skipif mysql # not compatible
query II rowsort label-2208
SELECT DISTINCT col0 AS col0, + ( - col2 ) * - - col0 + + 78 + col2 / col0 + col1 FROM tab0 AS cor0
----
15
-543
87
-771
97
-9523

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( + col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT SUM( DISTINCT + + 26 ) * + + 82 AS col2 FROM tab0
----
2132

skipif mysql # not compatible
query I rowsort label-2210
SELECT SUM ( DISTINCT + + 26 ) * + + 82 AS col2 FROM tab0
----
2132

query III rowsort
SELECT * FROM tab2 WHERE NOT + 80 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT ALL - ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL - ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-2213
SELECT DISTINCT - 75, 3 DIV - col0 * col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-75
0

skipif mysql # not compatible
query II rowsort label-2213
SELECT DISTINCT - 75, 3 / - col0 * col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-75
0

query I rowsort
SELECT + 51 * + 84 AS col1 FROM tab2 AS cor0
----
4284
4284
4284

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT + MAX( - ( - col2 ) ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2215
SELECT + MAX ( - ( - col2 ) ) FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-2216
SELECT COUNT( + col1 ) col2, - 65 AS col1 FROM tab2 cor0
----
3
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2216
SELECT COUNT ( + col1 ) col2, - 65 AS col1 FROM tab2 cor0
----
3
-65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2217
SELECT DISTINCT - CAST( - - 12 AS SIGNED ), - 1 AS col0 FROM tab1 AS cor0
----
-12
-1

skipif mysql # not compatible
query II rowsort label-2217
SELECT DISTINCT - CAST ( - - 12 AS INTEGER ), - 1 AS col0 FROM tab1 AS cor0
----
-12
-1

query II rowsort
SELECT DISTINCT + 46, + col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2219
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
3

query I rowsort
SELECT ALL + 96 + - + 71 FROM tab2
----
25
25
25

onlyif mysql # DIV for integer division: 
query I rowsort label-2221
SELECT ALL + + 45 * - col2 DIV - col2 AS col0 FROM tab2 WHERE ( - 5 + col2 <> ( + col2 ) )
----
45
45
45

skipif mysql # not compatible
query I rowsort label-2221
SELECT ALL + + 45 * - col2 / - col2 AS col0 FROM tab2 WHERE ( - 5 + col2 <> ( + col2 ) )
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT DISTINCT + COUNT( * ) + - + COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2222
SELECT DISTINCT + COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2223
SELECT ALL + 69 + col1 + + CAST( NULL AS SIGNED ) + - - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL + 69 + col1 + + CAST ( NULL AS INTEGER ) + - - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 10 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 93 FROM tab1, tab0 AS cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT - + 45 + COUNT( * ) FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-2226
SELECT - + 45 + COUNT ( * ) FROM tab0 AS cor0
----
-42

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( col1 ) * + col2 ) NOT BETWEEN NULL AND + col2 - col1 - + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 * + - col2 AS col1 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT + 73 * col2 + - col1 FROM tab2 cor0
----
1628
2843
4167

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT + - MAX( ALL - col0 ) + + 75 AS col1 FROM tab1 cor0
----
126

skipif mysql # not compatible
query I rowsort label-2230
SELECT + - MAX ( ALL - col0 ) + + 75 AS col1 FROM tab1 cor0
----
126

query I rowsort
SELECT DISTINCT + + 29 FROM tab0 AS cor0
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 * col1 col1 FROM tab2 AS cor0
----
-2346
-3082
-3542

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * + - col2 >= - - 69
----

query I rowsort
SELECT DISTINCT - 7 * col2 * col0 AS col1 FROM tab0 AS cor0
----
-4935
-6090
-67221

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - 20 - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT ALL MIN( + - col2 ) * + + COUNT( * ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
864

skipif mysql # not compatible
query I rowsort label-2236
SELECT ALL MIN ( + - col2 ) * + + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
864

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 13 * + + col2 * + 86 NOT IN ( - + 95 + + col0 / + + col1, - 57 * + col2 + - col0, + 58 )
----

query I rowsort
SELECT col2 FROM tab0 WHERE NOT col0 * - - 86 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2239
SELECT COUNT( * ) DIV - - MIN( ALL - - 26 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2239
SELECT COUNT ( * ) / - - MIN ( ALL - - 26 ) FROM tab2
----
0

query I rowsort
SELECT + + 41 * + + col0 AS col1 FROM tab0 AS cor0
----
3567
3977
615

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + - - 54 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2242
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2242
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2243
SELECT ALL col0 DIV - - col0 + - - col2 - - - col1 FROM tab2
----
-27
-36
-8

skipif mysql # not compatible
query I rowsort label-2243
SELECT ALL col0 / - - col0 + - - col2 - - - col1 FROM tab2
----
-27
-36
-8

query II rowsort
SELECT - col0 AS col2, 3 * - col0 AS col2 FROM tab0
----
-15
-45
-87
-261
-97
-291

query II rowsort
SELECT ALL 15 AS col1, col0 FROM tab2
----
15
46
15
64
15
75

onlyif mysql # DIV for integer division: 
query II rowsort label-2246
SELECT - 34 DIV + col0 + + col1 DIV + col1, + col1 col0 FROM tab2 cor0
----
1
51
1
67
1
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2246
SELECT - 34 / + col0 + + col1 / + col1, + col1 col0 FROM tab2 cor0
----
1
51
1
67
1
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2247
SELECT ALL - col0 DIV + + 6 AS col2 FROM tab1 AS cor0
----
-14
-15
-8

skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL - col0 / + + 6 AS col2 FROM tab1 AS cor0
----
-14
-15
-8

onlyif mysql # DIV for integer division: 
query II rowsort label-2248
SELECT DISTINCT - col2, col2 DIV - - col2 AS col2 FROM tab0 AS cor0
----
-10
1
-47
1
-99
1

skipif mysql # not compatible
query II rowsort label-2248
SELECT DISTINCT - col2, col2 / - - col2 AS col2 FROM tab0 AS cor0
----
-10
1
-47
1
-99
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2249
SELECT DISTINCT CAST( NULL AS SIGNED ) / - col1 col1 FROM tab2 AS cor0 WHERE 16 BETWEEN NULL AND - ( + 67 ) * 25
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2249
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col1 col1 FROM tab2 AS cor0 WHERE 16 BETWEEN NULL AND - ( + 67 ) * 25
----

query II rowsort
SELECT DISTINCT + 92 AS col0, col1 FROM tab0 cor0
----
92
1
92
21
92
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2251
SELECT - + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE ( - + col0 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2251
SELECT - + CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE ( - + col0 ) IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + - col1 ) AS col0 FROM tab2 WHERE NOT NULL < col2 * - - 23
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT 55 * - MAX( col1 ) + COUNT( * ) AS col2 FROM tab2
----
-4232

skipif mysql # not compatible
query I rowsort label-2254
SELECT 55 * - MAX ( col1 ) + COUNT ( * ) AS col2 FROM tab2
----
-4232

query I rowsort
SELECT + 79 * - col1 + - 94 FROM tab0
----
-173
-1753
-6493

query I rowsort
SELECT col1 + - - 33 AS col0 FROM tab1
----
38
47
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2257
SELECT DISTINCT col1 DIV + 73 + + col2 FROM tab2
----
23
41
58

skipif mysql # not compatible
query I rowsort label-2257
SELECT DISTINCT col1 / + 73 + + col2 FROM tab2
----
23
41
58

query I rowsort
SELECT ALL col0 + - col0 * + - col0 - - 41 AS col2 FROM tab0
----
281
7697
9547

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND + 63
----

query I rowsort
SELECT DISTINCT 68 FROM tab1 WHERE NOT + + 67 <= NULL
----

query I rowsort
SELECT - 15 * + + col0 FROM tab0
----
-1305
-1455
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT DISTINCT - - SUM( + + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2262
SELECT DISTINCT - - SUM ( + + col2 ) FROM tab0 AS cor0
----
156

query I rowsort
SELECT ALL + 68 * - 57 AS col1 FROM tab0 AS cor0
----
-3876
-3876
-3876

query I rowsort
SELECT DISTINCT - - col1 * + - col0 + - col1 AS col0 FROM tab0 cor0
----
-1296
-1848
-98

query I rowsort
SELECT DISTINCT + 57 * + 87 FROM tab2 AS cor0 WHERE - 20 NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT col1 * - + 85 AS col0 FROM tab2 cor0
----
-4335
-5695
-6545

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2267
SELECT * FROM tab1 cor0 WHERE NOT col2 * - + CAST( col2 AS SIGNED ) + col2 * col1 + + col0 - + CAST( - col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2267
SELECT * FROM tab1 cor0 WHERE NOT col2 * - + CAST ( col2 AS INTEGER ) + col2 * col1 + + col0 - + CAST ( - col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2268
SELECT ALL COUNT( DISTINCT - + col2 ) DIV - 78 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2268
SELECT ALL COUNT ( DISTINCT - + col2 ) / - 78 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 97 * + col2 - + 97 FROM tab0 AS cor0
----
-1067
-4656
-9700

query I rowsort
SELECT DISTINCT col0 * ( + - col2 ) FROM tab0
----
-705
-870
-9603

query II rowsort
SELECT + col2 * 99, col0 FROM tab0
----
4653
15
9801
97
990
87

query I rowsort
SELECT - 15 * + - 17 FROM tab0
----
255
255
255

query I rowsort
SELECT + 90 * col0 AS col0 FROM tab2 WHERE NOT + + 86 / - 96 = + col0
----
4140
5760
6750

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2274
SELECT ALL - - 49 / + CAST( NULL AS SIGNED ) AS col0, + col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-2274
SELECT ALL - - 49 / + CAST ( NULL AS INTEGER ) AS col0, + col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT ALL - MIN( + + 7 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-7

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL - MIN ( + + 7 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2276
SELECT + 18 * + 20 + - 75 DIV - MAX( ALL - - col2 ) AS col0 FROM tab0
----
360

skipif mysql # not compatible
query I rowsort label-2276
SELECT + 18 * + 20 + - 75 / - MAX ( ALL - - col2 ) AS col0 FROM tab0
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT DISTINCT + COUNT( * ) + - 56 col2 FROM tab1 AS cor0
----
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2277
SELECT DISTINCT + COUNT ( * ) + - 56 col2 FROM tab1 AS cor0
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2278
SELECT + 3 DIV + COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2278
SELECT + 3 / + COUNT ( * ) FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2279
SELECT ALL col2 DIV - col0 col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2279
SELECT ALL col2 / - col0 col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - col1 * - + col2 AS col0 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT DISTINCT + SUM( - col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT + SUM ( - col1 ) AS col2 FROM tab1 AS cor0
----
-66

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 20 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT DISTINCT ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2283
SELECT DISTINCT ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2284
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2284
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + + col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - 79 AS col2 FROM tab0 cor0
----
-79
-79
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + 33 ) col1 FROM tab2
----
-33

query I rowsort
SELECT ( col1 ) * - + 2 FROM tab0
----
-162
-2
-42

query II rowsort
SELECT 25 - ( - ( + col2 ) ) AS col0, - col0 FROM tab0
----
124
-97
35
-87
72
-15

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + col1 + + col0 AND + col0 / - col2 * + + col2
----

query I rowsort
SELECT ALL + col0 + + 16 * - + col2 FROM tab0
----
-1487
-73
-737

query I rowsort
SELECT DISTINCT col0 - + + col0 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 78 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 49 - + col0 FROM tab1 AS cor0
----
-2
-36
-42

query I rowsort
SELECT + 19 + + 65 FROM tab0 AS cor0
----
84
84
84

query I rowsort
SELECT ALL 57 FROM tab0 AS cor0 WHERE ( NULL ) <> col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2296
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2296
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2297
SELECT + CAST( - col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2297
SELECT + CAST ( - col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT MAX( - 14 ) FROM tab2 cor0
----
-14

skipif mysql # not compatible
query I rowsort label-2298
SELECT MAX ( - 14 ) FROM tab2 cor0
----
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 col1 FROM tab2 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT DISTINCT + MAX( + 75 ) AS col2 FROM tab0 cor0
----
75

skipif mysql # not compatible
query I rowsort label-2300
SELECT DISTINCT + MAX ( + 75 ) AS col2 FROM tab0 cor0
----
75

query I rowsort
SELECT ALL ( + 23 ) FROM tab0
----
23
23
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2302
SELECT CAST( + - MIN( col0 ) AS SIGNED ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2302
SELECT CAST ( + - MIN ( col0 ) AS INTEGER ) FROM tab1
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + - 1 col0 FROM tab2 WHERE NOT NULL <= - 31
----

query I rowsort
SELECT DISTINCT + col2 * + 2 * - 95 FROM tab2
----
-11020
-4370
-7600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2305
SELECT DISTINCT + col1 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) * - 23 + - col0 NOT BETWEEN - - 46 + - - 57 AND - col0 * + col0
----

skipif mysql # not compatible
query I rowsort label-2305
SELECT DISTINCT + col1 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) * - 23 + - col0 NOT BETWEEN - - 46 + - - 57 AND - col0 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2306
SELECT - CAST( ( - col0 ) AS SIGNED ) * - - CAST( NULL AS SIGNED ) + - 12 + + 46 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2306
SELECT - CAST ( ( - col0 ) AS INTEGER ) * - - CAST ( NULL AS INTEGER ) + - 12 + + 46 AS col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 67, col0 + + + 13 FROM tab1 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT ALL + MIN( ALL - 98 ) FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-2308
SELECT ALL + MIN ( ALL - 98 ) FROM tab1 AS cor0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2309
SELECT + - 28 * - CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
1428
2380
2548

skipif mysql # not compatible
query I rowsort label-2309
SELECT + - 28 * - CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
1428
2380
2548

query II rowsort
SELECT DISTINCT + col1, - 68 AS col2 FROM tab0 AS cor0
----
1
-68
21
-68
81
-68

query I rowsort
SELECT DISTINCT - col1 + - col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + + col2 FROM tab0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2313
SELECT - 30 - - + ( - CAST( COUNT( * ) AS SIGNED ) ) FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-2313
SELECT - 30 - - + ( - CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab2
----
-33

query I rowsort
SELECT DISTINCT + 38 + + 31 AS col2 FROM tab1 AS cor0
----
69

query I rowsort
SELECT + - 68 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2316
SELECT DISTINCT ( + - 18 ) * col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL < NULL AND NOT + 51 + + + CAST( NULL AS SIGNED ) >= + col1
----

skipif mysql # not compatible
query I rowsort label-2316
SELECT DISTINCT ( + - 18 ) * col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL < NULL AND NOT + 51 + + + CAST ( NULL AS INTEGER ) >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT ALL COUNT( * ) * - 16 FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL COUNT ( * ) * - 16 FROM tab0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT DISTINCT + 7 + - COUNT( * ) AS col0 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-2318
SELECT DISTINCT + 7 + - COUNT ( * ) AS col0 FROM tab1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT + COUNT( DISTINCT + 2 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2319
SELECT + COUNT ( DISTINCT + 2 ) AS col1 FROM tab1
----
1

query III rowsort
SELECT * FROM tab1 WHERE - - 27 + col2 BETWEEN - ( + 22 ) + - col0 AND 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT DISTINCT 49 + + - 66 - + COUNT( * ) FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-2321
SELECT DISTINCT 49 + + - 66 - + COUNT ( * ) FROM tab0
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-2322
SELECT DISTINCT col2 + col2 DIV + col1 AS col1 FROM tab1
----
102
69
70

skipif mysql # not compatible
query I rowsort label-2322
SELECT DISTINCT col2 + col2 / + col1 AS col1 FROM tab1
----
102
69
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT DISTINCT COUNT( * ) + 88 AS col0 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-2323
SELECT DISTINCT COUNT ( * ) + 88 AS col0 FROM tab0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT ALL SUM( ALL - - col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL SUM ( ALL - - col1 ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT DISTINCT - 59 FROM tab0 AS cor0 WHERE NULL < - ( + col2 ) / - col0 + - - 27 + - 61 * - + 15 + - + col0
----

query I rowsort
SELECT ALL - + col0 * - col0 FROM tab2 WHERE NOT + col0 IS NULL
----
2116
4096
5625

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2328
SELECT DISTINCT - 66 AS col0, - col0 + + - 66 DIV ( + - 69 ) AS col2 FROM tab1
----
-66
-51
-66
-85
-66
-91

skipif mysql # not compatible
query II rowsort label-2328
SELECT DISTINCT - 66 AS col0, - col0 + + - 66 / ( + - 69 ) AS col2 FROM tab1
----
-66
-51
-66
-85
-66
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2329
SELECT ALL 33 * - 26 FROM tab1 WHERE NOT - + CAST( NULL AS SIGNED ) IS NOT NULL
----
-858
-858
-858

skipif mysql # not compatible
query I rowsort label-2329
SELECT ALL 33 * - 26 FROM tab1 WHERE NOT - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-858
-858
-858

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 52 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - col1 - + - ( 49 ) + + 84 AND - col1 + + - col0 * - + 57 * - + col1
----

query II rowsort
SELECT DISTINCT + col0, col1 AS col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query II rowsort
SELECT ALL - col2, col2 * + 53 AS col2 FROM tab2 cor0
----
-23
1219
-40
2120
-58
3074

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2334
SELECT CAST( SUM( DISTINCT - - 22 ) AS SIGNED ) FROM tab0 cor0
----
22

skipif mysql # not compatible
query I rowsort label-2334
SELECT CAST ( SUM ( DISTINCT - - 22 ) AS INTEGER ) FROM tab0 cor0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2335
SELECT ALL + CAST( col0 AS SIGNED ), col0 AS col2 FROM tab0 AS cor0
----
15
15
87
87
97
97

skipif mysql # not compatible
query II rowsort label-2335
SELECT ALL + CAST ( col0 AS INTEGER ), col0 AS col2 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT DISTINCT + col0 * - 26 * + col1 FROM tab1
----
-11050
-111202
-18564

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT - + MIN( + + col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15

skipif mysql # not compatible
query I rowsort label-2337
SELECT - + MIN ( + + col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT + SUM( - col2 ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-2338
SELECT + SUM ( - col2 ) AS col2 FROM tab0
----
-156

query I rowsort
SELECT + col1 * - + col0 * - col1 FROM tab0 AS cor0
----
38367
97
98415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2340
SELECT + 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-2340
SELECT + col0 + + - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT - COUNT( * ) * 16 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-144

skipif mysql # not compatible
query I rowsort label-2342
SELECT - COUNT ( * ) * 16 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-144

onlyif mysql # aggregate syntax: 
query II rowsort label-2343
SELECT ALL + 55 AS col1, MIN( - - col2 ) AS col1 FROM tab1 AS cor0
----
55
59

skipif mysql # not compatible
query II rowsort label-2343
SELECT ALL + 55 AS col1, MIN ( - - col2 ) AS col1 FROM tab1 AS cor0
----
55
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2344
SELECT + CAST( - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2344
SELECT + CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2345
SELECT DISTINCT col0 / + col0 + + 18 - + + col1 - - + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2345
SELECT DISTINCT col0 / + col0 + + 18 - + + col1 - - + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2346
SELECT + + 90 AS col0, - COUNT( * ) + COUNT( * ) col2 FROM tab2 AS cor0
----
90
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2346
SELECT + + 90 AS col0, - COUNT ( * ) + COUNT ( * ) col2 FROM tab2 AS cor0
----
90
0

query I rowsort
SELECT ALL + + 78 * - + col1 * 35 - + col1 AS col2 FROM tab0 AS cor0
----
-221211
-2731
-57351

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2348
SELECT DISTINCT 29 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2348
SELECT DISTINCT 29 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - + col0 * - 11 * + col0 FROM tab2 cor0
----
23276
45056
61875

query I rowsort
SELECT DISTINCT + 17 * 27 + col2 AS col2 FROM tab0
----
469
506
558

query II rowsort
SELECT DISTINCT + col0 * - 86 AS col0, - 99 AS col1 FROM tab1
----
-4386
-99
-7310
-99
-7826
-99

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 + - col2 - col2 * - col1 AS col2 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT ALL - 7 AS col2 FROM tab2 WHERE NOT - col1 > col2
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT ALL + MIN( ALL + - ( + + col0 ) ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL + MIN ( ALL + - ( + + col0 ) ) FROM tab1
----
-91

query I rowsort
SELECT DISTINCT + + col2 * ( + - col2 ) FROM tab2 AS cor0
----
-1600
-3364
-529

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 72 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 NOT IN ( + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col2, + 4 AS col1 FROM tab2 cor0 WHERE NOT - col0 IS NULL
----
23
4
40
4
58
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT + COUNT( ALL + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2360
SELECT + COUNT ( ALL + col2 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 0 - - col0 * col2 / - col0 FROM tab1 cor0 WHERE NOT NULL <> + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2362
SELECT ALL CAST( - col1 AS SIGNED ) * col2, + 45 AS col2 FROM tab1 AS cor0
----
-1344
45
-295
45
-3196
45

skipif mysql # not compatible
query II rowsort label-2362
SELECT ALL CAST ( - col1 AS INTEGER ) * col2, + 45 AS col2 FROM tab1 AS cor0
----
-1344
45
-295
45
-3196
45

query I rowsort
SELECT + 35 * + - 68 * + - col0 FROM tab2 AS cor0
----
109480
152320
178500

query I rowsort
SELECT DISTINCT - col0 * - - col1 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2365
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col1 - - - col0 BETWEEN + CAST( NULL AS DECIMAL ) AND - - 41
----

skipif mysql # not compatible
query III rowsort label-2365
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col1 - - - col0 BETWEEN + CAST ( NULL AS REAL ) AND - - 41
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 71 ) col2 FROM tab2 AS cor0
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT ALL COUNT( DISTINCT col2 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL COUNT ( DISTINCT col2 ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2368
SELECT ALL - + COUNT( * ), 27 DIV + 60 - - - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE 86 = NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-2368
SELECT ALL - + COUNT ( * ), 27 / + 60 - - - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE 86 = NULL
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT - + COUNT( DISTINCT + 56 ) * COUNT( * ) FROM tab1 WHERE NOT + col0 + 47 - - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2369
SELECT - + COUNT ( DISTINCT + 56 ) * COUNT ( * ) FROM tab1 WHERE NOT + col0 + 47 - - col1 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2370
SELECT ALL 79 DIV 65 + + 29 AS col1 FROM tab1
----
30
30
30

skipif mysql # not compatible
query I rowsort label-2370
SELECT ALL 79 / 65 + + 29 AS col1 FROM tab1
----
30
30
30

query I rowsort
SELECT - 5 + col0 FROM tab0
----
10
82
92

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN col0 AND + - col0 + - col1
----

query I rowsort
SELECT DISTINCT col1 + + + col0 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT - 90 + - 57 - 20 - - COUNT( * ) AS col1 FROM tab0
----
-164

skipif mysql # not compatible
query I rowsort label-2374
SELECT - 90 + - 57 - 20 - - COUNT ( * ) AS col1 FROM tab0
----
-164

query I rowsort
SELECT DISTINCT - - 85 * - + 52 FROM tab0 cor0
----
-4420

query I rowsort
SELECT - col0 * - col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 69 AS col1 FROM tab2 cor0
----
-69

query II rowsort
SELECT - col1 + + 69, col2 AS col0 FROM tab1 AS cor0
----
22
68
55
96
64
59

query I rowsort
SELECT DISTINCT col0 - - 52 FROM tab0 AS cor0
----
139
149
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE 27 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2380
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE 27 IS NOT NULL
----
3

query I rowsort
SELECT ALL - 29 + - ( - col2 ) FROM tab1 cor0
----
30
39
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT ALL - ( COUNT( * ) ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL - ( COUNT ( * ) ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT + col0 + - 28 / + col0 * - + col1 * col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 26 * col1 * + 31 FROM tab2 AS cor0
----
41106
54002
62062

query I rowsort
SELECT ( + col0 ) * + - col0 AS col0 FROM tab0 AS cor0
----
-225
-7569
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 29 * + + ( - 28 ), 7 col0 FROM tab2
----
-812
7
-812
7
-812
7

query I rowsort
SELECT - 95 * + - 76 AS col1 FROM tab2
----
7220
7220
7220

query I rowsort
SELECT + col0 * + 91 FROM tab0
----
1365
7917
8827

onlyif mysql # DIV for integer division: 
query II rowsort label-2389
SELECT + col1 AS col2, + col2 DIV + - col1 FROM tab2
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-2389
SELECT + col1 AS col2, + col2 / + - col1 FROM tab2
----
51
0
67
0
77
0

query I rowsort
SELECT ALL col0 * 3 AS col1 FROM tab1 cor0
----
153
255
273

onlyif mysql # DIV for integer division: 
query I rowsort label-2391
SELECT ALL + col0 DIV - col1 FROM tab0 cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-2391
SELECT ALL + col0 / - col1 FROM tab0 cor0
----
-4
-97
0

query I rowsort
SELECT col1 * 96 FROM tab2
----
4896
6432
7392

query I rowsort
SELECT DISTINCT col2 * ( + col2 ) * - + col0 * + col0 AS col1 FROM tab2 cor0
----
-1119364
-18922500
-6553600

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2394
SELECT ALL + COUNT( * ) DIV + - 61 AS col2, COUNT( * ) AS col0 FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-2394
SELECT ALL + COUNT ( * ) / + - 61 AS col2, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0
3

query I rowsort
SELECT DISTINCT - + 95 * ( col0 ) AS col0 FROM tab2 AS cor0
----
-4370
-6080
-7125

query I rowsort
SELECT DISTINCT - 10 + + + 59 FROM tab2 AS cor0 WHERE NOT 91 + - - 75 + 73 IS NULL
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT + MAX( + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - ( + 1 ), col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2397
SELECT + MAX ( + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - ( + 1 ), col0 )
----
NULL

query II rowsort
SELECT + + col1 * - + 2 + col0 * + col2, - 10 AS col2 FROM tab1 AS cor0
----
4868
-10
5005
-10
6094
-10

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN + col2 / + + col0 - - + col1 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2400
SELECT ALL SUM( - + col2 ) + COUNT( * ) DIV COUNT( * ) FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-2400
SELECT ALL SUM ( - + col2 ) + COUNT ( * ) / COUNT ( * ) FROM tab2 AS cor0
----
-120

query I rowsort
SELECT - ( + + 29 ) AS col2 FROM tab2
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT DISTINCT - SUM( DISTINCT + - col0 ) * - 2 AS col1 FROM tab2
----
-370

skipif mysql # not compatible
query I rowsort label-2402
SELECT DISTINCT - SUM ( DISTINCT + - col0 ) * - 2 AS col1 FROM tab2
----
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT + MAX( DISTINCT - col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2403
SELECT + MAX ( DISTINCT - col1 ) FROM tab0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2404
SELECT ALL - + CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab2 WHERE + + 19 <> - + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab2 WHERE + + 19 <> - + col1
----
NULL

query II rowsort
SELECT 37, col2 + + 24 FROM tab0 WHERE + - col1 / - col2 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT DISTINCT COUNT( ALL + - col1 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2406
SELECT DISTINCT COUNT ( ALL + - col1 ) col1 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 11 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 + - - 93 FROM tab0 AS cor0
----
-6
46
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2409
SELECT DISTINCT + + AVG ( - + 33 ) + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2409
SELECT DISTINCT + + AVG ( - + 33 ) + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT + col0 * + - col2 * - ( - + col2 ) + + col2 FROM tab1 cor0
----
-295826
-420716
-469920

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + 47 * - + 68 IS NOT NULL
----

query II rowsort
SELECT + col1, col2 * 50 * - 68 FROM tab2 AS cor0
----
51
-78200
67
-197200
77
-136000

query I rowsort
SELECT ALL 2 - + + 6 AS col1 FROM tab1 AS cor0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT - MIN( ALL + 48 ) - - COUNT( - - col1 ) AS col1 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-2414
SELECT - MIN ( ALL + 48 ) - - COUNT ( - - col1 ) AS col1 FROM tab0 AS cor0
----
-45

query I rowsort
SELECT ALL ( - col0 ) + + - col1 * col2 FROM tab1 AS cor0
----
-1395
-3287
-380

onlyif mysql # aggregate syntax: 
query II rowsort label-2416
SELECT + - 64 AS col0, MIN( - 84 ) col2 FROM tab0 AS cor0
----
-64
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2416
SELECT + - 64 AS col0, MIN ( - 84 ) col2 FROM tab0 AS cor0
----
-64
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT DISTINCT - + SUM( col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-2417
SELECT DISTINCT - + SUM ( col2 ) AS col2 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT col2 * + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 * - 31 AS col1 FROM tab1
----
-1457
-155
-434

query II rowsort
SELECT DISTINCT + col1 * col2 AS col1, col1 FROM tab0
----
210
21
3807
81
99
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2421
SELECT DISTINCT col2 * - + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2421
SELECT DISTINCT col2 * - + CAST ( NULL AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT + ( - + 17 ) FROM tab0 AS cor0
----
-17
-17
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 col0 FROM tab1 AS cor0
----
94

query I rowsort
SELECT DISTINCT - - col1 / + + col1 - + 97 + 83 FROM tab2 AS cor0 WHERE NOT col0 >= NULL
----

query I rowsort
SELECT + - 87 AS col1 FROM tab2 AS cor0
----
-87
-87
-87

query II rowsort
SELECT DISTINCT - ( col1 ) * 0 AS col0, + col2 FROM tab0
----
0
10
0
47
0
99

query I rowsort
SELECT - ( - col1 ) * col0 * + col2 AS col0 FROM tab2 AS cor0
----
197120
291450
53958

query I rowsort
SELECT DISTINCT 0 * + col2 FROM tab1 cor0
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT - ( - 63 ) BETWEEN + col0 + 73 + + col0 AND col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT ALL + MIN( - - 11 ) FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-2430
SELECT ALL + MIN ( - - 11 ) FROM tab2 AS cor0
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 + col1 + - col1 col0 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT COUNT( * ) + + 6 * - - 46 * 21 * + 33 AS col1 FROM tab1
----
191271

skipif mysql # not compatible
query I rowsort label-2432
SELECT COUNT ( * ) + + 6 * - - 46 * 21 * + 33 AS col1 FROM tab1
----
191271

query I rowsort
SELECT 49 + - + col0 + - 75 * col2 FROM tab2
----
-1722
-3015
-4376

query I rowsort
SELECT ALL col0 + + 46 FROM tab1
----
131
137
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT - 25 * + + COUNT( * ) col1 FROM tab2
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2435
SELECT - 25 * + + COUNT ( * ) col1 FROM tab2
----
-75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 79 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - col2 - + col1, - 56 - - 97 AS col1 FROM tab0 AS cor0
----
-100
41
-128
41
-31
41

query III rowsort
SELECT * FROM tab2 WHERE ( ( NULL ) >= - - col1 + + 33 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2439
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE 65 = - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-2439
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE 65 = - + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2440
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE + col0 >= + - 76 + + ( + CAST( 93 AS SIGNED ) ) * col2
----
0

skipif mysql # not compatible
query I rowsort label-2440
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE + col0 >= + - 76 + + ( + CAST ( 93 AS INTEGER ) ) * col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT ALL + ( - + MAX( - ( + + 31 ) ) ) AS col0 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-2441
SELECT ALL + ( - + MAX ( - ( + + 31 ) ) ) AS col0 FROM tab1 AS cor0
----
31

query I rowsort
SELECT DISTINCT + + col0 * + + col0 / - 85 * + 9 * - 71 * col2 FROM tab1 AS cor0 WHERE NULL = + 65
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2443
SELECT 38 * - COUNT( * ) * SUM( ALL 93 ) DIV + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-10602

skipif mysql # not compatible
query I rowsort label-2443
SELECT 38 * - COUNT ( * ) * SUM ( ALL 93 ) / + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-10602

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2445
SELECT ALL - col2 * - + col2 FROM tab2 WHERE + + CAST( + col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2445
SELECT ALL - col2 * - + col2 FROM tab2 WHERE + + CAST ( + col0 AS INTEGER ) IS NULL
----

query I rowsort
SELECT col2 * + 39 FROM tab1
----
2301
2652
3744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2447
SELECT ALL col0 * ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL col0 * ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT - SUM( ALL col1 ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2448
SELECT - SUM ( ALL col1 ) AS col2 FROM tab2
----
-195

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * - - col0 = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2450
SELECT * FROM tab0 WHERE NOT + CAST( NULL AS DECIMAL ) - - col1 + + ( - col0 ) + + - 56 <= col0
----

skipif mysql # not compatible
query III rowsort label-2450
SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS REAL ) - - col1 + + ( - col0 ) + + - 56 <= col0
----

query I rowsort
SELECT DISTINCT 1 + ( + + col0 ) FROM tab1
----
52
86
92

query I rowsort
SELECT + - 17 FROM tab1 cor0
----
-17
-17
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-2453
SELECT - col0 DIV + + 36 + col0 FROM tab0 cor0
----
15
85
95

skipif mysql # not compatible
query I rowsort label-2453
SELECT - col0 / + + 36 + col0 FROM tab0 cor0
----
15
85
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT ALL + MIN( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NOT - col2 > - - ( - 40 )
----
15

skipif mysql # not compatible
query I rowsort label-2454
SELECT ALL + MIN ( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NOT - col2 > - - ( - 40 )
----
15

query I rowsort
SELECT + - 88 * col0 FROM tab1 AS cor0
----
-4488
-7480
-8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - ( 25 ) ) col1 FROM tab2 AS cor0
----
-25
-25
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2457
SELECT ALL - col1 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2457
SELECT ALL - col1 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2458
SELECT + ( CAST( + col1 AS SIGNED ) ) DIV + + col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2458
SELECT + ( CAST ( + col1 AS INTEGER ) ) / + + col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col2 * 17 + + col1 AS col1 FROM tab2
----
1053
442
757

query I rowsort
SELECT DISTINCT - col1 * col0 + + + 22 FROM tab2
----
-2324
-4906
-5003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2461
SELECT DISTINCT + col0 / + ( + - 79 ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2461
SELECT DISTINCT + col0 / + ( + - 79 ) + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + + col2 * + - 75 AS col2 FROM tab1 WHERE - - col1 IS NOT NULL
----
-4425
-5100
-7200

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT col1 IS NOT NULL )
----

query II rowsort
SELECT DISTINCT 38 * col2 + - col2 AS col2, - 49 AS col2 FROM tab1
----
2183
-49
2516
-49
3552
-49

query I rowsort
SELECT - 94 + col2 FROM tab0 cor0
----
-47
-84
5

query I rowsort
SELECT 8 * - col0 - 68 + - col0 + + col2 + + col2 AS col1 FROM tab0 cor0
----
-109
-743
-831

query I rowsort
SELECT DISTINCT - 62 FROM tab1 WHERE NOT NULL BETWEEN 47 AND - col0
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) >= - 99
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2469
SELECT DISTINCT * FROM tab2 WHERE - 92 <= ( 42 * CAST( NULL AS SIGNED ) + + col1 )
----

skipif mysql # not compatible
query III rowsort label-2469
SELECT DISTINCT * FROM tab2 WHERE - 92 <= ( 42 * CAST ( NULL AS INTEGER ) + + col1 )
----

query I rowsort
SELECT ALL - 80 FROM tab2 WHERE - ( + 62 ) * 59 <= ( NULL )
----

query I rowsort
SELECT ALL - 64 + col2 FROM tab1
----
-5
32
4

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND col0 - 53
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2473
SELECT - CAST( NULL AS SIGNED ) + COUNT( * ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2473
SELECT - CAST ( NULL AS INTEGER ) + COUNT ( * ) col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT + MAX( - 96 ) - COUNT( col2 + col2 ) AS col2 FROM tab0 WHERE NOT ( col1 ) = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2474
SELECT + MAX ( - 96 ) - COUNT ( col2 + col2 ) AS col2 FROM tab0 WHERE NOT ( col1 ) = ( NULL )
----
NULL

query I rowsort
SELECT DISTINCT col1 + + col1 * 69 FROM tab1
----
3290
350
980

query I rowsort
SELECT col2 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND ( + 75 * + col2 )
----

query I rowsort
SELECT col0 * + col0 AS col0 FROM tab2 WHERE ( - col0 ) > col2 - + ( - col0 + col2 * + 59 )
----
2116
4096
5625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2478
SELECT DISTINCT + COUNT( * ) * 49 + CAST( NULL AS SIGNED ) * ( - 70 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2478
SELECT DISTINCT + COUNT ( * ) * 49 + CAST ( NULL AS INTEGER ) * ( - 70 ) AS col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2479
SELECT col0 + - 69 DIV col1 AS col1 FROM tab0
----
15
28
84

skipif mysql # not compatible
query I rowsort label-2479
SELECT col0 + - 69 / col1 AS col1 FROM tab0
----
15
28
84

query I rowsort
SELECT - col1 + col0 AS col1 FROM tab1 WHERE + col1 IN ( - col0 * 96 )
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 WHERE NOT ( NULL ) > ( 56 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 col0 FROM tab1
----
-17
-17
-17

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT ( col1 * - ( + 61 ) ) IS NULL
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 97 col2 FROM tab2 WHERE ( + 87 * col2 ) >= NULL
----

query I rowsort
SELECT ALL col2 * + col2 AS col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
100
2209
9801

onlyif mysql # DIV for integer division: 
query I rowsort label-2486
SELECT 71 DIV col2 FROM tab2 cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-2486
SELECT 71 / col2 FROM tab2 cor0
----
1
1
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2487
SELECT DISTINCT col2 + - col2 AS col1 FROM tab2 AS cor0 WHERE 88 * CAST( NULL AS DECIMAL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2487
SELECT DISTINCT col2 + - col2 AS col1 FROM tab2 AS cor0 WHERE 88 * CAST ( NULL AS REAL ) IS NULL
----
0

query I rowsort
SELECT DISTINCT col0 - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT + 77 IS NULL
----
128
150
92

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE NOT - 26 < ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2490
SELECT DISTINCT 84 FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) ) <= - col0 + 93
----

skipif mysql # not compatible
query I rowsort label-2490
SELECT DISTINCT 84 FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) ) <= - col0 + 93
----

query I rowsort
SELECT DISTINCT 85 FROM tab1 AS cor0 CROSS JOIN tab1
----
85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 49 + ( + 63 + + 23 * col2 ) < ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2493
SELECT + ( 68 ) DIV col2 + col0 FROM tab2 AS cor0
----
48
65
76

skipif mysql # not compatible
query I rowsort label-2493
SELECT + ( 68 ) / col2 + col0 FROM tab2 AS cor0
----
48
65
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2494
SELECT ALL + col1 * + col2 + - CAST( NULL 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-2494
SELECT ALL + col1 * + col2 + - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 90 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2496
SELECT 56 DIV + MIN( col2 ) AS col2 FROM tab0 AS cor0 WHERE col1 * - col1 < col2
----
5

skipif mysql # not compatible
query I rowsort label-2496
SELECT 56 / + MIN ( col2 ) AS col2 FROM tab0 AS cor0 WHERE col1 * - col1 < col2
----
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 90 = ( NULL )
----

query I rowsort
SELECT DISTINCT col0 * - 21 FROM tab0
----
-1827
-2037
-315

query I rowsort
SELECT + 52 + + col0 AS col2 FROM tab2
----
116
127
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT ALL + 14 * COUNT( * ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-2500
SELECT ALL + 14 * COUNT ( * ) FROM tab2
----
42

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 32 IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 + - - col1 + + col1 * col2 col0 FROM tab1
----
1288
230
3173

query I rowsort
SELECT DISTINCT col0 * - 21 * col2 FROM tab1
----
-102816
-105315
-129948

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2504
SELECT * FROM tab2 WHERE - CAST( CAST( ( + col0 ) AS SIGNED ) AS SIGNED ) * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2504
SELECT * FROM tab2 WHERE - CAST ( CAST ( ( + col0 ) AS INTEGER ) AS INTEGER ) * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( - - 89 ) AS col1 FROM tab0
----
-89
-89
-89

query I rowsort
SELECT ALL + col0 + - 46 AS col0 FROM tab0
----
-31
41
51

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NULL BETWEEN + col2 AND ( + 44 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT DISTINCT 17 - + - COUNT( - col1 ) FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-2508
SELECT DISTINCT 17 - + - COUNT ( - col1 ) FROM tab1
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2509
SELECT DISTINCT - ( - col1 ) - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2509
SELECT DISTINCT - ( - col1 ) - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 26 ) col1 FROM tab0
----
-26
-26
-26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2511
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN ( - 71 * CAST( NULL AS SIGNED ) ) AND + 33
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2511
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN ( - 71 * CAST ( NULL AS INTEGER ) ) AND + 33
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT - - MIN( DISTINCT col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2512
SELECT - - MIN ( DISTINCT col0 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL col1 * - col0 - 97 FROM tab2 cor0
----
-2443
-5025
-5122

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2514
SELECT + 72 - + - col0 DIV CAST( col1 * + col1 + + 83 * ( - col2 * col1 ) AS SIGNED ) FROM tab2 AS cor0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-2514
SELECT + 72 - + - col0 / CAST ( col1 * + col1 + + 83 * ( - col2 * col1 ) AS INTEGER ) FROM tab2 AS cor0
----
72
72
72

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - 42 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT ALL + COUNT( * ) * COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
81

query I rowsort
SELECT DISTINCT + - 28 + - 34 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2518
SELECT DISTINCT - + CAST( ( - 38 ) AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
38

skipif mysql # not compatible
query I rowsort label-2518
SELECT DISTINCT - + CAST ( ( - 38 ) AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
38

query II rowsort
SELECT DISTINCT + 46 AS col1, + col2 FROM tab2 AS cor0
----
46
23
46
40
46
58

query I rowsort
SELECT ALL ( - - 36 ) * + col0 - 37 AS col1 FROM tab1 cor0
----
1799
3023
3239

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT ALL COUNT( * ) * + 19 - - 56 AS col0 FROM tab1 AS cor0
----
113

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL COUNT ( * ) * + 19 - - 56 AS col0 FROM tab1 AS cor0
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2524
SELECT + SUM( DISTINCT + - col2 ) DIV 93 * + 30 AS col2 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2524
SELECT + SUM ( DISTINCT + - col2 ) / 93 * + 30 AS col2 FROM tab2 AS cor0
----
-30

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 AS cor0 WHERE col1 >= NULL
----

query I rowsort
SELECT + ( + col0 ) * + ( - col0 * - ( - ( - col1 ) * + col2 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 + - col0 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT ALL MAX( - - col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL MAX ( - - col0 ) AS col2 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT - MIN( - col0 ) col0 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2528
SELECT - MIN ( - col0 ) col0 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT + COUNT( * ) + + 44 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
47

skipif mysql # not compatible
query I rowsort label-2529
SELECT + COUNT ( * ) + + 44 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
47

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= + - 12
----

query I rowsort
SELECT DISTINCT - ( ( + - col2 ) ) FROM tab2
----
23
40
58

query I rowsort
SELECT + 41 * + ( + col1 ) FROM tab2
----
2091
2747
3157

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT ALL + COUNT( + + 88 ) * + 90 FROM tab1
----
270

skipif mysql # not compatible
query I rowsort label-2533
SELECT ALL + COUNT ( + + 88 ) * + 90 FROM tab1
----
270

query I rowsort
SELECT + ( - + 41 ) FROM tab1
----
-41
-41
-41

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 <> 97
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 NOT IN ( col1 / col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT COUNT( * ) FROM tab0 WHERE NOT ( - - col0 / col0 / - col0 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2537
SELECT COUNT ( * ) FROM tab0 WHERE NOT ( - - col0 / col0 / - col0 ) <= NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2538
SELECT - 68 DIV + SUM( 67 ) * + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2538
SELECT - 68 / + SUM ( 67 ) * + COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - - 47 * - + 96 AS col0 FROM tab1 AS cor0
----
-4512
-4512
-4512

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) IN ( - 82 + 53 )
----

query I rowsort
SELECT DISTINCT - + 48 AS col2 FROM tab0 AS cor0
----
-48

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col2 <= + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 <= ( - - 53 )
----
15
81
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 >= ( + + 90 )
----

query I rowsort
SELECT ALL - - 37 + + 20 FROM tab1 cor0
----
57
57
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2546
SELECT DISTINCT col2 * - 50 - + 46 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE - col0 * - col2 NOT BETWEEN NULL AND + ( - + col0 ) * - col1 + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2546
SELECT DISTINCT col2 * - 50 - + 46 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE - col0 * - col2 NOT BETWEEN NULL AND + ( - + col0 ) * - col1 + col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2547
SELECT * FROM tab1 cor0 WHERE - CAST( NULL AS SIGNED ) NOT BETWEEN + - col0 * - - 15 AND - col1
----

skipif mysql # not compatible
query III rowsort label-2547
SELECT * FROM tab1 cor0 WHERE - CAST ( NULL AS INTEGER ) NOT BETWEEN + - col0 * - - 15 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT DISTINCT - SUM( 86 ) FROM tab0 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-2548
SELECT DISTINCT - SUM ( 86 ) FROM tab0 AS cor0
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT ALL - + SUM( + 54 ) FROM tab2 cor0
----
-162

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL - + SUM ( + 54 ) FROM tab2 cor0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT COUNT( ALL + - col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2550
SELECT COUNT ( ALL + - col2 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 55 * + 37 - + col2 AS col0 FROM tab0 AS cor0
----
-2045
-2082
-2134

query I rowsort
SELECT DISTINCT col2 * + + ( 14 ) - - col2 FROM tab1 AS cor0
----
1020
1440
885

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2553
SELECT COUNT( * ), + SUM( - ( 2 ) ) DIV + COUNT( * ) AS col1 FROM tab2 AS cor0
----
3
-2

skipif mysql # not compatible
query II rowsort label-2553
SELECT COUNT ( * ), + SUM ( - ( 2 ) ) / + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT - MAX( 98 ) - + 15 FROM tab2 AS cor0
----
-113

skipif mysql # not compatible
query I rowsort label-2554
SELECT - MAX ( 98 ) - + 15 FROM tab2 AS cor0
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT DISTINCT COUNT( * ) + + COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2
----
6

query II rowsort
SELECT ALL 72 AS col0, col1 FROM tab0
----
72
1
72
21
72
81

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 > + + col2
----

query I rowsort
SELECT ALL col1 + + 80 + + col0 AS col2 FROM tab2
----
177
221
222

query III rowsort
SELECT ALL * FROM tab0 WHERE + 56 / + 83 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT COUNT( * ) + ( + + 92 ) AS col1 FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-2560
SELECT COUNT ( * ) + ( + + 92 ) AS col1 FROM tab1
----
95

query I rowsort
SELECT ALL 14 + - - 77 AS col0 FROM tab0
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT 43 * - COUNT( - - col0 ) AS col1 FROM tab0 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-2562
SELECT 43 * - COUNT ( - - col0 ) AS col1 FROM tab0 AS cor0
----
-129

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT - 56 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 48 * - 33 + - col1 FROM tab2 AS cor0
----
-1635
-1651
-1661

query II rowsort
SELECT ALL - 75 * - - col1, col0 FROM tab2
----
-3825
46
-5025
75
-5775
64

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( - + col0 / - - 19 + + - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + ( - - ( - col2 ) ) * - 38 ) IS NOT NULL
----

query I rowsort
SELECT - col2 * + ( col1 ) * + 79 - + + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 18 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2569
SELECT - ( + + CAST( NULL AS SIGNED ) ) col0, 70 + + ( 65 ) col1 FROM tab0 cor0
----
NULL
135
NULL
135
NULL
135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2569
SELECT - ( + + CAST ( NULL AS INTEGER ) ) col0, 70 + + ( 65 ) col1 FROM tab0 cor0
----
NULL
135
NULL
135
NULL
135

query I rowsort
SELECT ( - - col0 ) AS col2 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2571
SELECT ALL - 48 * - 0 AS col2, MAX( - 41 ) FROM tab2 AS cor0
----
0
-41

skipif mysql # not compatible
query II rowsort label-2571
SELECT ALL - 48 * - 0 AS col2, MAX ( - 41 ) FROM tab2 AS cor0
----
0
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT DISTINCT + MIN( + col2 ) col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2572
SELECT DISTINCT + MIN ( + col2 ) col1 FROM tab1 AS cor0
----
59

query I rowsort
SELECT + ( + + 26 ) FROM tab2 AS cor0
----
26
26
26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 IN ( + col0, + 29 * 72 + - col0 )
----

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - col1 + + ( + col2 ) AS col2 FROM tab2 WHERE NOT NULL = - col2 + col1 + - col1 + + 19
----

query I rowsort
SELECT DISTINCT + col2 + + - 25 FROM tab0
----
-15
22
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2578
SELECT + CAST( NULL AS SIGNED ) + + - 90 * - SUM( DISTINCT 12 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2578
SELECT + CAST ( NULL AS INTEGER ) + + - 90 * - SUM ( DISTINCT 12 ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2579
SELECT CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2579
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT ALL - ( - SUM( DISTINCT - + col0 ) ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-2580
SELECT ALL - ( - SUM ( DISTINCT - + col0 ) ) AS col2 FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT SUM( + ( + col1 ) ) AS col1 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-2581
SELECT SUM ( + ( + col1 ) ) AS col1 FROM tab1 cor0
----
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 48 + - 30 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2583
SELECT ALL + 45 DIV - - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL + 45 / - - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT + COUNT( * ) * - COUNT( * ) * - + COUNT( DISTINCT + + col2 ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-2584
SELECT + COUNT ( * ) * - COUNT ( * ) * - + COUNT ( DISTINCT + + col2 ) FROM tab2
----
27

query III rowsort
SELECT * FROM tab1 WHERE + col2 * - - 28 + - + ( + col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + ( col1 ) <= + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2588
SELECT + 21 DIV + 66 - col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2588
SELECT + 21 / + 66 - col1 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 3 < ( + 73 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT - COUNT( * ) - - 34 FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-2590
SELECT - COUNT ( * ) - - 34 FROM tab1
----
31

query I rowsort
SELECT ALL col0 - 39 AS col2 FROM tab2
----
25
36
7

query I rowsort
SELECT DISTINCT - col2 + + + col1 * 50 AS col2 FROM tab2 AS cor0
----
2527
3292
3810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 39 + col1 col0 FROM tab2 AS cor0
----
12
28
38

query I rowsort
SELECT - - 56 FROM tab2 AS cor0 WHERE + col2 + col1 - + 57 IS NOT NULL
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT + + MAX( ALL 51 ) FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2595
SELECT + + MAX ( ALL 51 ) FROM tab0 AS cor0
----
51

query I rowsort
SELECT col2 * - + ( - 83 ) AS col2 FROM tab2
----
1909
3320
4814

onlyif mysql # aggregate syntax: 
query II rowsort label-2597
SELECT DISTINCT - COUNT( * ) col0, 44 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-3
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2597
SELECT DISTINCT - COUNT ( * ) col0, 44 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-3
44

query I rowsort
SELECT 72 * + + col1 * - - col2 * col2 AS col1 FROM tab2
----
16227936
1942488
8870400

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT ALL SUM( 40 ) FROM tab0
----
120

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL SUM ( 40 ) FROM tab0
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2600
SELECT 57, + 60 * SUM( - + CAST( + 43 AS SIGNED ) ) + + ( - COUNT( * ) ) AS col0 FROM tab1
----
57
-7743

skipif mysql # not compatible
query II rowsort label-2600
SELECT 57, + 60 * SUM ( - + CAST ( + 43 AS INTEGER ) ) + + ( - COUNT ( * ) ) AS col0 FROM tab1
----
57
-7743

query I rowsort
SELECT + ( + 29 ) FROM tab0
----
29
29
29

onlyif mysql # DIV for integer division: 
query I rowsort label-2602
SELECT col0 DIV ( col2 ) * 94 FROM tab2
----
188
94
94

skipif mysql # not compatible
query I rowsort label-2602
SELECT col0 / ( col2 ) * 94 FROM tab2
----
188
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT + COUNT( - + 63 ) * + 80 col1 FROM tab1
----
240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2603
SELECT + COUNT ( - + 63 ) * + 80 col1 FROM tab1
----
240

query I rowsort
SELECT 21 * - + 71 AS col0 FROM tab0
----
-1491
-1491
-1491

query II rowsort
SELECT ALL col0 AS col0, - col2 AS col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

query I rowsort
SELECT + + col2 * - - ( col0 ) * + col2 AS col1 FROM tab1 AS cor0
----
295885
420784
470016

query I rowsort
SELECT - + col1 * - 35 AS col2 FROM tab2 AS cor0
----
1785
2345
2695

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 83 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 27 IS NOT NULL
----

query I rowsort
SELECT - 73 * - col0 AS col2 FROM tab2 AS cor0
----
3358
4672
5475

onlyif mysql # DIV for integer division: 
query I rowsort label-2611
SELECT DISTINCT + col1 DIV - ( 50 ) FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2611
SELECT DISTINCT + col1 / - ( 50 ) FROM tab0 AS cor0
----
-1
0

query II rowsort
SELECT ALL col1 AS col1, + col0 * + - 14 FROM tab2 AS cor0
----
51
-644
67
-1050
77
-896

query I rowsort
SELECT col1 * - + 60 * + + col0 FROM tab1 cor0
----
-25500
-256620
-42840

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT ALL + COUNT( * ) + + 61 - - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-2614
SELECT ALL + COUNT ( * ) + + 61 - - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
61

query I rowsort
SELECT DISTINCT + ( - col0 ) + col1 AS col0 FROM tab0
----
-66
-96
66

query I rowsort
SELECT DISTINCT 83 + - 24 AS col2 FROM tab2 WHERE NULL IS NULL
----
59

query I rowsort
SELECT DISTINCT + 36 + - col1 + - + col0 * - - col1 * 15 FROM tab2
----
-35205
-73961
-75406

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2618
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + CAST( - col1 AS DECIMAL ) * - col1 + + + col1 + col2 * col0 AND 54
----

skipif mysql # not compatible
query III rowsort label-2618
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + CAST ( - col1 AS REAL ) * - col1 + + + col1 + col2 * col0 AND 54
----

query III rowsort
SELECT * FROM tab2 WHERE col0 BETWEEN NULL AND - 79
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2620
SELECT ALL * FROM tab2 WHERE NOT ( col2 ) <> - CAST( + + col0 AS SIGNED ) + - col0 + 17
----

skipif mysql # not compatible
query III rowsort label-2620
SELECT ALL * FROM tab2 WHERE NOT ( col2 ) <> - CAST ( + + col0 AS INTEGER ) + - col0 + 17
----

query I rowsort
SELECT + - ( + - col2 ) + + + col0 AS col0 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT ALL + COUNT( * ) + - + 4 FROM tab2 AS cor0 WHERE NOT 8 IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL + COUNT ( * ) + - + 4 FROM tab2 AS cor0 WHERE NOT 8 IS NULL
----
-1

query I rowsort
SELECT - - col2 + - + col1 AS col0 FROM tab2 AS cor0
----
-28
-37
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - ( col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE - 29 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2626
SELECT ALL + col2 - + col0 + + CAST( NULL AS SIGNED ) / + + 91 * + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL + col2 - + col0 + + CAST ( NULL AS INTEGER ) / + + 91 * + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + ( - 62 ) / + col0 * - col0 col1 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT - 0 * - col2 - + ( - 92 ) AS col1 FROM tab1 AS cor0
----
92
92
92

query II rowsort
SELECT - ( - col2 ) - col0, col0 FROM tab0 AS cor0
----
-77
87
2
97
32
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2630
SELECT COUNT( - col0 ) * + COUNT( * ) + COUNT( * ) AS col2 FROM tab2 cor0 WHERE ( NOT + ( + col0 ) * col2 * - col1 + - + col1 BETWEEN col0 AND ( col0 + col1 * CAST( NULL AS SIGNED ) ) )
----
12

skipif mysql # not compatible
query I rowsort label-2630
SELECT COUNT ( - col0 ) * + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE ( NOT + ( + col0 ) * col2 * - col1 + - + col1 BETWEEN col0 AND ( col0 + col1 * CAST ( NULL AS INTEGER ) ) )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT ALL SUM( - col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL SUM ( - col2 ) AS col0 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT - col0 - - - col1 FROM tab0 AS cor0
----
-108
-96
-98

query II rowsort
SELECT - 87 * + + 11 - + - 38, + col2 / + + 6 FROM tab1 WHERE NOT NULL > NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 BETWEEN + col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2635
SELECT DISTINCT + 2 DIV 70 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2635
SELECT DISTINCT + 2 / 70 AS col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 col1 FROM tab1 AS cor0
----
41

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + ( + col2 ) + + col2 * - + col1 AND + 59
----

query I rowsort
SELECT ALL - 15 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT COUNT( * ) * - + 59 AS col2 FROM tab2 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-2639
SELECT COUNT ( * ) * - + 59 AS col2 FROM tab2 AS cor0
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT ALL COUNT( ALL - 94 ) AS col2 FROM tab2 cor0 WHERE NOT col1 * + - 18 + + 11 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL COUNT ( ALL - 94 ) AS col2 FROM tab2 cor0 WHERE NOT col1 * + - 18 + + 11 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 IN ( - + col2, col0, - 56 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 37 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT ALL + MIN( ALL + col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL + MIN ( ALL + col2 ) AS col1 FROM tab2
----
23

query I rowsort
SELECT 7 FROM tab1 WHERE - ( - - col1 ) BETWEEN - 66 + + - col1 AND + col0
----
7
7
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 + col2 col2 FROM tab1
----
16
25
53

query II rowsort
SELECT - col1 AS col2, - 8 AS col1 FROM tab1 WHERE + col0 >= NULL
----

query I rowsort
SELECT - 67 * - + col2 + col1 + + - 6 * col2 FROM tab0
----
2948
6040
631

query I rowsort
SELECT DISTINCT + col2 + - + col0 FROM tab0
----
-77
2
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2649
SELECT DISTINCT - CAST( NULL AS SIGNED ), + col1 AS col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-2649
SELECT DISTINCT - CAST ( NULL AS INTEGER ), + col1 AS col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT ALL col2 + + 31 FROM tab1
----
127
90
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2651
SELECT CAST( SUM( ALL - col0 ) AS SIGNED ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-2651
SELECT CAST ( SUM ( ALL - col0 ) AS INTEGER ) AS col2 FROM tab0
----
-199

query I rowsort
SELECT DISTINCT + + 4 + - + col1 FROM tab1 AS cor0
----
-1
-10
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2653
SELECT DISTINCT + + AVG ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2653
SELECT DISTINCT + + AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 92 - - - col0 AS col1 FROM tab0 AS cor0
----
-5
5
77

query I rowsort
SELECT + 58 AS col1 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2656
SELECT ALL col0 + - 65 - + 43 DIV - - 62 FROM tab0
----
-50
22
32

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL col0 + - 65 - + 43 / - - 62 FROM tab0
----
-50
22
32

query I rowsort
SELECT ALL ( 77 ) - col1 FROM tab1 cor0
----
30
63
72

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 30 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT ALL 27 * MIN( - 58 ) FROM tab2 AS cor0
----
-1566

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL 27 * MIN ( - 58 ) FROM tab2 AS cor0
----
-1566

query I rowsort
SELECT DISTINCT - 17 * - col0 AS col0 FROM tab1 AS cor0
----
1445
1547
867

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 * col0 + - 28 ) NOT BETWEEN 55 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT MAX( DISTINCT + 25 ) AS col0 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-2662
SELECT MAX ( DISTINCT + 25 ) AS col0 FROM tab1
----
25

query I rowsort
SELECT + 65 * + - col1 FROM tab0
----
-1365
-5265
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT + MIN( - - 95 ) * + + 44 - - 38 FROM tab2
----
4218

skipif mysql # not compatible
query I rowsort label-2664
SELECT + MIN ( - - 95 ) * + + 44 - - 38 FROM tab2
----
4218

onlyif mysql # DIV for integer division: 
query I rowsort label-2665
SELECT ALL + col1 DIV 19 DIV + + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2665
SELECT ALL + col1 / 19 / + + col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2666
SELECT DISTINCT 70 DIV + col1 FROM tab1
----
1
14
5

skipif mysql # not compatible
query I rowsort label-2666
SELECT DISTINCT 70 / + col1 FROM tab1
----
1
14
5

query II rowsort
SELECT ALL + + col1, - col0 AS col2 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT + + MAX( 29 ) FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-2668
SELECT + + MAX ( 29 ) FROM tab1 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT - MIN( - 46 ) FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2669
SELECT - MIN ( - 46 ) FROM tab1 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT SUM( ALL - + 14 ) AS col0 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-2670
SELECT SUM ( ALL - + 14 ) AS col0 FROM tab0 AS cor0
----
-42

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query II rowsort
SELECT - col1 + + 31 AS col0, col2 AS col2 FROM tab1 AS cor0
----
-16
68
17
96
26
59

query II rowsort
SELECT + 14 * + - col1, 70 + 11 AS col0 FROM tab0 AS cor0
----
-1134
81
-14
81
-294
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2674
SELECT - 19 DIV + - col1 + + - 6 AS col1 FROM tab2 AS cor0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-2674
SELECT - 19 / + - col1 + + - 6 AS col1 FROM tab2 AS cor0
----
-6
-6
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-2675
SELECT ( col0 ) DIV 62 * + - col2 AS col1 FROM tab1 AS cor0
----
-59
-68
0

skipif mysql # not compatible
query I rowsort label-2675
SELECT ( col0 ) / 62 * + - col2 AS col1 FROM tab1 AS cor0
----
-59
-68
0

query I rowsort
SELECT 92 + - col1 + - + col2 + + col2 + + 30 * 54 AS col1 FROM tab1 AS cor0 WHERE ( NOT ( ( ( - 23 + - col2 / + + col2 IN ( - + col1 + + - col0, - col2, - col0 ) ) ) ) )
----
1665
1698
1707

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 + 30 > + - col2 * - 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT + MAX( ALL 0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2678
SELECT + MAX ( ALL 0 ) FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2679
SELECT ALL col1 DIV + - 34 + + 22 AS col1 FROM tab1
----
21
22
22

skipif mysql # not compatible
query I rowsort label-2679
SELECT ALL col1 / + - 34 + + 22 AS col1 FROM tab1
----
21
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT ALL + 58 + + COUNT( * ) FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL + 58 + + COUNT ( * ) FROM tab0
----
61

query I rowsort
SELECT + - 37 * + col2 + + col2 + + - col0 + col2 AS col0 FROM tab0 AS cor0
----
-1660
-3562
-437

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 < col0 AND - 1 * - col0 NOT IN ( - - ( + col2 ) )
----

query I rowsort
SELECT + col2 + + 42 FROM tab0 AS cor0
----
141
52
89

query I rowsort
SELECT - col0 + + - 82 * + col2 - + 27 AS col0 FROM tab1 AS cor0
----
-4950
-5694
-7950

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT - 43 + 33 + + 80 * - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
230

skipif mysql # not compatible
query I rowsort label-2685
SELECT - 43 + 33 + + 80 * - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
230

query I rowsort
SELECT + + col0 + + 60 FROM tab2 cor0
----
106
124
135

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT DISTINCT - 36 * - + COUNT( * ) FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-2687
SELECT DISTINCT - 36 * - + COUNT ( * ) FROM tab1
----
108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - col1 col0 FROM tab0 WHERE NOT NULL = - col1
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <= NULL
----

query IIIIII rowsort
SELECT * FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 ) WHERE ( NULL IS NULL )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 92 col1 FROM tab0 AS cor0
----
-92
-92
-92

query I rowsort
SELECT + ( col0 ) * - col2 * col1 FROM tab1 cor0
----
-25075
-290836
-68544

query II rowsort
SELECT ALL - col1 * + col1 AS col1, col0 AS col0 FROM tab1 AS cor0
----
-196
51
-2209
91
-25
85

query I rowsort
SELECT DISTINCT 13 * 54 FROM tab0 AS cor0
----
702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2695
SELECT + CAST( - col0 AS SIGNED ) FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-2695
SELECT + CAST ( - col0 AS INTEGER ) FROM tab0 cor0
----
-15
-87
-97

query II rowsort
SELECT + 89 AS col0, col0 AS col1 FROM tab1 AS cor0
----
89
51
89
85
89
91

query II rowsort
SELECT col2 * - 11 AS col2, col0 * + col0 FROM tab0 AS cor0
----
-1089
9409
-110
7569
-517
225

onlyif mysql # DIV for integer division: 
query I rowsort label-2698
SELECT DISTINCT - 40 * col1 - - + col2 DIV - 9 AS col0 FROM tab0 AS cor0
----
-3245
-51
-841

skipif mysql # not compatible
query I rowsort label-2698
SELECT DISTINCT - 40 * col1 - - + col2 / - 9 AS col0 FROM tab0 AS cor0
----
-3245
-51
-841

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 + + ( 52 ) > + + col0 * 35 + 78 + col1 + - col2 * - - col2 + - col0 * + - col2 / - 74 * 15
----
75
67
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + 82 ) col0 FROM tab1
----
-82
-82
-82

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col1 / - col2 / - + 94 + + ( 98 ) / - 69 * + col2, - col0 * col0, - + col0, - col0 / - col1 + - col2, - + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2702
SELECT - 16 DIV + COUNT( * ) FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-2702
SELECT - 16 / + COUNT ( * ) FROM tab0
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-2703
SELECT ALL + COUNT( - - 66 ) AS col2, - COUNT( * ) FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-2703
SELECT ALL + COUNT ( - - 66 ) AS col2, - COUNT ( * ) FROM tab0 AS cor0
----
3
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > + col1 / + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT DISTINCT COUNT( * ) * + - 59 AS col0 FROM tab0 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT COUNT ( * ) * + - 59 AS col0 FROM tab0 AS cor0
----
-177

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 >= col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL NOT BETWEEN ( col2 ) AND NULL )
----

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT NULL < col0
----

query I rowsort
SELECT - 13 * - col1 AS col0 FROM tab1
----
182
611
65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2710
SELECT COUNT( DISTINCT - 99 ) / - ( - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2710
SELECT COUNT ( DISTINCT - 99 ) / - ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2711
SELECT DISTINCT + 12 AS col2, + MAX( - CAST( - + col0 AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT col1 * - col0 / - + col2 NOT IN ( + + 58, - 8, - col2 + + 65 )
----
12
NULL

skipif mysql # not compatible
query II rowsort label-2711
SELECT DISTINCT + 12 AS col2, + MAX ( - CAST ( - + col0 AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT col1 * - col0 / - + col2 NOT IN ( + + 58, - 8, - col2 + + 65 )
----
12
NULL

query II rowsort
SELECT ALL - 86, col1 - + col1 * 16 * 90 * - 86 AS col2 FROM tab1 AS cor0
----
-86
1733774
-86
5820527
-86
619205

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + + + col2 col0 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2714
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT + COUNT( * ) * + 48 + MAX( - + 12 ) AS col1 FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-2715
SELECT + COUNT ( * ) * + 48 + MAX ( - + 12 ) AS col1 FROM tab2
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2716
SELECT ALL + COUNT( * ) + + CAST( + ( - 84 ) AS SIGNED ) AS col0 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL + COUNT ( * ) + + CAST ( + ( - 84 ) AS INTEGER ) AS col0 FROM tab2
----
-81

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 * - col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT ALL - MIN( ALL + 66 ) - - + 21 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-2718
SELECT ALL - MIN ( ALL + 66 ) - - + 21 FROM tab0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2719
SELECT * FROM tab1 WHERE col0 / 35 <> col0 * 63 + col0 * col0 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2719
SELECT * FROM tab1 WHERE col0 / 35 <> col0 * 63 + col0 * col0 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2720
SELECT ALL col1 AS col2, 39 + - - 50 DIV + col0 * + - 60 AS col0 FROM tab1
----
14
39
47
39
5
39

skipif mysql # not compatible
query II rowsort label-2720
SELECT ALL col1 AS col2, 39 + - - 50 / + col0 * + - 60 AS col0 FROM tab1
----
14
39
47
39
5
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 col1 FROM tab1 cor0
----
-22
-22
-22

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col1, + 61, - col2 + + col2, - col1 )
----

query II rowsort
SELECT col2 AS col0, + col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT 53 > NULL )
----

query I rowsort
SELECT + ( col2 ) FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL + + 81 * 93 FROM tab1 AS cor0
----
7533
7533
7533

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2727
SELECT + CAST( + - MIN( ALL col0 ) AS SIGNED ) AS col2 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2727
SELECT + CAST ( + - MIN ( ALL col0 ) AS INTEGER ) AS col2 FROM tab0 cor0
----
-15

query I rowsort
SELECT + ( - 25 ) FROM tab1 AS cor0
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT - MAX( DISTINCT + 94 ) FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-2729
SELECT - MAX ( DISTINCT + 94 ) FROM tab2
----
-94

query I rowsort
SELECT ALL - ( + 85 ) FROM tab2
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT DISTINCT ( - ( - + COUNT( * ) ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2731
SELECT DISTINCT ( - ( - + COUNT ( * ) ) ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2732
SELECT - CAST( CAST( - - 74 AS SIGNED ) AS SIGNED ) AS col0 FROM tab1
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-2732
SELECT - CAST ( CAST ( - - 74 AS INTEGER ) AS INTEGER ) AS col0 FROM tab1
----
-74
-74
-74

query I rowsort
SELECT col0 * + col1 * - + col1 AS col1 FROM tab2
----
-119646
-336675
-379456

query II rowsort
SELECT DISTINCT ( + col2 ) AS col0, ( + 65 ) FROM tab0
----
10
65
47
65
99
65

query I rowsort
SELECT DISTINCT - col1 * - + 62 AS col0 FROM tab2
----
3162
4154
4774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2736
SELECT ALL MAX( + - CAST( col2 AS SIGNED ) ) * - COUNT( - col2 ) AS col0 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL MAX ( + - CAST ( col2 AS INTEGER ) ) * - COUNT ( - col2 ) AS col0 FROM tab0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2737
SELECT ALL - col0 DIV + ( col1 ) FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-2737
SELECT ALL - col0 / + ( col1 ) FROM tab1
----
-1
-17
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2738
SELECT ALL - col2 DIV + CAST( - col1 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2738
SELECT ALL - col2 / + CAST ( - col1 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-2739
SELECT DISTINCT - COUNT( * ), + 91 * - 99 AS col2 FROM tab2 AS cor0
----
-3
-9009

skipif mysql # not compatible
query II rowsort label-2739
SELECT DISTINCT - COUNT ( * ), + 91 * - 99 AS col2 FROM tab2 AS cor0
----
-3
-9009

query II rowsort
SELECT ALL - - col2 + - col1 - - - 31 * - - col1 AS col0, 78 FROM tab1 AS cor0
----
-101
78
-1436
78
-352
78

query I rowsort
SELECT DISTINCT ( ( - - col1 ) ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT + COUNT( * ) * + COUNT( * ) + 83 AS col1 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-2742
SELECT + COUNT ( * ) * + COUNT ( * ) + 83 AS col1 FROM tab1
----
92

query I rowsort
SELECT ALL + ( + - col1 ) FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL col2 * + col2 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + 98 * - 49 <= NULL
----

query I rowsort
SELECT + 41 FROM tab0 AS cor0 WHERE NULL IS NULL
----
41
41
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2747
SELECT DISTINCT + - col2 + - CAST( - col2 AS SIGNED ), - col1 AS col1 FROM tab0 AS cor0
----
0
-1
0
-21
0
-81

skipif mysql # not compatible
query II rowsort label-2747
SELECT DISTINCT + - col2 + - CAST ( - col2 AS INTEGER ), - col1 AS col1 FROM tab0 AS cor0
----
0
-1
0
-21
0
-81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( + - col1 ) * + col0 * col0 FROM tab2 cor0
----
-107916
-315392
-376875

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT + + MAX( col0 ) col2 FROM tab1 cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2750
SELECT + + MAX ( col0 ) col2 FROM tab1 cor0
----
91

query II rowsort
SELECT DISTINCT 89 AS col2, - col0 * + col0 + + - col0 FROM tab1
----
89
-2652
89
-7310
89
-8372

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT - + 23 IS NOT NULL )
----

query I rowsort
SELECT ALL 15 - + col2 FROM tab0 AS cor0
----
-32
-84
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2754
SELECT + col0 AS col0 FROM tab2 cor0 WHERE - CAST( + - col1 AS SIGNED ) NOT BETWEEN + - ( col0 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2754
SELECT + col0 AS col0 FROM tab2 cor0 WHERE - CAST ( + - col1 AS INTEGER ) NOT BETWEEN + - ( col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT MAX( col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2755
SELECT MAX ( col2 ) AS col2 FROM tab2 AS cor0
----
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 47 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + 38 ) AS col0 FROM tab1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT ALL - COUNT( + 53 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL - COUNT ( + 53 ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT - - MAX( DISTINCT - col2 ) * + MAX( - + col1 ) FROM tab1 AS cor0
----
295

skipif mysql # not compatible
query I rowsort label-2759
SELECT - - MAX ( DISTINCT - col2 ) * + MAX ( - + col1 ) FROM tab1 AS cor0
----
295

query I rowsort
SELECT DISTINCT - 55 + 21 + - 13 FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 40 * 79 AS col0, col0 * + 69 + - col2 * - col0 * + - ( - col0 ) col2 FROM tab1 AS cor0
----
3160
253215
3160
432140
3160
569387

query II rowsort
SELECT col2 AS col0, col0 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
10
87
47
15
99
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 - - 37 * col1 - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( + col2 ) AS col0 FROM tab2 cor0
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT ALL 74 * + col0 FROM tab2
----
3404
4736
5550

query I rowsort
SELECT ALL + col1 + + col1 + col1 + + - col1 + + 48 * + col2 FROM tab2
----
1206
2074
2918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + - - col1 - - 77, ( - 93 ) col1 FROM tab0
----
119
-93
239
-93
79
-93

query I rowsort
SELECT ALL 58 + 37 + + - col2 FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
-1
27
36

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 67 ) >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2771
SELECT ALL 3 + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL 3 + - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * + + col0 AS col1 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT ALL - - col2 * + ( 55 ) FROM tab0 AS cor0
----
2585
5445
550

query I rowsort
SELECT ALL - - 9 * col2 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 * - - col2 * + col0 + + ( col2 ) FROM tab0 cor0
----
33182
8710
950796

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL > + col2
----

query I rowsort
SELECT + 2 * col2 + + col2 + - + ( + 18 ) * + - col0 AS col1 FROM tab1 AS cor0
----
1206
1707
1842

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + - col0 col0 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2779
SELECT + CAST( - 64 AS SIGNED ) + col0 DIV + col1 AS col1 FROM tab1 AS cor0
----
-47
-61
-63

skipif mysql # not compatible
query I rowsort label-2779
SELECT + CAST ( - 64 AS INTEGER ) + col0 / + col1 AS col1 FROM tab1 AS cor0
----
-47
-61
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT ALL - SUM( - - col0 ) col1 FROM tab0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2780
SELECT ALL - SUM ( - - col0 ) col1 FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT 78 * + - SUM( + + 92 ) FROM tab2
----
-21528

skipif mysql # not compatible
query I rowsort label-2781
SELECT 78 * + - SUM ( + + 92 ) FROM tab2
----
-21528

query I rowsort
SELECT DISTINCT 94 + + col1 * col1 FROM tab1
----
119
2303
290

query I rowsort
SELECT DISTINCT col1 - - + ( + col2 ) FROM tab0
----
100
128
31

query III rowsort
SELECT ALL * FROM tab0 WHERE - 36 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 - - 59 AS col1 FROM tab2
----
117
82
99

query I rowsort
SELECT DISTINCT - - ( ( col1 ) ) * + col2 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT col0 * - 31 * col1 AS col2 FROM tab2
----
-152768
-155775
-72726

query II rowsort
SELECT col1 AS col2, ( 82 ) FROM tab1
----
14
82
47
82
5
82

query I rowsort
SELECT + 46 * + col0 AS col1 FROM tab1
----
2346
3910
4186

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 11 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT - 28 * - col2 AS col1 FROM tab0 AS cor0
----
1316
2772
280

query I rowsort
SELECT ALL + - col1 FROM tab2 AS cor0 WHERE - col2 * + ( - col0 ) + - + col0 IS NOT NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 ) - + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, + col0 AS col2 FROM tab1 cor0
----
59
85
68
91
96
51

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL NOT BETWEEN NULL AND ( NULL ) ) OR ( col2 * + + col0 * - col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT + COUNT( * ) * AVG ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2796
SELECT + COUNT ( * ) * AVG ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
NULL

query I rowsort
SELECT DISTINCT 29 + - col0 FROM tab2 AS cor0
----
-17
-35
-46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 IN ( - col1 )
----

query I rowsort
SELECT ALL - + ( + - 95 ) AS col1 FROM tab0 AS cor0
----
95
95
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col1 FROM tab2
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT ( + MIN( - + col1 ) ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-2801
SELECT ( + MIN ( - + col1 ) ) AS col0 FROM tab1
----
-47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 16 >= + 28
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 58 IS NULL
----

query I rowsort
SELECT ALL - 69 + + col0 AS col0 FROM tab0
----
-54
18
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT ALL + MAX( ALL + 8 ) AS col0 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL + MAX ( ALL + 8 ) AS col0 FROM tab2
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2806
SELECT - col0 + - 19 DIV + col0 FROM tab0 AS cor0
----
-16
-87
-97

skipif mysql # not compatible
query I rowsort label-2806
SELECT - col0 + - 19 / + col0 FROM tab0 AS cor0
----
-16
-87
-97

query II rowsort
SELECT DISTINCT col2 AS col2, - col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2808
SELECT + col2 + - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2808
SELECT + col2 + - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2809
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - col0 IS NULL
----
0

query I rowsort
SELECT ALL col0 + - - 89 FROM tab0
----
104
176
186

query I rowsort
SELECT DISTINCT + col2 - - col0 AS col0 FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query II rowsort label-2812
SELECT ALL COUNT( * ) col1, - 6 * - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2812
SELECT ALL COUNT ( * ) col1, - 6 * - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2813
SELECT col1 FROM tab2 AS cor0 WHERE - CAST( NULL AS DECIMAL ) IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2813
SELECT col1 FROM tab2 AS cor0 WHERE - CAST ( NULL AS REAL ) IS NULL
----
51
67
77

query II rowsort
SELECT + + col2, + col1 * + - 27 FROM tab0 AS cor0
----
10
-567
47
-2187
99
-27

query I rowsort
SELECT DISTINCT ( - - col1 ) AS col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT col0 - + 71 AS col1 FROM tab0 AS cor0
----
-56
16
26

query I rowsort
SELECT + + ( + + col1 ) - col2 + + col0 AS col1 FROM tab1 cor0
----
-31
31
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT - SUM( - 57 ) - COUNT( * ) + - - SUM( ALL col1 ) AS col1 FROM tab1 cor0
----
234

skipif mysql # not compatible
query I rowsort label-2818
SELECT - SUM ( - 57 ) - COUNT ( * ) + - - SUM ( ALL col1 ) AS col1 FROM tab1 cor0
----
234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2819
SELECT ALL - ( - 56 ) DIV + COUNT( * ) AS col2 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-2819
SELECT ALL - ( - 56 ) / + COUNT ( * ) AS col2 FROM tab1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT DISTINCT COUNT( * ) * - 63 FROM tab1
----
-189

skipif mysql # not compatible
query I rowsort label-2820
SELECT DISTINCT COUNT ( * ) * - 63 FROM tab1
----
-189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2821
SELECT ALL + col1 + CAST( + col1 AS SIGNED ) * + - col2 * + col1 + - - col0 FROM tab2
----
-237019
-260220
-59726

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL + col1 + CAST ( + col1 AS INTEGER ) * + - col2 * + col1 + - - col0 FROM tab2
----
-237019
-260220
-59726

query I rowsort
SELECT ALL - + 58 + - 32 FROM tab1 WHERE + col2 IS NOT NULL
----
-90
-90
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2823
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 * + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2823
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 * + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT DISTINCT MIN( ALL + + 43 ) FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-2824
SELECT DISTINCT MIN ( ALL + + 43 ) FROM tab2 AS cor0
----
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 61 col0 FROM tab1 AS cor0
----
-61
-61
-61

query II rowsort
SELECT col0, 61 + 4 FROM tab2 AS cor0
----
46
65
64
65
75
65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2827
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( - + 25 AS SIGNED ) BETWEEN col2 - - col2 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2827
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( - + 25 AS INTEGER ) BETWEEN col2 - - col2 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 18 + + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
105
115
33

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( - col2 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT DISTINCT - + ( + 59 ) * MIN( DISTINCT + - col0 ) + - - ( ( 23 ) ) FROM tab2 WHERE - col0 < + col1
----
4448

skipif mysql # not compatible
query I rowsort label-2830
SELECT DISTINCT - + ( + 59 ) * MIN ( DISTINCT + - col0 ) + - - ( ( 23 ) ) FROM tab2 WHERE - col0 < + col1
----
4448

query I rowsort
SELECT + col1 + - col1 + - 6 FROM tab0
----
-6
-6
-6

query III rowsort
SELECT * FROM tab1 WHERE NOT - 82 + + ( - col1 ) BETWEEN + - col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 3 + + col0 AS col1 FROM tab2
----
43
61
72

query II rowsort
SELECT DISTINCT col1, + 88 FROM tab1
----
14
88
47
88
5
88

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( + col2 ) IS NULL
----

query I rowsort
SELECT ( + + col2 ) * + 85 + 69 FROM tab0
----
4064
8484
919

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2837
SELECT + CAST( NULL AS SIGNED ) * col1 * col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2837
SELECT + CAST ( NULL AS INTEGER ) * col1 * col0 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2838
SELECT - col0 DIV - - col0 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2838
SELECT - col0 / - - col0 AS col1 FROM tab2
----
-1
-1
-1

query II rowsort
SELECT ALL - 16 AS col0, col0 AS col1 FROM tab1 AS cor0
----
-16
51
-16
85
-16
91

query II rowsort
SELECT DISTINCT - + col0 AS col0, 45 AS col2 FROM tab2 AS cor0
----
-46
45
-64
45
-75
45

query I rowsort
SELECT + 13 * - - col0 AS col2 FROM tab2 WHERE col1 IS NOT NULL
----
598
832
975

query I rowsort
SELECT ALL 15 + - + 14 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT + 61 + + col1 * + col1 FROM tab0
----
502
62
6622

query I rowsort
SELECT col0 * + 73 + col0 AS col1 FROM tab0
----
1110
6438
7178

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 <= - col1 * + col1
----

query I rowsort
SELECT + 6 + col0 - - col2 FROM tab0 AS cor0
----
103
202
68

query I rowsort
SELECT ALL - col1 * col0 + + - col2 FROM tab1 cor0
----
-4345
-484
-810

query II rowsort
SELECT ALL + col0 * + col1 * + + col2 - + 74, col1 FROM tab2 AS cor0
----
197046
77
291376
67
53884
51

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query II rowsort
SELECT - 96, col1 AS col1 FROM tab0 AS cor0 WHERE col1 NOT IN ( - col1, - 38 * + col2, + 31 * col0 + - col1 )
----
-96
1
-96
21
-96
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2851
SELECT DISTINCT - - ( - - col2 ) DIV + col2 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2851
SELECT DISTINCT - - ( - - col2 ) / + col2 AS col1 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 * col0 col2 FROM tab0 AS cor0
----
261
291
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT - + MAX( DISTINCT col2 ) * - 84 col1 FROM tab1 AS cor0
----
8064

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2853
SELECT - + MAX ( DISTINCT col2 ) * - 84 col1 FROM tab1 AS cor0
----
8064

query I rowsort
SELECT DISTINCT + 61 / - 73 AS col0 FROM tab2 WHERE NOT + col0 <= NULL
----

query I rowsort
SELECT - col0 * + + 10 AS col1 FROM tab2
----
-460
-640
-750

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 WHERE NOT + 58 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT COUNT( * ) * - 52 FROM tab1
----
-156

skipif mysql # not compatible
query I rowsort label-2857
SELECT COUNT ( * ) * - 52 FROM tab1
----
-156

query I rowsort
SELECT - col2 * - - 4 FROM tab2
----
-160
-232
-92

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 14 * - 27 - - col1 IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 * col1 * - col1 AS col2 FROM tab2
----
119646
336675
379456

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT DISTINCT MAX( + col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT MAX ( + col2 ) AS col0 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT DISTINCT + SUM( ALL - col2 ) * ( COUNT( * ) ) AS col2 FROM tab1
----
-669

skipif mysql # not compatible
query I rowsort label-2862
SELECT DISTINCT + SUM ( ALL - col2 ) * ( COUNT ( * ) ) AS col2 FROM tab1
----
-669

query I rowsort
SELECT ALL - - col1 * + - 1 * + + col1 AS col2 FROM tab0 AS cor0
----
-1
-441
-6561

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 >= + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT DISTINCT + + COUNT( - 18 ) * + - MAX( - + col1 ) AS col1 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2865
SELECT DISTINCT + + COUNT ( - 18 ) * + - MAX ( - + col1 ) AS col1 FROM tab1 AS cor0
----
15

query I rowsort
SELECT 9 FROM tab0 cor0 WHERE NOT - col2 IS NOT NULL
----

query II rowsort
SELECT ( ( + 85 ) ), col1 FROM tab0 cor0
----
85
1
85
21
85
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2868
SELECT ALL + COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL + COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2869
SELECT - + 3 FROM tab0 WHERE NOT + col0 * + CAST( NULL AS SIGNED ) - 68 * 93 - + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2869
SELECT - + 3 FROM tab0 WHERE NOT + col0 * + CAST ( NULL AS INTEGER ) - 68 * 93 - + col0 IS NULL
----

query II rowsort
SELECT ALL + col2, 9 - + col1 - + ( + + 22 ) * col1 * + 62 + col2 FROM tab2
----
23
-69583
40
-105056
58
-91388

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2871
SELECT * FROM tab2 WHERE NOT CAST( col2 AS DECIMAL ) < + + col2 / + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2871
SELECT * FROM tab2 WHERE NOT CAST ( col2 AS REAL ) < + + col2 / + - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2872
SELECT MAX( ( - CAST( - - col2 AS SIGNED ) ) ) AS col2, + 2 AS col1 FROM tab0 cor0
----
-10
2

skipif mysql # not compatible
query II rowsort label-2872
SELECT MAX ( ( - CAST ( - - col2 AS INTEGER ) ) ) AS col2, + 2 AS col1 FROM tab0 cor0
----
-10
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2873
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 27 NOT BETWEEN NULL AND + + CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2873
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 27 NOT BETWEEN NULL AND + + CAST ( col0 AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2874
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2874
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT - col0 AS col1, col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT + MAX( ALL - 45 ) col0 FROM tab0
----
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2876
SELECT + MAX ( ALL - 45 ) col0 FROM tab0
----
-45

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 + - 38 <= col2
----

query I rowsort
SELECT - - col0 AS col0 FROM tab1 WHERE - + col0 > - col0
----

query I rowsort
SELECT ALL col2 + + ( + col1 ) AS col0 FROM tab2 AS cor0
----
117
125
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 col0 FROM tab2 AS cor0 WHERE ( NULL ) < col1
----

query I rowsort
SELECT DISTINCT + + col0 - - col2 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT - + 34 - + col2 AS col2 FROM tab0 AS cor0
----
-133
-44
-81

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE 51 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - - col0 + + - ( + + col2 ) FROM tab1 AS cor0
----
-45
23
26

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 IN ( + - ( col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 * - 33 + + - 30 - + - col0 + 55 - - - 50 FROM tab0 AS cor0
----
-2809
-3129
-505

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT + - MIN( DISTINCT col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2887
SELECT + - MIN ( DISTINCT col1 ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT ALL + SUM( 36 ) * COUNT( * ) + + 81 FROM tab1 WHERE NOT + 17 <> ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL + SUM ( 36 ) * COUNT ( * ) + + 81 FROM tab1 WHERE NOT + 17 <> ( col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT ALL - SUM( ALL - 49 ) FROM tab0
----
147

skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL - SUM ( ALL - 49 ) FROM tab0
----
147

query I rowsort
SELECT 56 + + 76 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 71eda8f1cddbd49f139e3cd450755dd8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab0 cor0 WHERE NOT - col0 - col0 <= ( + 20 * + col2 + + 16 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2892
SELECT - CAST( NULL AS SIGNED ) * ( - 94 ) / - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2892
SELECT - CAST ( NULL AS INTEGER ) * ( - 94 ) / - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - 2 ) FROM tab2 cor0
----
-2
-2
-2

query I rowsort
SELECT ALL + - 57 + - - ( col1 ) AS col0 FROM tab0 AS cor0
----
-36
-56
24

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
10
47
99

query I rowsort
SELECT ALL - col1 + - + col2 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT ALL 51 * + col2 + - col2 FROM tab0
----
2350
4950
500

query I rowsort
SELECT DISTINCT - - 3 AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2899
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT - col1 + 1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2899
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT - col1 + 1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2900
SELECT + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
-3

query I rowsort
SELECT col1 + + col1 FROM tab0 cor0 WHERE NOT col2 - + + 25 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT ALL - ( ( MIN( - col2 ) ) ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL - ( ( MIN ( - col2 ) ) ) FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2903
SELECT + COUNT( * ) DIV + ( - + COUNT( * ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2903
SELECT + COUNT ( * ) / + ( - + COUNT ( * ) ) FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - 89 col1 FROM tab1
----
4539
7565
8099

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT ALL + SUM( col2 ) col1 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2905
SELECT ALL + SUM ( col2 ) col1 FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT DISTINCT - 83 * + COUNT( * ) * + 57 FROM tab2
----
-14193

skipif mysql # not compatible
query I rowsort label-2906
SELECT DISTINCT - 83 * + COUNT ( * ) * + 57 FROM tab2
----
-14193

query II rowsort
SELECT DISTINCT col1, col1 - + col0 FROM tab0
----
1
-96
21
-66
81
66

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 72 IS NOT NULL
----

query I rowsort
SELECT + 43 FROM tab1 WHERE NULL <= 61 * col0
----

query I rowsort
SELECT + 81 * + col2 AS col2 FROM tab0
----
3807
8019
810

query I rowsort
SELECT 65 * + col0 FROM tab1
----
3315
5525
5915

query I rowsort
SELECT DISTINCT - 16 - + col1 FROM tab1
----
-21
-30
-63

query I rowsort
SELECT ALL + ( - col1 ) + 23 AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL 27 * col1 FROM tab0
----
2187
27
567

query III rowsort
SELECT * FROM tab2 WHERE col2 / - col0 BETWEEN + col1 AND ( + 22 )
----

query I rowsort
SELECT col0 FROM tab1 WHERE NOT col2 + - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - col0 * 15 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2918
SELECT + 16 * + SUM( + col0 DIV - 23 ) AS col1 FROM tab0
----
-112

skipif mysql # not compatible
query I rowsort label-2918
SELECT + 16 * + SUM ( + col0 / - 23 ) AS col1 FROM tab0
----
-112

query I rowsort
SELECT ALL + col1 * + ( 60 ) AS col1 FROM tab0
----
1260
4860
60

query I rowsort
SELECT DISTINCT - col0 + ( - col1 ) FROM tab1
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT ALL - SUM( - col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-2921
SELECT ALL - SUM ( - col0 ) FROM tab1
----
227

query I rowsort
SELECT ALL - col0 * + col2 + 76 * + col0 AS col1 FROM tab2
----
1350
2304
2438

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 49 NOT IN ( 3 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT + COUNT( ALL 10 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2924
SELECT + COUNT ( ALL 10 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT ALL 37 / + 72 FROM tab2 WHERE NOT + 6 * - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 * - col2 BETWEEN - 14 * + col0 AND 5
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 - - ( + col1 ) AS col0 FROM tab1
----
138
65
90

query I rowsort
SELECT - AVG ( ( - 12 ) ) FROM tab0 WHERE NOT NULL = col2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col0 ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT 61 - 40 * 30 FROM tab1
----
-1139
-1139
-1139

query I rowsort
SELECT + col0 FROM tab1 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2932
SELECT DISTINCT * FROM tab0 WHERE col0 + col0 * - CAST( col1 * col0 AS SIGNED ) NOT IN ( - col2 * 41 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2932
SELECT DISTINCT * FROM tab0 WHERE col0 + col0 * - CAST ( col1 * col0 AS INTEGER ) NOT IN ( - col2 * 41 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2933
SELECT ( col2 ) DIV + col2 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2933
SELECT ( col2 ) / + col2 AS col0 FROM tab1
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2934
SELECT col2 DIV - 71 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2934
SELECT col2 / - 71 AS col1 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT 4 * COUNT( * ) AS col0 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-2935
SELECT 4 * COUNT ( * ) AS col0 FROM tab0
----
12

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 * - 79 FROM tab2
----
-3634
-5056
-5925

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 WHERE col2 + + col1 BETWEEN col0 AND 41
----

query I rowsort
SELECT DISTINCT + ( - col1 ) + + col0 * col1 AS col0 FROM tab0
----
1134
1806
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2940
SELECT DISTINCT COUNT( * ) - 98 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2940
SELECT DISTINCT COUNT ( * ) - 98 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 NOT IN ( 60 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2942
SELECT ALL - col2 DIV - col1 - - col1 * col1 FROM tab1 cor0
----
202
2210
36

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL - col2 / - col1 - - col1 * col1 FROM tab1 cor0
----
202
2210
36

query I rowsort
SELECT 50 * col2 + col0 FROM tab2 AS cor0
----
1196
2064
2975

query I rowsort
SELECT col1 + + 20 AS col0 FROM tab1 AS cor0
----
25
34
67

query I rowsort
SELECT DISTINCT - col0 - col0 AS col1 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT ALL + MIN( DISTINCT - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL + MIN ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-97

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col1 BETWEEN - ( + 2 ) AND 98 - col0
----
64
77
40
75
67
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2948
SELECT ALL 17 DIV + col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL 17 / + col2 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2949
SELECT ALL - COUNT( * ) DIV + ( - 30 ) FROM tab2 AS cor0 CROSS JOIN tab0
----
0

skipif mysql # not compatible
query I rowsort label-2949
SELECT ALL - COUNT ( * ) / + ( - 30 ) FROM tab2 AS cor0 CROSS JOIN tab0
----
0

query I rowsort
SELECT col2 * - 28 FROM tab2 WHERE NOT ( col0 * col2 ) IS NULL
----
-1120
-1624
-644

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT DISTINCT 96 - COUNT( * ) AS col0 FROM tab2 WHERE col1 <= NULL
----
96

skipif mysql # not compatible
query I rowsort label-2952
SELECT DISTINCT 96 - COUNT ( * ) AS col0 FROM tab2 WHERE col1 <= NULL
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT - ( + SUM( ALL col1 ) ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2953
SELECT - ( + SUM ( ALL col1 ) ) FROM tab1 AS cor0
----
-66

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 + - ( + col0 ) > - 41 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2956
SELECT - ( col1 ) AS col0 FROM tab2 WHERE NOT NULL <> 87 - - ( - CAST( NULL AS SIGNED ) - + col1 * 14 )
----

skipif mysql # not compatible
query I rowsort label-2956
SELECT - ( col1 ) AS col0 FROM tab2 WHERE NOT NULL <> 87 - - ( - CAST ( NULL AS INTEGER ) - + col1 * 14 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 <= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2958
SELECT 98 * + COUNT( CAST( NULL AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2958
SELECT 98 * + COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * + 47 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 34 AS col0 FROM tab2 WHERE NOT - col1 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT + 36 + SUM( ALL col1 ) FROM tab2 WHERE ( - - 97 ) NOT BETWEEN ( - col2 * col1 ) AND ( 88 ) * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2961
SELECT + 36 + SUM ( ALL col1 ) FROM tab2 WHERE ( - - 97 ) NOT BETWEEN ( - col2 * col1 ) AND ( 88 ) * col2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + ( 36 ) <= NULL
----

query I rowsort
SELECT - 48 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT - - COUNT( * ) col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2964
SELECT - - COUNT ( * ) col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE NULL IN ( ( col2 ) )
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 NOT IN ( + ( 13 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * col0 + - 57 * col1 AS col1 FROM tab1
----
3509
4098
4730

query I rowsort
SELECT ALL + + 83 + col1 FROM tab0 AS cor0
----
104
164
84

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * - 96 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2970
SELECT DISTINCT - - col0 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) IS NOT NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT - - col0 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT - 86 * col2 + - + col1 AS col1 FROM tab2 AS cor0
----
-2029
-3517
-5055

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT DISTINCT - + MAX( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2972
SELECT DISTINCT - + MAX ( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
5

query I rowsort
SELECT col1 + - + 5 AS col0 FROM tab1 AS cor0
----
0
42
9

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 + - col1 + - col1 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT ALL SUM( 4 ) * + + COUNT( + 80 ) AS col2 FROM tab0 cor0
----
36

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL SUM ( 4 ) * + + COUNT ( + 80 ) AS col2 FROM tab0 cor0
----
36

query I rowsort
SELECT col2 + 73 AS col1 FROM tab2 AS cor0
----
113
131
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT AVG ( col2 ) * 79 + COUNT( * ) AS col0 FROM tab1 WHERE ( + 37 + + + col0 ) IN ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2977
SELECT AVG ( col2 ) * 79 + COUNT ( * ) AS col0 FROM tab1 WHERE ( + 37 + + + col0 ) IN ( - col1 )
----
NULL

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT - 6 IS NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2979
SELECT 90 DIV col2 * 44 AS col1 FROM tab0
----
0
396
44

skipif mysql # not compatible
query I rowsort label-2979
SELECT 90 / col2 * 44 AS col1 FROM tab0
----
0
396
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 / + ( + ( - ( col0 ) ) ) col2 FROM tab2 WHERE ( NULL ) IN ( + col1 )
----

query I rowsort
SELECT ALL ( - 34 ) * col1 AS col2 FROM tab1
----
-1598
-170
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT MAX( DISTINCT + 99 ) AS col0 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-2982
SELECT MAX ( DISTINCT + 99 ) AS col0 FROM tab1
----
99

query I rowsort
SELECT ALL 8 - + col0 + + + 66 * - 37 * - col0 * + col0 FROM tab2
----
10002376
13736183
5167234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2984
SELECT ALL - col1 + CAST( + col2 AS SIGNED ) AS col0 FROM tab0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-2984
SELECT ALL - col1 + CAST ( + col2 AS INTEGER ) AS col0 FROM tab0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2985
SELECT - CAST( + col0 AS SIGNED ) * - 30 FROM tab1 WHERE NULL IS NULL
----
1530
2550
2730

skipif mysql # not compatible
query I rowsort label-2985
SELECT - CAST ( + col0 AS INTEGER ) * - 30 FROM tab1 WHERE NULL IS NULL
----
1530
2550
2730

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 ) NOT BETWEEN - 56 AND + col2 * col2 + - 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT ALL 42 * - COUNT( ALL col2 ) FROM tab1 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL 42 * - COUNT ( ALL col2 ) FROM tab1 AS cor0
----
-126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, + col1 AS col0 FROM tab1
----
-14
14
-47
47
-5
5

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT ( + - col1 + col2 ) > ( 98 )
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 7 * 48 col2 FROM tab1 cor0
----
336

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 25 >= - - 17
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2992
SELECT + CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2992
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL col0 + col0 AS col0 FROM tab2 AS cor0 WHERE NULL IN ( + 85 + - col0 * - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT - COUNT( * ) * ( 13 ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 / - + col0 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2994
SELECT - COUNT ( * ) * ( 13 ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 / - + col0 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT col1 * + + col2 * col2 * - col2 AS col2 FROM tab2 AS cor0
----
-13072504
-4928000
-620517

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT DISTINCT + - ( COUNT( * ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2996
SELECT DISTINCT + - ( COUNT ( * ) ) FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT ALL + 95 * + COUNT( * ) * 61 AS col1 FROM tab1 AS cor0
----
17385

skipif mysql # not compatible
query I rowsort label-2997
SELECT ALL + 95 * + COUNT ( * ) * 61 AS col1 FROM tab1 AS cor0
----
17385

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( 1, 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT ( - SUM( + col1 ) ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2999
SELECT ( - SUM ( + col1 ) ) AS col1 FROM tab2
----
-195

query I rowsort
SELECT ( - + 90 ) * - - col0 FROM tab1
----
-4590
-7650
-8190

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT MAX( DISTINCT 31 ) FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-3002
SELECT MAX ( DISTINCT 31 ) FROM tab2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT 11 * - - MAX( DISTINCT - col1 ) FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-3003
SELECT 11 * - - MAX ( DISTINCT - col1 ) FROM tab0
----
-11

query II rowsort
SELECT col0 AS col0, + ( col0 ) AS col1 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3005
SELECT + 37 AS col2, + COUNT( * ) FROM tab0
----
37
3

skipif mysql # not compatible
query II rowsort label-3005
SELECT + 37 AS col2, + COUNT ( * ) FROM tab0
----
37
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3006
SELECT 19 * - CAST( + col1 AS SIGNED ) FROM tab1
----
-266
-893
-95

skipif mysql # not compatible
query I rowsort label-3006
SELECT 19 * - CAST ( + col1 AS INTEGER ) FROM tab1
----
-266
-893
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, ( - 24 ) AS col2 FROM tab1
----
-51
-24
-85
-24
-91
-24

query I rowsort
SELECT DISTINCT 14 + + - 75 FROM tab1
----
-61

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3009
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( + 92 AS DECIMAL ) + - 8 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3009
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( + 92 AS REAL ) + - 8 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3010
SELECT ALL * FROM tab0 WHERE NOT col0 < + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3010
SELECT ALL * FROM tab0 WHERE NOT col0 < + + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3011
SELECT DISTINCT 30, 96 DIV col2 AS col2 FROM tab2 AS cor0
----
30
1
30
2
30
4

skipif mysql # not compatible
query II rowsort label-3011
SELECT DISTINCT 30, 96 / col2 AS col2 FROM tab2 AS cor0
----
30
1
30
2
30
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3012
SELECT - - col0 DIV col1 * - - col0 AS col1 FROM tab1 AS cor0
----
1445
153
91

skipif mysql # not compatible
query I rowsort label-3012
SELECT - - col0 / col1 * - - col0 AS col1 FROM tab1 AS cor0
----
1445
153
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT + ( + COUNT( DISTINCT - + 21 ) ) + - + 37 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-3013
SELECT + ( + COUNT ( DISTINCT - + 21 ) ) + - + 37 FROM tab0 AS cor0
----
-36

query I rowsort
SELECT + col1 + col1 + + - 92 * - 56 * + col0 AS col1 FROM tab0 AS cor0
----
448266
499746
77442

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 40 col1 FROM tab0 AS cor0
----
139
50
87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 56 + - 70 IS NULL
----

query I rowsort
SELECT + 88 * - 4 + col1 FROM tab2
----
-275
-285
-301

onlyif mysql # aggregate syntax: 
query II rowsort label-3018
SELECT DISTINCT + 34 + + COUNT( * ), - 22 AS col0 FROM tab0
----
37
-22

skipif mysql # not compatible
query II rowsort label-3018
SELECT DISTINCT + 34 + + COUNT ( * ), - 22 AS col0 FROM tab0
----
37
-22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3019
SELECT - CAST( NULL AS SIGNED ) * col2, - 98 - - col1 col2 FROM tab2 AS cor0
----
NULL
-21
NULL
-31
NULL
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3019
SELECT - CAST ( NULL AS INTEGER ) * col2, - 98 - - col1 col2 FROM tab2 AS cor0
----
NULL
-21
NULL
-31
NULL
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT - MIN( ALL + col0 ) col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3020
SELECT - MIN ( ALL + col0 ) col2 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT + - col1 * + 96 + col2 FROM tab1 cor0
----
-1248
-421
-4444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 - - col2 col0, - 41 FROM tab2 AS cor0
----
-17
-41
-23
-41
-24
-41

query I rowsort
SELECT ALL col2 * - + col0 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT col2 - col1 - - 63 AS col0 FROM tab2 AS cor0
----
26
35
54

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE ( NOT 60 > - - 83 / + + ( - 3 ) + - col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT NULL <> NULL )
----

query I rowsort
SELECT col2 - col1 * + ( + 35 ) * col2 + + col2 + - col1 FROM tab1 AS cor0
----
-10212
-111771
-46862

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3028
SELECT CAST( NULL AS SIGNED ) - - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3028
SELECT CAST ( NULL AS INTEGER ) - - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE ( NOT ( ( NULL ) BETWEEN NULL AND ( - col0 ) ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3030
SELECT - + col1 - - col1, 93 DIV - 28 AS col2 FROM tab2 AS cor0
----
0
-3
0
-3
0
-3

skipif mysql # not compatible
query II rowsort label-3030
SELECT - + col1 - - col1, 93 / - 28 AS col2 FROM tab2 AS cor0
----
0
-3
0
-3
0
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT DISTINCT - ( + + SUM( - 39 ) ) * - ( + COUNT( * ) ) FROM tab0
----
-351

skipif mysql # not compatible
query I rowsort label-3031
SELECT DISTINCT - ( + + SUM ( - 39 ) ) * - ( + COUNT ( * ) ) FROM tab0
----
-351

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT COUNT( * ) - + 84 AS col2 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-3032
SELECT COUNT ( * ) - + 84 AS col2 FROM tab1
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 + 38 col2 FROM tab2
----
124
124
124

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT ALL MAX( + + 21 ) * - 5 FROM tab1 WHERE NOT + col1 / - 50 IN ( col2 )
----
-105

skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL MAX ( + + 21 ) * - 5 FROM tab1 WHERE NOT + col1 / - 50 IN ( col2 )
----
-105

query I rowsort
SELECT DISTINCT + ( + + col2 ) + col1 * 98 AS col2 FROM tab1
----
1468
4674
549

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT ALL 5 + - + 53 * COUNT( - col1 ) FROM tab0
----
-154

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL 5 + - + 53 * COUNT ( - col1 ) FROM tab0
----
-154

query II rowsort
SELECT - 93 + - + col2 + col1 AS col1, - col0 * + + 30 * - + 13 AS col1 FROM tab2
----
-56
24960
-65
17940
-84
29250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, col1 FROM tab2 AS cor0 WHERE NOT + col1 >= col0
----
58
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3039
SELECT + - 66 * + 69 - + - col1 + 73 + - CAST( - col0 AS SIGNED ) * - + 29 AS col2 FROM tab1 cor0
----
-5946
-6941
-7073

skipif mysql # not compatible
query I rowsort label-3039
SELECT + - 66 * + 69 - + - col1 + 73 + - CAST ( - col0 AS INTEGER ) * - + 29 AS col2 FROM tab1 cor0
----
-5946
-6941
-7073

onlyif mysql # DIV for integer division: 
query I rowsort label-3040
SELECT col0 DIV col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3040
SELECT col0 / col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
1
1
1

query I rowsort
SELECT DISTINCT col2 * + 93 * - 50 * + + 52 AS col0 FROM tab2 AS cor0
----
-14024400
-5561400
-9672000

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT ALL 8 + - COUNT( DISTINCT 35 ) FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - 49 AND ( - col0 + + + col0 )
----
8

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL 8 + - COUNT ( DISTINCT 35 ) FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - 49 AND ( - col0 + + + col0 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT COUNT( + - col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3043
SELECT COUNT ( + - col2 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - + 53 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-53

query I rowsort
SELECT ALL ( - + 1 ) * - - col2 * + 55 * - ( + - 76 ) FROM tab0 AS cor0
----
-196460
-413820
-41800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3046
SELECT + CAST( NULL AS SIGNED ) / + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3046
SELECT + CAST ( NULL AS INTEGER ) / + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 34 * col1 col2, col1 + col1 AS col2 FROM tab0 AS cor0
----
2754
162
34
2
714
42

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 < + 1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT DISTINCT 22 * + + MIN( + - 3 ) col0 FROM tab2 cor0 WHERE ( NULL ) IN ( 12 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3049
SELECT DISTINCT 22 * + + MIN ( + - 3 ) col0 FROM tab2 cor0 WHERE ( NULL ) IN ( 12 )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 + - col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL - + ( ( - 17 ) ) FROM tab2 AS cor0
----
17
17
17

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + - 96 * col0 + + + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT DISTINCT + 21 * + COUNT( * ) + 81 AS col1 FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-3053
SELECT DISTINCT + 21 * + COUNT ( * ) + 81 AS col1 FROM tab0
----
144

query I rowsort
SELECT + col2 * col1 + ( + 48 ) AS col0 FROM tab2
----
1221
3128
3934

query I rowsort
SELECT - 37 AS col2 FROM tab1 WHERE - col1 / - col2 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) + - + col2 col2 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT ALL - col0 * + 75 AS col0 FROM tab1
----
-3825
-6375
-6825

query I rowsort
SELECT DISTINCT 56 FROM tab0 WHERE NOT NULL IS NOT NULL
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT DISTINCT + SUM( + - col0 ) AS col1 FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3059
SELECT DISTINCT + SUM ( + - col0 ) AS col1 FROM tab0 cor0
----
-199

query I rowsort
SELECT DISTINCT + - 49 + - ( - col0 ) * - ( col1 ) AS col0 FROM tab0 AS cor0
----
-1264
-146
-1876

query I rowsort
SELECT DISTINCT 74 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 66 * + col1 + - + col2 FROM tab1
----
271
3034
828

query I rowsort
SELECT 69 + + col2 * + col2 FROM tab1 AS cor0
----
3550
4693
9285

query I rowsort
SELECT - col2 + + + col1 * + 88 FROM tab0 AS cor0
----
-11
1838
7081

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT DISTINCT - MIN( ALL col2 ) AS col2 FROM tab0 cor0 WHERE NOT col0 IS NULL
----
-10

skipif mysql # not compatible
query I rowsort label-3065
SELECT DISTINCT - MIN ( ALL col2 ) AS col2 FROM tab0 cor0 WHERE NOT col0 IS NULL
----
-10

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - + col1, + col1 / + col1 * - 33 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( + 66 >= NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 14 * - 46 / - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3069
SELECT - col2 DIV - col0 * + ( - - col0 ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3069
SELECT - col2 / - col0 * + ( - - col0 ) AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3070
SELECT + COUNT( * ) DIV - 26 * - ( + - COUNT( * ) ) col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3070
SELECT + COUNT ( * ) / - 26 * - ( + - COUNT ( * ) ) col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT ALL + + 36 + - COUNT( * ) AS col2 FROM tab0 WHERE - col1 <= + col2
----
33

skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL + + 36 + - COUNT ( * ) AS col2 FROM tab0 WHERE - col1 <= + col2
----
33

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 * + col2 + col0 NOT IN ( 72 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT MIN( 15 ) FROM tab2, tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3073
SELECT MIN ( 15 ) FROM tab2, tab1 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT ALL + COUNT( ALL - col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3074
SELECT ALL + COUNT ( ALL - col0 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3075
SELECT col1 * + CAST( col2 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-3075
SELECT col1 * + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1173
3080
3886

query I rowsort
SELECT ALL - col0 * - - col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT - - 23 AS col1 FROM tab2 AS cor0
----
23

query I rowsort
SELECT ALL + 44 * + col1 + - - 73 AS col0 FROM tab2 cor0
----
2317
3021
3461

query I rowsort
SELECT DISTINCT + ( 67 ) AS col1 FROM tab0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT ALL - 89 * + MIN( - col1 ) FROM tab2
----
6853

skipif mysql # not compatible
query I rowsort label-3080
SELECT ALL - 89 * + MIN ( - col1 ) FROM tab2
----
6853

onlyif mysql # aggregate syntax: 
query II rowsort label-3081
SELECT DISTINCT + + 69 col0, COUNT( * ) FROM tab0 AS cor0
----
69
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3081
SELECT DISTINCT + + 69 col0, COUNT ( * ) FROM tab0 AS cor0
----
69
3

query I rowsort
SELECT 95 FROM tab2 AS cor0 WHERE NOT ( + col2 * - - 82 ) IS NULL
----
95
95
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 59, col1 col2 FROM tab0 AS cor0 WHERE NOT 50 IS NULL
----
59
1
59
21
59
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT - - 30 * + SUM( + 9 ) FROM tab2 AS cor0
----
810

skipif mysql # not compatible
query I rowsort label-3084
SELECT - - 30 * + SUM ( + 9 ) FROM tab2 AS cor0
----
810

query I rowsort
SELECT DISTINCT - - 62 * - + col2 FROM tab2 AS cor0
----
-1426
-2480
-3596

onlyif mysql # DIV for integer division: 
query I rowsort label-3086
SELECT 83 DIV 48 AS col2 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3086
SELECT 83 / 48 AS col2 FROM tab1 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT + SUM( - - 58 ) * + 97 AS col2 FROM tab0 WHERE NOT - + 5 IS NULL
----
16878

skipif mysql # not compatible
query I rowsort label-3087
SELECT + SUM ( - - 58 ) * + 97 AS col2 FROM tab0 WHERE NOT - + 5 IS NULL
----
16878

query I rowsort
SELECT + col2 * + + col2 AS col2 FROM tab0
----
100
2209
9801

onlyif mysql # DIV for integer division: 
query I rowsort label-3089
SELECT DISTINCT - 61 + + + ( ( col0 ) ) DIV + - ( - col2 ) FROM tab2
----
-59
-60

skipif mysql # not compatible
query I rowsort label-3089
SELECT DISTINCT - 61 + + + ( ( col0 ) ) / + - ( - col2 ) FROM tab2
----
-59
-60

query I rowsort
SELECT DISTINCT + col1 + - 4 * - 28 AS col0 FROM tab1 WHERE + - col2 * col2 IS NOT NULL
----
117
126
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT MAX( ALL + 3 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3091
SELECT MAX ( ALL + 3 ) FROM tab1
----
3

query I rowsort
SELECT - col1 * + + ( - - col1 ) - - col2 FROM tab2 WHERE ( + col2 + + col0 ) <= - 60
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 76 + - col2 + - col1 IN ( - 76 * - col1, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE - ( col2 ) * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-3095
SELECT ALL ( col1 ) * - - col1 DIV - col1, ( + 56 ) AS col2 FROM tab2
----
-51
56
-67
56
-77
56

skipif mysql # not compatible
query II rowsort label-3095
SELECT ALL ( col1 ) * - - col1 / - col1, ( + 56 ) AS col2 FROM tab2
----
-51
56
-67
56
-77
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT SUM( - col0 ) + - 18 AS col1 FROM tab1 AS cor0
----
-245

skipif mysql # not compatible
query I rowsort label-3096
SELECT SUM ( - col0 ) + - 18 AS col1 FROM tab1 AS cor0
----
-245

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3097
SELECT ALL + ( + col2 ) AS col0, CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-3097
SELECT ALL + ( + col2 ) AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT - 83 + + ( - 30 ) AS col0 FROM tab0 AS cor0
----
-113
-113
-113

query I rowsort
SELECT DISTINCT - col0 * + ( + col1 ) + - + col1 * - col1 FROM tab0
----
-1386
-96
5346

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3100
SELECT - 70 + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3100
SELECT - 70 + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col2 * - col2 * col1 AS col2 FROM tab1 AS cor0
----
129024
17405
217328

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3102
SELECT DISTINCT - CAST( - + col0 AS DECIMAL ) FROM tab0 AS cor0 WHERE NULL > 72
----

skipif mysql # not compatible
query I rowsort label-3102
SELECT DISTINCT - CAST ( - + col0 AS REAL ) FROM tab0 AS cor0 WHERE NULL > 72
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3103
SELECT + MAX( ALL + 50 ) - - 10 AS col0 FROM tab1 cor0 WHERE col1 BETWEEN - CAST( - col0 AS SIGNED ) - + + CAST( NULL AS SIGNED ) - + 53 * + 69 AND + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-3103
SELECT + MAX ( ALL + 50 ) - - 10 AS col0 FROM tab1 cor0 WHERE col1 BETWEEN - CAST ( - col0 AS INTEGER ) - + + CAST ( NULL AS INTEGER ) - + 53 * + 69 AND + 53
----
NULL

query I rowsort
SELECT DISTINCT - - 92 AS col0 FROM tab0 AS cor0 WHERE NOT col1 * + - 54 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 20 + - - 95 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT + - COUNT( DISTINCT + + 41 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3106
SELECT + - COUNT ( DISTINCT + + 41 ) AS col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL - ( + 64 ) FROM tab2
----
-64
-64
-64

query I rowsort
SELECT - + col0 FROM tab1 WHERE NOT NULL > NULL
----

query I rowsort
SELECT - col2 * col2 - + 1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT DISTINCT - MAX( DISTINCT + col0 ) col1 FROM tab0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3110
SELECT DISTINCT - MAX ( DISTINCT + col0 ) col1 FROM tab0
----
-97

query II rowsort
SELECT DISTINCT col2, 41 FROM tab0
----
10
41
47
41
99
41

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 + ( - 19 ) <> - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT DISTINCT ( MIN( 55 ) ) AS col2 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-3113
SELECT DISTINCT ( MIN ( 55 ) ) AS col2 FROM tab1
----
55

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 24 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 92 FROM tab0 cor0
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-3116
SELECT ALL 13, + ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
13
3

skipif mysql # not compatible
query II rowsort label-3116
SELECT ALL 13, + ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
13
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3117
SELECT + col2 DIV col2 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3117
SELECT + col2 / col2 AS col0 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3118
SELECT CAST( - col1 AS SIGNED ) * + col2 + + 31 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3118
SELECT CAST ( - col1 AS INTEGER ) * + col2 + + 31 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3119
SELECT + 8 DIV + CAST( + 48 AS SIGNED ) * - + col1 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3119
SELECT + 8 / + CAST ( + 48 AS INTEGER ) * - + col1 AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT DISTINCT - + MAX( ALL + + 23 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3120
SELECT DISTINCT - + MAX ( ALL + + 23 ) FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3121
SELECT * FROM tab0 cor0 WHERE ( NULL ) = + CAST( NULL AS SIGNED ) / + - col1
----

skipif mysql # not compatible
query III rowsort label-3121
SELECT * FROM tab0 cor0 WHERE ( NULL ) = + CAST ( NULL AS INTEGER ) / + - col1
----

query I rowsort
SELECT 24 + col1 + + col1 + - col0 AS col2 FROM tab2
----
114
80
83

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE ( NOT NULL IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + - col0 col1 FROM tab2
----
-17
-23
-24

query II rowsort
SELECT col0 AS col2, col1 * col0 + + 24 AS col1 FROM tab0
----
15
1239
87
1851
97
121

query I rowsort
SELECT 72 * 91 AS col2 FROM tab0
----
6552
6552
6552

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3127
SELECT 47 col0, - ( 29 ) + + + 68 DIV + COUNT( * ) FROM tab1
----
47
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3127
SELECT 47 col0, - ( 29 ) + + + 68 / + COUNT ( * ) FROM tab1
----
47
-7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * + col1 = + col2
----

query I rowsort
SELECT ALL + col0 + - - col0 FROM tab0
----
174
194
30

query II rowsort
SELECT ALL + col0 + - col2 AS col1, 53 * - col1 * + 98 FROM tab2
----
17
-347998
23
-264894
24
-399938

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT - + COUNT( * ) + - + 61 FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-3131
SELECT - + COUNT ( * ) + - + 61 FROM tab1 AS cor0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT DISTINCT - 58 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-3132
SELECT DISTINCT - 58 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3133
SELECT ALL - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3134
SELECT - col0 AS col0, CAST( 84 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( NOT NULL <= 10 * 40 + + + 5 + - col1 / 16 + - col1 )
----

skipif mysql # not compatible
query II rowsort label-3134
SELECT - col0 AS col0, CAST ( 84 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( NOT NULL <= 10 * 40 + + + 5 + - col1 / 16 + - col1 )
----

query I rowsort
SELECT DISTINCT 8 * + col2 FROM tab0
----
376
792
80

query I rowsort
SELECT ALL col2 * + 94 AS col2 FROM tab2
----
2162
3760
5452

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 40 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3138
SELECT DISTINCT 96 DIV col2 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-3138
SELECT DISTINCT 96 / col2 FROM tab2
----
1
2
4

query I rowsort
SELECT - 21 FROM tab1 WHERE NOT - col2 IS NULL
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-3140
SELECT ALL + COUNT( * ), - COUNT( * ) AS col2 FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-3140
SELECT ALL + COUNT ( * ), - COUNT ( * ) AS col2 FROM tab1
----
3
-3

query I rowsort
SELECT col1 * - + col2 * + col0 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT DISTINCT + COUNT( * ) col0 FROM tab2 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-3142
SELECT DISTINCT + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3143
SELECT ALL - col2 * - - 39 * 42 FROM tab0 AS cor0 WHERE CAST( - CAST( NULL AS DECIMAL ) AS DECIMAL ) > NULL
----

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL - col2 * - - 39 * 42 FROM tab0 AS cor0 WHERE CAST ( - CAST ( NULL AS REAL ) AS REAL ) > NULL
----

query I rowsort
SELECT ALL + col0 * - + col1 + - col2 + col2 + - + col0 * col2 + + ( - - col2 ) FROM tab1 AS cor0
----
-10397
-5381
-5514

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 / - ( - + ( - - 99 ) ) * + ( - col0 ) * - col0 <= NULL )
----

query I rowsort
SELECT + col2 + + 43 FROM tab2 WHERE NOT NULL BETWEEN col1 AND - ( - 63 ) / + 5
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col2, + col0 * col0 + - - col1 col1 FROM tab0 AS cor0
----
15
306
87
7590
97
9410

query I rowsort
SELECT ALL ( + ( + + 26 ) ) FROM tab2 AS cor0
----
26
26
26

onlyif mysql # DIV for integer division: 
query I rowsort label-3149
SELECT - + 90 DIV + col1 + - 37 AS col0 FROM tab0 AS cor0
----
-127
-38
-41

skipif mysql # not compatible
query I rowsort label-3149
SELECT - + 90 / + col1 + - 37 AS col0 FROM tab0 AS cor0
----
-127
-38
-41

query II rowsort
SELECT ( + col2 ) * - - 41 + - col1 AS col0, col2 * + col1 AS col2 FROM tab2 AS cor0
----
1563
3080
2311
3886
892
1173

query I rowsort
SELECT + col0 * col1 * + + 2 FROM tab2 AS cor0
----
10050
4692
9856

onlyif mysql # aggregate syntax: 
query II rowsort label-3152
SELECT DISTINCT MIN( col1 ) * + + COUNT( ALL 47 ) AS col1, - COUNT( * ) col1 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3152
SELECT DISTINCT MIN ( col1 ) * + + COUNT ( ALL 47 ) AS col1, - COUNT ( * ) col1 FROM tab0 AS cor0
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT DISTINCT ( - ( - + COUNT( * ) ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3153
SELECT DISTINCT ( - ( - + COUNT ( * ) ) ) AS col2 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE - 75 / - col0 IN ( + + 83 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3155
SELECT ALL - 66 + COUNT( * ) AS col0, COUNT( * ) FROM tab1
----
-63
3

skipif mysql # not compatible
query II rowsort label-3155
SELECT ALL - 66 + COUNT ( * ) AS col0, COUNT ( * ) FROM tab1
----
-63
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT DISTINCT - COUNT( * ) + + + MIN( - col0 ) FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-3156
SELECT DISTINCT - COUNT ( * ) + + + MIN ( - col0 ) FROM tab2
----
-78

query I rowsort
SELECT DISTINCT ( - + col1 ) * col2 - - col0 FROM tab1 cor0
----
-1293
-210
-3105

query I rowsort
SELECT + - col2 + - 16 AS col1 FROM tab2 AS cor0
----
-39
-56
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 22 * + col2, col2 * + - col1 col2 FROM tab1 AS cor0
----
1298
-295
1496
-3196
2112
-1344

onlyif mysql # DIV for integer division: 
query I rowsort label-3160
SELECT ALL + col2 DIV + - col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL + col2 / + - col2 FROM tab0
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3161
SELECT - - CAST( - - ( + COUNT( * ) ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3161
SELECT - - CAST ( - - ( + COUNT ( * ) ) AS INTEGER ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3162
SELECT + + CAST( 24 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
24
24
24

skipif mysql # not compatible
query I rowsort label-3162
SELECT + + CAST ( 24 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
24
24
24

query I rowsort
SELECT - + 31 * - - col2 AS col0 FROM tab1 cor0
----
-1829
-2108
-2976

onlyif mysql # DIV for integer division: 
query I rowsort label-3164
SELECT ALL col0 DIV 38 * 80 + 5 FROM tab0 AS cor0
----
165
165
5

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL col0 / 38 * 80 + 5 FROM tab0 AS cor0
----
165
165
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT SUM( + col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3165
SELECT SUM ( + col2 ) AS col0 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT DISTINCT + 98 * COUNT( * ) FROM tab2 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-3166
SELECT DISTINCT + 98 * COUNT ( * ) FROM tab2 AS cor0
----
294

query II rowsort
SELECT col1, 30 FROM tab2 AS cor0
----
51
30
67
30
77
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT DISTINCT - + COUNT( ALL + + col1 ) FROM tab1 AS cor0 WHERE NOT 72 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3168
SELECT DISTINCT - + COUNT ( ALL + + col1 ) FROM tab1 AS cor0 WHERE NOT 72 IS NOT NULL
----
0

query I rowsort
SELECT ALL 67 * col0 AS col1 FROM tab2 cor0
----
3082
4288
5025

query III rowsort
SELECT * FROM tab1 WHERE NOT + 8 / + 10 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT DISTINCT + 50 * + COUNT( * ) FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT + 50 * + COUNT ( * ) FROM tab2
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3172
SELECT ALL * FROM tab1 WHERE NOT + + 93 + + col2 + + + CAST( - 70 AS SIGNED ) * CAST( + + col0 AS SIGNED ) NOT BETWEEN NULL AND + col2
----

skipif mysql # not compatible
query III rowsort label-3172
SELECT ALL * FROM tab1 WHERE NOT + + 93 + + col2 + + + CAST ( - 70 AS INTEGER ) * CAST ( + + col0 AS INTEGER ) NOT BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3173
SELECT ALL SUM( DISTINCT + col2 ), - 36 + ( + COUNT( * ) ) AS col1 FROM tab1
----
223
-33

skipif mysql # not compatible
query II rowsort label-3173
SELECT ALL SUM ( DISTINCT + col2 ), - 36 + ( + COUNT ( * ) ) AS col1 FROM tab1
----
223
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3174
SELECT - - 30 FROM tab1 WHERE NOT ( CAST( + 85 AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-3174
SELECT - - 30 FROM tab1 WHERE NOT ( CAST ( + 85 AS INTEGER ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + 26 * col0 * + col1 * - col1 * - col1 FROM tab0 AS cor0
----
207261990
20948382
2522

query I rowsort
SELECT ALL + + 15 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
15
15
15

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT col1 + - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT DISTINCT MIN( DISTINCT - 97 ) FROM tab1
----
-97

skipif mysql # not compatible
query I rowsort label-3178
SELECT DISTINCT MIN ( DISTINCT - 97 ) FROM tab1
----
-97

query I rowsort
SELECT ALL col1 * + - 43 + col1 + + col2 + - - col2 * + 80 AS col1 FROM tab2
----
-279
1884
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT DISTINCT + SUM( ALL - ( + 22 ) ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3180
SELECT DISTINCT + SUM ( ALL - ( + 22 ) ) AS col2 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT DISTINCT - 32 FROM tab0 AS cor0 WHERE NOT 70 + col1 + - col1 * col1 + - - 69 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 82 * - + 61 FROM tab2 AS cor0
----
-5002

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 38 AND + 66 * - ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3183
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 38 AND + 66 * - ( + col1 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 72 AND - - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT 16 <= NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( - - col2 - ( + 91 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + + col0, col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE + 80 - col1 * + ( + col1 ) + - col1 * + + ( - - col2 ) IS NULL
----

query II rowsort
SELECT DISTINCT - 30 * - - 50 + ( + col2 ) AS col1, + col1 AS col0 FROM tab1
----
-1404
14
-1432
47
-1441
5

query III rowsort
SELECT * FROM tab2 WHERE + ( - col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col0, - 97 col0 FROM tab1
----
51
-97
85
-97
91
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3192
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3192
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + CAST ( col0 AS INTEGER )
----

query I rowsort
SELECT + ( - 44 ) FROM tab2
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT COUNT( - - col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3194
SELECT COUNT ( - - col1 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3195
SELECT COUNT( * ) AS col2, - COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-3195
SELECT COUNT ( * ) AS col2, - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT ALL - 13 - MIN( - col0 ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-286

skipif mysql # not compatible
query I rowsort label-3196
SELECT ALL - 13 - MIN ( - col0 ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-286

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT - 27 - - MIN( - col2 ) col2 FROM tab2 cor0
----
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3197
SELECT - 27 - - MIN ( - col2 ) col2 FROM tab2 cor0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT DISTINCT - + 87 - - COUNT( * ) col1 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3198
SELECT DISTINCT - + 87 - - COUNT ( * ) col1 FROM tab1 AS cor0
----
-84

query I rowsort
SELECT + - 21 AS col2 FROM tab0 AS cor0
----
-21
-21
-21

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN - col2 + - 4 * col0 + - - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + col2 ) col0 FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + col2 * - - 54 AS col2 FROM tab0 cor0
----
2538
5346
540

query I rowsort
SELECT - + 10 AS col1 FROM tab0 AS cor0
----
-10
-10
-10

query II rowsort
SELECT + col0 AS col1, - col0 FROM tab0
----
15
-15
87
-87
97
-97

query II rowsort
SELECT ALL col2, 0 AS col2 FROM tab1
----
59
0
68
0
96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT DISTINCT 2 * + + SUM( ALL + 0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3206
SELECT DISTINCT 2 * + + SUM ( ALL + 0 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT ALL ( + 80 ) + COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
83

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL ( + 80 ) + COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT + MAX( - col2 ) * 27 AS col1 FROM tab1
----
-1593

skipif mysql # not compatible
query I rowsort label-3208
SELECT + MAX ( - col2 ) * 27 AS col1 FROM tab1
----
-1593

query II rowsort
SELECT DISTINCT + ( + col1 ) * + - col0, - col2 FROM tab2 WHERE NOT + 79 > NULL
----

query II rowsort
SELECT - col0, col0 * + col2 AS col2 FROM tab1
----
-51
4896
-85
5015
-91
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT + COUNT( ALL + + 11 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3211
SELECT + COUNT ( ALL + + 11 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT ALL - COUNT( * ) * MIN( DISTINCT col2 ) * - - 57 AS col0 FROM tab2 AS cor0
----
-3933

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL - COUNT ( * ) * MIN ( DISTINCT col2 ) * - - 57 AS col0 FROM tab2 AS cor0
----
-3933

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT + col1 * - col0 + + 14 FROM tab2 AS cor0
----
-2332
-4914
-5011

query I rowsort
SELECT - 75 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT DISTINCT - col0 + + 50 AS col1 FROM tab0 AS cor0
----
-37
-47
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT - 35 + - 48 * + ( - + COUNT( * ) ) FROM tab1 AS cor0 WHERE col2 + - col1 > col2
----
-35

skipif mysql # not compatible
query I rowsort label-3217
SELECT - 35 + - 48 * + ( - + COUNT ( * ) ) FROM tab1 AS cor0 WHERE col2 + - col1 > col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT COUNT( * ) * - SUM( ALL + 38 ) col0 FROM tab0 AS cor0
----
-342

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3218
SELECT COUNT ( * ) * - SUM ( ALL + 38 ) col0 FROM tab0 AS cor0
----
-342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) col2 FROM tab1 AS cor0 WHERE col1 + + - 58 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT - COUNT( * ) * - + 48 FROM tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-3220
SELECT - COUNT ( * ) * - + 48 FROM tab1 AS cor0
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-3221
SELECT - col2 DIV 99 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3221
SELECT - col2 / 99 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - col2, - col0, + 0, - col1, 52, - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3223
SELECT DISTINCT - + CAST( NULL AS SIGNED ) / + + col0 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) / + + col0 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3224
SELECT ALL + CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3224
SELECT ALL + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3225
SELECT ALL col1 * + col0 + col0 DIV 35 AS col2 FROM tab2
----
2347
4929
5027

skipif mysql # not compatible
query I rowsort label-3225
SELECT ALL col1 * + col0 + col0 / 35 AS col2 FROM tab2
----
2347
4929
5027

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 > NULL )
----

query I rowsort
SELECT ALL 21 + 69 FROM tab2
----
90
90
90

query I rowsort
SELECT + 50 AS col0 FROM tab1 WHERE - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT DISTINCT + MAX( + - 85 ) + - - ( - COUNT( * ) ) FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-3229
SELECT DISTINCT + MAX ( + - 85 ) + - - ( - COUNT ( * ) ) FROM tab1
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3230
SELECT + ( CAST( - col1 AS SIGNED ) ), + col0 AS col2 FROM tab0 AS cor0 WHERE NOT col1 - - 48 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-3230
SELECT + ( CAST ( - col1 AS INTEGER ) ), + col0 AS col2 FROM tab0 AS cor0 WHERE NOT col1 - - 48 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT DISTINCT COUNT( * ) col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3231
SELECT DISTINCT COUNT ( * ) col2 FROM tab2 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 49 col2, col0 * + col0 FROM tab1
----
49
2601
49
7225
49
8281

query I rowsort
SELECT 28 * + col0 FROM tab2
----
1288
1792
2100

onlyif mysql # aggregate syntax: 
query II rowsort label-3234
SELECT ALL + 62, COUNT( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0 WHERE NULL = NULL
----
62
0

skipif mysql # not compatible
query II rowsort label-3234
SELECT ALL + 62, COUNT ( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0 WHERE NULL = NULL
----
62
0

query II rowsort
SELECT + 71 AS col1, col2 AS col2 FROM tab0 cor0
----
71
10
71
47
71
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 - + + ( - ( - col0 ) ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3236
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 - + + ( - ( - col0 ) ) IS NULL
----
3

query I rowsort
SELECT - + 1 FROM tab2 AS cor0 WHERE NOT 66 IS NULL
----
-1
-1
-1

query I rowsort
SELECT ALL + ( + - col1 ) FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT + COUNT( * ) * + 44 AS col2 FROM tab0 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-3239
SELECT + COUNT ( * ) * + 44 AS col2 FROM tab0 AS cor0
----
132

query II rowsort
SELECT ALL + - col1 * + + 88 AS col0, col1 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 55, col2 col0 FROM tab2 AS cor0
----
55
23
55
40
55
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 70 col2, + col1 FROM tab2 cor0
----
70
51
70
67
70
77

query I rowsort
SELECT ALL 12 AS col2 FROM tab1 AS cor0
----
12
12
12

query I rowsort
SELECT + 94 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 * - - 73 col1 FROM tab0 cor0
----
4672
4672
4672

query I rowsort
SELECT - 81 + + 33 FROM tab1
----
-48
-48
-48

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 * - 22 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( - col1 ) * + 30 FROM tab0
----
-2430
-30
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 63 + + 95 AS col0, + col1 + + + col1 col1 FROM tab2 WHERE NOT - + col1 >= NULL
----

query I rowsort
SELECT ALL 66 * col2 AS col2 FROM tab2
----
1518
2640
3828

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( - col0 ) >= NULL
----

query II rowsort
SELECT + col1 * col2 AS col2, col1 * - - col2 FROM tab2 AS cor0
----
1173
1173
3080
3080
3886
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT ALL + COUNT( * ) + AVG ( ALL - col0 ) AS col2 FROM tab2 AS cor0 WHERE - col0 * col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL + COUNT ( * ) + AVG ( ALL - col0 ) AS col2 FROM tab2 AS cor0 WHERE - col0 * col1 IS NULL
----
NULL

query I rowsort
SELECT + + 82 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT + 31 + + - 27 + - col1 + - col0 AS col0 FROM tab0
----
-104
-92
-94

query III rowsort
SELECT * FROM tab0 WHERE - - ( - - col0 ) + + col2 / col0 / col2 + + col2 > + 5
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 98 + + ( - col1 ) FROM tab1
----
-103
-112
-145

query II rowsort
SELECT ALL - 24 AS col2, + col1 * + col0 FROM tab2 AS cor0
----
-24
2346
-24
4928
-24
5025

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 IS NULL OR - col2 > + 88
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3260
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3260
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - + col2 AS col1 FROM tab2 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT - col2 * - col1 * - col2 * + ( col2 ) AS col0 FROM tab0
----
-21000
-8409663
-970299

query I rowsort
SELECT DISTINCT - 61 * - + col0 FROM tab2
----
2806
3904
4575

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3264
SELECT col2 AS col1 FROM tab2 WHERE - CAST( 60 AS DECIMAL ) * + - col2 + - 88 NOT BETWEEN col1 AND - col1
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3264
SELECT col2 AS col1 FROM tab2 WHERE - CAST ( 60 AS REAL ) * + - col2 + - 88 NOT BETWEEN col1 AND - col1
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3265
SELECT 54 DIV - col0 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-3265
SELECT 54 / - col0 FROM tab0
----
-3
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - 52 col2 FROM tab0
----
-133
-53
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 - + col1 col0 FROM tab0
----
14
74
94

query I rowsort
SELECT ALL col1 - + col1 + - 31 AS col2 FROM tab2
----
-31
-31
-31

query I rowsort
SELECT ALL + 84 + + + ( col0 ) FROM tab2 AS cor0 WHERE NOT - ( + + col2 ) + + 49 IS NULL
----
130
148
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT ALL + - SUM( DISTINCT + 57 ) FROM tab2 cor0
----
-57

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL + - SUM ( DISTINCT + 57 ) FROM tab2 cor0
----
-57

query I rowsort
SELECT + - 7 FROM tab2 AS cor0 WHERE NOT 99 = NULL
----

query II rowsort
SELECT - 88, col1 AS col0 FROM tab0 AS cor0
----
-88
1
-88
21
-88
81

onlyif mysql # aggregate syntax: 
query II rowsort label-3273
SELECT DISTINCT MAX( + + 66 ) col0, + 37 * 16 + - MAX( ALL - 22 ) FROM tab0
----
66
614

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3273
SELECT DISTINCT MAX ( + + 66 ) col0, + 37 * 16 + - MAX ( ALL - 22 ) FROM tab0
----
66
614

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT ALL - COUNT( * ) + + 73 AS col0 FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-3274
SELECT ALL - COUNT ( * ) + + 73 AS col0 FROM tab1
----
70

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3275
SELECT col2 AS col1, CAST( NULL AS DECIMAL ) col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3275
SELECT col2 AS col1, CAST ( NULL AS REAL ) col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

query II rowsort
SELECT col2, + 35 * - + col1 + + 42 FROM tab0
----
10
-693
47
-2793
99
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3277
SELECT ALL col0 * + CAST( 62 AS SIGNED ) FROM tab2
----
2852
3968
4650

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL col0 * + CAST ( 62 AS INTEGER ) FROM tab2
----
2852
3968
4650

query II rowsort
SELECT - col0 AS col2, + 1 AS col0 FROM tab0
----
-15
1
-87
1
-97
1

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + - col0
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col1 - + col1 + - col1 * + col2 + + col2 - - - col1 * + 3 / - ( - + col2 ) * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3281
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * + col1 >= col1
----

skipif mysql # not compatible
query III rowsort label-3281
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * + col1 >= col1
----

query I rowsort
SELECT - 45 + 7 FROM tab2 AS cor0
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT - 35 - + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-44

skipif mysql # not compatible
query I rowsort label-3283
SELECT - 35 - + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-3284
SELECT DISTINCT col0 + + + 70 DIV + + 54 col0 FROM tab0
----
16
88
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3284
SELECT DISTINCT col0 + + + 70 / + + 54 col0 FROM tab0
----
16
88
98

query I rowsort
SELECT ALL col2 - + col2 * col2 FROM tab2
----
-1560
-3306
-506

query II rowsort
SELECT ALL - col0 + + 72 + 67, col0 * ( + col2 ) AS col2 FROM tab2 cor0
----
64
4350
75
2560
93
1058

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT ALL SUM( ALL - col0 ) - - ( + 93 ) FROM tab0 AS cor0
----
-106

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL SUM ( ALL - col0 ) - - ( + 93 ) FROM tab0 AS cor0
----
-106

query I rowsort
SELECT + 15 - 66 - + 34 * - - col1 + - 55 AS col1 FROM tab0 AS cor0
----
-140
-2860
-820

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3289
SELECT DISTINCT - col1 * + - CAST( NULL AS SIGNED ) AS col2, + col1 AS col2, - 69 FROM tab0 AS cor0
----
9 values hashing to 6f25ae07739ef764cfbc373b1dfda5ec

skipif mysql # not compatible
query III rowsort label-3289
SELECT DISTINCT - col1 * + - CAST ( NULL AS INTEGER ) AS col2, + col1 AS col2, - 69 FROM tab0 AS cor0
----
9 values hashing to 6f25ae07739ef764cfbc373b1dfda5ec

query I rowsort
SELECT - 19 - col0 FROM tab2 AS cor0
----
-65
-83
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3291
SELECT DISTINCT CAST( NULL AS SIGNED ) - col0 * + 27 * - col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3291
SELECT DISTINCT CAST ( NULL AS INTEGER ) - col0 * + 27 * - col1 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT - - AVG ( + col0 ) / + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3292
SELECT - - AVG ( + col0 ) / + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----
NULL

query I rowsort
SELECT + 62 + - col2 + + 50 FROM tab2
----
54
72
89

query I rowsort
SELECT DISTINCT - col0 * 0 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + - 38 / + col2 + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3296
SELECT col0 col2 FROM tab1 WHERE NOT NULL NOT IN ( - - CAST( col1 AS SIGNED ), - col0 * 51 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3296
SELECT col0 col2 FROM tab1 WHERE NOT NULL NOT IN ( - - CAST ( col1 AS INTEGER ), - col0 * 51 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3297
SELECT DISTINCT - col0 / CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3297
SELECT DISTINCT - col0 / CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 ) - ( - col0 ) * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col0 AS col1, col2 FROM tab0
----
15
47
87
10
97
99

query II rowsort
SELECT DISTINCT 34, - col1 AS col2 FROM tab0
----
34
-1
34
-21
34
-81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 37 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3302
SELECT ALL + - 46 AS col0, COUNT( * ) FROM tab0 AS cor0
----
-46
3

skipif mysql # not compatible
query II rowsort label-3302
SELECT ALL + - 46 AS col0, COUNT ( * ) FROM tab0 AS cor0
----
-46
3

query I rowsort
SELECT + - ( - + ( col0 ) ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT DISTINCT - + 3 * + + COUNT( * ) * - 56 FROM tab1 AS cor0
----
504

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT - + 3 * + + COUNT ( * ) * - 56 FROM tab1 AS cor0
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT DISTINCT - 18 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3305
SELECT DISTINCT - 18 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
54

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col1 <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT ALL + + MIN( DISTINCT - - col1 ) FROM tab2 AS cor0 WHERE 23 > - col0 + + col2
----
51

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL + + MIN ( DISTINCT - - col1 ) FROM tab2 AS cor0 WHERE 23 > - col0 + + col2
----
51

query I rowsort
SELECT 37 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3309
SELECT DISTINCT CAST( - + 89 AS SIGNED ) FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-3309
SELECT DISTINCT CAST ( - + 89 AS INTEGER ) FROM tab2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT - 7 * + + COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-3310
SELECT - 7 * + + COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT DISTINCT - MIN( - col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3311
SELECT DISTINCT - MIN ( - col0 ) FROM tab2 AS cor0
----
75

query II rowsort
SELECT ALL - - col0 AS col1, + col1 FROM tab0 AS cor0 WHERE ( NULL ) = col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3313
SELECT ALL COUNT( * ) + COUNT( DISTINCT - 73 ) AS col2, 50 FROM tab2
----
4
50

skipif mysql # not compatible
query II rowsort label-3313
SELECT ALL COUNT ( * ) + COUNT ( DISTINCT - 73 ) AS col2, 50 FROM tab2
----
4
50

query III rowsort
SELECT * FROM tab2 WHERE + col2 NOT BETWEEN - col1 AND col1
----

query I rowsort
SELECT ALL 19 FROM tab1 WHERE 6 IS NOT NULL
----
19
19
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - + col1 col2 FROM tab1 WHERE col0 * - col0 + + - col0 * - col2 + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * - + col1 + + col2 AS col2 FROM tab0
----
-431
-6514
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3318
SELECT col0 * - 3 * - col2 * + CAST( + - ( - ( + ( - col2 ) ) ) AS SIGNED ) + - + 31 col1 FROM tab0
----
-26131
-2852122
-99436

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3318
SELECT col0 * - 3 * - col2 * + CAST ( + - ( - ( + ( - col2 ) ) ) AS INTEGER ) + - + 31 col1 FROM tab0
----
-26131
-2852122
-99436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 col0 FROM tab0
----
63

query I rowsort
SELECT DISTINCT 18 + - ( - 73 ) * - + 16 FROM tab0
----
-1150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 24 + + 15 col0 FROM tab2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT 60 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-3322
SELECT 60 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
180

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 92 * + col2 / col2 * col1 * + col1 * + 67 + + ( - col1 ) ) <> ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3324
SELECT ALL - SUM( CAST( col0 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL - SUM ( CAST ( col0 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3325
SELECT DISTINCT + COUNT( * ) + + 3 + 25 / + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3325
SELECT DISTINCT + COUNT ( * ) + + 3 + 25 / + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 40 + + - col0 AS col1 FROM tab2
----
-24
-35
-6

query I rowsort
SELECT - col0 * - 69 + + - col2 AS col0 FROM tab0
----
5993
6594
988

query I rowsort
SELECT + + 15 * - 86 + + col2 FROM tab1 cor0
----
-1194
-1222
-1231

query I rowsort
SELECT DISTINCT - col2 - - + 80 FROM tab2 AS cor0
----
22
40
57

query I rowsort
SELECT ALL - + col2 - + - col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3331
SELECT ALL col0 DIV + 48 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL col0 / + 48 FROM tab0 AS cor0
----
0
1
2

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <= col1
----

query I rowsort
SELECT col0 * - col2 - + col0 * 30 FROM tab2 AS cor0
----
-2438
-4480
-6600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3334
SELECT col1 * + CAST( + 79 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1659
6399
79

skipif mysql # not compatible
query I rowsort label-3334
SELECT col1 * + CAST ( + 79 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1659
6399
79

onlyif mysql # DIV for integer division: 
query I rowsort label-3335
SELECT DISTINCT - col2 * + col2 DIV - col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3335
SELECT DISTINCT - col2 * + col2 / - col2 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 = col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT NULL IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-3338
SELECT - col1 DIV + col2 AS col2, col1 FROM tab0
----
-1
81
-2
21
0
1

skipif mysql # not compatible
query II rowsort label-3338
SELECT - col1 / + col2 AS col2, col1 FROM tab0
----
-1
81
-2
21
0
1

query I rowsort
SELECT 95 * - col2 AS col2 FROM tab1
----
-5605
-6460
-9120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3340
SELECT col0 AS col2 FROM tab2 WHERE NOT col1 <= + + 0 + - - CAST( - 35 AS SIGNED )
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3340
SELECT col0 AS col2 FROM tab2 WHERE NOT col1 <= + + 0 + - - CAST ( - 35 AS INTEGER )
----
46
64
75

query I rowsort
SELECT DISTINCT - - 8 AS col0 FROM tab1 WHERE + 40 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3343
SELECT + ( - + COUNT( * ) ) AS col0, + 47 * 61 FROM tab0 AS cor0
----
-3
2867

skipif mysql # not compatible
query II rowsort label-3343
SELECT + ( - + COUNT ( * ) ) AS col0, + 47 * 61 FROM tab0 AS cor0
----
-3
2867

query I rowsort
SELECT + col1 * - 15 AS col0 FROM tab0
----
-1215
-15
-315

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 59 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - 85 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3348
SELECT - + 28 AS col2, - COUNT( * ) * 30 AS col0 FROM tab1 AS cor0
----
-28
-90

skipif mysql # not compatible
query II rowsort label-3348
SELECT - + 28 AS col2, - COUNT ( * ) * 30 AS col0 FROM tab1 AS cor0
----
-28
-90

query II rowsort
SELECT + - col1 AS col2, col0 * - col0 * + col2 FROM tab2 AS cor0
----
-51
-48668
-67
-326250
-77
-163840

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT - COUNT( + - col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3350
SELECT - COUNT ( + - col0 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + col1 IN ( col0, + 73, - col0, col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3352
SELECT CAST( COUNT( * ) AS SIGNED ) * + COUNT( * ) DIV + COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3352
SELECT CAST ( COUNT ( * ) AS INTEGER ) * + COUNT ( * ) / + COUNT ( * ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT 16 + col1 AS col0 FROM tab2
----
67
83
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 col2 FROM tab0
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT ALL 76 * + + 38 + COUNT( * ) col2 FROM tab1
----
2891

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3355
SELECT ALL 76 * + + 38 + COUNT ( * ) col2 FROM tab1
----
2891

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND col0 * col0 - col1
----

query II rowsort
SELECT - ( - + col2 ) + 25 * - col1 AS col1, 79 + + col1 + + col0 FROM tab1 AS cor0
----
-1107
217
-254
144
-66
169

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT ALL - ( - COUNT( * ) ) + - + 10 AS col2 FROM tab1 AS cor0 WHERE NOT - 32 IS NULL
----
-7

skipif mysql # not compatible
query I rowsort label-3358
SELECT ALL - ( - COUNT ( * ) ) + - + 10 AS col2 FROM tab1 AS cor0 WHERE NOT - 32 IS NULL
----
-7

query I rowsort
SELECT col1 + 87 FROM tab0 WHERE ( + col2 ) IS NULL
----

query I rowsort
SELECT ALL + col1 * + + 98 * - col2 + - + 0 FROM tab2
----
-114954
-301840
-380828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3361
SELECT DISTINCT - col1 + + 89 + + col1 * - col0 * + col2 * col0 + col2 AS col2 FROM tab0 AS cor0 WHERE - CAST( - - col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT - col1 + + 89 + + col1 * - col0 * + col2 * col0 + col2 AS col2 FROM tab0 AS cor0 WHERE - CAST ( - - col2 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3362
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > + CAST( + col0 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3362
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > + CAST ( + col0 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT + COUNT( * ) * + 31 + + - 58 AS col1 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-3363
SELECT + COUNT ( * ) * + 31 + + - 58 AS col1 FROM tab1 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT ALL - MAX( + 59 ) FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
-59

skipif mysql # not compatible
query I rowsort label-3364
SELECT ALL - MAX ( + 59 ) FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3365
SELECT ALL - + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3365
SELECT ALL - + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT ALL - COUNT( * ) - + COUNT( * ) FROM tab2 AS cor0 WHERE 86 * + - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL - COUNT ( * ) - + COUNT ( * ) FROM tab2 AS cor0 WHERE 86 * + - col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT + 50 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-3367
SELECT + 50 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
150

query I rowsort
SELECT ALL 27 * 71 FROM tab1 AS cor0
----
1917
1917
1917

onlyif mysql # DIV for integer division: 
query I rowsort label-3369
SELECT 35 + + ( - 10 ) + - - col0 DIV ( - + col0 ) DIV col2 * - col2 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN - 22 + + 10 AND + col0 OR NOT + col1 BETWEEN - col2 AND + + col1 DIV col1 + + ( - 16 )
----
25
25
25

skipif mysql # not compatible
query I rowsort label-3369
SELECT 35 + + ( - 10 ) + - - col0 / ( - + col0 ) / col2 * - col2 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN - 22 + + 10 AND + col0 OR NOT + col1 BETWEEN - col2 AND + + col1 / col1 + + ( - 16 )
----
25
25
25

query I rowsort
SELECT + 15 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3371
SELECT ALL CAST( NULL AS SIGNED ) AS col1, COUNT( * ) * COUNT( * ) AS col2 FROM tab2
----
NULL
9

skipif mysql # not compatible
query II rowsort label-3371
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2
----
NULL
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT ALL 7 * - - COUNT( * ) AS col0 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-3372
SELECT ALL 7 * - - COUNT ( * ) AS col0 FROM tab1
----
21

query I rowsort
SELECT DISTINCT 48 FROM tab1 WHERE NOT + - col2 * - col1 * col2 / + 79 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 NOT BETWEEN - col0 * - - col2 AND 77 + - 53
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 WHERE NOT + 46 + col2 BETWEEN NULL AND + + col2
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col2, + col2 AS col2, + col0 col1 FROM tab2
----
9 values hashing to cab274f6910f0989b8e21ed8f2765415

query I rowsort
SELECT ( col2 ) AS col0 FROM tab0 WHERE NOT - col0 + + + 32 > + ( 22 )
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3378
SELECT ALL CAST( NULL AS DECIMAL ) col2, - 36 + - ( - ( - MAX( ALL - 91 ) ) ) + + 34 FROM tab0
----
NULL
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3378
SELECT ALL CAST ( NULL AS REAL ) col2, - 36 + - ( - ( - MAX ( ALL - 91 ) ) ) + + 34 FROM tab0
----
NULL
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3379
SELECT ( 11 ) * + CAST( 36 AS SIGNED ) + + 60 FROM tab2
----
456
456
456

skipif mysql # not compatible
query I rowsort label-3379
SELECT ( 11 ) * + CAST ( 36 AS INTEGER ) + + 60 FROM tab2
----
456
456
456

query I rowsort
SELECT ALL col2 * + 78 AS col1 FROM tab2
----
1794
3120
4524

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 42 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3382
SELECT + CAST( NULL AS SIGNED ) AS col1, + col2 AS col1 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-3382
SELECT + CAST ( NULL AS INTEGER ) AS col1, + col2 AS col1 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3383
SELECT ALL + col2 DIV - col0 * + col0 col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3383
SELECT ALL + col2 / - col0 * + col0 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + 61 FROM tab1 AS cor0
----
112
146
152

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3385
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT - 52 + + col2 * 58 * 23 AS col2 FROM tab1
----
128012
78654
90660

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT COUNT( * ) * 25 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3387
SELECT COUNT ( * ) * 25 FROM tab2 AS cor0
----
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 * - ( 70 ) < + + 56 / - 80
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-3389
SELECT DISTINCT + + col0 DIV ( - col1 ) col2, col2 * col2 + 15 AS col2 FROM tab0 AS cor0
----
-4
115
-97
9816
0
2224

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3389
SELECT DISTINCT + + col0 / ( - col1 ) col2, col2 * col2 + 15 AS col2 FROM tab0 AS cor0
----
-4
115
-97
9816
0
2224

query I rowsort
SELECT DISTINCT + - 37 AS col1 FROM tab2 cor0
----
-37

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( 20 ) + 92 + + + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * + col0 + 0 col2, 94 AS col0 FROM tab0
----
-1215
94
-1827
94
-97
94

onlyif mysql # DIV for integer division: 
query I rowsort label-3393
SELECT ALL - col0 + - col0 DIV ( - col2 ) AS col1 FROM tab2
----
-44
-63
-74

skipif mysql # not compatible
query I rowsort label-3393
SELECT ALL - col0 + - col0 / ( - col2 ) AS col1 FROM tab2
----
-44
-63
-74

query I rowsort
SELECT - 93 * - col1 FROM tab1
----
1302
4371
465

query III rowsort
SELECT * FROM tab1 WHERE NULL <> + + 48
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3396
SELECT ALL 81 - - 99 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL 81 - - 99 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3397
SELECT ALL + - col2 - 21 + + 48 DIV - col0 + - + col1 + col2, - col2 AS col2 FROM tab2 cor0
----
-73
-23
-88
-58
-98
-40

skipif mysql # not compatible
query II rowsort label-3397
SELECT ALL + - col2 - 21 + + 48 / - col0 + - + col1 + col2, - col2 AS col2 FROM tab2 cor0
----
-73
-23
-88
-58
-98
-40

query II rowsort
SELECT DISTINCT - - col0 AS col1, + col1 AS col2 FROM tab1 AS cor0
----
51
14
85
5
91
47

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 51 + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3400
SELECT - COUNT( * ) * - CAST( SUM( col1 ) * + 24 AS SIGNED ) + 29 AS col2 FROM tab1
----
4781

skipif mysql # not compatible
query I rowsort label-3400
SELECT - COUNT ( * ) * - CAST ( SUM ( col1 ) * + 24 AS INTEGER ) + 29 AS col2 FROM tab1
----
4781

query I rowsort
SELECT DISTINCT - col1 * + 90 FROM tab0
----
-1890
-7290
-90

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE NOT ( ( 76 ) ) NOT IN ( - 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT COUNT( * ) + 79 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-3403
SELECT COUNT ( * ) + 79 FROM tab1
----
82

query I rowsort
SELECT - col2 FROM tab1 WHERE + 4 > ( + col2 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT ALL + MAX( 12 ) AS col2 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL + MAX ( 12 ) AS col2 FROM tab0
----
12

query I rowsort
SELECT DISTINCT - 61 * ( col0 ) FROM tab2 WHERE NOT + col0 + - col0 IS NULL
----
-2806
-3904
-4575

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col1 ) <= ( 7 + ( 23 ) )
----
15
81
47

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 22 - - col0 ) IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND 24 + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * col2 = col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE col2 * ( 66 ) BETWEEN NULL AND ( 67 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT COUNT( * ) FROM tab2 WHERE + col1 NOT BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3412
SELECT COUNT ( * ) FROM tab2 WHERE + col1 NOT BETWEEN NULL AND ( NULL )
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 78 * col2 ) NOT BETWEEN + col0 + col2 * - col1 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 86 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3415
SELECT col1 * ( + CAST( - 2 AS SIGNED ) ) + col2 FROM tab2
----
-114
-76
-79

skipif mysql # not compatible
query I rowsort label-3415
SELECT col1 * ( + CAST ( - 2 AS INTEGER ) ) + col2 FROM tab2
----
-114
-76
-79

query I rowsort
SELECT + 71 AS col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = 67
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 53 < + 51 / col1 - + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 95 * col0 - 42 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3421
SELECT CAST( + col1 AS SIGNED ) DIV col1 + col2 FROM tab0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-3421
SELECT CAST ( + col1 AS INTEGER ) / col1 + col2 FROM tab0
----
100
11
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT DISTINCT MIN( - 16 ) AS col0 FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-3422
SELECT DISTINCT MIN ( - 16 ) AS col0 FROM tab0
----
-16

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE NOT - col2 IS NULL
----
15
87
97

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 / - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT DISTINCT COUNT( * ) * 44 FROM tab0 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT COUNT ( * ) * 44 FROM tab0 AS cor0
----
132

query I rowsort
SELECT DISTINCT col0 * + 59 AS col1 FROM tab2 AS cor0
----
2714
3776
4425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3427
SELECT - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3427
SELECT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - ( col0 ) + + col2 * ( + 93 * ( + 28 * col2 ) - - col2 ) FROM tab1
----
12045429
24007629
9067920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3429
SELECT col1 * col0 FROM tab1 WHERE ( NULL ) NOT IN ( + CAST( NULL AS SIGNED ) + 81 * 86 )
----

skipif mysql # not compatible
query I rowsort label-3429
SELECT col1 * col0 FROM tab1 WHERE ( NULL ) NOT IN ( + CAST ( NULL AS INTEGER ) + 81 * 86 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3430
SELECT ALL CAST( NULL AS SIGNED ) + ( 21 - col1 ) * 8 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL CAST ( NULL AS INTEGER ) + ( 21 - col1 ) * 8 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
2116
4096
5625

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE + 92 * + col2 NOT IN ( col2 )
----
15
87
97

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE NOT + 28 * 74 >= ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3434
SELECT DISTINCT - 0 / CAST( NULL AS SIGNED ) + 35 AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3434
SELECT DISTINCT - 0 / CAST ( NULL AS INTEGER ) + 35 AS col2 FROM tab1 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + col2
----

query I rowsort
SELECT 66 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
66
66
66

query I rowsort
SELECT DISTINCT - - col1 + 13 AS col1 FROM tab1 AS cor0
----
18
27
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3438
SELECT - COUNT( col1 ) DIV + 50 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3438
SELECT - COUNT ( col1 ) / + 50 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( 14 ) col2 FROM tab1 AS cor0
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT ALL - - MIN( col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL - - MIN ( col0 ) AS col2 FROM tab2 AS cor0
----
46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 50 * + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3442
SELECT + + col0 DIV + col1 FROM tab0 cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-3442
SELECT + + col0 / + col1 FROM tab0 cor0
----
0
4
97

query I rowsort
SELECT col1 - - 40 FROM tab2
----
107
117
91

query I rowsort
SELECT + col2 * col2 - col0 AS col1 FROM tab0
----
13
2194
9704

query I rowsort
SELECT ALL - 55 FROM tab2 WHERE NULL IS NULL
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT ALL 9 + - - COUNT( DISTINCT + col2 ) col1 FROM tab1
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3446
SELECT ALL 9 + - - COUNT ( DISTINCT + col2 ) col1 FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT DISTINCT + COUNT( DISTINCT 44 ) * - SUM( - col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT + COUNT ( DISTINCT 44 ) * - SUM ( - col0 ) FROM tab2
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3448
SELECT ALL - ( col2 ) + col1 FROM tab1 WHERE + CAST( - col0 AS SIGNED ) * + 35 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL - ( col2 ) + col1 FROM tab1 WHERE + CAST ( - col0 AS INTEGER ) * + 35 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT ALL 36 + - - COUNT( * ) AS col0 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL 36 + - - COUNT ( * ) AS col0 FROM tab0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT DISTINCT COUNT( * ) col2 FROM tab2 AS cor0 WHERE ( 79 * - col1 ) > NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3450
SELECT DISTINCT COUNT ( * ) col2 FROM tab2 AS cor0 WHERE ( 79 * - col1 ) > NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 86 * col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 17 * col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + ( - 14 ) AS col0 FROM tab2 AS cor0
----
-14
-14
-14

query I rowsort
SELECT DISTINCT 9 * + 22 + + col2 * + 71 FROM tab1 AS cor0
----
4387
5026
7014

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT 14 * - COUNT( * ) AS col0 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-3455
SELECT 14 * - COUNT ( * ) AS col0 FROM tab2
----
-42

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 + + 38 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3457
SELECT DISTINCT col2 DIV + + ( col1 ) FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-3457
SELECT DISTINCT col2 / + + ( col1 ) FROM tab1
----
1
11
6

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 74 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT DISTINCT - SUM( DISTINCT - - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3459
SELECT DISTINCT - SUM ( DISTINCT - - col0 ) FROM tab2 AS cor0
----
-185

query II rowsort
SELECT + 96 AS col1, - col0 AS col1 FROM tab1 AS cor0
----
96
-51
96
-85
96
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3461
SELECT - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3461
SELECT - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 12 AS col1 FROM tab2 AS cor0
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 17 col0, + ( + 77 ) FROM tab2 AS cor0
----
-17
77
-17
77
-17
77

query II rowsort
SELECT ALL 60 AS col0, + col2 AS col0 FROM tab1 AS cor0
----
60
59
60
68
60
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT + 1 * + SUM( ALL - + col1 ) * ( - 22 ) AS col0 FROM tab1 AS cor0
----
1452

skipif mysql # not compatible
query I rowsort label-3465
SELECT + 1 * + SUM ( ALL - + col1 ) * ( - 22 ) AS col0 FROM tab1 AS cor0
----
1452

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3466
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN NULL AND + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-3466
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN NULL AND + 60
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 3 ) NOT BETWEEN + 24 AND 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT ALL - SUM( + - ( - + col1 ) ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-3468
SELECT ALL - SUM ( + - ( - + col1 ) ) AS col2 FROM tab2
----
-195

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3469
SELECT ALL * FROM tab2 WHERE CAST( - col0 AS DECIMAL ) * + col0 + col1 * - 16 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3469
SELECT ALL * FROM tab2 WHERE CAST ( - col0 AS REAL ) * + col0 + col1 * - 16 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT ALL SUM( DISTINCT - - 9 ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL SUM ( DISTINCT - - 9 ) FROM tab1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 / col0 col0 FROM tab0 WHERE NOT + col1 - - + col2 + + col1 NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( - ( 84 ) ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3473
SELECT ALL - CAST( AVG ( - col1 ) AS SIGNED ) AS col0 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL - CAST ( AVG ( - col1 ) AS INTEGER ) AS col0 FROM tab1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3474
SELECT CAST( + COUNT( * ) AS SIGNED ) * COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3474
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * COUNT ( * ) FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3475
SELECT DISTINCT + 87 / - - col0 + - CAST( NULL AS SIGNED ) + - 26 * - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3475
SELECT DISTINCT + 87 / - - col0 + - CAST ( NULL AS INTEGER ) + - 26 * - col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 + - + 55 + + col2 * + col2 AS col1 FROM tab1 AS cor0
----
3341
4478
9110

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 WHERE ( NULL ) IS NULL
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3478
SELECT col2 DIV + 70 + - - 57 FROM tab1
----
57
57
58

skipif mysql # not compatible
query I rowsort label-3478
SELECT col2 / + 70 + - - 57 FROM tab1
----
57
57
58

query I rowsort
SELECT - - col1 + + - 60 AS col0 FROM tab1 AS cor0
----
-13
-46
-55

query I rowsort
SELECT - 3 + - col2 FROM tab2 AS cor0
----
-26
-43
-61

query II rowsort
SELECT ALL 48 AS col1, + 82 AS col1 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT 13 - col2 AS col1 FROM tab1 cor0
----
-46
-55
-83

query I rowsort
SELECT 60 * col0 + + col0 FROM tab1 cor0
----
3111
5185
5551

query I rowsort
SELECT DISTINCT - 62 + - col0 * 83 AS col0 FROM tab0 cor0 WHERE NOT ( - col0 / + ( - 82 ) ) NOT IN ( + 98 )
----

query I rowsort
SELECT + + 91 + - ( - ( - col1 ) ) FROM tab2 AS cor0
----
14
24
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT DISTINCT COUNT( + col2 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3486
SELECT DISTINCT COUNT ( + col2 ) AS col1 FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT - + 69 AS col1 FROM tab2 AS cor0
----
-69

query I rowsort
SELECT ALL - 65 FROM tab0 WHERE ( NOT ( NULL ) <> - - col2 )
----

query II rowsort
SELECT DISTINCT - col0 * + col2 AS col0, - col1 AS col1 FROM tab1
----
-4896
-14
-5015
-5
-6188
-47

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + + ( + ( 37 ) ) )
----

query II rowsort
SELECT - 35, - 96 AS col0 FROM tab1
----
-35
-96
-35
-96
-35
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3492
SELECT - ( - col0 ) DIV + col1 + + col2 DIV - 70 col2 FROM tab1 WHERE ( - col2 * col2 * - - col2 IS NOT NULL )
----
1
17
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3492
SELECT - ( - col0 ) / + col1 + + col2 / - 70 col2 FROM tab1 WHERE ( - col2 * col2 * - - col2 IS NOT NULL )
----
1
17
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT + MAX( ALL ( + col0 ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3493
SELECT + MAX ( ALL ( + col0 ) ) FROM tab2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3494
SELECT + col0 - CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3494
SELECT + col0 - CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT 72 * COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) >= 76
----
0

skipif mysql # not compatible
query I rowsort label-3495
SELECT 72 * COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) >= 76
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - + 83 col1 FROM tab2 AS cor0
----
-19
-37
-8

query I rowsort
SELECT DISTINCT + 10 * 23 FROM tab1 cor0
----
230

onlyif mysql # DIV for integer division: 
query I rowsort label-3498
SELECT ALL + col0 * + col2 * + - col2 DIV col2 + + - col2 FROM tab0 cor0
----
-752
-880
-9702

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL + col0 * + col2 * + - col2 / col2 + + - col2 FROM tab0 cor0
----
-752
-880
-9702

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT COUNT( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-3499
SELECT COUNT ( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query III rowsort
SELECT * FROM tab2 WHERE NOT - 92 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + col0 FROM tab0 AS cor0 WHERE col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT + ( MIN( 55 ) ) FROM tab1 AS cor0 WHERE NOT 92 - - col0 BETWEEN ( - col1 * col1 ) AND + 42
----
55

skipif mysql # not compatible
query I rowsort label-3502
SELECT + ( MIN ( 55 ) ) FROM tab1 AS cor0 WHERE NOT 92 - - col0 BETWEEN ( - col1 * col1 ) AND + 42
----
55

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NOT ( NOT ( NOT NULL IS NULL ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3504
SELECT DISTINCT + col2 DIV - + 23 AS col0 FROM tab0 AS cor0
----
-2
-4
0

skipif mysql # not compatible
query I rowsort label-3504
SELECT DISTINCT + col2 / - + 23 AS col0 FROM tab0 AS cor0
----
-2
-4
0

query I rowsort
SELECT + 70 * + + col1 FROM tab2 cor0
----
3570
4690
5390

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT - MAX( + - 33 ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-3506
SELECT - MAX ( + - 33 ) FROM tab1
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3507
SELECT ( - 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-3507
SELECT ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * - + ( + 93 ) AS col1, - col2 col2 FROM tab2
----
-2139
-23
-3720
-40
-5394
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 92 col1 FROM tab0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3510
SELECT ALL col1 / + col2 + + + CAST( NULL AS SIGNED ) * - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3510
SELECT ALL col1 / + col2 + + + CAST ( NULL AS INTEGER ) * - col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT + - COUNT( * ) + 21 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-3511
SELECT + - COUNT ( * ) + 21 FROM tab0 AS cor0
----
18

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE 48 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT ALL + 17 + + + 63 * + + col0 AS col1 FROM tab0
----
5498
6128
962

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT ALL - - COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3514
SELECT ALL - - COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3515
SELECT - MIN( - ( + col0 ) ) FROM tab0 AS cor0 WHERE NULL >= - CAST( - + col0 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3515
SELECT - MIN ( - ( + col0 ) ) FROM tab0 AS cor0 WHERE NULL >= - CAST ( - + col0 AS REAL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 col2 FROM tab0 AS cor0 WHERE NULL BETWEEN + col0 AND + col1 * - 38 * - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( + ( + + col1 ) ) + col1 AND + col1 * col2
----

query I rowsort
SELECT + 56 FROM tab2 AS cor0 WHERE col2 + - 6 <> NULL
----

query I rowsort
SELECT DISTINCT - + 98 * + 64 * + + 20 - - 6 AS col1 FROM tab2 AS cor0
----
-125434

query I rowsort
SELECT DISTINCT - ( - 17 ) FROM tab1 AS cor0
----
17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3521
SELECT ALL - COUNT( * ) - CAST( NULL AS DECIMAL ) + 66 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL - COUNT ( * ) - CAST ( NULL AS REAL ) + 66 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3522
SELECT ALL - + CAST( - col2 AS SIGNED ) * + - col0 AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL - + CAST ( - col2 AS INTEGER ) * + - col0 AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT + 66 - - - col0 AS col2 FROM tab2 cor0
----
-9
2
20

onlyif mysql # DIV for integer division: 
query II rowsort label-3524
SELECT ALL - col1 DIV - - 3 + + col2 AS col2, - col1 + - 94 AS col0 FROM tab1
----
53
-141
58
-99
92
-108

skipif mysql # not compatible
query II rowsort label-3524
SELECT ALL - col1 / - - 3 + + col2 AS col2, - col1 + - 94 AS col0 FROM tab1
----
53
-141
58
-99
92
-108

query I rowsort
SELECT - ( + + 97 ) FROM tab0 WHERE + 95 IS NULL
----

query I rowsort
SELECT DISTINCT + 80 + + col2 AS col1 FROM tab0
----
127
179
90

query II rowsort
SELECT DISTINCT - 58 AS col2, col0 + - col2 AS col2 FROM tab0
----
-58
-2
-58
-32
-58
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT ALL - 12 - + ( - + MIN( DISTINCT 95 ) ) FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-3528
SELECT ALL - 12 - + ( - + MIN ( DISTINCT 95 ) ) FROM tab2
----
83

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NOT ( NULL ) IS NOT NULL WHERE - 69 * 30 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query II rowsort
SELECT ALL col2 AS col1, 81 - col2 + - - 8 FROM tab2 AS cor0
----
23
66
40
49
58
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + col0 * col2 col1 FROM tab2 AS cor0
----
102400
24334
252300

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT ALL - MAX( 58 ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3532
SELECT ALL - MAX ( 58 ) AS col1 FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3533
SELECT DISTINCT - col1 * - 41 + CAST( NULL AS SIGNED ) * - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3533
SELECT DISTINCT - col1 * - 41 + CAST ( NULL AS INTEGER ) * - col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * - col0 + + col2 + col1 FROM tab1 AS cor0
----
-361
-4162
-604

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col1 > col1 + - col0
----
15
81
47

onlyif mysql # DIV for integer division: 
query II rowsort label-3536
SELECT col0 AS col2, 24 - + - 69 DIV + - col1 AS col0 FROM tab0 AS cor0
----
15
24
87
21
97
-45

skipif mysql # not compatible
query II rowsort label-3536
SELECT col0 AS col2, 24 - + - 69 / + - col1 AS col0 FROM tab0 AS cor0
----
15
24
87
21
97
-45

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 / col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3538
SELECT DISTINCT + col2 DIV col2 * + 99 AS col1 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3538
SELECT DISTINCT + col2 / col2 * + 99 AS col1 FROM tab2 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT DISTINCT MIN( col1 ) AS col1 FROM tab2 WHERE ( col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3539
SELECT DISTINCT MIN ( col1 ) AS col1 FROM tab2 WHERE ( col1 ) IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + 60 ) col1 FROM tab1
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT + - SUM( - + col2 ) col2 FROM tab1 WHERE NOT + - 42 IS NULL
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3541
SELECT + - SUM ( - + col2 ) col2 FROM tab1 WHERE NOT + - 42 IS NULL
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT DISTINCT COUNT( * ) * + 82 AS col2 FROM tab2
----
246

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT COUNT ( * ) * + 82 AS col2 FROM tab2
----
246

query I rowsort
SELECT - col2 * + col1 + + 14 AS col0 FROM tab1
----
-1330
-281
-3182

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3544
SELECT ALL ( - 22 ) / - + ( - 62 ) + + col0 + CAST( NULL AS DECIMAL ) * + 57 * col2 + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3544
SELECT ALL ( - 22 ) / - + ( - 62 ) + + col0 + CAST ( NULL AS REAL ) * + 57 * col2 + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 79 * + 28 AS col1 FROM tab1
----
-2212
-2212
-2212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3546
SELECT 90 * CAST( - - col0 AS SIGNED ) FROM tab0
----
1350
7830
8730

skipif mysql # not compatible
query I rowsort label-3546
SELECT 90 * CAST ( - - col0 AS INTEGER ) FROM tab0
----
1350
7830
8730

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3548
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3549
SELECT DISTINCT 79 DIV + col0 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3549
SELECT DISTINCT 79 / + col0 FROM tab1 cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3550
SELECT ALL + 56 DIV - + col2 col0 FROM tab0 AS cor0
----
-1
-5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3550
SELECT ALL + 56 / - + col2 col0 FROM tab0 AS cor0
----
-1
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT + COUNT( * ) + + COUNT( * ) col0 FROM tab0 cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3551
SELECT + COUNT ( * ) + + COUNT ( * ) col0 FROM tab0 cor0
----
6

query I rowsort
SELECT col0 + col0 + + 80 FROM tab0 AS cor0
----
110
254
274

query I rowsort
SELECT + 47 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
47
47
47

query II rowsort
SELECT DISTINCT + col2, - 76 AS col0 FROM tab1 cor0
----
59
-76
68
-76
96
-76

query I rowsort
SELECT ALL col1 * + 91 AS col2 FROM tab2 cor0
----
4641
6097
7007

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT ALL 30 + + COUNT( * ) * + 44 col2 FROM tab1 AS cor0
----
162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3556
SELECT ALL 30 + + COUNT ( * ) * + 44 col2 FROM tab1 AS cor0
----
162

onlyif mysql # DIV for integer division: 
query II rowsort label-3557
SELECT DISTINCT ( + - ( - col2 ) ) AS col2, - 88 DIV - col0 AS col1 FROM tab1 AS cor0
----
59
1
68
0
96
1

skipif mysql # not compatible
query II rowsort label-3557
SELECT DISTINCT ( + - ( - col2 ) ) AS col2, - 88 / - col0 AS col1 FROM tab1 AS cor0
----
59
1
68
0
96
1

query I rowsort
SELECT DISTINCT + 19 + + col1 - - col0 FROM tab0
----
115
117
127

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 NOT BETWEEN col1 AND + ( - col0 ) OR NOT ( + col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - - col0 ) col0 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3561
SELECT COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3561
SELECT COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3562
SELECT col2 DIV - - 84, 58 col0 FROM tab2
----
0
58
0
58
0
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3562
SELECT col2 / - - 84, 58 col0 FROM tab2
----
0
58
0
58
0
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT DISTINCT - ( + - COUNT( * ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT - ( + - COUNT ( * ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3564
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col2 / - 69 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3564
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 / - 69 AS col0 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3565
SELECT + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - 78 + 9 + + - col1 + col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3565
SELECT + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - 78 + 9 + + - col1 + col2 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 67 * - col1 FROM tab1 AS cor0
----
-3149
-335
-938

query I rowsort
SELECT 42 * - 96 * + col2 FROM tab1
----
-237888
-274176
-387072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3568
SELECT + CAST( - ( col2 ) AS SIGNED ) AS col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-3568
SELECT + CAST ( - ( col2 ) AS INTEGER ) AS col0 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT MIN( + + 10 ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
10

skipif mysql # not compatible
query I rowsort label-3569
SELECT MIN ( + + 10 ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3570
SELECT - CAST( NULL AS SIGNED ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3570
SELECT - CAST ( NULL AS INTEGER ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + - 7 * - 15 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3572
SELECT ALL + CAST( NULL AS SIGNED ) * + - col2, + 89 col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + 75 AND col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3572
SELECT ALL + CAST ( NULL AS INTEGER ) * + - col2, + 89 col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + 75 AND col1
----

query I rowsort
SELECT DISTINCT - col1 * + col2 + - col0 FROM tab2 AS cor0
----
-1219
-3144
-3961

onlyif mysql # DIV for integer division: 
query I rowsort label-3574
SELECT DISTINCT - 29 DIV + - 16 + 87 + + col0 * + 68 * col2 AS col1 FROM tab2 AS cor0
----
174168
295888
72032

skipif mysql # not compatible
query I rowsort label-3574
SELECT DISTINCT - 29 / + - 16 + 87 + + col0 * + 68 * col2 AS col1 FROM tab2 AS cor0
----
174168
295888
72032

query II rowsort
SELECT ALL col1, + col0 + + col2 * - 91 FROM tab0
----
1
-8912
21
-823
81
-4262

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT DISTINCT + MIN( - col2 ) + - COUNT( * ) AS col1 FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT + MIN ( - col2 ) + - COUNT ( * ) AS col1 FROM tab1
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3577
SELECT + COUNT( * ), 87 AS col2 FROM tab0
----
3
87

skipif mysql # not compatible
query II rowsort label-3577
SELECT + COUNT ( * ), 87 AS col2 FROM tab0
----
3
87

query II rowsort
SELECT col2 AS col0, - col0 AS col2 FROM tab1
----
59
-85
68
-91
96
-51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 85 * col2 * - - col0 * + 33 + 84 ) <> ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 18 + + - col1 AS col0 FROM tab0
----
-3
-63
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3581
SELECT ALL + CAST( NULL AS SIGNED ) / - COUNT( ALL col0 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3581
SELECT ALL + CAST ( NULL AS INTEGER ) / - COUNT ( ALL col0 ) AS col2 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3582
SELECT ALL - col1 DIV - + col0 + - col0 AS col0 FROM tab2
----
-45
-63
-75

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL - col1 / - + col0 + - col0 AS col0 FROM tab2
----
-45
-63
-75

query III rowsort
SELECT * FROM tab1 WHERE - - col1 = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT DISTINCT - 91 + + COUNT( * ) AS col0 FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-3584
SELECT DISTINCT - 91 + + COUNT ( * ) AS col0 FROM tab2
----
-88

query I rowsort
SELECT + col0 + - + 1 FROM tab2 cor0
----
45
63
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 79 col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + - col1 IN ( + 9 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 66 + - + col1 + col0 FROM tab2 AS cor0
----
53
61
74

query I rowsort
SELECT DISTINCT 83 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 col1 FROM tab2 WHERE - - col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + - col1 + col0 NOT BETWEEN + 68 AND NULL
----
15
81
47
87
21
10

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 18 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT ALL col2 * col2 + + col1 + + 78 - - + col2 * - - col0 FROM tab1
----
10937
14204
8579

query I rowsort
SELECT DISTINCT - + 36 * 46 - - 35 FROM tab2 WHERE NULL > col2 - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT ALL - 87 - COUNT( + - 49 ) FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-3595
SELECT ALL - 87 - COUNT ( + - 49 ) FROM tab2 AS cor0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3596
SELECT DISTINCT 79 * col0 + - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3596
SELECT DISTINCT 79 * col0 + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3597
SELECT DISTINCT 36 - 56 * - 15 DIV - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-244

skipif mysql # not compatible
query I rowsort label-3597
SELECT DISTINCT 36 - 56 * - 15 / - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3598
SELECT ALL + COUNT( - col2 ) - AVG ( CAST( NULL AS SIGNED ) ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3598
SELECT ALL + COUNT ( - col2 ) - AVG ( CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3599
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3599
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT + + SUM( DISTINCT - + col2 ) col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3600
SELECT + + SUM ( DISTINCT - + col2 ) col1 FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT - COUNT( ALL + col2 ) col0 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3601
SELECT - COUNT ( ALL + col2 ) col0 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab0 WHERE NOT - + col0 IS NOT NULL
----

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE NOT + col0 * - - col0 * - + 55 + + col2 * - ( - col1 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT ALL - MAX( ALL + 19 ) AS col0 FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL - MAX ( ALL + 19 ) AS col0 FROM tab2
----
-19

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT 45 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT + ( + COUNT( * ) ) FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3606
SELECT + ( + COUNT ( * ) ) FROM tab1, tab0 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3607
SELECT ALL - COUNT( * ) * - - CAST( - + COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL - COUNT ( * ) * - - CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT - + ( + - 1 ) FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3609
SELECT - + MIN( ALL + CAST( NULL AS SIGNED ) ) col1 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-3609
SELECT - + MIN ( ALL + CAST ( NULL AS INTEGER ) ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT 85 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query II rowsort
SELECT DISTINCT ( - + 42 ) + - col0 + + - ( + col2 ) AS col1, 6 AS col2 FROM tab1
----
-186
6
-189
6
-201
6

query III rowsort
SELECT * FROM tab2 WHERE NOT + 67 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 32 * - col0 AS col0 FROM tab2 AS cor0
----
-1472
-2048
-2400

query I rowsort
SELECT + + col1 * + col2 + 36 * - col1 AS col1 FROM tab1 AS cor0
----
115
1504
840

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT ALL + + col1 + 75 FROM tab2 AS cor0
----
126
142
152

onlyif mysql # DIV for integer division: 
query I rowsort label-3617
SELECT col0 DIV 57 + col2 col1 FROM tab0 AS cor0
----
100
11
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3617
SELECT col0 / 57 + col2 col1 FROM tab0 AS cor0
----
100
11
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT MAX( + col2 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3618
SELECT MAX ( + col2 ) AS col0 FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3619
SELECT 88 AS col2, + CAST( - 33 AS SIGNED ) FROM tab1
----
88
-33
88
-33
88
-33

skipif mysql # not compatible
query II rowsort label-3619
SELECT 88 AS col2, + CAST ( - 33 AS INTEGER ) FROM tab1
----
88
-33
88
-33
88
-33

query I rowsort
SELECT ALL col1 + 38 FROM tab1
----
43
52
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3621
SELECT DISTINCT CAST( 46 AS SIGNED ) AS col0 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-3621
SELECT DISTINCT CAST ( 46 AS INTEGER ) AS col0 FROM tab0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 23 col0 FROM tab1
----
1081
115
322

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT ALL 59 + + SUM( ALL - ( - col1 ) ) - + 80 - - 79 FROM tab2 AS cor0
----
253

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL 59 + + SUM ( ALL - ( - col1 ) ) - + 80 - - 79 FROM tab2 AS cor0
----
253

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT DISTINCT - MAX( - + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3624
SELECT DISTINCT - MAX ( - + col0 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL - col2 * col2 * - 58 FROM tab0 AS cor0
----
128122
568458
5800

query I rowsort
SELECT + 54 - + col2 FROM tab1 AS cor0
----
-14
-42
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * col2 col1, - col2 AS col0 FROM tab2
----
1058
-23
2560
-40
4350
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 49 col0 FROM tab0 WHERE NOT col2 IS NULL
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT + MAX( + 7 ) FROM tab2 WHERE + col1 IS NOT NULL
----
7

skipif mysql # not compatible
query I rowsort label-3629
SELECT + MAX ( + 7 ) FROM tab2 WHERE + col1 IS NOT NULL
----
7

query II rowsort
SELECT - 66 + col0 AS col0, col0 FROM tab2
----
-2
64
-20
46
9
75

query I rowsort
SELECT DISTINCT col0 + - ( - - col2 ) FROM tab2
----
17
23
24

query I rowsort
SELECT - col0 * - 31 * - col1 FROM tab1 AS cor0
----
-13175
-132587
-22134

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT - + ( + + COUNT( * ) ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3633
SELECT - + ( + + COUNT ( * ) ) AS col0 FROM tab2 cor0
----
-3

query I rowsort
SELECT + 66 * - + col0 AS col2 FROM tab1
----
-3366
-5610
-6006

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT DISTINCT + 57 * - COUNT( * ) FROM tab2
----
-171

skipif mysql # not compatible
query I rowsort label-3635
SELECT DISTINCT + 57 * - COUNT ( * ) FROM tab2
----
-171

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + 70 - + + col2 AND ( - + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < ( + col2 + - col2 + - + 62 * + 68 )
----

query I rowsort
SELECT + ( - - 60 ) * - + col2 FROM tab2
----
-1380
-2400
-3480

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 30 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( + 69 ) AS col1 FROM tab0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT - - 54 * - COUNT( * ) + - - COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3641
SELECT - - 54 * - COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3642
SELECT DISTINCT + 66 DIV - + col1 + + 58 AS col2 FROM tab2 AS cor0
----
57
58

skipif mysql # not compatible
query I rowsort label-3642
SELECT DISTINCT + 66 / - + col1 + + 58 AS col2 FROM tab2 AS cor0
----
57
58

query II rowsort
SELECT + col2 + ( + ( - col0 ) ) * 99 * + col1, col0 AS col2 FROM tab2
----
-232231
46
-487832
64
-497417
75

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * + 81 + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3645
SELECT - ( + 12 ) DIV - col2 + - - 87 AS col0 FROM tab1 AS cor0
----
87
87
87

skipif mysql # not compatible
query I rowsort label-3645
SELECT - ( + 12 ) / - col2 + - - 87 AS col0 FROM tab1 AS cor0
----
87
87
87

query II rowsort
SELECT DISTINCT col0, col0 + - + col1 AS col1 FROM tab1 AS cor0
----
51
37
85
80
91
44

query I rowsort
SELECT + - 68 * - 94 AS col1 FROM tab2 cor0
----
6392
6392
6392

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL <= + col0
----

query II rowsort
SELECT - col1 AS col2, + 8 FROM tab2 AS cor0
----
-51
8
-67
8
-77
8

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col0 ) >= col1 * 38 / + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3651
SELECT - + col2 * + - 97 * - CAST( NULL AS SIGNED ) * col2 * + 11 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3651
SELECT - + col2 * + - 97 * - CAST ( NULL AS INTEGER ) * col2 * + 11 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3652
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) >= col2 + col1 * - col1 / + col0
----

skipif mysql # not compatible
query III rowsort label-3652
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) >= col2 + col1 * - col1 / + col0
----

query I rowsort
SELECT - 91 * + + 8 AS col1 FROM tab2 cor0
----
-728
-728
-728

query I rowsort
SELECT + - col1 FROM tab0 AS cor0 WHERE + 43 <> 11
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3655
SELECT CAST( + MAX( DISTINCT - + 90 ) AS SIGNED ) DIV SUM( - + col1 ) * + COUNT( * ) + - - COUNT( + - col0 ) - - + 99 - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3655
SELECT CAST ( + MAX ( DISTINCT - + 90 ) AS INTEGER ) / SUM ( - + col1 ) * + COUNT ( * ) + - - COUNT ( + - col0 ) - - + 99 - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
99

query II rowsort
SELECT DISTINCT + 29 + + - col2, 59 * col0 * + ( - col2 ) AS col0 FROM tab2
----
-11
-151040
-29
-256650
6
-62422

query II rowsort
SELECT DISTINCT + col2 - col0, col1 AS col0 FROM tab0 AS cor0
----
-77
21
2
1
32
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + - - 61 + col2 * + + 96 * + - col1 <= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + col1 * col0 * - - col0 AS col1 FROM tab0 AS cor0
----
-158949
-18225
-9409

query I rowsort
SELECT + col2 * + 79 FROM tab0 AS cor0
----
3713
7821
790

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT - MIN( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3661
SELECT - MIN ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3662
SELECT ALL col1 * col0 DIV + col1 + 62 + - - 44 * col1 * - 27 * - col0 col1 FROM tab0 AS cor0
----
115395
1443497
2170625

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3662
SELECT ALL col1 * col0 / + col1 + 62 + - - 44 * col1 * - 27 * - col0 col1 FROM tab0 AS cor0
----
115395
1443497
2170625

onlyif mysql # DIV for integer division: 
query I rowsort label-3663
SELECT DISTINCT - col0 DIV + 62 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-3663
SELECT DISTINCT - col0 / + 62 FROM tab2
----
-1
0

query I rowsort
SELECT DISTINCT 91 * - col1 AS col2 FROM tab2
----
-4641
-6097
-7007

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT DISTINCT COUNT( * ) * + SUM( col0 ) AS col1 FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-3665
SELECT DISTINCT COUNT ( * ) * + SUM ( col0 ) AS col1 FROM tab2
----
555

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3666
SELECT DISTINCT * FROM tab1 WHERE - - CAST( - col2 AS SIGNED ) + - ( - + 76 ) BETWEEN col0 * - - ( - col0 ) * + + 20 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3666
SELECT DISTINCT * FROM tab1 WHERE - - CAST ( - col2 AS INTEGER ) + - ( - + 76 ) BETWEEN col0 * - - ( - col0 ) * + + 20 AND NULL
----

query II rowsort
SELECT - + col1, col2 * + 12 + + - ( + + col2 ) AS col0 FROM tab2 cor0
----
-51
253
-67
638
-77
440

query I rowsort
SELECT + 58 * + col0 FROM tab0 AS cor0
----
5046
5626
870

query I rowsort
SELECT ALL + col1 * + - 57 * - ( - col2 ) AS col0 FROM tab2 AS cor0
----
-175560
-221502
-66861

query II rowsort
SELECT DISTINCT + 6 AS col2, ( + - 12 ) * + + ( col0 ) FROM tab0
----
6
-1044
6
-1164
6
-180

query I rowsort
SELECT - + 0 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
0
0

query I rowsort
SELECT col2 * + ( + + 87 ) AS col1 FROM tab1
----
5133
5916
8352

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3673
SELECT + COUNT( * ) DIV + COUNT( * ) col1 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3673
SELECT + COUNT ( * ) / + COUNT ( * ) col1 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3674
SELECT - col2 DIV + 73 * - 57 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3674
SELECT - col2 / + 73 * - 57 col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 col2 FROM tab1 AS cor0
----
-45
-45
-45

query I rowsort
SELECT DISTINCT + col2 + - 0 AS col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3677
SELECT DISTINCT - + 58 DIV + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-3677
SELECT DISTINCT - + 58 / + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3678
SELECT - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3678
SELECT - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT - MAX( - + 55 ) AS col2 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-3679
SELECT - MAX ( - + 55 ) AS col2 FROM tab1
----
55

query I rowsort
SELECT ALL ( - 89 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( + + col0 ) + col1 * - 70 FROM tab1 cor0
----
-265
-3199
-929

query I rowsort
SELECT - ( + col2 ) + + col1 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3684
SELECT ALL - + CAST( + 96 AS SIGNED ) FROM tab0 AS cor0
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL - + CAST ( + 96 AS INTEGER ) FROM tab0 AS cor0
----
-96
-96
-96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN - 17 * + 27 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3686
SELECT - CAST( CAST( - col1 AS SIGNED ) AS SIGNED ) + + + 80 col1 FROM tab2 AS cor0
----
131
147
157

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3686
SELECT - CAST ( CAST ( - col1 AS INTEGER ) AS INTEGER ) + + + 80 col1 FROM tab2 AS cor0
----
131
147
157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3687
SELECT ALL + + col1 * - - CAST( NULL AS SIGNED ) * + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL + + col1 * - - CAST ( NULL AS INTEGER ) * + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + + 9 + col0 + col2 * - 25 FROM tab2
----
-1291
-474
-863

query I rowsort
SELECT - col2 * + 24 FROM tab2
----
-1392
-552
-960

query I rowsort
SELECT DISTINCT + col0 * + 23 AS col0 FROM tab2
----
1058
1472
1725

query I rowsort
SELECT ALL + 7 - + col1 FROM tab0
----
-14
-74
6

query I rowsort
SELECT + col1 * + - 90 AS col0 FROM tab1
----
-1260
-4230
-450

query I rowsort
SELECT 32 - - col0 AS col0 FROM tab2 cor0
----
107
78
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT ALL 50 * + 29 * - 79 - + 28 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-114575

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL 50 * + 29 * - 79 - + 28 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-114575

query I rowsort
SELECT DISTINCT - 26 * + col0 + - col0 - ( - col1 ) AS col0 FROM tab0 AS cor0
----
-2328
-2618
-324

onlyif mysql # DIV for integer division: 
query II rowsort label-3696
SELECT DISTINCT - col0 - - + col1 * col1 AS col1, - 37 DIV ( - - col0 ) FROM tab2 AS cor0
----
2555
0
4414
0
5865
0

skipif mysql # not compatible
query II rowsort label-3696
SELECT DISTINCT - col0 - - + col1 * col1 AS col1, - 37 / ( - - col0 ) FROM tab2 AS cor0
----
2555
0
4414
0
5865
0

query I rowsort
SELECT DISTINCT + col0 * col2 + col1 + + 65 + - col2 FROM tab1 AS cor0
----
4879
5026
6232

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 * col0 col1 FROM tab0
----
1827
2037
315

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> col0
----

query I rowsort
SELECT ALL ( 85 ) FROM tab2 AS cor0
----
85
85
85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3702
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN col0 * - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3702
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN col0 * - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3703
SELECT ALL CAST( - + col1 AS SIGNED ) AS col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL CAST ( - + col1 AS INTEGER ) AS col1 FROM tab1
----
-14
-47
-5

query II rowsort
SELECT col1 * - col2 * col2 AS col1, + col0 FROM tab2
----
-123200
64
-225388
75
-26979
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT COUNT( * ) * + 71 col1 FROM tab0
----
213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3705
SELECT COUNT ( * ) * + 71 col1 FROM tab0
----
213

query I rowsort
SELECT DISTINCT col2 * - 10 AS col2 FROM tab1
----
-590
-680
-960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3707
SELECT CAST( + ( - col2 ) AS SIGNED ) * - - 73 FROM tab0
----
-3431
-7227
-730

skipif mysql # not compatible
query I rowsort label-3707
SELECT CAST ( + ( - col2 ) AS INTEGER ) * - - 73 FROM tab0
----
-3431
-7227
-730

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 43 <= col1
----
87
21
10
97
1
99

query I rowsort
SELECT ALL - + 70 AS col0 FROM tab2 AS cor0
----
-70
-70
-70

query I rowsort
SELECT + col0 + + 66 FROM tab2 AS cor0
----
112
130
141

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 80 + - col1 < + 91
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 88 * - + col2 * + + 6 FROM tab2 AS cor0
----
12144
21120
30624

onlyif mysql # DIV for integer division: 
query II rowsort label-3713
SELECT ALL + col0 * - col1 + col2 DIV + + ( col2 ) - - col1 + - + col2 + col0 DIV + - col0 AS col2, 2 + - 73 FROM tab2 AS cor0
----
-2318
-71
-4891
-71
-5016
-71

skipif mysql # not compatible
query II rowsort label-3713
SELECT ALL + col0 * - col1 + col2 / + + ( col2 ) - - col1 + - + col2 + col0 / + - col0 AS col2, 2 + - 73 FROM tab2 AS cor0
----
-2318
-71
-4891
-71
-5016
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT + COUNT( * ) - + 98 FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-3714
SELECT + COUNT ( * ) - + 98 FROM tab1 AS cor0
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT + col2 col2, + col1 * - - col1 * - col2 AS col2, - 54 AS col0 FROM tab2 AS cor0
----
9 values hashing to e18e1ed77963cd10a856ae25cb2045c6

query I rowsort
SELECT DISTINCT + + col2 + - - col0 + + col2 FROM tab1 AS cor0
----
203
227
243

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT + SUM( DISTINCT + ( col2 ) ) + - 92 AS col2 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-3717
SELECT + SUM ( DISTINCT + ( col2 ) ) + - 92 AS col2 FROM tab0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT DISTINCT - 93 * - COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3718
SELECT DISTINCT - 93 * - COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( + + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3720
SELECT col0 DIV - - ( + 95 ) + + 17 AS col2 FROM tab0
----
17
17
18

skipif mysql # not compatible
query I rowsort label-3720
SELECT col0 / - - ( + 95 ) + + 17 AS col2 FROM tab0
----
17
17
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT ALL + COUNT( ALL + col2 ) + + 83 FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL + COUNT ( ALL + col2 ) + + 83 FROM tab1
----
86

query I rowsort
SELECT DISTINCT - ( col0 ) - - col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( - + col2 ) * + col1 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 * - 17 * - col1 + 13 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3725
SELECT + 32 DIV + - col0 AS col0 FROM tab0 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3725
SELECT + 32 / + - col0 AS col0 FROM tab0 cor0
----
-2
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT + COUNT( + 92 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3726
SELECT + COUNT ( + 92 ) FROM tab0 cor0
----
3

query I rowsort
SELECT + - col2 + col0 AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT - 80 AS col1, 18 FROM tab1 AS cor0
----
-80
18
-80
18
-80
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3729
SELECT + 36, - CAST( - + MAX( DISTINCT - col0 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
36
-15

skipif mysql # not compatible
query II rowsort label-3729
SELECT + 36, - CAST ( - + MAX ( DISTINCT - col0 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
36
-15

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3730
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( - + ( + CAST( NULL AS DECIMAL ) ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3730
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( - + ( + CAST ( NULL AS REAL ) ) AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL - 66 * ( + 90 ) FROM tab0 AS cor0
----
-5940
-5940
-5940

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT + + MAX( col0 ) AS col1 FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-3732
SELECT + + MAX ( col0 ) AS col1 FROM tab1 cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3733
SELECT DISTINCT 36 * + + CAST( NULL AS SIGNED ) + - - col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3733
SELECT DISTINCT 36 * + + CAST ( NULL AS INTEGER ) + - - col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL ( - 20 ) FROM tab0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT ALL COUNT( - ( - col1 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL COUNT ( - ( - col1 ) ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3736
SELECT ALL * FROM tab1 WHERE NOT - ( CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3736
SELECT ALL * FROM tab1 WHERE NOT - ( CAST ( NULL AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT DISTINCT col2 * + 97 FROM tab1
----
5723
6596
9312

query I rowsort
SELECT + 37 * - 81 FROM tab1
----
-2997
-2997
-2997

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT DISTINCT COUNT( * ) + - 58 - - + 34 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-3739
SELECT DISTINCT COUNT ( * ) + - 58 - - + 34 FROM tab0
----
-21

query II rowsort
SELECT 88 * - col2 AS col0, + col0 + - 11 FROM tab0
----
-4136
4
-8712
86
-880
76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + - 97 < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT ALL 82 * - COUNT( * ) + + 63 FROM tab2 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-3742
SELECT ALL 82 * - COUNT ( * ) + + 63 FROM tab2 AS cor0
----
-183

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 71 * + col2 AS col0 FROM tab1 AS cor0
----
4189
4828
6816

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT ALL - ( + COUNT( * ) ) * MAX( + + col2 ) + - 84 AS col0 FROM tab2 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL - ( + COUNT ( * ) ) * MAX ( + + col2 ) + - 84 AS col0 FROM tab2 AS cor0
----
-258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3746
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) * - col1 + - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) * - col1 + - col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL 22 + + 24 FROM tab0
----
46
46
46

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN 54 * 38 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 2 col0 FROM tab1 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3750
SELECT DISTINCT - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col1 + + col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3750
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col1 + + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 37 col2 FROM tab1 cor0
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT ALL + COUNT( * ) * + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( - 45 ) IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( - 45 ) IS NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT DISTINCT + MIN( + - 70 ) FROM tab2
----
-70

skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT + MIN ( + - 70 ) FROM tab2
----
-70

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * 44 IS NULL
----

query I rowsort
SELECT col0 * - - ( - col2 ) FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT + col1 - - 62 * - + 77 FROM tab2
----
-4697
-4707
-4723

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT 79 - + - ( + COUNT( * ) ) AS col2 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-3757
SELECT 79 - + - ( + COUNT ( * ) ) AS col2 FROM tab0
----
82

query I rowsort
SELECT col1 - + 93 AS col2 FROM tab1 cor0 WHERE NOT 61 * - - ( - 40 ) NOT IN ( 78, 60, - - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3759
SELECT ALL - ( - - 0 ) DIV - COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL - ( - - 0 ) / - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0 AS col1, + col2 + - col1 col2 FROM tab2 AS cor0
----
46
-28
64
-37
75
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 >= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT ALL + ( COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL + ( COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT ALL + - MAX( DISTINCT - + col0 ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL + - MAX ( DISTINCT - + col0 ) AS col1 FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT - 17 * - 48 AS col1 FROM tab2 AS cor0
----
816

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 62 = col0
----

query I rowsort
SELECT DISTINCT 96 + - col1 FROM tab2 AS cor0
----
19
29
45

query II rowsort
SELECT col0, 48 AS col1 FROM tab0
----
15
48
87
48
97
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT MIN( DISTINCT + col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3768
SELECT MIN ( DISTINCT + col0 ) FROM tab0
----
15

query I rowsort
SELECT DISTINCT col0 * - 22 * col1 AS col0 FROM tab2
----
-108416
-110550
-51612

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) col0 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-3771
SELECT 7, COUNT( * ) * - + 47 AS col0 FROM tab2
----
7
-141

skipif mysql # not compatible
query II rowsort label-3771
SELECT 7, COUNT ( * ) * - + 47 AS col0 FROM tab2
----
7
-141

query I rowsort
SELECT ALL col2 * + 53 FROM tab1
----
3127
3604
5088

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + + col0 - + col0 IS NULL
----

query I rowsort
SELECT + + ( - col0 ) + - ( + - 34 ) FROM tab2 AS cor0
----
-12
-30
-41

query I rowsort
SELECT + 37 + col0 - + 11 + + col0 * - 96 FROM tab0 AS cor0
----
-1399
-8239
-9189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3776
SELECT ALL CAST( NULL AS SIGNED ) * + + 4 + + + 16 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL CAST ( NULL AS INTEGER ) * + + 4 + + + 16 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 * - col1 - col1 FROM tab1 AS cor0
----
182
20
2162

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT ALL + MIN( - 45 ) FROM tab2 cor0
----
-45

skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL + MIN ( - 45 ) FROM tab2 cor0
----
-45

query I rowsort
SELECT col2 - 38 FROM tab2 AS cor0
----
-15
2
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT DISTINCT - - SUM( - + 62 ) * + COUNT( * ) FROM tab1 AS cor0
----
-558

skipif mysql # not compatible
query I rowsort label-3780
SELECT DISTINCT - - SUM ( - + 62 ) * + COUNT ( * ) FROM tab1 AS cor0
----
-558

query I rowsort
SELECT ALL - col0 * - 98 * col0 AS col1 FROM tab0 AS cor0
----
22050
741762
922082

query I rowsort
SELECT ( - col0 ) + - - 59 * - + col0 + 2 AS col0 FROM tab0 cor0
----
-5218
-5818
-898

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3783
SELECT DISTINCT + COUNT( * ) DIV + 36 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3783
SELECT DISTINCT + COUNT ( * ) / + 36 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 NOT BETWEEN col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( - col2 ) + 23 > ( 68 )
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT ALL SUM( ALL - + col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-3786
SELECT ALL SUM ( ALL - + col1 ) FROM tab2
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 AS col1, 95 col2 FROM tab2 AS cor0
----
-46
95
-64
95
-75
95

query I rowsort
SELECT + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 > + 33 + + 4 * - ( - 39 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT DISTINCT + SUM( + + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT + SUM ( + + col1 ) FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT ALL + + 42 * 52 + - ( - COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
2193

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL + + 42 * 52 + - ( - COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
2193

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3791
SELECT - - 55 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 + + ( + CAST( NULL AS DECIMAL ) ) * col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3791
SELECT - - 55 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 + + ( + CAST ( NULL AS REAL ) ) * col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - col1 ) AS col0, col2 col1 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT DISTINCT - MIN( - col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3793
SELECT DISTINCT - MIN ( - col0 ) AS col1 FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3794
SELECT ALL - + 28 * col2 + - col1 * - ( - CAST( NULL AS SIGNED ) ) * - ( + col1 ) + + ( - col1 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL - + 28 * col2 + - col1 * - ( - CAST ( NULL AS INTEGER ) ) * - ( + col1 ) + + ( - col1 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + 87 AS col1, ( + 68 ) * + col1 AS col0 FROM tab1 AS cor0
----
87
3196
87
340
87
952

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT - - COUNT( ALL - col1 ) + + MAX( + - col2 ) AS col1 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-3796
SELECT - - COUNT ( ALL - col1 ) + + MAX ( + - col2 ) AS col1 FROM tab1 AS cor0
----
-56

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 63 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT DISTINCT + 76 + - MIN( ALL + 8 ) FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-3798
SELECT DISTINCT + 76 + - MIN ( ALL + 8 ) FROM tab1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT + COUNT( * ) + + 50 - + + COUNT( * ) AS col2 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-3799
SELECT + COUNT ( * ) + + 50 - + + COUNT ( * ) AS col2 FROM tab1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT ALL + 92 * + COUNT( * ) * + 76 + - COUNT( * ) - + MAX( - ( + col0 ) ) AS col0 FROM tab0
----
20988

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL + 92 * + COUNT ( * ) * + 76 + - COUNT ( * ) - + MAX ( - ( + col0 ) ) AS col0 FROM tab0
----
20988

query I rowsort
SELECT DISTINCT - 3 AS col1 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col2 col2 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT - MAX( ALL - col0 ) * + 81 FROM tab0
----
1215

skipif mysql # not compatible
query I rowsort label-3803
SELECT - MAX ( ALL - col0 ) * + 81 FROM tab0
----
1215

query I rowsort
SELECT DISTINCT + - 30 AS col2 FROM tab2 AS cor0 WHERE NOT + 71 IS NULL
----
-30

query I rowsort
SELECT ALL - col1 + - + 31 AS col0 FROM tab2
----
-108
-82
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT - 29 + - MAX( - col1 ) FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-3806
SELECT - 29 + - MAX ( - col1 ) FROM tab2
----
22

query I rowsort
SELECT - 96 + ( - col2 ) FROM tab2
----
-119
-136
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-3808
SELECT ALL col0 DIV col1 + + col1 FROM tab0
----
25
81
98

skipif mysql # not compatible
query I rowsort label-3808
SELECT ALL col0 / col1 + + col1 FROM tab0
----
25
81
98

query II rowsort
SELECT + + col0, - col0 + + + col0 AS col2 FROM tab0 AS cor0
----
15
0
87
0
97
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL <> - 73 / 84
----

query I rowsort
SELECT ALL + col0 - - col1 - 47 * - col0 + - 2 AS col0 FROM tab1 AS cor0
----
2460
4083
4413

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT DISTINCT 35 * MAX( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT + + col1 * + - 63 * + + col1 IN ( 69 * + col1 - 30, - 48 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT DISTINCT 35 * MAX ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT + + col1 * + - 63 * + + col1 IN ( 69 * + col1 - 30, - 48 ) )
----
NULL

query I rowsort
SELECT - col2 * - 39 AS col1 FROM tab1 AS cor0
----
2301
2652
3744

query I rowsort
SELECT + + col0 * 91 AS col2 FROM tab0 AS cor0
----
1365
7917
8827

onlyif mysql # DIV for integer division: 
query II rowsort label-3815
SELECT DISTINCT col2 DIV col2, col2 * 12 AS col2 FROM tab1
----
1
1152
1
708
1
816

skipif mysql # not compatible
query II rowsort label-3815
SELECT DISTINCT col2 / col2, col2 * 12 AS col2 FROM tab1
----
1
1152
1
708
1
816

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * - col1 <= NULL
----

query I rowsort
SELECT - col0 * - - 39 FROM tab2
----
-1794
-2496
-2925

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT DISTINCT COUNT( ALL + + col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3818
SELECT DISTINCT COUNT ( ALL + + col2 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE + 7 IS NULL
----

query I rowsort
SELECT - ( - - ( 34 ) ) AS col0 FROM tab0
----
-34
-34
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3821
SELECT DISTINCT - COUNT( * ) DIV ( 34 ) * + 73 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3821
SELECT DISTINCT - COUNT ( * ) / ( 34 ) * + 73 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3822
SELECT ALL COUNT( DISTINCT + col1 ) DIV + MIN( ALL + col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL COUNT ( DISTINCT + col1 ) / + MIN ( ALL + col1 ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT 28 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT ALL + MIN( ALL 39 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
39

skipif mysql # not compatible
query I rowsort label-3824
SELECT ALL + MIN ( ALL 39 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
39

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= 31
----

query I rowsort
SELECT + AVG ( ALL + ( + 12 ) ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT SUM( + 43 ) AS col0 FROM tab0 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-3827
SELECT SUM ( + 43 ) AS col0 FROM tab0 AS cor0
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3828
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3828
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 21 ) col1 FROM tab2 cor0
----
-21
-21
-21

query I rowsort
SELECT ALL - col1 * + 8 * col1 + - col0 FROM tab0 AS cor0
----
-105
-3615
-52503

query I rowsort
SELECT DISTINCT + ( + ( 32 ) ) FROM tab1
----
32

query III rowsort
SELECT * FROM tab2 WHERE - 97 IS NULL
----

query II rowsort
SELECT - col0 AS col1, + col0 + + - col2 * + + col0 FROM tab1
----
-51
-4845
-85
-4930
-91
-6097

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 10 + 79 col0 FROM tab2
----
89
89
89

onlyif mysql # DIV for integer division: 
query I rowsort label-3835
SELECT + col1 DIV 93 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3835
SELECT + col1 / 93 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3836
SELECT DISTINCT 3 DIV col0 + - col2 - ( col1 ) AS col0 FROM tab2
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT 3 / col0 + - col2 - ( col1 ) AS col0 FROM tab2
----
-117
-125
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3837
SELECT 24 + + + COUNT( * ) + - - COUNT( * ) * - - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3837
SELECT 24 + + + COUNT ( * ) + - - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT ALL - 10 * - 25 - + 33 - MAX( - col1 ) AS col1 FROM tab0
----
218

skipif mysql # not compatible
query I rowsort label-3838
SELECT ALL - 10 * - 25 - + 33 - MAX ( - col1 ) AS col1 FROM tab0
----
218

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT ALL + MIN( DISTINCT + col1 ) + + 36 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-3839
SELECT ALL + MIN ( DISTINCT + col1 ) + + 36 FROM tab2 AS cor0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3840
SELECT COUNT( * ) + + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3840
SELECT COUNT ( * ) + + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query II rowsort
SELECT col2, - col0 AS col2 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

query II rowsort
SELECT DISTINCT 15, col2 FROM tab0 AS cor0
----
15
10
15
47
15
99

query I rowsort
SELECT DISTINCT - ( - col0 ) + col0 AS col2 FROM tab0
----
174
194
30

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT DISTINCT + SUM( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3845
SELECT DISTINCT + SUM ( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
-223

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 >= + col1 - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT ALL + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 + + col2 AND + + col1
----
0

skipif mysql # not compatible
query I rowsort label-3847
SELECT ALL + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 + + col2 AND + + col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3848
SELECT SUM( ALL + + col1 ) AS col1, + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
103
NULL

skipif mysql # not compatible
query II rowsort label-3848
SELECT SUM ( ALL + + col1 ) AS col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
103
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT MAX( DISTINCT - + 99 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3849
SELECT MAX ( DISTINCT - + 99 ) AS col2 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT DISTINCT + col1 * - col2 * - 37 AS col2 FROM tab1 AS cor0
----
10915
118252
49728

query I rowsort
SELECT - ( - col1 ) * + 26 + + col1 AS col0 FROM tab1 cor0
----
1269
135
378

query II rowsort
SELECT DISTINCT + ( - col0 ), - 91 AS col1 FROM tab0 AS cor0
----
-15
-91
-87
-91
-97
-91

query I rowsort
SELECT - col0 * - 84 FROM tab0
----
1260
7308
8148

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + 45 ) AS col0 FROM tab1
----
45

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col0 + + col2 + + col2 * + 42 <> col2 * 48
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3857
SELECT SUM( ALL - - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ), + 89 AS col1 FROM tab2
----
NULL
89

skipif mysql # not compatible
query II rowsort label-3857
SELECT SUM ( ALL - - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) ), + 89 AS col1 FROM tab2
----
NULL
89

query II rowsort
SELECT DISTINCT col1, 42 AS col0 FROM tab2
----
51
42
67
42
77
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3859
SELECT - CAST( + 98 AS SIGNED ) FROM tab2 AS cor0
----
-98
-98
-98

skipif mysql # not compatible
query I rowsort label-3859
SELECT - CAST ( + 98 AS INTEGER ) FROM tab2 AS cor0
----
-98
-98
-98

query I rowsort
SELECT DISTINCT - col1 * + - col0 AS col1 FROM tab0 AS cor0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 98 ) col0 FROM tab1
----
98
98
98

query I rowsort
SELECT + col2 + + 43 AS col2 FROM tab2
----
101
66
83

query I rowsort
SELECT - 45 + + 47 AS col1 FROM tab1
----
2
2
2

query I rowsort
SELECT DISTINCT ( 89 ) AS col2 FROM tab0
----
89

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 95 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - ( + 7 ) + 26 FROM tab2
----
19

query I rowsort
SELECT ( col1 ) * 47 FROM tab1
----
2209
235
658

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT - col1 IN ( + col0 )
----
51
67
77

query I rowsort
SELECT 42 * - col0 FROM tab1
----
-2142
-3570
-3822

query I rowsort
SELECT col1 * + 33 AS col0 FROM tab0
----
2673
33
693

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT DISTINCT SUM( ALL - 20 ) AS col1 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-3871
SELECT DISTINCT SUM ( ALL - 20 ) AS col1 FROM tab1
----
-60

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 87 >= ( NULL )
----

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3874
SELECT ALL - COUNT( * ) * - 7 + SUM( - CAST( NULL AS SIGNED ) ) * COUNT( + col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL - COUNT ( * ) * - 7 + SUM ( - CAST ( NULL AS INTEGER ) ) * COUNT ( + col2 ) FROM tab0
----
NULL

query I rowsort
SELECT + col0 - - col1 * + ( + col0 ) FROM tab0
----
1230
1914
194

query I rowsort
SELECT ( ( col0 ) ) * 91 - + col0 FROM tab2
----
4140
5760
6750

query I rowsort
SELECT DISTINCT col1 * col2 FROM tab1 WHERE NOT NULL NOT IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 9 col0 FROM tab0 WHERE NOT ( + 8 ) IN ( + col1 - - col2 )
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT COUNT( * ) * COUNT( * ) FROM tab1 WHERE NOT ( 85 ) BETWEEN + col2 AND col1
----
9

skipif mysql # not compatible
query I rowsort label-3879
SELECT COUNT ( * ) * COUNT ( * ) FROM tab1 WHERE NOT ( 85 ) BETWEEN + col2 AND col1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3880
SELECT * FROM tab0 WHERE NOT ( CAST( NULL AS SIGNED ) ) > ( col2 )
----

skipif mysql # not compatible
query III rowsort label-3880
SELECT * FROM tab0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) > ( col2 )
----

query I rowsort
SELECT + col0 FROM tab1 WHERE - col1 > ( - col1 / - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col2 * + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * + col0 + - col1 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 51 + - col1 FROM tab0
----
-30
30
50

query I rowsort
SELECT ALL + 3 AS col2 FROM tab2 WHERE NOT - col0 IS NULL
----
3
3
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN col2 AND col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 NOT BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3888
SELECT DISTINCT + CAST( - col0 AS SIGNED ) - + 61 AS col2 FROM tab0 AS cor0
----
-148
-158
-76

skipif mysql # not compatible
query I rowsort label-3888
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) - + 61 AS col2 FROM tab0 AS cor0
----
-148
-158
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3889
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
3

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT col2 + col2 NOT BETWEEN ( NULL ) AND col0
----

query I rowsort
SELECT 67 + + col0 AS col1 FROM tab2
----
113
131
142

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT MAX( - col1 ) FROM tab2 AS cor0 WHERE NOT ( 90 ) NOT IN ( - ( col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3892
SELECT MAX ( - col1 ) FROM tab2 AS cor0 WHERE NOT ( 90 ) NOT IN ( - ( col0 ) )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3893
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3893
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3894
SELECT ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3894
SELECT ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + col1 * - 85 + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3896
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 32 + - 54 IN ( - 44 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3896
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 32 + - 54 IN ( - 44 * - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT ( ( COUNT( * ) ) ) AS col1 FROM tab2 AS cor0 WHERE NOT ( 76 * - col0 + 91 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3897
SELECT ( ( COUNT ( * ) ) ) AS col1 FROM tab2 AS cor0 WHERE NOT ( 76 * - col0 + 91 ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + 78 * col2 FROM tab0 AS cor0
----
3666
7722
780

query I rowsort
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 41 * 72 + + 48 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 1 IN ( col2 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 2 col2 FROM tab0
----
162
2
42

query I rowsort
SELECT + col0 * - - col2 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT ALL + 98 * + COUNT( * ) FROM tab1
----
294

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL + 98 * + COUNT ( * ) FROM tab1
----
294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 74 col0 FROM tab2
----
1702
2960
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT COUNT( * ) * 59 FROM tab2
----
177

skipif mysql # not compatible
query I rowsort label-3905
SELECT COUNT ( * ) * 59 FROM tab2
----
177

query I rowsort
SELECT col1 * - 43 AS col1 FROM tab0
----
-3483
-43
-903

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT DISTINCT COUNT( * ) * - MAX( ALL col1 ) AS col0 FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-3908
SELECT DISTINCT COUNT ( * ) * - MAX ( ALL col1 ) AS col0 FROM tab0
----
-243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 * - col1 col2 FROM tab2 WHERE NOT - col0 >= ( - 34 )
----
-2550
-4422
-5852

onlyif mysql # DIV for integer division: 
query I rowsort label-3910
SELECT ALL - 71 DIV - col0 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL - 71 / - col0 AS col2 FROM tab2
----
0
1
1

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT ALL - 64 * COUNT( * ) FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL - 64 * COUNT ( * ) FROM tab1 AS cor0
----
-192

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE ( - + 89 ) < col1
----
14
47
5

query I rowsort
SELECT + col2 FROM tab0 WHERE ( NULL ) >= col0 * + col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( col1 ) = col1 * + 27 )
----

query I rowsort
SELECT - 9 * - 17 AS col2 FROM tab2
----
153
153
153

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT ALL - COUNT( * ) * - - SUM( ALL col0 ) AS col0 FROM tab2
----
-555

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL - COUNT ( * ) * - - SUM ( ALL col0 ) AS col0 FROM tab2
----
-555

query I rowsort
SELECT 71 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT DISTINCT + col1 * + 30 * col2 FROM tab1
----
40320
8850
95880

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 ) NOT IN ( ( 27 ) * ( - 31 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - 60 ) FROM tab2 AS cor0 WHERE ( col0 + - ( col1 ) ) IN ( - ( - col2 ) )
----

query I rowsort
SELECT 91 FROM tab2 AS cor0 WHERE NULL IS NULL
----
91
91
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3923
SELECT ALL + - col0 DIV 25 DIV - col2 + - ( 27 + 47 ) * + col2 AS col0 FROM tab0 AS cor0
----
-3478
-7326
-740

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL + - col0 / 25 / - col2 + - ( 27 + 47 ) * + col2 AS col0 FROM tab0 AS cor0
----
-3478
-7326
-740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3924
SELECT - COUNT( * ) / - + 24 + - COUNT( * ) * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3924
SELECT - COUNT ( * ) / - + 24 + - COUNT ( * ) * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3925
SELECT DISTINCT + - CAST( NULL AS SIGNED ) col0, + col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3925
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) col0, + col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND - - col0 * + col0
----

query I rowsort
SELECT DISTINCT - col2 + + col0 * + col1 FROM tab0 AS cor0
----
-2
1168
1817

query I rowsort
SELECT - col2 * col0 - + - col2 FROM tab2 cor0
----
-1035
-2520
-4292

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT - 2 - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3929
SELECT - 2 - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-5

query I rowsort
SELECT - 6 - - - col0 * - col2 AS col1 FROM tab2 AS cor0
----
1052
2554
4344

onlyif mysql # DIV for integer division: 
query I rowsort label-3931
SELECT DISTINCT ( - 1 ) DIV - 63 + + + col2 * 0 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3931
SELECT DISTINCT ( - 1 ) / - 63 + + + col2 * 0 col0 FROM tab2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3932
SELECT ( - + 81 ) + - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3932
SELECT ( - + 81 ) + - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 9 BETWEEN col2 AND ( 64 ) AND NOT col1 >= NULL
----

query I rowsort
SELECT 75 + - 67 AS col2 FROM tab2
----
8
8
8

query III rowsort
SELECT * FROM tab2 WHERE + - 2 - + - 80 * - col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3936
SELECT ALL + CAST( NULL AS SIGNED ) * + ( 40 ) + + col0 * 66 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL + CAST ( NULL AS INTEGER ) * + ( 40 ) + + col0 * 66 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT ( 13 ) + + + COUNT( * ) FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-3937
SELECT ( 13 ) + + + COUNT ( * ) FROM tab1
----
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + + col1 - + col0 col0 FROM tab0
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - 29 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 21 col1 FROM tab0 AS cor0
----
-1827
-2037
-315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3941
SELECT DISTINCT - col0 + + CAST( col2 AS SIGNED ) FROM tab2 WHERE NOT + ( - col2 ) + - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3941
SELECT DISTINCT - col0 + + CAST ( col2 AS INTEGER ) FROM tab2 WHERE NOT + ( - col2 ) + - col0 IS NOT NULL
----

query II rowsort
SELECT - 63, - col2 AS col1 FROM tab2 AS cor0
----
-63
-23
-63
-40
-63
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3943
SELECT - CAST( - 20 AS SIGNED ) FROM tab2 AS cor0
----
20
20
20

skipif mysql # not compatible
query I rowsort label-3943
SELECT - CAST ( - 20 AS INTEGER ) FROM tab2 AS cor0
----
20
20
20

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT ALL - COUNT( DISTINCT 75 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL - COUNT ( DISTINCT 75 ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT COUNT( - + 29 ) * + 4 AS col0 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-3946
SELECT COUNT ( - + 29 ) * + 4 AS col0 FROM tab1 AS cor0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 89 col1 FROM tab0 AS cor0
----
-89
-89
-89

query I rowsort
SELECT + ( + + col1 ) AS col1 FROM tab1 cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3949
SELECT DISTINCT * FROM tab2 cor0 WHERE - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * col2 / + col0 * - col0 BETWEEN ( col2 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3949
SELECT DISTINCT * FROM tab2 cor0 WHERE - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * col2 / + col0 * - col0 BETWEEN ( col2 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 1 * - col0 col2 FROM tab2 WHERE NOT NULL <> col2
----

query I rowsort
SELECT DISTINCT - 48 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 33 + + col2 + - + 13 * col0 * col1 * + ( col0 * 15 ) ) NOT BETWEEN col0 - 34 AND NULL
----

query I rowsort
SELECT DISTINCT col1 + - col1 + + - col2 * - col1 + + col1 AS col1 FROM tab0
----
100
231
3888

query II rowsort
SELECT ALL col0, ( col1 ) AS col0 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT DISTINCT + + 52 AS col1 FROM tab0 AS cor0
----
52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3956
SELECT ( + COUNT( ALL + col1 ) ) FROM tab0 cor0 WHERE NOT 35 + CAST( NULL AS DECIMAL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3956
SELECT ( + COUNT ( ALL + col1 ) ) FROM tab0 cor0 WHERE NOT 35 + CAST ( NULL AS REAL ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3957
SELECT DISTINCT - - CAST( NULL AS SIGNED ), col1 AS col2 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-3957
SELECT DISTINCT - - CAST ( NULL AS INTEGER ), col1 AS col2 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query III rowsort
SELECT * FROM tab1 WHERE NULL <= NULL AND ( NOT ( NULL ) IS NULL )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL = - 47
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3960
SELECT + CAST( 98 AS SIGNED ) * - - 59 + - 7 * 55 + + col1 + - col2 * col1 FROM tab1
----
2248
4067
5107

skipif mysql # not compatible
query I rowsort label-3960
SELECT + CAST ( 98 AS INTEGER ) * - - 59 + - 7 * 55 + + col1 + - col2 * col1 FROM tab1
----
2248
4067
5107

query II rowsort
SELECT DISTINCT + + 22 + 72 AS col0, - ( - ( - 33 ) ) FROM tab2 AS cor0
----
94
-33

query I rowsort
SELECT - + col2 + - + col1 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT ALL - ( + col0 ) + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 + + col1 IN ( - + col0 * + - col0 * + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 * 87 FROM tab1 AS cor0 WHERE ( - 64 ) IS NOT NULL
----
4437
7395
7917

query I rowsort
SELECT DISTINCT + - 28 * 49 AS col2 FROM tab0 AS cor0
----
-1372

query I rowsort
SELECT col1 * + + 56 + - col1 FROM tab2 cor0
----
2805
3685
4235

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3969
SELECT + col1 + - col2 + - col0 DIV + + 45 FROM tab2 AS cor0
----
27
36
8

skipif mysql # not compatible
query I rowsort label-3969
SELECT + col1 + - col2 + - col0 / + + 45 FROM tab2 AS cor0
----
27
36
8

query I rowsort
SELECT ALL col2 * - col2 + + col1 AS col2 FROM tab2 AS cor0
----
-1523
-3297
-478

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3972
SELECT col2 * + CAST( NULL AS DECIMAL ) FROM tab0 WHERE + 74 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3972
SELECT col2 * + CAST ( NULL AS REAL ) FROM tab0 WHERE + 74 IS NULL
----

query I rowsort
SELECT DISTINCT - 4 + + col0 * - + col1 AS col1 FROM tab2
----
-2350
-4932
-5029

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3974
SELECT ALL * FROM tab0 WHERE NOT + col0 * - CAST( + col0 AS SIGNED ) + - - col2 + + - col0 > ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3974
SELECT ALL * FROM tab0 WHERE NOT + col0 * - CAST ( + col0 AS INTEGER ) + - - col2 + + - col0 > ( NULL )
----

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE - ( - + col0 ) NOT BETWEEN - 74 * + col2 + - col0 AND ( - + col0 + + col1 * + col2 )
----

query I rowsort
SELECT - col0 - + + col2 * + 17 * - ( + 97 ) FROM tab0
----
163154
16403
77488

query I rowsort
SELECT 52 - col1 * - - col1 * + col2 AS col1 FROM tab1
----
-1423
-150160
-18764

query I rowsort
SELECT DISTINCT + ( + - 28 ) - + 80 FROM tab0
----
-108

query II rowsort
SELECT ALL - col2, col2 FROM tab0 WHERE + 66 - + + col1 NOT BETWEEN NULL AND ( + col2 )
----
-10
10

query I rowsort
SELECT ( + - 16 ) * - - ( + 48 ) - + col2 + + col1 + + col2 FROM tab1
----
-721
-754
-763

query I rowsort
SELECT - col2 * + col2 * 87 AS col2 FROM tab1
----
-302847
-402288
-801792

query I rowsort
SELECT ALL - ( + col1 ) * - + col1 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT ALL - 3 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT 75 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT ALL + - ( + col2 ) * + 60 AS col1 FROM tab2 AS cor0
----
-1380
-2400
-3480

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 - - 41 < - 46 + 77
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT ALL COUNT( - 1 ) col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3987
SELECT ALL COUNT ( - 1 ) col1 FROM tab0 cor0
----
3

query II rowsort
SELECT col1 AS col1, col1 FROM tab2
----
51
51
67
67
77
77

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 + + + 88 NOT BETWEEN NULL AND - 58
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT ALL - MIN( DISTINCT - col0 ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3990
SELECT ALL - MIN ( DISTINCT - col0 ) AS col2 FROM tab2
----
75

query I rowsort
SELECT ALL 16 + + col2 FROM tab1
----
112
75
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT COUNT( * ) * + MIN( + + col2 ) AS col2 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-3992
SELECT COUNT ( * ) * + MIN ( + + col2 ) AS col2 FROM tab2
----
69

query I rowsort
SELECT + - col0 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3995
SELECT + CAST( - 64 AS SIGNED ) FROM tab1
----
-64
-64
-64

skipif mysql # not compatible
query I rowsort label-3995
SELECT + CAST ( - 64 AS INTEGER ) FROM tab1
----
-64
-64
-64

query I rowsort
SELECT 21 + - + 76 AS col2 FROM tab2 AS cor0
----
-55
-55
-55

query II rowsort
SELECT ALL + col0 AS col2, - ( - 35 ) FROM tab2 AS cor0
----
46
35
64
35
75
35

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE - col2 * + + col0 + - 58 + col0 / col2 * + 21 NOT BETWEEN + + ( 69 ) AND ( 18 )
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT ALL - MAX( + 24 ) * - - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-216

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL - MAX ( + 24 ) * - - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-216

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - ( - - col2 ) IS NULL
----

query I rowsort
SELECT ALL + 65 + - - ( - 86 ) FROM tab0 AS cor0
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT DISTINCT - COUNT( * ) - + 57 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-4002
SELECT DISTINCT - COUNT ( * ) - + 57 FROM tab2 AS cor0
----
-60

query I rowsort
SELECT - + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL AND NULL <> 48
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4004
SELECT 42 - - CAST( - col2 AS SIGNED ) DIV + - col2 AS col1 FROM tab0 cor0
----
43
43
43

skipif mysql # not compatible
query I rowsort label-4004
SELECT 42 - - CAST ( - col2 AS INTEGER ) / + - col2 AS col1 FROM tab0 cor0
----
43
43
43

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 IS NOT NULL AND NOT NULL BETWEEN col2 AND NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col1, col2 AS col2 FROM tab1 cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT + col0 - - - col0 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * - - col1 IN ( + col0 + col2 + - col2 / col1 + - col0 * col1, col2 * - col2 - 21 * + col1 )
----

query I rowsort
SELECT 58 + 72 FROM tab0 AS cor0
----
130
130
130

query II rowsort
SELECT + - 92 + 87 AS col0, - col1 AS col2 FROM tab1 AS cor0
----
-5
-14
-5
-47
-5
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-4011
SELECT ALL - 44 * 27, + COUNT( * ) col2 FROM tab2
----
-1188
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4011
SELECT ALL - 44 * 27, + COUNT ( * ) col2 FROM tab2
----
-1188
3

query III rowsort
SELECT * FROM tab2 WHERE + 35 / - col1 NOT BETWEEN NULL AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT COUNT( * ) AS col2 FROM tab1 WHERE ( NOT + col0 * - + col0 BETWEEN ( NULL ) AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4013
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE ( NOT + col0 * - + col0 BETWEEN ( NULL ) AND NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT DISTINCT + + COUNT( * ) * + 87 + + 5 - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
269

skipif mysql # not compatible
query I rowsort label-4014
SELECT DISTINCT + + COUNT ( * ) * + 87 + + 5 - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
269

onlyif mysql # DIV for integer division: 
query II rowsort label-4015
SELECT ALL - 69 AS col0, 65 DIV - - 46 AS col2 FROM tab2
----
-69
1
-69
1
-69
1

skipif mysql # not compatible
query II rowsort label-4015
SELECT ALL - 69 AS col0, 65 / - - 46 AS col2 FROM tab2
----
-69
1
-69
1
-69
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4016
SELECT + - 41 * + CAST( - COUNT( * ) AS SIGNED ) col1 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4016
SELECT + - 41 * + CAST ( - COUNT ( * ) AS INTEGER ) col1 FROM tab1 AS cor0
----
123

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col1 + col1 + + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col2 * col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-705
-870
-9603

query II rowsort
SELECT - ( + + col0 ) * + 98, - 21 AS col1 FROM tab2 cor0
----
-4508
-21
-6272
-21
-7350
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-4020
SELECT + col2 DIV - 81 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4020
SELECT + col2 / - 81 FROM tab2 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4021
SELECT ALL + - col2 DIV 78 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL + - col2 / 78 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, 16 col0 FROM tab2 AS cor0
----
51
16
67
16
77
16

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + - 24 * - col0 + 83 IN ( - + ( - + 30 ), + 17 + + ( + col0 ) * - + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4024
SELECT + + CAST( NULL AS DECIMAL ) + + - SUM( ALL + + col1 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4024
SELECT + + CAST ( NULL AS REAL ) + + - SUM ( ALL + + col1 ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT DISTINCT SUM( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-4025
SELECT DISTINCT SUM ( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) + + 8 + col2 col2 FROM tab0
----
108
136
39

query I rowsort
SELECT - col2 + + 78 AS col2 FROM tab2
----
20
38
55

query I rowsort
SELECT ALL + 37 * - col1 * + col2 FROM tab1
----
-10915
-118252
-49728

query I rowsort
SELECT ALL 78 + - col0 FROM tab2
----
14
3
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4030
SELECT ALL * FROM tab2 WHERE + col0 + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4030
SELECT ALL * FROM tab2 WHERE + col0 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4031
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT ALL + col0 + ( col0 ) AS col1 FROM tab0
----
174
194
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4033
SELECT MIN( + + col0 ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4033
SELECT MIN ( + + col0 ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( - 39 ) <> NULL
----

query I rowsort
SELECT ALL + - col0 - + + col0 FROM tab0 AS cor0
----
-174
-194
-30

query I rowsort
SELECT DISTINCT - col2 - + - 43 AS col2 FROM tab0 cor0
----
-4
-56
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT DISTINCT 24 * + MAX( ALL - col1 ) AS col0 FROM tab2 AS cor0 WHERE ( col1 - - 30 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4037
SELECT DISTINCT 24 * + MAX ( ALL - col1 ) AS col0 FROM tab2 AS cor0 WHERE ( col1 - - 30 ) IS NULL
----
NULL

query I rowsort
SELECT ALL + col1 - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT DISTINCT 25 * + ( MAX( col0 ) ) AS col0 FROM tab1 cor0
----
2275

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT 25 * + ( MAX ( col0 ) ) AS col0 FROM tab1 cor0
----
2275

query I rowsort
SELECT DISTINCT col2 - ( - 5 ) AS col1 FROM tab1 AS cor0
----
101
64
73

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 39 * - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT col0 < NULL
----
0

query II rowsort
SELECT DISTINCT col2 AS col1, 68 FROM tab2
----
23
68
40
68
58
68

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 / + + 30 IS NOT NULL
----

query I rowsort
SELECT 36 * - - col2 * - ( - col1 ) FROM tab2
----
110880
139896
42228

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4046
SELECT CAST( NULL AS SIGNED ) AS col0, + 78 AS col1 FROM tab1
----
NULL
78
NULL
78
NULL
78

skipif mysql # not compatible
query II rowsort label-4046
SELECT CAST ( NULL AS INTEGER ) AS col0, + 78 AS col1 FROM tab1
----
NULL
78
NULL
78
NULL
78

query II rowsort
SELECT ALL + col1 AS col2, - col2 AS col1 FROM tab0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT + 50 * - col0 AS col2 FROM tab2
----
-2300
-3200
-3750

query I rowsort
SELECT DISTINCT - col1 * + 79 FROM tab1 AS cor0
----
-1106
-3713
-395

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 15 + + - 85 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 11 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE - 32 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + col0 * - 16 FROM tab0
----
-1392
-1552
-240

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 8 + col0 * - 99 * - col1, - col2, col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 94 ) NOT BETWEEN NULL AND 92 + + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4056
SELECT ALL - CAST( + ( + col1 ) AS SIGNED ) + + col2 + 96 AS col0 FROM tab0 AS cor0
----
194
62
85

skipif mysql # not compatible
query I rowsort label-4056
SELECT ALL - CAST ( + ( + col1 ) AS INTEGER ) + + col2 + 96 AS col0 FROM tab0 AS cor0
----
194
62
85

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4057
SELECT - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4057
SELECT - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 >= NULL
----

query I rowsort
SELECT - 75 * 96 FROM tab2
----
-7200
-7200
-7200

query II rowsort
SELECT + col1 AS col1, + col0 AS col1 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT ALL + COUNT( * ) * + ( - 5 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL + COUNT ( * ) * + ( - 5 ) FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT + ( COUNT( * ) ) + - 8 AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4062
SELECT + ( COUNT ( * ) ) + - 8 AS col2 FROM tab1
----
-5

query I rowsort
SELECT ALL 8 + - + col0 - col2 AS col1 FROM tab1
----
-136
-139
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT DISTINCT - COUNT( * ) + - - 95 AS col0 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-4064
SELECT DISTINCT - COUNT ( * ) + - - 95 AS col0 FROM tab2
----
92

query I rowsort
SELECT col2 + + - col2 + + - col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + col1 - - 39 FROM tab1 cor0
----
44
53
86

query I rowsort
SELECT DISTINCT + col2 * + 72 FROM tab1 AS cor0 WHERE NOT ( NULL ) < + col0
----

query I rowsort
SELECT DISTINCT 62 + - ( + - 12 ) FROM tab1
----
74

query I rowsort
SELECT DISTINCT col0 + + - 88 FROM tab1
----
-3
-37
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4070
SELECT ALL 9 + - 75 * + MIN( ALL + col0 ), - 13 * - 9 AS col2 FROM tab0
----
-1116
117

skipif mysql # not compatible
query II rowsort label-4070
SELECT ALL 9 + - 75 * + MIN ( ALL + col0 ), - 13 * - 9 AS col2 FROM tab0
----
-1116
117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2, + col2 * + 62 col2 FROM tab1 AS cor0 WHERE - col2 BETWEEN - col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 NOT IN ( + col0, - ( - 91 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( - - col2 ) * - 2 AS col1 FROM tab1 AS cor0
----
-118
-136
-192

query II rowsort
SELECT + col0 AS col1, - col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 + - 54 IS NULL
----
46
-51
64
-77
75
-67

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - 38 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - ( 62 ) NOT BETWEEN col2 AND - + 71
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4077
SELECT * FROM tab2 WHERE NOT ( + col0 ) > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4077
SELECT * FROM tab2 WHERE NOT ( + col0 ) > - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT ALL COUNT( * ) * 17 col1 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4078
SELECT ALL COUNT ( * ) * 17 col1 FROM tab1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4079
SELECT col1 AS col0, - col0 + + + CAST( - - 56 AS SIGNED ) FROM tab2
----
51
10
67
-19
77
-8

skipif mysql # not compatible
query II rowsort label-4079
SELECT col1 AS col0, - col0 + + + CAST ( - - 56 AS INTEGER ) FROM tab2
----
51
10
67
-19
77
-8

query I rowsort
SELECT - 24 AS col2 FROM tab2 cor0
----
-24
-24
-24

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT - col1 < - col0 + ( - ( - - col2 ) ) * col2
----
59
68
96

query I rowsort
SELECT + + 4 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT DISTINCT - COUNT( + + col1 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4083
SELECT DISTINCT - COUNT ( + + col1 ) AS col0 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - 11 / + - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4085
SELECT DISTINCT MAX( + col0 ) + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4085
SELECT DISTINCT MAX ( + col0 ) + - CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----
NULL

query I rowsort
SELECT - col0 + - col1 + col0 FROM tab0 cor0
----
-1
-21
-81

query II rowsort
SELECT DISTINCT + 31 AS col0, - col2 FROM tab2 AS cor0
----
31
-23
31
-40
31
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4088
SELECT ALL * FROM tab1 AS cor0 WHERE - ( + CAST( NULL AS SIGNED ) ) < col0 * - 11
----

skipif mysql # not compatible
query III rowsort label-4088
SELECT ALL * FROM tab1 AS cor0 WHERE - ( + CAST ( NULL AS INTEGER ) ) < col0 * - 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT ALL - SUM( + 97 ) FROM tab1 cor0
----
-291

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL - SUM ( + 97 ) FROM tab1 cor0
----
-291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2 col1, col1 * - ( + + 91 ) FROM tab1 AS cor0
----
-59
-455
-68
-4277
-96
-1274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4091
SELECT ALL - COUNT( col0 ) + - ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL - COUNT ( col0 ) + - ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4092
SELECT ALL - 46, - col1 * + - col2 / - + CAST( NULL AS SIGNED ) + - col0 + + + col2 * col2 + - col2 AS col0 FROM tab1 AS cor0
----
-46
NULL
-46
NULL
-46
NULL

skipif mysql # not compatible
query II rowsort label-4092
SELECT ALL - 46, - col1 * + - col2 / - + CAST ( NULL AS INTEGER ) + - col0 + + + col2 * col2 + - col2 AS col0 FROM tab1 AS cor0
----
-46
NULL
-46
NULL
-46
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT ALL MAX( ALL 44 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
44

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL MAX ( ALL 44 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
44

query I rowsort
SELECT DISTINCT - 15 + - - col0 FROM tab0
----
0
72
82

onlyif mysql # aggregate syntax: 
query II rowsort label-4095
SELECT ALL + MAX( ALL + col1 ) * - - 68, 73 AS col0 FROM tab1 WHERE + col2 / ( - + col1 ) IS NOT NULL
----
3196
73

skipif mysql # not compatible
query II rowsort label-4095
SELECT ALL + MAX ( ALL + col1 ) * - - 68, 73 AS col0 FROM tab1 WHERE + col2 / ( - + col1 ) IS NOT NULL
----
3196
73

query I rowsort
SELECT DISTINCT + col1 - + col0 * - col1 AS col1 FROM tab0
----
1296
1848
98

query I rowsort
SELECT - + 50 FROM tab1 WHERE - + 93 IS NULL
----

query II rowsort
SELECT DISTINCT - 73 - 70, col1 AS col1 FROM tab1 AS cor0
----
-143
14
-143
47
-143
5

query I rowsort
SELECT DISTINCT + col2 * - - ( + - 1 ) * - col0 FROM tab2 cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4100
SELECT DISTINCT - 37 - - col1 * ( + col1 ) * col0 * col0 + - col1 * CAST( - col0 AS SIGNED ) + + - col0 AS col2 FROM tab1
----
180928
18296878
510422

skipif mysql # not compatible
query I rowsort label-4100
SELECT DISTINCT - 37 - - col1 * ( + col1 ) * col0 * col0 + - col1 * CAST ( - col0 AS INTEGER ) + + - col0 AS col2 FROM tab1
----
180928
18296878
510422

query III rowsort
SELECT * FROM tab1 WHERE + 63 IS NULL
----

query I rowsort
SELECT - ( - 27 ) FROM tab2 cor0
----
27
27
27

query I rowsort
SELECT - + ( ( - col1 ) ) AS col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL + 90 AS col2 FROM tab1 cor0
----
90
90
90

query I rowsort
SELECT DISTINCT + - 39 * + 30 * - + ( + col0 ) * - col1 FROM tab0 AS cor0
----
-113490
-1421550
-2137590

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT DISTINCT - SUM( - + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4106
SELECT DISTINCT - SUM ( - + col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT + MIN( 74 ) AS col1 FROM tab1 cor0
----
74

skipif mysql # not compatible
query I rowsort label-4107
SELECT + MIN ( 74 ) AS col1 FROM tab1 cor0
----
74

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 <> NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4109
SELECT CAST( + col2 AS SIGNED ) * + col2 AS col1 FROM tab1
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-4109
SELECT CAST ( + col2 AS INTEGER ) * + col2 AS col1 FROM tab1
----
3481
4624
9216

onlyif mysql # DIV for integer division: 
query I rowsort label-4110
SELECT col0 DIV 92 DIV - - col1 * + ( col2 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4110
SELECT col0 / 92 / - - col1 * + ( col2 ) FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4111
SELECT ALL + 20 DIV - col1 FROM tab0
----
-20
0
0

skipif mysql # not compatible
query I rowsort label-4111
SELECT ALL + 20 / - col1 FROM tab0
----
-20
0
0

query I rowsort
SELECT ALL + + col0 AS col2 FROM tab2 WHERE NOT - 54 * - - 78 + + 6 + - + col2 - + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT ALL + COUNT( ALL - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL + COUNT ( ALL - col1 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT + - 66 + - COUNT( * ) FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4114
SELECT + - 66 + - COUNT ( * ) FROM tab2 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT - COUNT( * ) + - - SUM( + 45 ) AS col0 FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-4115
SELECT - COUNT ( * ) + - - SUM ( + 45 ) AS col0 FROM tab2
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-4116
SELECT ALL + 89 AS col1, + COUNT( * ) + - MAX( - col1 ) FROM tab2
----
89
54

skipif mysql # not compatible
query II rowsort label-4116
SELECT ALL + 89 AS col1, + COUNT ( * ) + - MAX ( - col1 ) FROM tab2
----
89
54

query I rowsort
SELECT + 63 + + - col1 AS col1 FROM tab1
----
16
49
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4118
SELECT + ( - 15 ) * MAX( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4118
SELECT + ( - 15 ) * MAX ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT 64 * + col1 AS col0 FROM tab1
----
3008
320
896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT - SUM( ALL + - col0 ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-4121
SELECT - SUM ( ALL + - col0 ) AS col0 FROM tab1
----
227

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col0 - - + col1 + + col0 AND NULL
----

query I rowsort
SELECT DISTINCT - 87 AS col0 FROM tab2 cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4124
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col1 - 26 AS col1 FROM tab2 AS cor0
----
25
41
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT ALL - SUM( ALL + ( + col1 ) ) + COUNT( * ) + - 47 AS col2 FROM tab0
----
-147

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL - SUM ( ALL + ( + col1 ) ) + COUNT ( * ) + - 47 AS col2 FROM tab0
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT COUNT( * ) + + COUNT( * ) + + MAX( + col0 ) * 83 AS col1 FROM tab2
----
6231

skipif mysql # not compatible
query I rowsort label-4127
SELECT COUNT ( * ) + + COUNT ( * ) + + MAX ( + col0 ) * 83 AS col1 FROM tab2
----
6231

query III rowsort
SELECT * FROM tab2 WHERE - - 69 - - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT + 91 * + - COUNT( * ) + - COUNT( * ) + + 96 AS col0 FROM tab2
----
-180

skipif mysql # not compatible
query I rowsort label-4129
SELECT + 91 * + - COUNT ( * ) + - COUNT ( * ) + + 96 AS col0 FROM tab2
----
-180

query I rowsort
SELECT 35 + col1 AS col0 FROM tab2
----
102
112
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, - col2 + + - col1 col1 FROM tab1
----
59
-64
68
-115
96
-110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4132
SELECT - 72 * - + col0 * - 78 FROM tab0 cor0 WHERE CAST( - CAST( + col2 AS SIGNED ) AS SIGNED ) + - col0 * col0 IS NOT NULL
----
-488592
-544752
-84240

skipif mysql # not compatible
query I rowsort label-4132
SELECT - 72 * - + col0 * - 78 FROM tab0 cor0 WHERE CAST ( - CAST ( + col2 AS INTEGER ) AS INTEGER ) + - col0 * col0 IS NOT NULL
----
-488592
-544752
-84240

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT ALL 11 * COUNT( * ) FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL 11 * COUNT ( * ) FROM tab0 AS cor0
----
33

query I rowsort
SELECT - col0 * 97 AS col0 FROM tab2
----
-4462
-6208
-7275

query I rowsort
SELECT DISTINCT + - 0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT ALL + + col0 FROM tab0 AS cor0 WHERE - col1 + - + 33 * - 22 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4137
SELECT ALL * FROM tab0 cor0 WHERE col2 / + 10 + - + col1 + - + CAST( NULL AS SIGNED ) + - col2 * + col1 / - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4137
SELECT ALL * FROM tab0 cor0 WHERE col2 / + 10 + - + col1 + - + CAST ( NULL AS INTEGER ) + - col2 * + col1 / - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT ALL + SUM( DISTINCT + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL + SUM ( DISTINCT + col2 ) FROM tab0 AS cor0
----
156

query I rowsort
SELECT col0 * 69 FROM tab1 AS cor0
----
3519
5865
6279

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT DISTINCT + 3 * COUNT( * ) FROM tab0 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT + 3 * COUNT ( * ) FROM tab0 AS cor0 WHERE col1 IS NULL
----
0

query II rowsort
SELECT DISTINCT col2 * col0, + 91 AS col0 FROM tab1 AS cor0
----
4896
91
5015
91
6188
91

query I rowsort
SELECT DISTINCT 51 AS col2 FROM tab0 AS cor0
----
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 80 AND 48 + + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT - ( + COUNT( * ) ) * - - COUNT( * ) + SUM( - col2 ) col0 FROM tab1 WHERE NOT + 16 * ( - 8 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4144
SELECT - ( + COUNT ( * ) ) * - - COUNT ( * ) + SUM ( - col2 ) col0 FROM tab1 WHERE NOT + 16 * ( - 8 ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4145
SELECT DISTINCT col2 * + CAST( NULL AS SIGNED ) / - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4145
SELECT DISTINCT col2 * + CAST ( NULL AS INTEGER ) / - col0 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 72 BETWEEN NULL AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE NOT - 61 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4147
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT - 61 IS NULL
----
3

query II rowsort
SELECT - col0, 66 + col1 AS col1 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4149
SELECT + 40 DIV + 82 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4149
SELECT + 40 / + 82 FROM tab1
----
0
0
0

query I rowsort
SELECT - 7 * + col2 FROM tab2
----
-161
-280
-406

query II rowsort
SELECT + 98, 68 * - + 91 AS col1 FROM tab1 AS cor0
----
98
-6188
98
-6188
98
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT DISTINCT - + MAX( DISTINCT + col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4152
SELECT DISTINCT - + MAX ( DISTINCT + col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4153
SELECT ( CAST( + COUNT( * ) AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4153
SELECT ( CAST ( + COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > col1 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4155
SELECT + col1, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-4155
SELECT + col1, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT + COUNT( DISTINCT - col1 ) col1 FROM tab1 WHERE + col0 * 38 * + 72 + - 61 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4156
SELECT + COUNT ( DISTINCT - col1 ) col1 FROM tab1 WHERE + col0 * 38 * + 72 + - 61 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4158
SELECT ALL - CAST( NULL AS SIGNED ) * + + 76 AS col1 FROM tab0 AS cor0 WHERE - 74 * + + 86 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL - CAST ( NULL AS INTEGER ) * + + 76 AS col1 FROM tab0 AS cor0 WHERE - 74 * + + 86 IS NULL
----

query I rowsort
SELECT - col2 + + 46 AS col2 FROM tab1 AS cor0
----
-13
-22
-50

query I rowsort
SELECT - - col1 + - 4 + col0 FROM tab1 AS cor0
----
134
61
86

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= - col0
----

query I rowsort
SELECT + 20 + + 42 AS col0 FROM tab0 AS cor0
----
62
62
62

query I rowsort
SELECT ALL - col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - ( 1 ) FROM tab1 AS cor0
----
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4166
SELECT DISTINCT - col2 + - - col0 DIV + col1 + + ( col1 ) AS col0 FROM tab1
----
-20
-37
-79

skipif mysql # not compatible
query I rowsort label-4166
SELECT DISTINCT - col2 + - - col0 / + col1 + + ( col1 ) AS col0 FROM tab1
----
-20
-37
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-4167
SELECT DISTINCT 3 DIV - + col2 * + col1 + - ( + col2 ) * 73 FROM tab1
----
-4307
-4964
-7008

skipif mysql # not compatible
query I rowsort label-4167
SELECT DISTINCT 3 / - + col2 * + col1 + - ( + col2 ) * 73 FROM tab1
----
-4307
-4964
-7008

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE + col2 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - col2 - + + 0 AS col1 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 + col2 * col2 IN ( + col0 * - 75 * - + 15 * + 34 )
----

query I rowsort
SELECT + col2 * - 76 - + col0 FROM tab2
----
-1794
-3104
-4483

query I rowsort
SELECT + col1 - - ( + col1 ) * - col2 AS col1 FROM tab0
----
-189
-3726
-98

query II rowsort
SELECT ALL 13 - - 40 * + + col1 AS col2, col1 FROM tab1
----
1893
47
213
5
573
14

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) < + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4175
SELECT ALL 42 / - CAST( NULL AS SIGNED ) - - col2 + + col0 AS col2 FROM tab0 AS cor0 WHERE col1 * CAST( NULL AS SIGNED ) IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-4175
SELECT ALL 42 / - CAST ( NULL AS INTEGER ) - - col2 + + col0 AS col2 FROM tab0 AS cor0 WHERE col1 * CAST ( NULL AS INTEGER ) IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - 46 - - col1
----
0

skipif mysql # not compatible
query I rowsort label-4176
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - 46 - - col1
----
0

query I rowsort
SELECT DISTINCT col0 * col1 * - col2 - - 57 FROM tab1 AS cor0
----
-25018
-290779
-68487

query I rowsort
SELECT col2 * + col2 * - col0 FROM tab0
----
-33135
-8700
-950697

query II rowsort
SELECT 65 * - - col0 AS col2, - col0 FROM tab0
----
5655
-87
6305
-97
975
-15

query I rowsort
SELECT DISTINCT + 28 FROM tab2 AS cor0 WHERE NOT - 50 + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 24 <> ( col1 ) + 56
----

query I rowsort
SELECT DISTINCT - 36 AS col2 FROM tab1 AS cor0 WHERE ( NOT ( - - col0 * - - col2 * col1 + + 9 ) >= NULL )
----

query I rowsort
SELECT DISTINCT + col1 * + 13 FROM tab1 AS cor0
----
182
611
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4184
SELECT DISTINCT - col1 DIV - - col2 col1 FROM tab0 cor0
----
-1
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4184
SELECT DISTINCT - col1 / - - col2 col1 FROM tab0 cor0
----
-1
-2
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4185
SELECT ALL - 76 DIV + - COUNT( * ) AS col0 FROM tab2 cor0
----
25

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL - 76 / + - COUNT ( * ) AS col0 FROM tab2 cor0
----
25

query II rowsort
SELECT ALL + + col0, + 23 FROM tab2 AS cor0
----
46
23
64
23
75
23

query II rowsort
SELECT ALL + col2 * + col1, - 91 AS col1 FROM tab2 cor0
----
1173
-91
3080
-91
3886
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT ALL + + MAX( col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL + + MAX ( col0 ) FROM tab1 AS cor0
----
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 13 + + 11 > + col2
----
15
81
47
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 58 ) * col0 col2 FROM tab0
----
5046
5626
870

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4191
SELECT DISTINCT * FROM tab0 WHERE NULL < CAST( + 68 AS SIGNED ) / + col2 + col0
----

skipif mysql # not compatible
query III rowsort label-4191
SELECT DISTINCT * FROM tab0 WHERE NULL < CAST ( + 68 AS INTEGER ) / + col2 + col0
----

query I rowsort
SELECT DISTINCT - col1 * - ( col1 ) FROM tab1
----
196
2209
25

query I rowsort
SELECT + col1 * - + col1 FROM tab1
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT ALL + MAX( - col2 ) FROM tab1 WHERE NOT NULL >= + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL + MAX ( - col2 ) FROM tab1 WHERE NOT NULL >= + 96
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 86 IS NULL
----

query I rowsort
SELECT DISTINCT 57 FROM tab1 AS cor0 WHERE NULL IS NULL
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-4197
SELECT DISTINCT - ( - COUNT( * ) ) AS col1, COUNT( * ) FROM tab2, tab1 AS cor0
----
9
9

skipif mysql # not compatible
query II rowsort label-4197
SELECT DISTINCT - ( - COUNT ( * ) ) AS col1, COUNT ( * ) FROM tab2, tab1 AS cor0
----
9
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4198
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query II rowsort
SELECT - 42 AS col1, col0 FROM tab0
----
-42
15
-42
87
-42
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT ALL - MIN( col2 ) + COUNT( * ) FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-4200
SELECT ALL - MIN ( col2 ) + COUNT ( * ) FROM tab0
----
-7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 35 + + - col0 IN ( + col2, col0, 9 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT ALL + SUM( - col0 ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL + SUM ( - col0 ) AS col2 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT - 93 - + SUM( DISTINCT + 95 ) AS col0 FROM tab0 AS cor0
----
-188

skipif mysql # not compatible
query I rowsort label-4203
SELECT - 93 - + SUM ( DISTINCT + 95 ) AS col0 FROM tab0 AS cor0
----
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT - 99 + COUNT( * ) col1 FROM tab0 cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4204
SELECT - 99 + COUNT ( * ) col1 FROM tab0 cor0
----
-96

query I rowsort
SELECT + 2 + + 43 - + + ( 40 ) FROM tab1 AS cor0
----
5
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col2 + - col1 col1 FROM tab0
----
-121
-2290
-9802

query I rowsort
SELECT 57 * + col2 + - col0 * - + 75 FROM tab2
----
4761
7080
8931

query III rowsort
SELECT ALL * FROM tab1 WHERE 5 * + col2 - - 10 BETWEEN - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4209
SELECT DISTINCT - col0 + col1 DIV + - 72 * col0 + + 94 FROM tab1
----
3
43
9

skipif mysql # not compatible
query I rowsort label-4209
SELECT DISTINCT - col0 + col1 / + - 72 * col0 + + 94 FROM tab1
----
3
43
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 - - col1 NOT IN ( - + col1 * 53 / + + col2, ( 18 ), + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 cor0 WHERE NOT 88 + + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * + col1 - - ( + col2 ) IN ( + col0, col1, - + col0, col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( + ( - + 88 ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> 42
----

query I rowsort
SELECT DISTINCT - col2 + - col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - 59
----

query I rowsort
SELECT + + ( + 93 ) AS col2 FROM tab2 AS cor0
----
93
93
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4218
SELECT DISTINCT - col1 DIV ( col1 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT - col1 / ( col1 ) FROM tab2 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4219
SELECT - 89 DIV - 76 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4219
SELECT - 89 / - 76 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT + SUM( ALL + + col1 ) * + 18 AS col2 FROM tab1 AS cor0
----
1188

skipif mysql # not compatible
query I rowsort label-4220
SELECT + SUM ( ALL + + col1 ) * + 18 AS col2 FROM tab1 AS cor0
----
1188

query II rowsort
SELECT col2, + col1 * - 87 * + col0 + 14 AS col0 FROM tab2 AS cor0
----
23
-204088
40
-428722
58
-437161

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + - 7 ) IS NULL
----

query I rowsort
SELECT ALL + 84 AS col2 FROM tab0 cor0
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT ALL + + MAX( - col2 ) + ( - COUNT( * ) ) FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL + + MAX ( - col2 ) + ( - COUNT ( * ) ) FROM tab2 AS cor0
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-4225
SELECT col2 DIV + col0 + - 62 - + + 75 * + 71 FROM tab0
----
-5384
-5386
-5387

skipif mysql # not compatible
query I rowsort label-4225
SELECT col2 / + col0 + - 62 - + + 75 * + 71 FROM tab0
----
-5384
-5386
-5387

query II rowsort
SELECT DISTINCT 21, col1 FROM tab0
----
21
1
21
21
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 91 + - - col1 / 31 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = - - ( 32 )
----

query I rowsort
SELECT col0 * + 55 FROM tab1
----
2805
4675
5005

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4230
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4230
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4231
SELECT ALL COUNT( * ), 37 AS col0 FROM tab2 AS cor0
----
3
37

skipif mysql # not compatible
query II rowsort label-4231
SELECT ALL COUNT ( * ), 37 AS col0 FROM tab2 AS cor0
----
3
37

query I rowsort
SELECT ALL - ( - - AVG ( + + 67 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 17, + ( col0 ), - - 87, col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT + ( - + 62 ) + + + COUNT( * ) AS col1 FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-4233
SELECT + ( - + 62 ) + + + COUNT ( * ) AS col1 FROM tab2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT - 99 + + + COUNT( + col0 ) AS col2 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4234
SELECT - 99 + + + COUNT ( + col0 ) AS col2 FROM tab0 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT DISTINCT + - 0 + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= col1 + + + 47 + + col0 * + 58 * col1
----
0

skipif mysql # not compatible
query I rowsort label-4235
SELECT DISTINCT + - 0 + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= col1 + + + 47 + + col0 * + 58 * col1
----
0

query II rowsort
SELECT + + col0 + - + 78 * + - 72, - col0 * + 99 AS col2 FROM tab2 AS cor0
----
5662
-4554
5680
-6336
5691
-7425

query I rowsort
SELECT ALL - - 64 - + 11 FROM tab2 AS cor0
----
53
53
53

query I rowsort
SELECT DISTINCT + 81 AS col1 FROM tab1 cor0
----
81

query I rowsort
SELECT DISTINCT - + 86 AS col0 FROM tab0 AS cor0
----
-86

query I rowsort
SELECT ( - col0 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL = NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT DISTINCT - MAX( ALL - col0 ) * + COUNT( * ) col2 FROM tab2 cor0
----
138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4241
SELECT DISTINCT - MAX ( ALL - col0 ) * + COUNT ( * ) col2 FROM tab2 cor0
----
138

query I rowsort
SELECT ALL + - col1 - - + col2 * col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 49 AND + 35 * + col1 + + - col1 - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT - 72 * + - COUNT( DISTINCT 32 ) FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-4243
SELECT - 72 * + - COUNT ( DISTINCT 32 ) FROM tab0 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT - MAX( ALL col0 ) - COUNT( * ) + COUNT( * ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-4244
SELECT - MAX ( ALL col0 ) - COUNT ( * ) + COUNT ( * ) FROM tab0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4245
SELECT DISTINCT * FROM tab0 WHERE - ( col2 ) <= - col2 + col1 + - CAST( - col2 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4245
SELECT DISTINCT * FROM tab0 WHERE - ( col2 ) <= - col2 + col1 + - CAST ( - col2 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4246
SELECT DISTINCT COUNT( * ) + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4246
SELECT DISTINCT COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 19 col1 FROM tab2
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT MAX( ALL 32 ) AS col1 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-4248
SELECT MAX ( ALL 32 ) AS col1 FROM tab1
----
32

query II rowsort
SELECT col0 AS col0, 57 FROM tab0
----
15
57
87
57
97
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT - COUNT( ALL 94 ) FROM tab2 WHERE NOT NULL NOT BETWEEN + col1 / + col0 - col1 + + 9 - - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4250
SELECT - COUNT ( ALL 94 ) FROM tab2 WHERE NOT NULL NOT BETWEEN + col1 / + col0 - col1 + + 9 - - col0 AND NULL
----
0

query I rowsort
SELECT ALL col2 * col1 * - col1 AS col1 FROM tab2
----
-237160
-260362
-59823

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE 30 * - col1 <> col2
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4253
SELECT + 0 * - - col0 + - col2 DIV + 51 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4253
SELECT + 0 * - - col0 + - col2 / + 51 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4254
SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 80 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( col1 ) * col2 * + 24 - - 74 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4257
SELECT - ( - + CAST( CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4257
SELECT - ( - + CAST ( CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4258
SELECT ALL - MAX( 9 ) + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL - MAX ( 9 ) + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL - 0 + 62 FROM tab0
----
62
62
62

query I rowsort
SELECT DISTINCT - ( ( + ( - 98 ) ) ) + - - 84 FROM tab2
----
182

query II rowsort
SELECT col2 AS col2, - 75 AS col1 FROM tab0
----
10
-75
47
-75
99
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT 41 + - + COUNT( * ) * - 81 FROM tab2
----
284

skipif mysql # not compatible
query I rowsort label-4262
SELECT 41 + - + COUNT ( * ) * - 81 FROM tab2
----
284

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4263
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - - CAST( - + 38 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4263
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - - CAST ( - + 38 AS INTEGER ) AND NULL
----

query I rowsort
SELECT 28 + + - col2 AS col0 FROM tab0 AS cor0
----
-19
-71
18

query II rowsort
SELECT DISTINCT - 15, col1 AS col1 FROM tab0 AS cor0
----
-15
1
-15
21
-15
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4266
SELECT ALL COUNT( * ) + - MAX( + + col0 ) / + 58 * + CAST( NULL AS DECIMAL ) - + - 5 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL COUNT ( * ) + - MAX ( + + col0 ) / + 58 * + CAST ( NULL AS REAL ) - + - 5 AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT DISTINCT + COUNT( * ) + + 27 AS col0 FROM tab0 cor0
----
30

skipif mysql # not compatible
query I rowsort label-4267
SELECT DISTINCT + COUNT ( * ) + + 27 AS col0 FROM tab0 cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT ALL COUNT( * ) * ( - 17 ) + - SUM( DISTINCT 44 ) - - 2 + - + 75 AS col2 FROM tab0 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL COUNT ( * ) * ( - 17 ) + - SUM ( DISTINCT 44 ) - - 2 + - + 75 AS col2 FROM tab0 AS cor0
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4269
SELECT - + col1 / + 79 * - col2 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4269
SELECT - + col1 / + 79 * - col2 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 IS NULL AND NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT MIN( - - 13 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4271
SELECT MIN ( - - 13 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT ALL col0 AS col1, 49 FROM tab1 AS cor0
----
51
49
85
49
91
49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 <> - + 50
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT DISTINCT - COUNT( * ) * 93 AS col0 FROM tab1 cor0
----
-279

skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT - COUNT ( * ) * 93 AS col0 FROM tab1 cor0
----
-279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4275
SELECT CAST( NULL AS SIGNED ) + + - 53 + col2 + + + col1 + 34 + + 52 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4275
SELECT CAST ( NULL AS INTEGER ) + + - 53 + col2 + + + col1 + 34 + + 52 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4276
SELECT + - 76 DIV + col2 + - col0 * - 28 + - - 73 FROM tab1 AS cor0
----
1501
2452
2620

skipif mysql # not compatible
query I rowsort label-4276
SELECT + - 76 / + col2 + - col0 * - 28 + - - 73 FROM tab1 AS cor0
----
1501
2452
2620

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4277
SELECT + - col0 + + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4277
SELECT + - col0 + + + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 < + col2 * + col1 + + 7
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4279
SELECT + MIN( + col2 ) * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4279
SELECT + MIN ( + col2 ) * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4280
SELECT col2 * CAST( + col2 AS SIGNED ) DIV - - 14 col0 FROM tab0
----
157
7
700

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4280
SELECT col2 * CAST ( + col2 AS INTEGER ) / - - 14 col0 FROM tab0
----
157
7
700

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 WHERE 81 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4282
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( - 75 AS SIGNED ) * col2 + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4282
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( - 75 AS INTEGER ) * col2 + col2 IS NOT NULL
----

query I rowsort
SELECT - ( - + 43 ) FROM tab0 AS cor0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT ALL + SUM( col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL + SUM ( col2 ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT DISTINCT 84 * col2 AS col2 FROM tab2 AS cor0
----
1932
3360
4872

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < + col1
----

query I rowsort
SELECT - col0 * + 59 AS col1 FROM tab2
----
-2714
-3776
-4425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + ( - - col1 ) ) * - 65 * + 29 col2 FROM tab0 AS cor0
----
-152685
-1885
-39585

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

query I rowsort
SELECT - + col1 * col1 * - - 47 + + - 88 AS col1 FROM tab2 AS cor0
----
-122335
-211071
-278751

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL = - col2
----

query II rowsort
SELECT DISTINCT col1 AS col0, - col1 AS col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT ALL + MIN( + + 70 ) AS col0 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL + MIN ( + + 70 ) AS col0 FROM tab1 AS cor0
----
70

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT DISTINCT - 2 * + - 59 + - COUNT( * ) AS col0 FROM tab1
----
115

skipif mysql # not compatible
query I rowsort label-4295
SELECT DISTINCT - 2 * + - 59 + - COUNT ( * ) AS col0 FROM tab1
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT DISTINCT + 11 + + + COUNT( * ) AS col1 FROM tab1 WHERE NULL < - col1 / + col1 * + col2
----
11

skipif mysql # not compatible
query I rowsort label-4296
SELECT DISTINCT + 11 + + + COUNT ( * ) AS col1 FROM tab1 WHERE NULL < - col1 / + col1 * + col2
----
11

query I rowsort
SELECT DISTINCT 0 + + 76 + - col2 AS col2 FROM tab2
----
18
36
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 1 col0 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT - ( + ( + 78 ) ) * col2 * 68 + - + 23 AS col1 FROM tab2
----
-122015
-212183
-307655

query I rowsort
SELECT ALL - 39 + + 11 + + col2 * - - col0 * - - 24 * + - col0 AS col0 FROM tab1
----
-10230628
-13514620
-5992732

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - col1 col1 FROM tab0 AS cor0
----
210
3807
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT + COUNT( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4303
SELECT + COUNT ( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT ALL + - col1 - - + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT DISTINCT - COUNT( * ) - ( COUNT( col1 ) ) AS col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4305
SELECT DISTINCT - COUNT ( * ) - ( COUNT ( col1 ) ) AS col0 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT ALL + - ( col0 ) - + - 62 FROM tab1 AS cor0
----
-23
-29
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT DISTINCT + - 70 * + 42 * + COUNT( * ) AS col1 FROM tab0 cor0
----
-8820

skipif mysql # not compatible
query I rowsort label-4307
SELECT DISTINCT + - 70 * + 42 * + COUNT ( * ) AS col1 FROM tab0 cor0
----
-8820

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 - col0 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4309
SELECT ALL 36 DIV MAX( - + 38 ) col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4309
SELECT ALL 36 / MAX ( - + 38 ) col1 FROM tab1 AS cor0
----
0

query II rowsort
SELECT col1 * col0, + 3 AS col0 FROM tab0
----
1215
3
1827
3
97
3

query II rowsort
SELECT DISTINCT 95 AS col2, col2 * + 98 FROM tab2
----
95
2254
95
3920
95
5684

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4312
SELECT DISTINCT - COUNT( * ) DIV + COUNT( * ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4312
SELECT DISTINCT - COUNT ( * ) / + COUNT ( * ) FROM tab2
----
-1

query II rowsort
SELECT DISTINCT 30, - 0 * - - col0 * - - 62 AS col0 FROM tab1
----
30
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4314
SELECT ALL 85, - COUNT( * ) AS col2 FROM tab2
----
85
-3

skipif mysql # not compatible
query II rowsort label-4314
SELECT ALL 85, - COUNT ( * ) AS col2 FROM tab2
----
85
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT ALL + MAX( col1 ) * 20 FROM tab0
----
1620

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL + MAX ( col1 ) * 20 FROM tab0
----
1620

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 NOT IN ( + col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4317
SELECT DISTINCT * FROM tab0 WHERE CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4317
SELECT DISTINCT * FROM tab0 WHERE CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4318
SELECT - 39 DIV + 63 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4318
SELECT - 39 / + 63 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4319
SELECT - 6 DIV - - ( - COUNT( * ) ) AS col0 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-4319
SELECT - 6 / - - ( - COUNT ( * ) ) AS col0 FROM tab0
----
2

query I rowsort
SELECT DISTINCT ( - + col0 ) FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4321
SELECT DISTINCT ( - 23 ) DIV 64 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4321
SELECT DISTINCT ( - 23 ) / 64 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL ( - col0 ) AS col2, - 88 / + + 29 * col1 * - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4323
SELECT ALL col1 DIV - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL col1 / - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-1
0

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NULL = + 55 + - - 15 / - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT ALL - - MAX( - + col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4325
SELECT ALL - - MAX ( - + col1 ) FROM tab1 AS cor0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4326
SELECT 51 DIV + col0 - - col0 AS col1 FROM tab1 AS cor0
----
52
85
91

skipif mysql # not compatible
query I rowsort label-4326
SELECT 51 / + col0 - - col0 AS col1 FROM tab1 AS cor0
----
52
85
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4327
SELECT - AVG ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE CAST( - 64 AS DECIMAL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4327
SELECT - AVG ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE CAST ( - 64 AS REAL ) IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4328
SELECT + col2 AS col2, + col0 DIV + col2 AS col0 FROM tab2
----
23
2
40
1
58
1

skipif mysql # not compatible
query II rowsort label-4328
SELECT + col2 AS col2, + col0 / + col2 AS col0 FROM tab2
----
23
2
40
1
58
1

query II rowsort
SELECT DISTINCT col2 AS col0, col1 AS col0 FROM tab0
----
10
21
47
81
99
1

query II rowsort
SELECT DISTINCT col2 + + col1 + - + col1 AS col0, - col2 FROM tab2
----
23
-23
40
-40
58
-58

query III rowsort
SELECT * FROM tab2 WHERE - + 74 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + - 97 AS col0 FROM tab0
----
-16
-76
-96

query I rowsort
SELECT ALL col0 * - + col2 + - - 61 * - + col2 * col2 AS col1 FROM tab0
----
-135454
-607464
-6970

query I rowsort
SELECT DISTINCT - + col2 + col1 FROM tab2 WHERE NOT 81 <> + 19 + + + col0 + + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4335
SELECT ALL COUNT( * ) + + + CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4335
SELECT ALL COUNT ( * ) + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * - col0 col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT ALL + + 1 + + - col2 FROM tab1 AS cor0
----
-58
-67
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT ALL + COUNT( * ) * - 88 FROM tab1
----
-264

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL + COUNT ( * ) * - 88 FROM tab1
----
-264

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> ( - col0 * col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4340
SELECT DISTINCT 97 * CAST( - SUM( ALL col2 ) * COUNT( * ) AS SIGNED ) FROM tab0
----
-45396

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT 97 * CAST ( - SUM ( ALL col2 ) * COUNT ( * ) AS INTEGER ) FROM tab0
----
-45396

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT + 43 + COUNT( * ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-4341
SELECT + 43 + COUNT ( * ) FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT ALL + COUNT( * ) * - 6 AS col2 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-4342
SELECT ALL + COUNT ( * ) * - 6 AS col2 FROM tab1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4343
SELECT ( ( - col1 ) ) FROM tab0 WHERE ( NULL ) <= ( + 79 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4343
SELECT ( ( - col1 ) ) FROM tab0 WHERE ( NULL ) <= ( + 79 * - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT ALL + COUNT( * ) FROM tab0 WHERE NULL NOT IN ( + col0 - + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NULL NOT IN ( + col0 - + col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4345
SELECT - col2 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN col1 AND CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4345
SELECT - col2 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN col1 AND CAST ( col1 AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE ( col2 + + col1 ) = ( + col0 )
----

query I rowsort
SELECT col2 + 21 FROM tab0
----
120
31
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col1 col0 FROM tab2 WHERE - 34 > - col0 / col1
----

query I rowsort
SELECT 28 + col1 FROM tab1
----
33
42
75

query III rowsort
SELECT * FROM tab0 WHERE ( 32 ) * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT ALL ( MIN( ALL + 43 ) ) + - 99 AS col1 FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-4351
SELECT ALL ( MIN ( ALL + 43 ) ) + - 99 AS col1 FROM tab1
----
-56

query III rowsort
SELECT * FROM tab0 WHERE NOT 26 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 * col2 BETWEEN + 61 AND col0 * col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4354
SELECT - CAST( - COUNT( * ) AS SIGNED ) - 69 AS col0 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-4354
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) - 69 AS col0 FROM tab0
----
-66

query I rowsort
SELECT + ( ( + col0 ) ) AS col1 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT - SUM( 55 ) FROM tab2
----
-165

skipif mysql # not compatible
query I rowsort label-4356
SELECT - SUM ( 55 ) FROM tab2
----
-165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4357
SELECT + SUM( CAST( 44 AS SIGNED ) ) AS col0 FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-4357
SELECT + SUM ( CAST ( 44 AS INTEGER ) ) AS col0 FROM tab2
----
132

query I rowsort
SELECT DISTINCT col2 / col2 + + col1 FROM tab0 WHERE NOT NULL = ( + ( + col1 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 * ( - col2 ) + + col0 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 26 * - col0 col0 FROM tab2
----
-1145
-1587
-1883

query I rowsort
SELECT - 5 - - col1 AS col0 FROM tab2
----
46
62
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT 68 - + MIN( - col0 ) AS col1 FROM tab0
----
165

skipif mysql # not compatible
query I rowsort label-4362
SELECT 68 - + MIN ( - col0 ) AS col1 FROM tab0
----
165

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) IN ( 51 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4364
SELECT ALL + CAST( - 30 AS SIGNED ) * - 26 FROM tab1 cor0
----
780
780
780

skipif mysql # not compatible
query I rowsort label-4364
SELECT ALL + CAST ( - 30 AS INTEGER ) * - 26 FROM tab1 cor0
----
780
780
780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4365
SELECT ALL ( - CAST( 34 AS SIGNED ) ) FROM tab2 AS cor0 WHERE ( - 66 * - col1 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL ( - CAST ( 34 AS INTEGER ) ) FROM tab2 AS cor0 WHERE ( - 66 * - col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4366
SELECT ALL 76 DIV - col0 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL 76 / - col0 FROM tab1 cor0
----
-1
0
0

query I rowsort
SELECT - 70 AS col2 FROM tab0 cor0
----
-70
-70
-70

query I rowsort
SELECT - 58 + ( - 49 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to f2eff2e271bc09dea2510ed6bb28e960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4369
SELECT DISTINCT col0 * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4369
SELECT DISTINCT col0 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + 58 - col0 NOT BETWEEN ( 38 / col1 + + col1 ) AND col1 * 72
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4371
SELECT col2 DIV - 58 + + col1 * 3 FROM tab1
----
14
140
41

skipif mysql # not compatible
query I rowsort label-4371
SELECT col2 / - 58 + + col1 * 3 FROM tab1
----
14
140
41

query I rowsort
SELECT col1 + + 54 AS col0 FROM tab2 AS cor0
----
105
121
131

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 94 >= col0 * - col0 - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 52 * col2 + + 36 col0 FROM tab2 AS cor0
----
-1160
-2044
-2980

query I rowsort
SELECT DISTINCT - - 6 AS col2 FROM tab1 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4376
SELECT - col2 + 71 DIV - 98 AS col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4376
SELECT - col2 + 71 / - 98 AS col2 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - col0 > + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT ALL + + COUNT( DISTINCT col2 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL + + COUNT ( DISTINCT col2 ) FROM tab0 cor0
----
3

query I rowsort
SELECT - 8 / - col2 AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( + 18 )
----

query I rowsort
SELECT DISTINCT + 20 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT DISTINCT - 39 + - COUNT( * ) FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-4381
SELECT DISTINCT - 39 + - COUNT ( * ) FROM tab0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT DISTINCT 95 + + + 62 * - COUNT( * ) FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-4382
SELECT DISTINCT 95 + + + 62 * - COUNT ( * ) FROM tab0
----
-91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT MAX( ALL - col0 ) FROM tab2 WHERE ( 35 ) > ( + col1 ) - + 23
----
-46

skipif mysql # not compatible
query I rowsort label-4384
SELECT MAX ( ALL - col0 ) FROM tab2 WHERE ( 35 ) > ( + col1 ) - + 23
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT COUNT( - 16 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4385
SELECT COUNT ( - 16 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT + 12 + + - col0 AS col2 FROM tab2
----
-34
-52
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT + MIN( + - col2 ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-4387
SELECT + MIN ( + - col2 ) AS col1 FROM tab2
----
-58

query I rowsort
SELECT col1 - - col0 * - col0 FROM tab0
----
-144
-7548
-9408

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT - ( - 2 ) - COUNT( * ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4389
SELECT - ( - 2 ) - COUNT ( * ) AS col1 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT - - 8 - + col1 FROM tab2 AS cor0
----
-43
-59
-69

query I rowsort
SELECT + - col1 * + + col0 + 69 FROM tab0 AS cor0
----
-1146
-1758
-28

query I rowsort
SELECT DISTINCT - 7 + col2 / col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND ( col0 )
----

query I rowsort
SELECT col2 + + + 70 * - - col0 FROM tab0
----
1097
6100
6889

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT 19 * COUNT( ALL 76 + 10 * 53 ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
171

skipif mysql # not compatible
query I rowsort label-4394
SELECT 19 * COUNT ( ALL 76 + 10 * 53 ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
171

onlyif mysql # DIV for integer division: 
query II rowsort label-4395
SELECT ALL + col0, 98 DIV col2 * col0 FROM tab1
----
51
51
85
85
91
91

skipif mysql # not compatible
query II rowsort label-4395
SELECT ALL + col0, 98 / col2 * col0 FROM tab1
----
51
51
85
85
91
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT SUM( 36 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
324

skipif mysql # not compatible
query I rowsort label-4397
SELECT SUM ( 36 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
324

onlyif mysql # DIV for integer division: 
query I rowsort label-4398
SELECT - col2 * 5 DIV - col2 FROM tab2 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-4398
SELECT - col2 * 5 / - col2 FROM tab2 AS cor0
----
5
5
5

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( + col0 + - 6 ) IN ( - col2 )
----
14
47
5

query I rowsort
SELECT DISTINCT col0 + + 22 AS col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT + col1 + + col0 * col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 4 col2 FROM tab1 AS cor0 WHERE NOT + col1 * - + col2 BETWEEN - 2 AND ( 11 )
----
4
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 49 col2 FROM tab1 cor0
----
-49

query I rowsort
SELECT + col0 AS col0 FROM tab1 cor0 WHERE NOT 29 IS NOT NULL
----

query II rowsort
SELECT + col1 * + col0 AS col2, - 90 AS col0 FROM tab0
----
1215
-90
1827
-90
97
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT + MIN( DISTINCT - col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4406
SELECT + MIN ( DISTINCT - col1 ) FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT DISTINCT + SUM( ALL - 15 ) col0 FROM tab0
----
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4407
SELECT DISTINCT + SUM ( ALL - 15 ) col0 FROM tab0
----
-45

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE + col0 BETWEEN ( col0 - + col0 ) AND 38
----
47

query II rowsort
SELECT - col0 * + + 19, col2 FROM tab0
----
-1653
10
-1843
99
-285
47

query II rowsort
SELECT - ( + - 36 ), + col0 AS col1 FROM tab1
----
36
51
36
85
36
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 * col0 * + col1 IN ( - 78 - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT - ( - COUNT( DISTINCT col2 ) ) * 66 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-4412
SELECT - ( - COUNT ( DISTINCT col2 ) ) * 66 FROM tab1
----
198

query I rowsort
SELECT ALL col0 * + + col2 AS col1 FROM tab0
----
705
870
9603

query I rowsort
SELECT - 0 * + 43 FROM tab0
----
0
0
0

query I rowsort
SELECT ( + - 40 ) FROM tab2
----
-40
-40
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-4416
SELECT + + col1 DIV 75 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4416
SELECT + + col1 / 75 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - 66 * - + 65 FROM tab1 AS cor0
----
4290
4290
4290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4418
SELECT ALL 36 * + CAST( - 92 AS SIGNED ) + - col2 FROM tab0 cor0
----
-3322
-3359
-3411

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL 36 * + CAST ( - 92 AS INTEGER ) + - col2 FROM tab0 cor0
----
-3322
-3359
-3411

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4419
SELECT CAST( NULL AS SIGNED ) * - + 50 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4419
SELECT CAST ( NULL AS INTEGER ) * - + 50 col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + 25 AS col0 FROM tab1
----
1275
2125
2275

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 67 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4422
SELECT DISTINCT - col1 * - - CAST( NULL AS SIGNED ) / - col1 col2 FROM tab2 AS cor0 WHERE NOT - col0 > + col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4422
SELECT DISTINCT - col1 * - - CAST ( NULL AS INTEGER ) / - col1 col2 FROM tab2 AS cor0 WHERE NOT - col0 > + col1
----
NULL

query I rowsort
SELECT ALL 46 FROM tab2 AS cor0 WHERE NOT - col0 + - + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT DISTINCT + MAX( col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4424
SELECT DISTINCT + MAX ( col0 ) AS col1 FROM tab0 AS cor0
----
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 21 * + - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 53 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4427
SELECT - col0 DIV + + col0 + - col1 FROM tab2
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-4427
SELECT - col0 / + + col0 + - col1 FROM tab2
----
-52
-68
-78

query I rowsort
SELECT ALL col0 * - col2 * + 70 + - col1 AS col0 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT col2 * + - 8 + + col2 * + - col2 AS col2 FROM tab0
----
-10593
-180
-2585

query III rowsort
SELECT * FROM tab1 WHERE ( + 72 ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - 19 + - + 12 + + col1 * - 62 FROM tab0
----
-1333
-5053
-93

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < + ( col0 )
----

query II rowsort
SELECT - 47 AS col0, 60 FROM tab0 AS cor0
----
-47
60
-47
60
-47
60

query II rowsort
SELECT + col0, - ( + col1 ) AS col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4435
SELECT DISTINCT + col1 col2 FROM tab2 WHERE NOT CAST( + 65 AS DECIMAL ) + - 59 IS NULL
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4435
SELECT DISTINCT + col1 col2 FROM tab2 WHERE NOT CAST ( + 65 AS REAL ) + - 59 IS NULL
----
51
67
77

query I rowsort
SELECT ALL 50 AS col0 FROM tab1 cor0
----
50
50
50

query I rowsort
SELECT col1 + col0 * - 48 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - 73 AS col1 FROM tab2 AS cor0
----
-73
-73
-73

query I rowsort
SELECT ALL - ( ( 67 ) ) AS col2 FROM tab0 AS cor0
----
-67
-67
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 84 col0 FROM tab0 AS cor0
----
-84
-84
-84

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col2 > ( - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT DISTINCT + + ( + SUM( + col0 ) ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-4442
SELECT DISTINCT + + ( + SUM ( + col0 ) ) FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT + - MIN( - 34 ) * - 12 AS col0 FROM tab1 AS cor0
----
-408

skipif mysql # not compatible
query I rowsort label-4443
SELECT + - MIN ( - 34 ) * - 12 AS col0 FROM tab1 AS cor0
----
-408

query II rowsort
SELECT - 9 AS col2, - 25 FROM tab2
----
-9
-25
-9
-25
-9
-25

query I rowsort
SELECT DISTINCT - col1 + col2 + col0 + + 38 * + + col2 AS col0 FROM tab0
----
1767
3957
456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab2 WHERE NOT ( + - col1 ) IN ( - col0 / 73, + col1 )
----
51
67
77

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - ( - 93 ), - col0 * - 68 )
----

query I rowsort
SELECT DISTINCT - 0 * + col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4449
SELECT + col0 + - 9 AS col1 FROM tab0 cor0 WHERE NOT CAST( + 81 AS SIGNED ) IS NULL
----
6
78
88

skipif mysql # not compatible
query I rowsort label-4449
SELECT + col0 + - 9 AS col1 FROM tab0 cor0 WHERE NOT CAST ( + 81 AS INTEGER ) IS NULL
----
6
78
88

query I rowsort
SELECT 90 * 6 FROM tab1 cor0 WHERE NOT ( - ( + 49 ) / + - 25 * + - 30 * + - ( - col0 ) ) NOT IN ( col2 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT DISTINCT - SUM( DISTINCT 16 ) FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-4451
SELECT DISTINCT - SUM ( DISTINCT 16 ) FROM tab2 AS cor0
----
-16

onlyif mysql # DIV for integer division: 
query II rowsort label-4452
SELECT ALL col1, + col2 DIV - 98 AS col0 FROM tab1 AS cor0
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-4452
SELECT ALL col1, + col2 / - 98 AS col0 FROM tab1 AS cor0
----
14
0
47
0
5
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= + + 45 * - + col1 * - - col0 * - col0
----

query II rowsort
SELECT ALL col2 + 94, col2 FROM tab1
----
153
59
162
68
190
96

query I rowsort
SELECT ALL 30 * - col2 + - + 59 FROM tab0
----
-1469
-3029
-359

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4456
SELECT COUNT( * ) + CAST( NULL AS SIGNED ) + + ( 83 ) FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4456
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) + + ( 83 ) FROM tab1, tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4457
SELECT + COUNT( * ) + - 54 * + - COUNT( * ) / - - CAST( NULL AS SIGNED ) + - - COUNT( * ) * - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4457
SELECT + COUNT ( * ) + - 54 * + - COUNT ( * ) / - - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) * - COUNT ( * ) FROM tab0
----
NULL

query II rowsort
SELECT - col0 + + + col1 AS col1, col2 AS col1 FROM tab1
----
-37
96
-44
68
-80
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4459
SELECT DISTINCT - CAST( NULL AS SIGNED ) - COUNT( * ) AS col2 FROM tab2, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col2 FROM tab2, tab2 AS cor0
----
NULL

query I rowsort
SELECT + - col0 + + - 31 * 80 + - col0 * + col2 + + + col2 FROM tab1 cor0
----
-7331
-7521
-8691

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT ALL MAX( 27 ) AS col1 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL MAX ( 27 ) AS col1 FROM tab0 AS cor0
----
27

query I rowsort
SELECT + col1 * col2 + - + 65 * col0 AS col2 FROM tab0 AS cor0
----
-5445
-6206
2832

query I rowsort
SELECT ALL + ( 70 ) FROM tab2 AS cor0
----
70
70
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4464
SELECT - + CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4464
SELECT - + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4465
SELECT CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NULL BETWEEN - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4465
SELECT CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NULL BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4466
SELECT + ( - COUNT( * ) ) DIV + + COUNT( * ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4466
SELECT + ( - COUNT ( * ) ) / + + COUNT ( * ) AS col2 FROM tab1
----
-1

query I rowsort
SELECT col2 - + - col2 FROM tab0
----
198
20
94

query I rowsort
SELECT DISTINCT - col1 + + + col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT 54 - COUNT( * ) AS col1 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-4469
SELECT 54 - COUNT ( * ) AS col1 FROM tab0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4470
SELECT ALL 14 + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL 14 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + col2 ) - + - 26 FROM tab0
----
125
36
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 - col1 col1 FROM tab2
----
-13
-23
3

query I rowsort
SELECT ALL - 67 + - 60 AS col0 FROM tab0
----
-127
-127
-127

query I rowsort
SELECT + 20 - + 34 FROM tab2
----
-14
-14
-14

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - col2 + + - col0 * - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT DISTINCT - SUM( DISTINCT col1 ) AS col2 FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT - SUM ( DISTINCT col1 ) AS col2 FROM tab1 cor0
----
-66

query I rowsort
SELECT DISTINCT + 22 * col0 FROM tab2 cor0
----
1012
1408
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT - - 52 * - COUNT( * ) * + - 70 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
32760

skipif mysql # not compatible
query I rowsort label-4478
SELECT - - 52 * - COUNT ( * ) * + - 70 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
32760

query I rowsort
SELECT + col1 * + + 34 FROM tab0
----
2754
34
714

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4480
SELECT ALL + col0, CAST( NULL AS SIGNED ) - + col0 AS col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-4480
SELECT ALL + col0, CAST ( NULL AS INTEGER ) - + col0 AS col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

query II rowsort
SELECT + 36 AS col2, - col1 FROM tab2
----
36
-51
36
-67
36
-77

query I rowsort
SELECT DISTINCT + 64 AS col1 FROM tab0 AS cor0 WHERE ( 14 ) IS NOT NULL
----
64

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 NOT IN ( - + 59, 95 - + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT ALL + COUNT( ALL 50 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL + COUNT ( ALL 50 ) FROM tab1 cor0
----
3

query I rowsort
SELECT ALL + ( + + col1 ) + - + 67 AS col1 FROM tab0 AS cor0
----
-46
-66
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE + col0 IN ( - ( + col0 ) + - - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE + col0 IN ( - ( + col0 ) + - - col0 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 < ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4488
SELECT ALL COUNT( * ) + - COUNT( * ), - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4488
SELECT ALL COUNT ( * ) + - COUNT ( * ), - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT ALL COUNT( DISTINCT - - ( + col0 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL COUNT ( DISTINCT - - ( + col0 ) ) AS col2 FROM tab2
----
3

query I rowsort
SELECT col0 * - - 97 + + col0 + + - col1 FROM tab2
----
4457
6195
7283

query I rowsort
SELECT - col2 + - ( - ( 31 ) ) * + 4 FROM tab2 AS cor0 WHERE col0 <= ( - + col0 + + 38 * 79 + - + 5 + + col1 + - - 66 / + + col0 * - - 52 / - 9 )
----
101
66
84

query I rowsort
SELECT DISTINCT ( 99 ) + ( - 37 ) FROM tab1
----
62

query I rowsort
SELECT ALL + 5 + + 76 FROM tab0
----
81
81
81

query I rowsort
SELECT DISTINCT + + col2 - + 25 AS col0 FROM tab2 AS cor0
----
-2
15
33

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND - 30
----

query II rowsort
SELECT ALL - - col2 * + col2 * 81, col0 AS col1 FROM tab0 AS cor0
----
178929
15
793881
97
8100
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 + - + col0 col2 FROM tab1 AS cor0
----
-17
-51
-57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( 59 ) IS NULL )
----

query I rowsort
SELECT col0 + + ( - + col0 ) AS col1 FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col2 * + col2 IN ( + 69, - ( col0 ) - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 33 * - ( - - col0 ) AS col2 FROM tab1
----
1683
2805
3003

query II rowsort
SELECT DISTINCT - 28 + + + col0 AS col0, 91 FROM tab0
----
-13
91
59
91
69
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4503
SELECT ALL + CAST( NULL AS DECIMAL ) * - - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL + CAST ( NULL AS REAL ) * - - col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 IN ( + col2 * + 5 + col0 + - col1 / + + 20, - 41 * col2 )
----

query I rowsort
SELECT + - col2 * col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1600
-3364
-529

onlyif mysql # DIV for integer division: 
query I rowsort label-4506
SELECT DISTINCT + 6 DIV + 95 * - + 59 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4506
SELECT DISTINCT + 6 / + 95 * - + 59 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 * + 62 IN ( col0 * - col1, - ( - col2 ) * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT + COUNT( - + 74 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4508
SELECT + COUNT ( - + 74 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4509
SELECT + SUM( ALL CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4509
SELECT + SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT + + col0 + - - 31 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4511
SELECT * FROM tab2 WHERE NOT 67 / - CAST( NULL AS SIGNED ) - col1 * + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4511
SELECT * FROM tab2 WHERE NOT 67 / - CAST ( NULL AS INTEGER ) - col1 * + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 * + + 44 <> + col0
----

query I rowsort
SELECT DISTINCT + - 74 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT ALL - 3 * MIN( - + col2 ) FROM tab1 cor0
----
288

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL - 3 * MIN ( - + col2 ) FROM tab1 cor0
----
288

onlyif mysql # DIV for integer division: 
query I rowsort label-4515
SELECT - 35 DIV col1 col1 FROM tab1 AS cor0
----
-2
-7
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4515
SELECT - 35 / col1 col1 FROM tab1 AS cor0
----
-2
-7
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4516
SELECT - - 14 DIV col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4516
SELECT - - 14 / col0 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 - col2 * + + col0 col1 FROM tab2 AS cor0
----
-464
115
520

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( col0 + - + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT + ( - + ( MAX( - 88 ) ) ) + - COUNT( * ) + 11 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4519
SELECT + ( - + ( MAX ( - 88 ) ) ) + - COUNT ( * ) + 11 FROM tab0 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT COUNT( * ) + + + 67 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-4520
SELECT COUNT ( * ) + + + 67 FROM tab1 AS cor0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4521
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col0 ) + + + CAST( NULL AS SIGNED ) IN ( - - col2 )
----

skipif mysql # not compatible
query III rowsort label-4521
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col0 ) + + + CAST ( NULL AS INTEGER ) IN ( - - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4522
SELECT ALL COUNT( * ) DIV - MAX( col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL COUNT ( * ) / - MAX ( col0 ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE + col1 * + 60 - + col0 + 19 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 0 + + - col2 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab2 WHERE - - col2 * + - col1 + - ( 14 ) + col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4526
SELECT ALL - CAST( NULL AS SIGNED ) * 34 + + + MAX( DISTINCT + col1 ) + + + 93 FROM tab1 WHERE NOT - col2 <= 2 + + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL - CAST ( NULL AS INTEGER ) * 34 + + + MAX ( DISTINCT + col1 ) + + + 93 FROM tab1 WHERE NOT - col2 <= 2 + + col0
----
NULL

query I rowsort
SELECT DISTINCT + 73 + ( 20 ) FROM tab1
----
93

query II rowsort
SELECT + 39 AS col0, col0 AS col2 FROM tab0
----
39
15
39
87
39
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4529
SELECT ALL col2 + - CAST( NULL AS SIGNED ) * - + 47 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) * - + 47 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT - COUNT( * ) * + 70 AS col1 FROM tab1
----
-210

skipif mysql # not compatible
query I rowsort label-4530
SELECT - COUNT ( * ) * + 70 AS col1 FROM tab1
----
-210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4531
SELECT 62 * - CAST( + + COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
-186

skipif mysql # not compatible
query I rowsort label-4531
SELECT 62 * - CAST ( + + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
-186

query I rowsort
SELECT DISTINCT + - col0 * - col0 * - 5 + + - 13 FROM tab2 AS cor0
----
-10593
-20493
-28138

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col1 BETWEEN + col1 AND NULL )
----

query I rowsort
SELECT DISTINCT - 79 + - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-126
-84
-93

query I rowsort
SELECT + 41 - 8 - col2 FROM tab2 AS cor0
----
-25
-7
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4536
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE 39 * + - ( + + CAST( NULL AS SIGNED ) ) NOT IN ( + col0, + col0 * - col2, + col1 )
----

skipif mysql # not compatible
query I rowsort label-4536
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE 39 * + - ( + + CAST ( NULL AS INTEGER ) ) NOT IN ( + col0, + col0 * - col2, + col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 11 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( + col2 * col0 ) > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 95 + - col2 - + col0 col2 FROM tab2
----
-38
-9
26

query I rowsort
SELECT col0 + + 50 + - col1 - + col2 AS col2 FROM tab0
----
-63
106
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT - ( - COUNT( ALL col1 ) ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4541
SELECT - ( - COUNT ( ALL col1 ) ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT DISTINCT SUM( ALL - 5 ) - + 83 + 9 FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-4542
SELECT DISTINCT SUM ( ALL - 5 ) - + 83 + 9 FROM tab2 AS cor0
----
-89

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < + 25 * + col0 * - col2
----

query I rowsort
SELECT ALL - + col0 * - - col2 - + 98 * + - col0 + col1 FROM tab2 AS cor0
----
3067
3501
3789

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( - 53 ) IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT ALL - + 60 - + COUNT( DISTINCT + - col0 ) FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL - + 60 - + COUNT ( DISTINCT + - col0 ) FROM tab1 AS cor0
----
-63

query II rowsort
SELECT ALL col2, 31 * + col1 FROM tab0
----
10
651
47
2511
99
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT DISTINCT + SUM( + - col0 ) * + 93 * + 64 AS col2 FROM tab2
----
-1101120

skipif mysql # not compatible
query I rowsort label-4548
SELECT DISTINCT + SUM ( + - col0 ) * + 93 * + 64 AS col2 FROM tab2
----
-1101120

query I rowsort
SELECT ALL - 58 * - col1 AS col0 FROM tab2
----
2958
3886
4466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4550
SELECT DISTINCT CAST( - - 64 AS SIGNED ) AS col0 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-4550
SELECT DISTINCT CAST ( - - 64 AS INTEGER ) AS col0 FROM tab0
----
64

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT col2 <> + - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4552
SELECT DISTINCT COUNT( * ) AS col0, - SUM( ALL - 47 ) FROM tab2
----
3
141

skipif mysql # not compatible
query II rowsort label-4552
SELECT DISTINCT COUNT ( * ) AS col0, - SUM ( ALL - 47 ) FROM tab2
----
3
141

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT - COUNT( * ) * 11 AS col2 FROM tab2 WHERE NOT - + 1 + - ( + ( + 48 ) ) < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4553
SELECT - COUNT ( * ) * 11 AS col2 FROM tab2 WHERE NOT - + 1 + - ( + ( + 48 ) ) < ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT + MAX( - - col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4554
SELECT + MAX ( - - col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4555
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( CAST( - col0 AS SIGNED ) + - + col2 + 2 * col0 + col0 * - + 60 + + + col0 * - 96, col2 * + 18 )
----

skipif mysql # not compatible
query III rowsort label-4555
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( CAST ( - col0 AS INTEGER ) + - + col2 + 2 * col0 + col0 * - + 60 + + + col0 * - 96, col2 * + 18 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4556
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - 47 * - + col1 FROM tab2 AS cor0
----
2397
3149
3619

query I rowsort
SELECT + col0 * + 51 FROM tab0 cor0
----
4437
4947
765

query I rowsort
SELECT ALL + ( - col0 ) * col2 FROM tab1 cor0
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 * + col0 col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL - - col0 + ( + col2 ) * - col1 AS col2, 37 * - + col2 FROM tab1 AS cor0
----
-1293
-3552
-210
-2183
-3105
-2516

query I rowsort
SELECT - col0 + 19 - + col0 + - 90 * - col1 FROM tab2
----
4517
5899
6821

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT DISTINCT 12 + - MAX( - col2 ) AS col1 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-4563
SELECT DISTINCT 12 + - MAX ( - col2 ) AS col1 FROM tab2
----
35

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4564
SELECT DISTINCT + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) / col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) / col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 39 + - - col0 AS col0 FROM tab1
----
12
46
52

query I rowsort
SELECT ALL + col0 * - - 43 AS col0 FROM tab1
----
2193
3655
3913

query I rowsort
SELECT ALL - - 33 AS col0 FROM tab1 cor0
----
33
33
33

onlyif mysql # DIV for integer division: 
query I rowsort label-4568
SELECT - col1 DIV + col2 - + ( 13 ) DIV - 93 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4568
SELECT - col1 / + col2 - + ( 13 ) / - 93 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT + - col2 AS col2 FROM tab1 WHERE NULL IS NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + 48 * - col0 - - 78 * - - 5 AS col0 FROM tab0
----
-330
-3786
-4266

query I rowsort
SELECT DISTINCT - + 85 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-85

query I rowsort
SELECT DISTINCT - 33 * col2 - + - 69 AS col2 FROM tab1 AS cor0
----
-1878
-2175
-3099

onlyif mysql # DIV for integer division: 
query I rowsort label-4573
SELECT DISTINCT + - col2 DIV + ( + 37 ) AS col0 FROM tab1 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT + - col2 / + ( + 37 ) AS col0 FROM tab1 AS cor0
----
-1
-2

query II rowsort
SELECT + col2, - col2 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

query II rowsort
SELECT ALL - 30, - 43 AS col1 FROM tab1 AS cor0
----
-30
-43
-30
-43
-30
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-4576
SELECT DISTINCT COUNT( * ) AS col2, - MIN( ( 86 ) ) AS col1 FROM tab0 AS cor0
----
3
-86

skipif mysql # not compatible
query II rowsort label-4576
SELECT DISTINCT COUNT ( * ) AS col2, - MIN ( ( 86 ) ) AS col1 FROM tab0 AS cor0
----
3
-86

query III rowsort
SELECT * FROM tab1 WHERE NOT 7 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT ALL - - COUNT( * ) AS col0 FROM tab2 WHERE NULL < col0
----
0

skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL - - COUNT ( * ) AS col0 FROM tab2 WHERE NULL < col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT + ( COUNT( * ) ) FROM tab2 WHERE NOT - ( - col0 ) BETWEEN NULL AND col1 + - - col1
----
0

skipif mysql # not compatible
query I rowsort label-4579
SELECT + ( COUNT ( * ) ) FROM tab2 WHERE NOT - ( - col0 ) BETWEEN NULL AND col1 + - - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4580
SELECT * FROM tab0 AS cor0 WHERE NOT 31 IN ( col2 + - ( + col2 ) * col0, CAST( NULL AS SIGNED ) * - col2 + + - 21 )
----

skipif mysql # not compatible
query III rowsort label-4580
SELECT * FROM tab0 AS cor0 WHERE NOT 31 IN ( col2 + - ( + col2 ) * col0, CAST ( NULL AS INTEGER ) * - col2 + + - 21 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 53 col2 FROM tab0 AS cor0
----
53
53
53

query II rowsort
SELECT DISTINCT + col1, 20 AS col0 FROM tab0
----
1
20
21
20
81
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT ALL COUNT( * ) * + COUNT( * ) col0 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4583
SELECT ALL COUNT ( * ) * + COUNT ( * ) col0 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT + COUNT( * ) + + + 96 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4584
SELECT + COUNT ( * ) + + + 96 FROM tab2 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 50 + + col0 col2 FROM tab2 AS cor0
----
2346
3264
3825

query I rowsort
SELECT DISTINCT - col0 + col1 + col1 FROM tab0 AS cor0
----
-45
-95
147

query I rowsort
SELECT + col2 + + + 37 + + 97 AS col1 FROM tab0 cor0
----
144
181
233

query I rowsort
SELECT + AVG ( + 90 ) AS col0 FROM tab2 WHERE NULL > 58 + 57
----
NULL

query II rowsort
SELECT ALL + col0, - 10 FROM tab1 WHERE - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4590
SELECT DISTINCT col0 DIV - 32 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT col0 / - 32 FROM tab2
----
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT DISTINCT + COUNT( * ) + - 56 FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-4591
SELECT DISTINCT + COUNT ( * ) + - 56 FROM tab0
----
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - col1, col0 col1 FROM tab1
----
425
85
4277
91
714
51

query I rowsort
SELECT + ( + col2 ) - + + col2 * col0 AS col0 FROM tab0 AS cor0
----
-658
-860
-9504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4594
SELECT DISTINCT CAST( NULL AS SIGNED ) - - 26 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - 26 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 + 55 - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4596
SELECT * FROM tab0 AS cor0 WHERE + ( + 47 ) + + - col2 = + col1 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4596
SELECT * FROM tab0 AS cor0 WHERE + ( + 47 ) + + - col2 = + col1 + - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col2 ) <> col2 / + 2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 94 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT DISTINCT + COUNT( * ) * + ( COUNT( * ) ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4599
SELECT DISTINCT + COUNT ( * ) * + ( COUNT ( * ) ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4600
SELECT - COUNT( * ) AS col0, 93 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
93

skipif mysql # not compatible
query II rowsort label-4600
SELECT - COUNT ( * ) AS col0, 93 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT 84 * + COUNT( * ) FROM tab1 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-4601
SELECT 84 * + COUNT ( * ) FROM tab1 AS cor0
----
252

query I rowsort
SELECT ALL - ( col0 ) * + col0 - + + ( col2 ) FROM tab1 AS cor0
----
-2697
-7284
-8349

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE - ( + col0 ) * + 6 >= col0
----
0

skipif mysql # not compatible
query I rowsort label-4603
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE - ( + col0 ) * + 6 >= col0
----
0

query I rowsort
SELECT - - col0 * - - col2 + col2 FROM tab2 AS cor0 WHERE NOT NULL = col1 * + - col1 + 43
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4606
SELECT - CAST( + 6 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-4606
SELECT - CAST ( + 6 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-6
-6
-6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + + + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > - - col1 * 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT SUM( DISTINCT - col1 ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-4609
SELECT SUM ( DISTINCT - col1 ) AS col2 FROM tab0
----
-103

query I rowsort
SELECT + col1 * + - col2 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4611
SELECT ALL CAST( + CAST( + MIN( ALL 72 ) AS SIGNED ) AS SIGNED ) FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-4611
SELECT ALL CAST ( + CAST ( + MIN ( ALL 72 ) AS INTEGER ) AS INTEGER ) FROM tab1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT + COUNT( * ) * 92 * - COUNT( * ) AS col0 FROM tab2
----
-828

skipif mysql # not compatible
query I rowsort label-4612
SELECT + COUNT ( * ) * 92 * - COUNT ( * ) AS col0 FROM tab2
----
-828

query II rowsort
SELECT 11 AS col0, col0 FROM tab0
----
11
15
11
87
11
97

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - col1 AND + - col0 OR - col0 * - 41 + + col0 - - + 76 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT 84 * COUNT( * ) AS col2 FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-4615
SELECT 84 * COUNT ( * ) AS col2 FROM tab1
----
252

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4616
SELECT - 0 DIV + COUNT( - col0 ) * COUNT( * ), MIN( ALL 77 ) * - 13 * - 68 + MIN( DISTINCT col1 ) AS col2 FROM tab2
----
0
68119

skipif mysql # not compatible
query II rowsort label-4616
SELECT - 0 / + COUNT ( - col0 ) * COUNT ( * ), MIN ( ALL 77 ) * - 13 * - 68 + MIN ( DISTINCT col1 ) AS col2 FROM tab2
----
0
68119

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col0 + 92 + - 48 / + 99 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT COUNT( * ) * COUNT( 89 ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4618
SELECT COUNT ( * ) * COUNT ( 89 ) AS col1 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT ALL - + COUNT( + - 29 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL - + COUNT ( + - 29 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 91
----
0

skipif mysql # not compatible
query I rowsort label-4620
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 91
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = - col2 - 4
----

query I rowsort
SELECT + ( + + 38 ) + - col2 FROM tab1
----
-21
-30
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT ALL - + COUNT( ALL 40 ) + - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL - + COUNT ( ALL 40 ) + - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <= ( NULL )
----
0

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE NOT NULL >= 39
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 31 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - - col0 + - + 42 col1 FROM tab1 AS cor0
----
4854
4973
6146

query I rowsort
SELECT - col2 * + + col1 + - 67 * - col2 FROM tab0 AS cor0
----
-658
460
6534

query I rowsort
SELECT col0 + + col0 + + - col2 + - - 54 * + 72 + + 51 + + 34 FROM tab0
----
3956
4068
4137

query III rowsort
SELECT * FROM tab1 WHERE col1 < + col2 AND NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT ALL - COUNT( DISTINCT col2 ) + 66 + - 6 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL - COUNT ( DISTINCT col2 ) + 66 + - 6 FROM tab2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT ALL 20 + + 40 + + COUNT( * ) FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL 20 + + 40 + + COUNT ( * ) FROM tab2
----
63

query I rowsort
SELECT - col0 * - 19 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * - + col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4634
SELECT DISTINCT - col0 AS col0, col0, + ( + 5 ) FROM tab0 AS cor0 WHERE NOT NULL >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4634
SELECT DISTINCT - col0 AS col0, col0, + ( + 5 ) FROM tab0 AS cor0 WHERE NOT NULL >= CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 >= + col2
----
85
5
59
91
47
68

query I rowsort
SELECT ALL - 64 * - col2 + 43 AS col2 FROM tab0 AS cor0
----
3051
6379
683

query I rowsort
SELECT - - ( 22 ) * - col1 * - col2 FROM tab2 cor0 WHERE NOT col1 + 20 NOT BETWEEN col0 AND - col1
----

query I rowsort
SELECT DISTINCT - 23 AS col0 FROM tab1 AS cor0 WHERE + 77 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT + COUNT( DISTINCT col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4639
SELECT + COUNT ( DISTINCT col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4640
SELECT ALL col0 DIV - + col2 AS col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL col0 / - + col2 AS col2 FROM tab2
----
-1
-1
-2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4641
SELECT ALL CAST( 55 AS SIGNED ) DIV - + 9 AS col0 FROM tab2
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL CAST ( 55 AS INTEGER ) / - + 9 AS col0 FROM tab2
----
-6
-6
-6

query II rowsort
SELECT col0, 29 AS col1 FROM tab0
----
15
29
87
29
97
29

query I rowsort
SELECT DISTINCT - + col0 AS col0 FROM tab0 WHERE NOT - col1 + - + col2 NOT BETWEEN - + col0 / - 4 AND col0
----

query II rowsort
SELECT col1 * - col0 * col0 AS col2, + col2 AS col0 FROM tab0
----
-158949
10
-18225
47
-9409
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT - COUNT( ALL col0 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4645
SELECT - COUNT ( ALL col0 ) AS col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT + 86 * + - MIN( - col1 ) FROM tab1 AS cor0
----
4042

skipif mysql # not compatible
query I rowsort label-4646
SELECT + 86 * + - MIN ( - col1 ) FROM tab1 AS cor0
----
4042

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4647
SELECT ALL + CAST( NULL AS DECIMAL ) + - 89 + col1 + + 73 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL + CAST ( NULL AS REAL ) + - 89 + col1 + + 73 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT - MIN( DISTINCT ( + - 31 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
31

skipif mysql # not compatible
query I rowsort label-4648
SELECT - MIN ( DISTINCT ( + - 31 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT 0 + + + COUNT( * ) FROM tab0 WHERE + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4649
SELECT 0 + + + COUNT ( * ) FROM tab0 WHERE + col0 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT - - COUNT( * ) col1 FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4650
SELECT - - COUNT ( * ) col1 FROM tab0 WHERE NULL IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + ( - + 8 ) * - 45 BETWEEN col1 AND 63 * - ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4652
SELECT COUNT( DISTINCT col1 ) DIV + - COUNT( + + 95 ) + + SUM( DISTINCT col0 ) FROM tab2 AS cor0
----
184

skipif mysql # not compatible
query I rowsort label-4652
SELECT COUNT ( DISTINCT col1 ) / + - COUNT ( + + 95 ) + + SUM ( DISTINCT col0 ) FROM tab2 AS cor0
----
184

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT + + col2 * - col2 + col1 BETWEEN + + col1 AND + + col2 + 22 - + col0 + - 27 * + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4654
SELECT + + CAST( NULL AS SIGNED ) + + + col1 * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4654
SELECT + + CAST ( NULL AS INTEGER ) + + + col1 * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4655
SELECT + - CAST( NULL AS SIGNED ) + 72 - ( col1 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4655
SELECT + - CAST ( NULL AS INTEGER ) + 72 - ( col1 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT DISTINCT - + 91 * + + COUNT( * ) * + 2 AS col1 FROM tab1 AS cor0
----
-546

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT - + 91 * + + COUNT ( * ) * + 2 AS col1 FROM tab1 AS cor0
----
-546

query I rowsort
SELECT 44 + + col1 * ( - col1 ) + + col2 + col1 * - - 58 + - col0 * col0 AS col2 FROM tab1 cor0 WHERE ( NULL ) >= - 11
----

query I rowsort
SELECT - col0 * col0 - - col0 FROM tab0 cor0
----
-210
-7482
-9312

query I rowsort
SELECT DISTINCT + ( - + col0 ) * - col0 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4660
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND CAST( NULL AS SIGNED ) / - 37
----

skipif mysql # not compatible
query III rowsort label-4660
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND CAST ( NULL AS INTEGER ) / - 37
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4661
SELECT col2 AS col1 FROM tab2 WHERE + - CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-4661
SELECT col2 AS col1 FROM tab2 WHERE + - CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - + 40 * + 71 * col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + - col0 BETWEEN + col2 * - + 20 AND + 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 + col0 + - + 65 * + + 95 * - col0 AS col2 FROM tab1
----
315072
525019
562084

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + col0 * - col0 - - col1 + - 3 col1 FROM tab2
----
-163766
-326186
-48620

onlyif mysql # DIV for integer division: 
query I rowsort label-4666
SELECT - 26 DIV col2 - col0 + + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4666
SELECT - 26 / col2 - col0 + + col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4667
SELECT 52 - - 16, COUNT( * ) * ( + COUNT( * ) ) AS col2 FROM tab0
----
68
9

skipif mysql # not compatible
query II rowsort label-4667
SELECT 52 - - 16, COUNT ( * ) * ( + COUNT ( * ) ) AS col2 FROM tab0
----
68
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4668
SELECT DISTINCT col0 - - + 8 * + + col1 * - CAST( - CAST( col1 AS SIGNED ) AS SIGNED ) AS col0 FROM tab1
----
1619
17763
285

skipif mysql # not compatible
query I rowsort label-4668
SELECT DISTINCT col0 - - + 8 * + + col1 * - CAST ( - CAST ( col1 AS INTEGER ) AS INTEGER ) AS col0 FROM tab1
----
1619
17763
285

query I rowsort
SELECT col2 * + col2 - + 85 AS col2 FROM tab2
----
1515
3279
444

query I rowsort
SELECT DISTINCT + + 92 AS col0 FROM tab2 cor0
----
92

query I rowsort
SELECT ALL + - col0 * + 96 + + col1 AS col2 FROM tab1 WHERE NOT col1 * + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 79 * 6 - + - col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4673
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE NOT - col1 * CAST( NULL AS SIGNED ) + 64 + - + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4673
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE NOT - col1 * CAST ( NULL AS INTEGER ) + 64 + - + col2 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - 65 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT + - SUM( DISTINCT col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4675
SELECT + - SUM ( DISTINCT col2 ) FROM tab1 AS cor0
----
-223

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 11 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + - 94 AND 7
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 24 * - 17 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT ALL - - SUM( col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL - - SUM ( col0 ) FROM tab1 AS cor0
----
227

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 68 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT DISTINCT COUNT( * ) * + 71 AS col2 FROM tab1
----
213

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT COUNT ( * ) * + 71 AS col2 FROM tab1
----
213

query I rowsort
SELECT DISTINCT + col0 + - - ( - + col1 ) AS col2 FROM tab0
----
-66
66
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 * + 60 col2 FROM tab1
----
1500
1500
1500

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT ALL SUM( DISTINCT - 88 ) FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL SUM ( DISTINCT - 88 ) FROM tab2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT DISTINCT + COUNT( - 1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4685
SELECT DISTINCT + COUNT ( - 1 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT 66 - - col2 >= NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE NOT + - 10 * - col2 + col0 = NULL
----

query I rowsort
SELECT 73 + + ( 93 ) FROM tab0
----
166
166
166

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT - COUNT( * ) + + + MAX( + col0 ) * - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-4689
SELECT - COUNT ( * ) + + + MAX ( + col0 ) * - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-276

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE - 30 <> + - col0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT ALL - + MIN( DISTINCT + 70 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-70

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL - + MIN ( DISTINCT + 70 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-4692
SELECT DISTINCT 43 AS col2, MAX( ALL + - 64 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
43
-64

skipif mysql # not compatible
query II rowsort label-4692
SELECT DISTINCT 43 AS col2, MAX ( ALL + - 64 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
43
-64

query I rowsort
SELECT + 5 - col2 FROM tab1 AS cor0
----
-54
-63
-91

query I rowsort
SELECT DISTINCT - col1 + - - col1 AS col0 FROM tab1 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 - - col2 col1 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT DISTINCT - col2 * + col2 * 86 AS col2 FROM tab2 AS cor0
----
-137600
-289304
-45494

query I rowsort
SELECT col2 + col0 + - + 80 - - - 33 + - col1 FROM tab0 AS cor0
----
-132
-37
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 + + col1 * + - col2 col2 FROM tab2 AS cor0
----
-1268
-3175
-3981

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4699
SELECT CAST( NULL AS SIGNED ) + - col1 * col1 * + - col2 - 28 - 32 + + - ( - - col1 ) * + col0 * - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4699
SELECT CAST ( NULL AS INTEGER ) + - col1 * col1 * + - col2 - 28 - 32 + + - ( - - col1 ) * + col0 * - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT ALL - - COUNT( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL - - COUNT ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col0, 82 AS col2 FROM tab0 AS cor0
----
-15
82
-87
82
-97
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4702
SELECT - CAST( NULL AS SIGNED ) * - col0 + - - 47 * ( 20 ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4702
SELECT - CAST ( NULL AS INTEGER ) * - col0 + - - 47 * ( 20 ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 84 * + ( col2 ) + col1 + col1 * col1 AS col0 FROM tab2
----
4584
9366
9428

query I rowsort
SELECT col2 + + + ( col0 ) AS col2 FROM tab2
----
104
133
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4705
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4705
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2, tab1 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + + 66 ) + - col1 col1 FROM tab0
----
-15
45
65

query III rowsort
SELECT * FROM tab0 WHERE 53 >= + col1 * col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 67 + - - ( + col2 ) + - 81 / + 2 <> - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 >= + - 39
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col0, + 20 AS col2 FROM tab1 AS cor0
----
-14
20
-47
20
-5
20

query I rowsort
SELECT - + col1 * + 31 FROM tab0 AS cor0
----
-2511
-31
-651

query I rowsort
SELECT ( 76 ) AS col0 FROM tab0 AS cor0
----
76
76
76

query I rowsort
SELECT ALL - + col1 AS col1 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4715
SELECT DISTINCT col1 * col2 * - col1 * - col2 + + CAST( - + col1 AS SIGNED ) + col0, - 86 + - + col0 AS col2 FROM tab2 AS cor0
----
1375924
-132
15101004
-161
9486387
-150

skipif mysql # not compatible
query II rowsort label-4715
SELECT DISTINCT col1 * col2 * - col1 * - col2 + + CAST ( - + col1 AS INTEGER ) + col0, - 86 + - + col0 AS col2 FROM tab2 AS cor0
----
1375924
-132
15101004
-161
9486387
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4716
SELECT ALL + - col2 + + - 87 FROM tab2 AS cor0 WHERE CAST( - 48 AS SIGNED ) * + 24 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL + - col2 + + - 87 FROM tab2 AS cor0 WHERE CAST ( - 48 AS INTEGER ) * + 24 IS NULL
----

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4718
SELECT + CAST( - + col0 AS SIGNED ) AS col0, 68 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-4718
SELECT + CAST ( - + col0 AS INTEGER ) AS col0, 68 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 8 * 86 + - - 92 FROM tab1 cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT - col2 * 16 + col0 AS col0 FROM tab1 AS cor0
----
-1485
-859
-997

query I rowsort
SELECT ALL + + 35 * col2 + + col2 FROM tab0 AS cor0
----
1692
3564
360

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT DISTINCT 6 + + + COUNT( * ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4723
SELECT DISTINCT 6 + + + COUNT ( * ) AS col0 FROM tab2
----
9

query I rowsort
SELECT DISTINCT col0 + + 35 FROM tab1
----
120
126
86

query I rowsort
SELECT ALL col0 + + 27 + + - col1 FROM tab1
----
107
64
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4726
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE NOT NULL < 96 + - CAST( 21 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE NOT NULL < 96 + - CAST ( 21 AS INTEGER )
----

query I rowsort
SELECT - - col2 AS col2 FROM tab2 WHERE NOT - + col2 < + - 98
----
23
40
58

query I rowsort
SELECT + 38 * + col2 AS col1 FROM tab2
----
1520
2204
874

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT + - COUNT( * ) AS col2 FROM tab0 WHERE NULL >= - col1 + - col0
----
0

skipif mysql # not compatible
query I rowsort label-4729
SELECT + - COUNT ( * ) AS col2 FROM tab0 WHERE NULL >= - col1 + - col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab1 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4731
SELECT COUNT( col2 ), + 11 col1 FROM tab0 cor0 WHERE NULL <> 69
----
0
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4731
SELECT COUNT ( col2 ), + 11 col1 FROM tab0 cor0 WHERE NULL <> 69
----
0
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT DISTINCT SUM( col0 ) col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4732
SELECT DISTINCT SUM ( col0 ) col2 FROM tab2 AS cor0
----
185

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 56 + + + 95 + + col1 * + + col1 + + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4734
SELECT ALL - - 46 DIV col0 FROM tab2 WHERE + 23 DIV + CAST( NULL AS SIGNED ) IS NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4734
SELECT ALL - - 46 / col0 FROM tab2 WHERE + 23 / + CAST ( NULL AS INTEGER ) IS NULL
----
0
0
1

query I rowsort
SELECT 73 + + col1 FROM tab1
----
120
78
87

query I rowsort
SELECT + + 12 * - 54 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b8962c65d734d62028177f0ace3bf31b

query I rowsort
SELECT ALL - col1 - - + col0 AS col1 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT + COUNT( * ) + + 90 + + + COUNT( + col0 ) AS col2 FROM tab2 AS cor0 WHERE - col1 * - + 34 * col2 = 95 * + col1 + + + col2
----
90

skipif mysql # not compatible
query I rowsort label-4738
SELECT + COUNT ( * ) + + 90 + + + COUNT ( + col0 ) AS col2 FROM tab2 AS cor0 WHERE - col1 * - + 34 * col2 = 95 * + col1 + + + col2
----
90

query I rowsort
SELECT ALL + + col2 + - - 75 * col0 AS col1 FROM tab1 cor0 WHERE NOT - col0 * - 60 < + - ( - + col1 )
----
3921
6434
6893

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 85 * 65 / + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT - 98 * - MIN( ALL - + col2 ) col0 FROM tab1 AS cor0 WHERE + 67 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4741
SELECT - 98 * - MIN ( ALL - + col2 ) col0 FROM tab1 AS cor0 WHERE + 67 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4742
SELECT 80 DIV - + ( + - 44 ) - + col0 FROM tab2
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-4742
SELECT 80 / - + ( + - 44 ) - + col0 FROM tab2
----
-45
-63
-74

query I rowsort
SELECT col1 * + - col2 AS col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT ALL - SUM( - - 42 ) FROM tab2
----
-126

skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL - SUM ( - - 42 ) FROM tab2
----
-126

query II rowsort
SELECT ALL col2, col2 * - 60 * col1 FROM tab1
----
59
-17700
68
-191760
96
-80640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + + col2 col1 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT col0 * + col0 * + 49 AS col2 FROM tab2
----
103684
200704
275625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col1, 11 col0 FROM tab1 AS cor0
----
-51
11
-85
11
-91
11

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4750
SELECT ALL - - col1, CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-4750
SELECT ALL - - col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT DISTINCT + - 60 + + col2 AS col0 FROM tab0 AS cor0
----
-13
-50
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT ALL MIN( col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL MIN ( col1 ) AS col2 FROM tab1 AS cor0
----
5

query II rowsort
SELECT - + 36, + col1 + + col1 AS col0 FROM tab2 AS cor0
----
-36
102
-36
134
-36
154

query I rowsort
SELECT ALL + col0 + 87 FROM tab0
----
102
174
184

query I rowsort
SELECT - col0 * + - col0 * + 86 AS col2 FROM tab2
----
181976
352256
483750

query II rowsort
SELECT - col2, + 39 * + ( + ( + col0 ) ) AS col0 FROM tab2 WHERE + + col0 > 73
----
-58
2925

query I rowsort
SELECT DISTINCT + 17 + - col2 FROM tab1
----
-42
-51
-79

query I rowsort
SELECT + ( - 42 ) + - - 65 AS col0 FROM tab1
----
23
23
23

query III rowsort
SELECT * FROM tab0 WHERE NULL = + - ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 <= NULL
----

query I rowsort
SELECT ALL col1 + - - col1 FROM tab1 AS cor0
----
10
28
94

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 99 IN ( + + col0, col2, - ( + 76 ), col0 * + ( + col1 ) + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 - - col2 AS col0 FROM tab0 cor0
----
198
20
94

query I rowsort
SELECT - col1 + + + 53 FROM tab1 cor0
----
39
48
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 col1 FROM tab1 cor0
----
425
4277
714

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4766
SELECT - - AVG ( DISTINCT + - col1 ) + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4766
SELECT - - AVG ( DISTINCT + - col1 ) + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + 85 - col1 FROM tab2 AS cor0
----
18
34
8

query I rowsort
SELECT DISTINCT + + 62 AS col1 FROM tab1 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT MAX( - 66 ) col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4769
SELECT MAX ( - 66 ) col0 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT + - col0 * + - 54 AS col1 FROM tab0 AS cor0
----
4698
5238
810

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 69 <> + 90 / + 71
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 > + col1 * 82 * - 20
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 54 * - col1 IS NOT NULL
----

query I rowsort
SELECT ALL 34 * + - col0 FROM tab1
----
-1734
-2890
-3094

query III rowsort
SELECT * FROM tab0 WHERE NOT - 68 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4776
SELECT ALL CAST( - + col2 AS SIGNED ) FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL CAST ( - + col2 AS INTEGER ) FROM tab1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + ( + 87 ) FROM tab1 AS cor0
----
87

query II rowsort
SELECT ALL + col2 * - col0 + - + col1 + + - ( - col2 ) AS col2, + 55 FROM tab1 AS cor0
----
-4814
55
-4961
55
-6167
55

query I rowsort
SELECT ALL ( + 78 ) AS col1 FROM tab0
----
78
78
78

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - col1, + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4781
SELECT + 71 DIV + 83 + - - SUM( DISTINCT + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-4781
SELECT + 71 / + 83 + - - SUM ( DISTINCT + col2 ) FROM tab2 AS cor0
----
121

query II rowsort
SELECT 59 + + ( + + col0 ), col1 FROM tab1 cor0
----
110
14
144
5
150
47

query I rowsort
SELECT - col1 + 11 AS col0 FROM tab0 AS cor0
----
-10
-70
10

query I rowsort
SELECT + - col1 + + 1 - + col2 AS col1 FROM tab1 AS cor0
----
-109
-114
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4785
SELECT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-4785
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4787
SELECT ALL * FROM tab2 WHERE - 43 <> - - ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4787
SELECT ALL * FROM tab2 WHERE - 43 <> - - ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4788
SELECT * FROM tab0 WHERE 58 + - - CAST( - 34 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4788
SELECT * FROM tab0 WHERE 58 + - - CAST ( - 34 AS REAL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col2 col0 FROM tab2
----
116
46
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4790
SELECT DISTINCT ( + + col1 ) * + CAST( NULL AS SIGNED ) / + + col0 + - 94 + + col1 * - 12 * - + 31 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4790
SELECT DISTINCT ( + + col1 ) * + CAST ( NULL AS INTEGER ) / + + col0 + - 94 + + col1 * - 12 * - + 31 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 + 53 AS col2 FROM tab2
----
117
128
99

query I rowsort
SELECT 86 * + col1 FROM tab1
----
1204
4042
430

query II rowsort
SELECT DISTINCT + col1, ( - - ( - 79 ) ) + + - 81 FROM tab0 cor0 WHERE NULL IS NULL
----
1
-160
21
-160
81
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT + COUNT( * ) - + ( COUNT( * ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4794
SELECT + COUNT ( * ) - + ( COUNT ( * ) ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT DISTINCT - ( + COUNT( * ) ) * MAX( DISTINCT + col0 ) - - COUNT( * ) FROM tab1 cor0 WHERE NOT ( ( NULL BETWEEN NULL AND NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT - ( + COUNT ( * ) ) * MAX ( DISTINCT + col0 ) - - COUNT ( * ) FROM tab1 cor0 WHERE NOT ( ( NULL BETWEEN NULL AND NULL ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4796
SELECT ALL - - col1 * - CAST( - + 15 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1215
15
315

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL - - col1 * - CAST ( - + 15 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1215
15
315

query I rowsort
SELECT ALL + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT DISTINCT COUNT( * ) + - 89 FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT COUNT ( * ) + - 89 FROM tab2 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT ( + + COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4799
SELECT ( + + COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT DISTINCT - col2 - - - col0 FROM tab1
----
-144
-147
-159

onlyif mysql # DIV for integer division: 
query I rowsort label-4801
SELECT DISTINCT - 57 * col0 DIV + + col0 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-4801
SELECT DISTINCT - 57 * col0 / + + col0 FROM tab0 AS cor0
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4802
SELECT DISTINCT CAST( + - SUM( + col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4802
SELECT DISTINCT CAST ( + - SUM ( + col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-185

query II rowsort
SELECT ALL ( + col0 ), col1 FROM tab1 cor0
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4804
SELECT - col2 * ( - CAST( 29 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
1711
1972
2784

skipif mysql # not compatible
query I rowsort label-4804
SELECT - col2 * ( - CAST ( 29 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
1711
1972
2784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col2, 73 col1 FROM tab2
----
-23
73
-40
73
-58
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4806
SELECT DISTINCT - 96 * + CAST( + 64 AS SIGNED ) FROM tab0
----
-6144

skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT - 96 * + CAST ( + 64 AS INTEGER ) FROM tab0
----
-6144

query I rowsort
SELECT - col2 * + 34 FROM tab1
----
-2006
-2312
-3264

query III rowsort
SELECT * FROM tab1 WHERE NOT 88 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4809
SELECT DISTINCT MAX( DISTINCT - col0 ) DIV + + 90 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4809
SELECT DISTINCT MAX ( DISTINCT - col0 ) / + + 90 AS col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * - col1 * 93, + col2 col2 FROM tab0
----
19530
10
354051
47
9207
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT - COUNT( * ) * + - 87 AS col2 FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-4811
SELECT - COUNT ( * ) * + - 87 AS col2 FROM tab2
----
261

query II rowsort
SELECT ALL 8 AS col0, - 55 AS col0 FROM tab0
----
8
-55
8
-55
8
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4813
SELECT + CAST( - 20 AS SIGNED ) col0 FROM tab0
----
-20
-20
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4813
SELECT + CAST ( - 20 AS INTEGER ) col0 FROM tab0
----
-20
-20
-20

query II rowsort
SELECT DISTINCT + col0, - 77 AS col1 FROM tab0
----
15
-77
87
-77
97
-77

query II rowsort
SELECT - col1, ( - + col2 ) AS col1 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

query I rowsort
SELECT DISTINCT ( + 41 ) FROM tab2 AS cor0
----
41

query I rowsort
SELECT - 95 / + col0 * + - 16 FROM tab2 cor0 WHERE NOT NULL < + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4818
SELECT + + COUNT( * ) * 93 * - COUNT( * ) + - + 84 + + CAST( - 53 AS SIGNED ) * + - COUNT( * ) + COUNT( * ) col1 FROM tab1 AS cor0 WHERE NOT 99 BETWEEN NULL AND NULL
----
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4818
SELECT + + COUNT ( * ) * 93 * - COUNT ( * ) + - + 84 + + CAST ( - 53 AS INTEGER ) * + - COUNT ( * ) + COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT 99 BETWEEN NULL AND NULL
----
-84

query II rowsort
SELECT col0, col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + col2 - + col1 AND NULL
----

query I rowsort
SELECT ALL 84 * col1 FROM tab1
----
1176
3948
420

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN col2 AND 78
----

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE ( - 93 * col0 ) NOT IN ( + 70 * col2 )
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4824
SELECT - ( + ( - MAX( ALL + col1 ) ) ) FROM tab1 WHERE NOT col0 * col0 - col2 * - CAST( CAST( col0 AS SIGNED ) + col1 AS SIGNED ) IS NULL
----
47

skipif mysql # not compatible
query I rowsort label-4824
SELECT - ( + ( - MAX ( ALL + col1 ) ) ) FROM tab1 WHERE NOT col0 * col0 - col2 * - CAST ( CAST ( col0 AS INTEGER ) + col1 AS INTEGER ) IS NULL
----
47

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col1 + - 85
----

query I rowsort
SELECT 82 FROM tab0 WHERE ( + col0 ) IS NOT NULL
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4827
SELECT - col0 + 17 * CAST( 14 AS SIGNED ) FROM tab2
----
163
174
192

skipif mysql # not compatible
query I rowsort label-4827
SELECT - col0 + 17 * CAST ( 14 AS INTEGER ) FROM tab2
----
163
174
192

onlyif mysql # DIV for integer division: 
query I rowsort label-4828
SELECT DISTINCT - 63 - - col0 DIV - 23 AS col1 FROM tab2 WHERE col1 * col0 IS NOT NULL
----
-65
-66

skipif mysql # not compatible
query I rowsort label-4828
SELECT DISTINCT - 63 - - col0 / - 23 AS col1 FROM tab2 WHERE col1 * col0 IS NOT NULL
----
-65
-66

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 * 55 IS NOT NULL
----

query I rowsort
SELECT ALL 64 * 61 FROM tab2
----
3904
3904
3904

query I rowsort
SELECT 66 FROM tab2 WHERE + col2 IS NOT NULL
----
66
66
66

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 - + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT - col2 <= ( - col0 )
----
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4834
SELECT ALL - CAST( 19 AS SIGNED ) FROM tab0
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL - CAST ( 19 AS INTEGER ) FROM tab0
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE NOT 4 NOT IN ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE NOT 4 NOT IN ( - col1 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 col2 FROM tab2 WHERE + col1 = ( 8 + col1 )
----

query I rowsort
SELECT col0 FROM tab2 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT DISTINCT + SUM( ALL - col0 ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4838
SELECT DISTINCT + SUM ( ALL - col0 ) AS col2 FROM tab1
----
-227

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE NOT col0 + 25 = 63
----
51
85
91

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT ( - col0 + + 87 ) IS NULL
----
15
87
97

query I rowsort
SELECT - 78 * col0 AS col2 FROM tab1
----
-3978
-6630
-7098

query I rowsort
SELECT DISTINCT + 33 * + 30 FROM tab2
----
990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 80 ) + col2 col1 FROM tab2
----
103
120
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4844
SELECT + ( CAST( NULL AS SIGNED ) ) + col1 * col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4844
SELECT + ( CAST ( NULL AS INTEGER ) ) + col1 * col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 49 col1 FROM tab0 WHERE ( + 87 ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT MIN( col0 ) + 69 AS col2 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-4846
SELECT MIN ( col0 ) + 69 AS col2 FROM tab0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4847
SELECT - 34 FROM tab1 WHERE ( 96 ) NOT IN ( CAST( - col1 AS SIGNED ) )
----
-34
-34
-34

skipif mysql # not compatible
query I rowsort label-4847
SELECT - 34 FROM tab1 WHERE ( 96 ) NOT IN ( CAST ( - col1 AS INTEGER ) )
----
-34
-34
-34

query I rowsort
SELECT ALL 47 * - col2 FROM tab0
----
-2209
-4653
-470

query I rowsort
SELECT - 3 * + 70 AS col1 FROM tab2 WHERE NULL BETWEEN ( - 57 ) AND + col0
----

query I rowsort
SELECT DISTINCT + 91 * - 28 FROM tab2
----
-2548

query I rowsort
SELECT DISTINCT 37 + + ( + 96 - col0 ) FROM tab2
----
58
69
87

query I rowsort
SELECT - 65 * + col0 AS col1 FROM tab1
----
-3315
-5525
-5915

query I rowsort
SELECT col1 * - 4 FROM tab0
----
-324
-4
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4854
SELECT DISTINCT MIN( DISTINCT col2 ) DIV COUNT( * ) FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-4854
SELECT DISTINCT MIN ( DISTINCT col2 ) / COUNT ( * ) FROM tab2
----
7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 * - 53 ) NOT BETWEEN col1 * + col2 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT COUNT( * ) * - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( + col0 ) NOT IN ( - 79 )
----
-9

skipif mysql # not compatible
query I rowsort label-4856
SELECT COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( + col0 ) NOT IN ( - 79 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4857
SELECT ALL COUNT( DISTINCT 72 ) + 61 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL COUNT ( DISTINCT 72 ) + 61 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col1 - col0 * 57 AS col2 FROM tab0
----
-4938
-5528
-774

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 36 * + col0 >= ( - col1 * - 82 + col0 )
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT ALL + MIN( DISTINCT + 76 ) * + COUNT( * ) FROM tab2 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL + MIN ( DISTINCT + 76 ) * + COUNT ( * ) FROM tab2 AS cor0
----
228

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4861
SELECT ALL + col0 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL + col0 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + col0 IN ( + ( + col2 ) * + 90 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * - 79 col1 FROM tab2 AS cor0
----
-4029
-5293
-6083

query I rowsort
SELECT + 90 * + 83 AS col1 FROM tab2 AS cor0
----
7470
7470
7470

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 / + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT MAX( DISTINCT 79 ) FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4866
SELECT MAX ( DISTINCT 79 ) FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND - col2
----
NULL

query I rowsort
SELECT - col0 * 98 AS col2 FROM tab0 AS cor0
----
-1470
-8526
-9506

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN col0 - - ( col2 ) AND ( NULL )
----

query I rowsort
SELECT ALL 99 * 82 AS col1 FROM tab0 AS cor0
----
8118
8118
8118

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT - SUM( + col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4870
SELECT - SUM ( + col0 ) AS col2 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT col0 * 42 AS col2 FROM tab0 AS cor0
----
3654
4074
630

query I rowsort
SELECT ALL - 30 * col2 AS col2 FROM tab1
----
-1770
-2040
-2880

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NOT + col1 BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT DISTINCT MAX( - + col1 ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4874
SELECT DISTINCT MAX ( - + col1 ) AS col0 FROM tab1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4875
SELECT ALL - CAST( NULL AS SIGNED ) * - 91 / col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4875
SELECT ALL - CAST ( NULL AS INTEGER ) * - 91 / col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 36 AS col2 FROM tab1
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT ALL 99 * - 29 * - MAX( ALL - col0 * + 90 ) FROM tab0
----
-3875850

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL 99 * - 29 * - MAX ( ALL - col0 * + 90 ) FROM tab0
----
-3875850

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) <= col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 / - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4880
SELECT ALL 5 DIV - 47 + + 45 FROM tab1 cor0 WHERE NULL IS NULL
----
45
45
45

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL 5 / - 47 + + 45 FROM tab1 cor0 WHERE NULL IS NULL
----
45
45
45

query I rowsort
SELECT + 66 + + 34 * - col2 FROM tab1
----
-1940
-2246
-3198

query I rowsort
SELECT DISTINCT 80 AS col0 FROM tab2, tab1 cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT - 14 + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-5

skipif mysql # not compatible
query I rowsort label-4883
SELECT - 14 + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-5

query I rowsort
SELECT - ( - col1 ) + - ( col2 ) AS col0 FROM tab2 cor0
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4885
SELECT - - col2 + ( - CAST( col1 AS SIGNED ) ) + - col0 AS col2 FROM tab2 AS cor0
----
-101
-74
-84

skipif mysql # not compatible
query I rowsort label-4885
SELECT - - col2 + ( - CAST ( col1 AS INTEGER ) ) + - col0 AS col2 FROM tab2 AS cor0
----
-101
-74
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT ALL - + 74 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL - + 74 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-222

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 IN ( + col2 * col1 - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4888
SELECT ALL - ( 87 ) DIV 73 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL - ( 87 ) / 73 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 + 26 + + ( - col1 ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4890
SELECT - 95 DIV + - COUNT( DISTINCT + ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-4890
SELECT - 95 / + - COUNT ( DISTINCT + ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col1 AND ( - col0 )
----

query I rowsort
SELECT 28 + col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
33
42
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4893
SELECT DISTINCT - 38 AS col1 FROM tab0 AS cor0 WHERE - col1 * - CAST( NULL AS DECIMAL ) - 80 NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4893
SELECT DISTINCT - 38 AS col1 FROM tab0 AS cor0 WHERE - col1 * - CAST ( NULL AS REAL ) - 80 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4894
SELECT col0 + CAST( 16 + + col2 AS SIGNED ) * - ( - col1 ) AS col2 FROM tab0 WHERE + col1 - + ( + ( - 92 ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4894
SELECT col0 + CAST ( 16 + + col2 AS INTEGER ) * - ( - col1 ) AS col2 FROM tab0 WHERE + col1 - + ( + ( - 92 ) ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - - 48 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4896
SELECT col0 DIV - + 7 FROM tab1
----
-12
-13
-7

skipif mysql # not compatible
query I rowsort label-4896
SELECT col0 / - + 7 FROM tab1
----
-12
-13
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - + col0 + col1 col1 FROM tab1
----
4910
5020
6235

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT MAX( DISTINCT + + col0 ) - COUNT( * ) AS col2 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-4898
SELECT MAX ( DISTINCT + + col0 ) - COUNT ( * ) AS col2 FROM tab1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT SUM( DISTINCT col2 ) - COUNT( ALL col1 ) FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-4899
SELECT SUM ( DISTINCT col2 ) - COUNT ( ALL col1 ) FROM tab0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT + COUNT( ALL - 37 ) col0 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4900
SELECT + COUNT ( ALL - 37 ) col0 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----
0

query I rowsort
SELECT + col1 + - 91 + + 50 FROM tab1 AS cor0
----
-27
-36
6

query I rowsort
SELECT - 13 * 65 FROM tab1 AS cor0 WHERE NULL NOT IN ( - col0, + col0 )
----

query I rowsort
SELECT ALL - + 69 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT - COUNT( DISTINCT col0 ) AS col2 FROM tab1 WHERE NOT + col2 - - col1 * - + 86 IS NULL OR ( col0 * - 55 ) > 72
----
-3

skipif mysql # not compatible
query I rowsort label-4904
SELECT - COUNT ( DISTINCT col0 ) AS col2 FROM tab1 WHERE NOT + col2 - - col1 * - + 86 IS NULL OR ( col0 * - 55 ) > 72
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4905
SELECT ( - MAX( CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4905
SELECT ( - MAX ( CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL

query I rowsort
SELECT ALL + 64 * + - col0 AS col1 FROM tab1
----
-3264
-5440
-5824

query I rowsort
SELECT DISTINCT 69 * + col2 + - 72 AS col1 FROM tab0 AS cor0
----
3171
618
6759

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <= ( col1 )
----

query I rowsort
SELECT 46 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - ( col2 ) )
----

query I rowsort
SELECT ALL col2 + + 61 - - col2 * + col0 FROM tab0 AS cor0 WHERE ( col0 ) NOT IN ( - col1 )
----
813
941
9763

query I rowsort
SELECT ( col2 ) + + col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
117
125
74

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 * ( + 15 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0 * col2, col0 FROM tab1
----
4896
51
5015
85
6188
91

query I rowsort
SELECT ( + 36 ) * + 20 AS col2 FROM tab1
----
720
720
720

query I rowsort
SELECT ALL + + col2 * + - ( - + col0 ) * col2 AS col1 FROM tab2 WHERE NOT - - col1 IS NULL
----
102400
24334
252300

onlyif mysql # aggregate syntax: 
query II rowsort label-4916
SELECT MAX( - col1 ), ( - 65 ) AS col0 FROM tab0
----
-1
-65

skipif mysql # not compatible
query II rowsort label-4916
SELECT MAX ( - col1 ), ( - 65 ) AS col0 FROM tab0
----
-1
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT ALL 23 * COUNT( * ) AS col0 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL 23 * COUNT ( * ) AS col0 FROM tab1
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4918
SELECT + 10 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4918
SELECT + 10 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + 40 ) * - col1 AS col2 FROM tab2
----
-2040
-2680
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT MAX( DISTINCT + + col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4920
SELECT MAX ( DISTINCT + + col0 ) AS col0 FROM tab1
----
91

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + ( - col0 ) IN ( col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 * col0 + + col2 FROM tab2 AS cor0 WHERE NOT col0 + + - 98 - 54 >= col0 + + col0
----
2369
4968
5083

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + + col0 ) NOT BETWEEN - col2 - + col0 AND + - 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT + MIN( + + col1 ) + + 12 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-4924
SELECT + MIN ( + + col1 ) + + 12 FROM tab0 AS cor0
----
13

query I rowsort
SELECT DISTINCT + col2 + - ( + 26 ) + + 51 + col1 + - 4 FROM tab1 AS cor0
----
131
136
85

query I rowsort
SELECT ALL + 76 + - 66 AS col0 FROM tab0 AS cor0
----
10
10
10

query I rowsort
SELECT - + 65 AS col1 FROM tab1 cor0
----
-65
-65
-65

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col0 + - - col0 * - + 76
----

query I rowsort
SELECT DISTINCT - 64 + 90 AS col0 FROM tab2 AS cor0 WHERE NOT col2 + col2 + - col2 * 47 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4930
SELECT CAST( + 56 AS DECIMAL ) / + col0 FROM tab0 AS cor0 WHERE ( col2 ) / + col1 - - col0 IN ( + + col1 * - 74 )
----

skipif mysql # not compatible
query I rowsort label-4930
SELECT CAST ( + 56 AS REAL ) / + col0 FROM tab0 AS cor0 WHERE ( col2 ) / + col1 - - col0 IN ( + + col1 * - 74 )
----

query I rowsort
SELECT 72 - - col0 AS col0 FROM tab1 AS cor0
----
123
157
163

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 78 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT + 60 + - 74 - + COUNT( * ) * 70 AS col0 FROM tab0 AS cor0
----
-224

skipif mysql # not compatible
query I rowsort label-4933
SELECT + 60 + - 74 - + COUNT ( * ) * 70 AS col0 FROM tab0 AS cor0
----
-224

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT - 43 + - COUNT( * ) AS col1 FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-4935
SELECT - 43 + - COUNT ( * ) AS col1 FROM tab1
----
-46

query I rowsort
SELECT col2 + - 3 FROM tab2
----
20
37
55

query I rowsort
SELECT col2 * - 48 + - - col2 AS col2 FROM tab0
----
-2209
-4653
-470

query III rowsort
SELECT ALL * FROM tab0 WHERE + - ( 38 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + ( + + col1 ) AS col1 FROM tab1
----
14
47
5

query III rowsort
SELECT * FROM tab1 WHERE - col1 > 29
----

query I rowsort
SELECT 79 * + + 87 + + col1 FROM tab0
----
6874
6894
6954

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT MAX( DISTINCT - - col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4942
SELECT MAX ( DISTINCT - - col2 ) FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4943
SELECT - col1 / + CAST( NULL AS SIGNED ) - - 41 + + 96 - - + col0 AS col0 FROM tab0 WHERE + 41 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4943
SELECT - col1 / + CAST ( NULL AS INTEGER ) - - 41 + + 96 - - + col0 AS col0 FROM tab0 WHERE + 41 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4944
SELECT DISTINCT - col1 + + col0 + + + col2 + ( - - 83 ) * + + CAST( NULL AS DECIMAL ) - + col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4944
SELECT DISTINCT - col1 + + col0 + + + col2 + ( - - 83 ) * + + CAST ( NULL AS REAL ) - + col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + + 39 ) - + col0 * + col1 col1 FROM tab1 AS cor0
----
-386
-4238
-675

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <> - col1 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4947
SELECT + CAST( NULL AS SIGNED ) * - - col0 AS col0, - col0 AS col2 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-4947
SELECT + CAST ( NULL AS INTEGER ) * - - col0 AS col0, - col0 AS col2 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( ( NOT ( NULL ) IS NOT NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( ( NOT ( NULL ) IS NOT NULL ) )
----
0

query I rowsort
SELECT + + 93 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 38 col0 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT 26 * - 64 * 51 FROM tab1 AS cor0
----
-84864
-84864
-84864

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL IN ( col2, + ( + 49 ) * - - col2 * + 17 + + - col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4953
SELECT + MAX( 5 ) col1, - SUM( DISTINCT - 43 ) + ( COUNT( * ) ) AS col2 FROM tab0 cor0 WHERE NOT ( col1 ) IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4953
SELECT + MAX ( 5 ) col1, - SUM ( DISTINCT - 43 ) + ( COUNT ( * ) ) AS col2 FROM tab0 cor0 WHERE NOT ( col1 ) IS NOT NULL
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT ALL + COUNT( + - 34 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4954
SELECT ALL + COUNT ( + - 34 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4955
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 >= - CAST( NULL AS SIGNED ) * + + col2 - col0
----

skipif mysql # not compatible
query III rowsort label-4955
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 >= - CAST ( NULL AS INTEGER ) * + + col2 - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT + - MAX( DISTINCT - col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4956
SELECT + - MAX ( DISTINCT - col1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT - ( - 19 ) AS col0 FROM tab2 AS cor0
----
19
19
19

query I rowsort
SELECT ALL col2 * - + col2 + - + col0 AS col2 FROM tab0
----
-187
-2224
-9898

query I rowsort
SELECT DISTINCT - - col0 * + col0 AS col1 FROM tab0 WHERE + + col2 IS NOT NULL
----
225
7569
9409

query I rowsort
SELECT DISTINCT col1 + + - 69 * - col0 AS col0 FROM tab0
----
1116
6024
6694

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT DISTINCT + MIN( ALL + ( + col1 ) ) * - COUNT( * ) AS col2 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-4961
SELECT DISTINCT + MIN ( ALL + ( + col1 ) ) * - COUNT ( * ) AS col2 FROM tab1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4962
SELECT DISTINCT col1 * - + col0 * - - CAST( - + col1 AS SIGNED ) + - col2 * - col2 col0 FROM tab1 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4962
SELECT DISTINCT col1 * - + col0 * - - CAST ( - + col1 AS INTEGER ) + - col2 * - col2 col0 FROM tab1 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT ALL - 25 * - COUNT( * ) AS col1 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL - 25 * - COUNT ( * ) AS col1 FROM tab0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT MIN( ALL + + 93 ) AS col2 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-4964
SELECT MIN ( ALL + + 93 ) AS col2 FROM tab1
----
93

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 44 * + ( - 63 ) * + 90 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * + 45 FROM tab0 AS cor0
----
-3645
-45
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT COUNT( * ) col2 FROM tab1 AS cor0 WHERE + col2 * - + col2 * - + 21 / - col1 - - col0 NOT IN ( + - col0 - + + ( + col1 ) )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4967
SELECT COUNT ( * ) col2 FROM tab1 AS cor0 WHERE + col2 * - + col2 * - + 21 / - col1 - - col0 NOT IN ( + - col0 - + + ( + col1 ) )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4968
SELECT 0 * + ( + CAST( + 88 AS SIGNED ) ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4968
SELECT 0 * + ( + CAST ( + 88 AS INTEGER ) ) FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - + 89 ) col2 FROM tab2 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT ALL MIN( - 48 ) AS col2 FROM tab2 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON NOT NULL IS NULL
----
-48

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL MIN ( - 48 ) AS col2 FROM tab2 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON NOT NULL IS NULL
----
-48

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 BETWEEN col2 AND ( - - 57 + - col0 )
----

query I rowsort
SELECT 42 + - 80 + - 37 FROM tab1 cor0
----
-75
-75
-75

query I rowsort
SELECT ALL 13 * col2 + - col2 AS col1 FROM tab1 AS cor0
----
1152
708
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2, - col1 col0 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT ALL - COUNT( ALL + - col0 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL - COUNT ( ALL + - col0 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT - MAX( - 16 ) AS col1 FROM tab1 cor0
----
16

skipif mysql # not compatible
query I rowsort label-4976
SELECT - MAX ( - 16 ) AS col1 FROM tab1 cor0
----
16

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 > + 98
----

query I rowsort
SELECT col1 - ( + 22 ) + - 60 AS col0 FROM tab0
----
-1
-61
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4979
SELECT + CAST( NULL AS SIGNED ) - - + 48 + + AVG ( ALL - col0 ) + - 30 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4979
SELECT + CAST ( NULL AS INTEGER ) - - + 48 + + AVG ( ALL - col0 ) + - 30 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - + 78 AS col1 FROM tab0 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT - - COUNT( * ) * 6 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
54

skipif mysql # not compatible
query I rowsort label-4981
SELECT - - COUNT ( * ) * 6 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
54

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 WHERE NOT col1 IS NULL
----
23
40
58

query I rowsort
SELECT - 66 * - col0 AS col1 FROM tab1
----
3366
5610
6006

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT - - MAX( - - col0 ) col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4984
SELECT - - MAX ( - - col0 ) col2 FROM tab2 AS cor0
----
75

query II rowsort
SELECT - col2 * - + 38 * - ( - col0 ) AS col0, col2 * col0 * - 54 FROM tab0 AS cor0
----
26790
-38070
33060
-46980
364914
-518562

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT - COUNT( + + col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4986
SELECT - COUNT ( + + col2 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 85 + - + 52 FROM tab2 AS cor0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4988
SELECT ALL - 19 + - 92 + 97 + CAST( - 64 AS SIGNED ) * + col0 * col2 AS col0 FROM tab1
----
-313358
-320974
-396046

skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL - 19 + - 92 + 97 + CAST ( - 64 AS INTEGER ) * + col0 * col2 AS col0 FROM tab1
----
-313358
-320974
-396046

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT ALL COUNT( + + col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL COUNT ( + + col1 ) AS col0 FROM tab2
----
3

query II rowsort
SELECT col1 + + 72, + col0 AS col2 FROM tab1
----
119
91
77
85
86
51

query I rowsort
SELECT DISTINCT - 49 AS col2 FROM tab2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT ALL + MAX( DISTINCT 5 ) AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN - 17 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL + MAX ( DISTINCT 5 ) AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN - 17 AND NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * + 86 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4994
SELECT ALL ( - - col0 ) col1 FROM tab0 AS cor0 WHERE NOT - ( col1 ) * + 84 + - - CAST( + 34 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4994
SELECT ALL ( - - col0 ) col1 FROM tab0 AS cor0 WHERE NOT - ( col1 ) * + 84 + - - CAST ( + 34 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT ALL COUNT( col0 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4995
SELECT ALL COUNT ( col0 ) FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT col1 + + col1 + - - ( - col2 ) AS col0 FROM tab2
----
114
76
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT ALL - 68 + - 94 + 74 * COUNT( * ) * 45 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
29808

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL - 68 + - 94 + 74 * COUNT ( * ) * 45 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
29808

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 36 ) IS NULL
----

query I rowsort
SELECT ALL - 59 * 1 - - col2 AS col1 FROM tab0 AS cor0
----
-12
-49
40

query I rowsort
SELECT DISTINCT + - col1 * + 2 AS col1 FROM tab0 AS cor0
----
-162
-2
-42

query I rowsort
SELECT DISTINCT - col2 * + - ( + col1 ) + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT 55 + - col0 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5002
SELECT ALL + COUNT( * ) - + MIN( - 96 ), - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
99
NULL

skipif mysql # not compatible
query II rowsort label-5002
SELECT ALL + COUNT ( * ) - + MIN ( - 96 ), - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT COUNT( * ) + + SUM( - - 72 ) FROM tab0 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-5003
SELECT COUNT ( * ) + + SUM ( - - 72 ) FROM tab0 AS cor0
----
219

query I rowsort
SELECT + + col2 + - - col0 AS col2 FROM tab2 AS cor0
----
104
133
69

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col2 IS NOT NULL
----

query I rowsort
SELECT - 35 + - col0 AS col2 FROM tab2
----
-110
-81
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE 42 / + ( + col0 ) + - 91 >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5008
SELECT DISTINCT col2 DIV - col1 AS col1, col0 FROM tab2
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-5008
SELECT DISTINCT col2 / - col1 AS col1, col0 FROM tab2
----
0
46
0
64
0
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5009
SELECT ALL 88 AS col0, + MIN( ALL + + ( 21 ) ) AS col1 FROM tab0
----
88
21

skipif mysql # not compatible
query II rowsort label-5009
SELECT ALL 88 AS col0, + MIN ( ALL + + ( 21 ) ) AS col1 FROM tab0
----
88
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT DISTINCT + COUNT( * ) * + 61 FROM tab2 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT + COUNT ( * ) * + 61 FROM tab2 AS cor0
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5011
SELECT col2 * + ( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5011
SELECT col2 * + ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - + col0 * - - col2, col1 AS col1 FROM tab1 AS cor0
----
-4896
14
-5015
5
-6188
47

query II rowsort
SELECT + 35 AS col1, - 48 + + col1 AS col1 FROM tab1 AS cor0
----
35
-1
35
-34
35
-43

query II rowsort
SELECT col0, ( - col0 ) FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - col2 <> + - ( + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5016
SELECT - 13 col0, + COUNT( * ) FROM tab2 AS cor0
----
-13
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5016
SELECT - 13 col0, + COUNT ( * ) FROM tab2 AS cor0
----
-13
3

query I rowsort
SELECT ALL + - col0 * - - 77 FROM tab1 AS cor0
----
-3927
-6545
-7007

query II rowsort
SELECT col0, + col2 * + 11 * + - col0 AS col2 FROM tab1 AS cor0
----
51
-53856
85
-55165
91
-68068

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5019
SELECT ALL - - col1 * - 74 / + col0 - + col1 + CAST( NULL AS SIGNED ) * col1 * col0 AS col1 FROM tab0 cor0 WHERE ( 80 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-5019
SELECT ALL - - col1 * - 74 / + col0 - + col1 + CAST ( NULL AS INTEGER ) * col1 * col0 AS col1 FROM tab0 cor0 WHERE ( 80 IS NULL )
----

query I rowsort
SELECT DISTINCT + + col2 + - - col2 AS col1 FROM tab2 WHERE NOT + 39 IS NULL
----
116
46
80

query I rowsort
SELECT - + col0 * col1 * col0 AS col1 FROM tab0 AS cor0
----
-158949
-18225
-9409

query I rowsort
SELECT - 10 + + col0 FROM tab2 AS cor0
----
36
54
65

query I rowsort
SELECT + + col1 + + - 65 AS col2 FROM tab1 AS cor0
----
-18
-51
-60

query I rowsort
SELECT ALL + 3 * + + col0 FROM tab2 AS cor0
----
138
192
225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5025
SELECT - CAST( - COUNT( col2 ) AS SIGNED ) FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5025
SELECT - CAST ( - COUNT ( col2 ) AS INTEGER ) FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5026
SELECT DISTINCT col1 DIV + ( + - col0 ) + col1 * - col0 FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT col1 / + ( + - col0 ) + col1 * - col0 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5027
SELECT - CAST( NULL AS SIGNED ) * - 64 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5027
SELECT - CAST ( NULL AS INTEGER ) * - 64 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 53 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-53
-53
-53

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT ALL + 25 + - - 42 + - - MAX( ALL - 23 ) FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-5030
SELECT ALL + 25 + - - 42 + - - MAX ( ALL - 23 ) FROM tab0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT ALL ( + 31 ) * COUNT( * ) + + MAX( - - 83 ) FROM tab1
----
176

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL ( + 31 ) * COUNT ( * ) + + MAX ( - - 83 ) FROM tab1
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT + COUNT( * ) * - 18 FROM tab0, tab2 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-5032
SELECT + COUNT ( * ) * - 18 FROM tab0, tab2 AS cor0
----
-162

query I rowsort
SELECT ALL + 63 + col0 AS col0 FROM tab0
----
150
160
78

query I rowsort
SELECT ALL - col1 * + col0 * 51 AS col0 FROM tab2
----
-119646
-251328
-256275

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT - - MAX( - 98 ) AS col0 FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-5035
SELECT - - MAX ( - 98 ) AS col0 FROM tab1 AS cor0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT - - MAX( - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5036
SELECT - - MAX ( - col1 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - + 70 + col0 FROM tab2 AS cor0
----
-24
-6
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT DISTINCT ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5038
SELECT DISTINCT ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT col0 * + ( - col2 ) + + col2 FROM tab2
----
-1035
-2520
-4292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5040
SELECT - CAST( NULL AS SIGNED ) + + 54 + col2 + col1 / + col0 * + col2 + + 96 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5040
SELECT - CAST ( NULL AS INTEGER ) + + 54 + col2 + col1 / + col0 * + col2 + + 96 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 40 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5042
SELECT ALL ( + col0 ) - - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5042
SELECT ALL ( + col0 ) - - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT MIN( - + 3 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5043
SELECT MIN ( - + 3 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5044
SELECT DISTINCT - - CAST( NULL AS SIGNED ) - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5044
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) - col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col1 ) * + col1 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5046
SELECT CAST( - col0 AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5046
SELECT CAST ( - col0 AS REAL ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + ( 93 ) FROM tab2
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT 42 * - - COUNT( * ) FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-5048
SELECT 42 * - - COUNT ( * ) FROM tab0
----
126

query I rowsort
SELECT + col0 * + + col2 / 25 + + - 23 AS col1 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT DISTINCT - SUM( + col1 ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-5050
SELECT DISTINCT - SUM ( + col1 ) AS col2 FROM tab0
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-5051
SELECT + 52 DIV + col0 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-5051
SELECT + 52 / + col0 FROM tab0
----
0
0
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5052
SELECT - COUNT( * ) DIV MAX( ALL - + col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5052
SELECT - COUNT ( * ) / MAX ( ALL - + col0 ) FROM tab1
----
0

query I rowsort
SELECT ALL - 39 * col0 AS col2 FROM tab0 AS cor0
----
-3393
-3783
-585

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 28 * - col1 * + col2 >= + ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT DISTINCT - + MIN( - col2 ) FROM tab0 AS cor0 WHERE + ( - + 62 ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5055
SELECT DISTINCT - + MIN ( - col2 ) FROM tab0 AS cor0 WHERE + ( - + 62 ) > NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( + col2, + col1, + col2, - 2 - + ( + col1 ) + col2 - - col1 + - col0 + - col2 * - ( - + col1 ) * - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5057
SELECT ALL + - col1 DIV - 23 AS col2 FROM tab1 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5057
SELECT ALL + - col1 / - 23 AS col2 FROM tab1 cor0
----
0
0
2

query I rowsort
SELECT DISTINCT + 88 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
88

query II rowsort
SELECT DISTINCT + col0, 29 AS col1 FROM tab2
----
46
29
64
29
75
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT ALL + 57 + + COUNT( * ) col1 FROM tab2, tab2 cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5060
SELECT ALL + 57 + + COUNT ( * ) col1 FROM tab2, tab2 cor0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5061
SELECT - MIN( + CAST( - + col2 AS SIGNED ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-5061
SELECT - MIN ( + CAST ( - + col2 AS INTEGER ) ) FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5062
SELECT ALL CAST( NULL AS SIGNED ) * - col2 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL CAST ( NULL AS INTEGER ) * - col2 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 78 * col2 + + ( + col0 ) FROM tab2 AS cor0
----
1840
3184
4599

query I rowsort
SELECT ALL + + 83 * + + 60 AS col2 FROM tab1 cor0
----
4980
4980
4980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5065
SELECT DISTINCT 55 DIV - 20 + COUNT( * ) + + 27 AS col1 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-5065
SELECT DISTINCT 55 / - 20 + COUNT ( * ) + + 27 AS col1 FROM tab0 AS cor0
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5066
SELECT DISTINCT + + MAX( DISTINCT - col1 ) DIV 78 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT + + MAX ( DISTINCT - col1 ) / 78 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5067
SELECT ALL - col0 DIV + + col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5067
SELECT ALL - col0 / + + col1 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT - SUM( DISTINCT - + col0 ) col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5068
SELECT - SUM ( DISTINCT - + col0 ) col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT ALL 37 + - COUNT( * ) * 69 FROM tab0
----
-170

skipif mysql # not compatible
query I rowsort label-5069
SELECT ALL 37 + - COUNT ( * ) * 69 FROM tab0
----
-170

query I rowsort
SELECT - ( + col1 ) + - col0 FROM tab0
----
-108
-96
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - - col0 + - - col0 col1 FROM tab2
----
2162
4160
5700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5072
SELECT ALL - 74 FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5072
SELECT ALL - 74 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5073
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 86 + + col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5073
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 86 + + col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5074
SELECT DISTINCT + col1 - + 2 DIV + col1 AS col2 FROM tab0 AS cor0
----
-1
21
81

skipif mysql # not compatible
query I rowsort label-5074
SELECT DISTINCT + col1 - + 2 / + col1 AS col2 FROM tab0 AS cor0
----
-1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT 31 + - COUNT( * ) col2 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5075
SELECT 31 + - COUNT ( * ) col2 FROM tab0 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT DISTINCT - 29 * 89 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-2584

skipif mysql # not compatible
query I rowsort label-5076
SELECT DISTINCT - 29 * 89 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-2584

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT - + ( SUM( - col0 ) ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-5077
SELECT - + ( SUM ( - col0 ) ) AS col2 FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT + MAX( + col0 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-5078
SELECT + MAX ( + col0 ) AS col0 FROM tab2
----
75

onlyif mysql # DIV for integer division: 
query II rowsort label-5079
SELECT col1 * + + col0 - col2 - + + col1 + - col2 DIV - 14, 25 AS col0 FROM tab2
----
2273
25
4813
25
4904
25

skipif mysql # not compatible
query II rowsort label-5079
SELECT col1 * + + col0 - col2 - + + col1 + - col2 / - 14, 25 AS col0 FROM tab2
----
2273
25
4813
25
4904
25

query I rowsort
SELECT DISTINCT - col0 + - - 35 FROM tab0 WHERE col0 NOT IN ( + col2 )
----
-52
-62
20

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 68 / col2 BETWEEN 48 * - col1 * + 65 + - col0 AND NULL
----

query I rowsort
SELECT DISTINCT + + ( + 23 ) AS col1 FROM tab0 AS cor0
----
23

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT ALL + ( + 69 ) * COUNT( * ) FROM tab2 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL + ( + 69 ) * COUNT ( * ) FROM tab2 AS cor0
----
207

query II rowsort
SELECT + - col1 AS col0, + 28 FROM tab0 AS cor0
----
-1
28
-21
28
-81
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5086
SELECT 24 + col0 AS col1, col2 * col1 col0 FROM tab2 AS cor0 WHERE NOT + col0 + - + col2 * - col1 * - + CAST( NULL AS SIGNED ) * + col0 IS NOT NULL
----
70
1173
88
3080
99
3886

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5086
SELECT 24 + col0 AS col1, col2 * col1 col0 FROM tab2 AS cor0 WHERE NOT + col0 + - + col2 * - col1 * - + CAST ( NULL AS INTEGER ) * + col0 IS NOT NULL
----
70
1173
88
3080
99
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT DISTINCT COUNT( * ) * COUNT( DISTINCT - col0 ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5087
SELECT DISTINCT COUNT ( * ) * COUNT ( DISTINCT - col0 ) AS col0 FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5088
SELECT ALL - CAST( NULL AS SIGNED ) + + col0 + + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5088
SELECT ALL - CAST ( NULL AS INTEGER ) + + col0 + + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - - 68 * - - col0 + + - col0 FROM tab2 WHERE NOT 61 BETWEEN - col2 * + + col0 + + col1 / col1 AND + - 28
----
3082
4288
5025

query I rowsort
SELECT - + 96 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col2, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT ALL - + SUM( - - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL - + SUM ( - - col2 ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT 97 * - + 13 AS col2 FROM tab2 AS cor0
----
-1261
-1261
-1261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5093
SELECT col2 + col1 - - CAST( - + col1 AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5093
SELECT col2 + col1 - - CAST ( - + col1 AS INTEGER ) FROM tab2
----
23
40
58

query I rowsort
SELECT - ( - 63 ) + + + col2 * + + 65 + col1 AS col2 FROM tab0 AS cor0
----
3199
6499
734

query I rowsort
SELECT DISTINCT - col0 * + 90 AS col1 FROM tab0 AS cor0
----
-1350
-7830
-8730

query I rowsort
SELECT DISTINCT + + 8 + 95 FROM tab1 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT + - COUNT( * ) + - 23 FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-5097
SELECT + - COUNT ( * ) + - 23 FROM tab0 AS cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT DISTINCT SUM( + + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5098
SELECT DISTINCT SUM ( + + col0 ) FROM tab2 AS cor0
----
185

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT - col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col0 + col2 + col1 + - col2 + - 50 AS col1 FROM tab0 AS cor0
----
46
48
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5102
SELECT 0 * col1 DIV + ( 20 ) AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5102
SELECT 0 * col1 / + ( 20 ) AS col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 82 <> - + col1
----

query I rowsort
SELECT ALL col1 + - + 57 AS col0 FROM tab1
----
-10
-43
-52

query III rowsort
SELECT 65, + col1, + - col1 AS col2 FROM tab0
----
9 values hashing to 76343fcc3da7144fdd98923c6cd3ccc7

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE col1 > col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5107
SELECT + col1 - - ( - col1 ) DIV + col1 AS col0 FROM tab2
----
50
66
76

skipif mysql # not compatible
query I rowsort label-5107
SELECT + col1 - - ( - col1 ) / + col1 AS col0 FROM tab2
----
50
66
76

query I rowsort
SELECT col2 - + + ( + col2 ) + - col0 FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT col2 - + 46 AS col1 FROM tab0 AS cor0
----
-36
1
53

query II rowsort
SELECT DISTINCT + ( 24 ) AS col1, - col2 AS col1 FROM tab2
----
24
-23
24
-40
24
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 66 col2, + ( - - 98 ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
18 values hashing to 99b55d212d4f6d3c4c4cc427b4961c82

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < ( + ( - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT - SUM( + + col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5113
SELECT - SUM ( + + col1 ) AS col2 FROM tab1 AS cor0
----
-66

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( + 81 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col1 + + col0 + + ( - 26 ) - + col0 * + + 27 + - + col2 / col0 * + col0 * col2 > NULL
----

query I rowsort
SELECT DISTINCT + ( - 82 ) * - col0 FROM tab0 WHERE NOT + col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5117
SELECT + col1 * - + 9 * - + col0 * - col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5117
SELECT + col1 * - + 9 * - + col0 * - col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 71 * - + col1 * ( + col0 ) * ( + col0 ) * - 91 + - col0 + - col0 AS col0 FROM tab0
----
1026969315
117751695
60791355

onlyif mysql # DIV for integer division: 
query I rowsort label-5119
SELECT DISTINCT - col1 * - + col0 * + col0 DIV + + col0 AS col1 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-5119
SELECT DISTINCT - col1 * - + col0 * + col0 / + + col0 AS col1 FROM tab1
----
425
4277
714

query II rowsort
SELECT DISTINCT col1 AS col2, ( - col2 ) FROM tab0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT + col2 * - 22 * + + 38 FROM tab2
----
-19228
-33440
-48488

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT DISTINCT - + MIN( ALL + col2 ) FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5122
SELECT DISTINCT - + MIN ( ALL + col2 ) FROM tab0 cor0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, - 31 col1 FROM tab1 cor0
----
59
-31
68
-31
96
-31

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 AS cor0 WHERE ( NOT + col2 NOT IN ( - col2 + - 91 * - col2, + col0 + - + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT MIN( ALL + - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-5125
SELECT MIN ( ALL + - col1 ) FROM tab0
----
-81

query I rowsort
SELECT DISTINCT + ( - 25 ) AS col0 FROM tab2 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT ALL COUNT( + col1 ) * - - 48 FROM tab2 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL COUNT ( + col1 ) * - - 48 FROM tab2 AS cor0
----
144

query I rowsort
SELECT - ( + col1 ) + + + col2 AS col2 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT MAX( + 18 ) + 26 AS col2 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-5129
SELECT MAX ( + 18 ) + 26 AS col2 FROM tab1
----
44

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 + - 98 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + 5 AS col0 FROM tab0
----
-10
-82
-92

query I rowsort
SELECT DISTINCT ( + col0 ) - - col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT + 59 * - ( - col0 ) AS col1 FROM tab0 AS cor0
----
5133
5723
885

query III rowsort
SELECT * FROM tab1 WHERE NOT + 91 NOT IN ( - + 79, - col1 * + col0, - + col2 * + 99 * 14 * - ( - col2 ) / col0 + - 83 + - col1 * + col2 + + col1 / - + 23 + - + col0 )
----

query I rowsort
SELECT 27 * - + col2 AS col2 FROM tab1
----
-1593
-1836
-2592

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT + COUNT( * ) * COUNT( * ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5136
SELECT + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN + col1 * col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 56 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5139
SELECT DISTINCT 3 DIV - col1 * - col2 * - + 21 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5139
SELECT DISTINCT 3 / - col1 * - col2 * - + 21 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5140
SELECT + - MAX( DISTINCT + col1 ) col0, + 95 AS col0 FROM tab2 AS cor0
----
-77
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5140
SELECT + - MAX ( DISTINCT + col1 ) col0, + 95 AS col0 FROM tab2 AS cor0
----
-77
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + - col1 col1 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-5142
SELECT DISTINCT - 14 DIV - + col0 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5142
SELECT DISTINCT - 14 / - + col0 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + col1 * + - ( + + col0 ) AS col1 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5144
SELECT ALL + + ( 36 ) DIV + - col1 col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5144
SELECT ALL + + ( 36 ) / + - col1 col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 54 col0, - ( - - col1 ) FROM tab1 AS cor0
----
54
-14
54
-47
54
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 63 col0 FROM tab1
----
-63
-63
-63

query I rowsort
SELECT DISTINCT - col2 * - col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - 6 ) col0, 75 AS col1 FROM tab1
----
-6
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 77 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( - 68 ) * - col1 FROM tab0 AS cor0
----
1428
5508
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT DISTINCT COUNT( * ) + + 84 * SUM( + + col2 ) AS col0 FROM tab2
----
10167

skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT COUNT ( * ) + + 84 * SUM ( + + col2 ) AS col0 FROM tab2
----
10167

query I rowsort
SELECT ALL - 64 + - 50 FROM tab0
----
-114
-114
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT - 72 * COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5153
SELECT - 72 * COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 32 * - - col2 AND col1 + + - col0 * col0
----

query I rowsort
SELECT - 82 * + col2 AS col0 FROM tab1 AS cor0
----
-4838
-5576
-7872

query I rowsort
SELECT col2 * - + col2 FROM tab0 cor0
----
-100
-2209
-9801

query I rowsort
SELECT DISTINCT col0 + + 90 * col0 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT 49 * - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col1 + + - 67 BETWEEN ( + col1 / - col1 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5158
SELECT 49 * - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col1 + + - 67 BETWEEN ( + col1 / - col1 ) AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5159
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE - ( - - col1 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5159
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE - ( - - col1 ) IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT ALL MAX( - col2 ) + COUNT( * ) FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-5160
SELECT ALL MAX ( - col2 ) + COUNT ( * ) FROM tab0
----
-7

query II rowsort
SELECT + 75 * - - col1 - + col2 + 40 AS col2, + col2 AS col2 FROM tab0
----
16
99
1605
10
6068
47

query I rowsort
SELECT ALL col0 + + - 81 FROM tab2
----
-17
-35
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT ALL COUNT( * ) * - ( - - 26 ) + - 5 AS col1 FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-5163
SELECT ALL COUNT ( * ) * - ( - - 26 ) + - 5 AS col1 FROM tab0
----
-83

query I rowsort
SELECT DISTINCT ( col0 ) - col2 FROM tab1
----
-45
23
26

query I rowsort
SELECT - 93 - - 62 AS col0 FROM tab0
----
-31
-31
-31

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 + + 57 IS NOT NULL AND NOT col1 BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT 14 + + COUNT( * ) FROM tab1 AS cor0 WHERE NULL <> + col2 * col1
----
14

skipif mysql # not compatible
query I rowsort label-5167
SELECT 14 + + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <> + col2 * col1
----
14

query I rowsort
SELECT DISTINCT ( col0 ) * + - 84 FROM tab2 AS cor0
----
-3864
-5376
-6300

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 cor0 WHERE NOT ( NOT ( NULL IS NOT NULL ) )
----

query I rowsort
SELECT 45 * + + 92 FROM tab2
----
4140
4140
4140

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT - + MIN( + col1 ) FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5171
SELECT - + MIN ( + col1 ) FROM tab1 cor0
----
-5

query I rowsort
SELECT ALL col0 * col2 * + - 45 AS col0 FROM tab0 AS cor0
----
-31725
-39150
-432135

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5173
SELECT ALL + CAST( + col1 AS SIGNED ) * + col1, - col0 AS col1 FROM tab2 AS cor0
----
2601
-46
4489
-75
5929
-64

skipif mysql # not compatible
query II rowsort label-5173
SELECT ALL + CAST ( + col1 AS INTEGER ) * + col1, - col0 AS col1 FROM tab2 AS cor0
----
2601
-46
4489
-75
5929
-64

query I rowsort
SELECT ALL - + 76 * - 60 FROM tab2 AS cor0
----
4560
4560
4560

onlyif mysql # DIV for integer division: 
query I rowsort label-5175
SELECT DISTINCT - ( + col2 ) DIV - col2 - + col2 FROM tab1 AS cor0
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-5175
SELECT DISTINCT - ( + col2 ) / - col2 - + col2 FROM tab1 AS cor0
----
-58
-67
-95

query II rowsort
SELECT ALL 39, col0 FROM tab0
----
39
15
39
87
39
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT DISTINCT SUM( - + col0 ) * + 78 - + + 33 FROM tab0 WHERE NULL IS NULL
----
-15555

skipif mysql # not compatible
query I rowsort label-5177
SELECT DISTINCT SUM ( - + col0 ) * + 78 - + + 33 FROM tab0 WHERE NULL IS NULL
----
-15555

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT COUNT( ALL - - 72 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5178
SELECT COUNT ( ALL - - 72 ) FROM tab1
----
3

query I rowsort
SELECT - 81 FROM tab1 WHERE NOT + - ( + 21 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col1 + - - 80 AS col0 FROM tab2
----
13
29
3

query I rowsort
SELECT ALL - 50 * - col1 + + col0 + + - 91 + + col1 FROM tab1
----
2397
249
674

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 79 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * - + 77 FROM tab0
----
-3619
-7623
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT ALL + + MIN( ALL + 28 ) AS col0 FROM tab0 AS cor0 WHERE NOT 10 IS NULL
----
28

skipif mysql # not compatible
query I rowsort label-5184
SELECT ALL + + MIN ( ALL + 28 ) AS col0 FROM tab0 AS cor0 WHERE NOT 10 IS NULL
----
28

query I rowsort
SELECT + ( - + ( - - col2 ) ) FROM tab1
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 WHERE + 8 + col2 <= NULL
----

query II rowsort
SELECT DISTINCT + col1 * - col2, col2 AS col1 FROM tab0 AS cor0
----
-210
10
-3807
47
-99
99

query I rowsort
SELECT ALL - ( - + col2 ) - 27 AS col2 FROM tab0 cor0
----
-17
20
72

query I rowsort
SELECT DISTINCT + ( + col2 ) - + + ( + col1 ) AS col0 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT ALL - MAX( col0 ) FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN - - col2 AND col1
----
-97

skipif mysql # not compatible
query I rowsort label-5190
SELECT ALL - MAX ( col0 ) FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN - - col2 AND col1
----
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 IN ( + 0, + col1 / + col0 + - 90, + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5192
SELECT + AVG ( - - CAST( NULL AS SIGNED ) ) + - COUNT( * ) * 76 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5192
SELECT + AVG ( - - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) * 76 AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - + col2 * + + col1 * + - col0 * + + 20 + + col2 * + - 91 + - 44 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5194
SELECT CAST( NULL AS SIGNED ) + col2 * col1, + 37 AS col2 FROM tab1 AS cor0
----
NULL
37
NULL
37
NULL
37

skipif mysql # not compatible
query II rowsort label-5194
SELECT CAST ( NULL AS INTEGER ) + col2 * col1, + 37 AS col2 FROM tab1 AS cor0
----
NULL
37
NULL
37
NULL
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT COUNT( * ) FROM tab2 cor0 WHERE ( NULL BETWEEN + - col0 AND ( + + col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5195
SELECT COUNT ( * ) FROM tab2 cor0 WHERE ( NULL BETWEEN + - col0 AND ( + + col0 ) )
----
0

query I rowsort
SELECT + 75 + - ( ( - - 10 ) ) FROM tab2 AS cor0
----
65
65
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5197
SELECT ( - CAST( NULL AS SIGNED ) ) + + - 50 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5197
SELECT ( - CAST ( NULL AS INTEGER ) ) + + - 50 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 49 * - col1 + - col0 FROM tab2
----
-2545
-3358
-3837

query I rowsort
SELECT DISTINCT 91 * - 32 * - col1 FROM tab2
----
148512
195104
224224

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT DISTINCT + COUNT( ALL - col1 ) col2 FROM tab0 WHERE + 66 = + 65 - + - 25 + - ( + ( - col2 ) )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5200
SELECT DISTINCT + COUNT ( ALL - col1 ) col2 FROM tab0 WHERE + 66 = + 65 - + - 25 + - ( + ( - col2 ) )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col1 col2 FROM tab1
----
10
28
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, col0 AS col2 FROM tab2
----
51
46
67
75
77
64

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 < - 82 * - + col2 * + + col0 * - + 43 - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 34 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( col2 ) * 38 * + 67 FROM tab0 cor0
----
119662
252054
25460

query I rowsort
SELECT DISTINCT + col2 * - 74 * + - 80 AS col0 FROM tab2 AS cor0
----
136160
236800
343360

query I rowsort
SELECT DISTINCT - col2 * - 65 + + col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5208
SELECT 4 DIV + + 67 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5208
SELECT 4 / + + 67 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT ALL - COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL - COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 1 ) col1 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT - 37 * + COUNT( * ) AS col0 FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-5211
SELECT - 37 * + COUNT ( * ) AS col0 FROM tab0
----
-111

query I rowsort
SELECT - + 36 AS col1 FROM tab2 WHERE NOT col0 * - col1 IS NOT NULL
----

query I rowsort
SELECT + 3 * col1 FROM tab0
----
243
3
63

query I rowsort
SELECT ALL - ( + 29 ) * + col1 FROM tab2 AS cor0
----
-1479
-1943
-2233

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT ALL + COUNT( * ) * + + 76 AS col2 FROM tab1 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL + COUNT ( * ) * + + 76 AS col2 FROM tab1 AS cor0
----
228

query I rowsort
SELECT + col2 * - col1 - - col2 + ( ( - col1 ) ) FROM tab0 cor0
----
-1
-221
-3841

query I rowsort
SELECT DISTINCT + - ( + - col2 ) * - - 58 * - col2 FROM tab1 AS cor0
----
-201898
-268192
-534528

onlyif mysql # DIV for integer division: 
query III rowsort label-5218
SELECT col1 + - col2 AS col1, - col0 * + 11 * + + col0 AS col0, col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
9 values hashing to 2e4f09a6f5f8770ddb62d6c0008714f4

skipif mysql # not compatible
query III rowsort label-5218
SELECT col1 + - col2 AS col1, - col0 * + 11 * + + col0 AS col0, col1 / - col1 AS col1 FROM tab1 AS cor0
----
9 values hashing to 2e4f09a6f5f8770ddb62d6c0008714f4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5219
SELECT 9 * CAST( NULL AS SIGNED ) + + col1 + + CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5219
SELECT 9 * CAST ( NULL AS INTEGER ) + + col1 + + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5220
SELECT DISTINCT ( - 72 ) DIV 22 DIV - 96, + col0 col1 FROM tab0 AS cor0
----
0
15
0
87
0
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5220
SELECT DISTINCT ( - 72 ) / 22 / - 96, + col0 col1 FROM tab0 AS cor0
----
0
15
0
87
0
97

query I rowsort
SELECT DISTINCT + 44 * + - col2 FROM tab1
----
-2596
-2992
-4224

query II rowsort
SELECT ALL - ( + col2 ) + - - col2, col1 FROM tab1
----
0
14
0
47
0
5

query I rowsort
SELECT ALL col0 + - + col1 FROM tab2
----
-13
-5
8

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE NOT NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5225
SELECT - col1 DIV + + 67 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5225
SELECT - col1 / + + 67 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + 49 * + col2 AS col1 FROM tab1
----
2891
3332
4704

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT 78 * - COUNT( * ) FROM tab0 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-5227
SELECT 78 * - COUNT ( * ) FROM tab0 AS cor0
----
-234

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL > col0 * - 24 + + + col1 )
----

query I rowsort
SELECT col1 + - + 45 AS col1 FROM tab0 AS cor0
----
-24
-44
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT ALL + 38 - MAX( DISTINCT - + col1 ) - - - 30 * - COUNT( ALL + ( 66 ) ) col0 FROM tab2
----
179

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5230
SELECT ALL + 38 - MAX ( DISTINCT - + col1 ) - - - 30 * - COUNT ( ALL + ( 66 ) ) col0 FROM tab2
----
179

query I rowsort
SELECT 7 AS col0 FROM tab2 cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT DISTINCT + SUM( ALL 54 ) FROM tab0 AS cor0 WHERE NOT - col2 * - 93 IS NULL
----
162

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT + SUM ( ALL 54 ) FROM tab0 AS cor0 WHERE NOT - col2 * - 93 IS NULL
----
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 35 AS col2, - col0 + + 2 col1 FROM tab2 AS cor0
----
35
-44
35
-62
35
-73

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 42 < - 60
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-5235
SELECT DISTINCT - COUNT( * ) AS col0, - 40 AS col1 FROM tab2 AS cor0
----
-3
-40

skipif mysql # not compatible
query II rowsort label-5235
SELECT DISTINCT - COUNT ( * ) AS col0, - 40 AS col1 FROM tab2 AS cor0
----
-3
-40

query I rowsort
SELECT + col0 * + col0 * - - col0 FROM tab1 AS cor0
----
132651
614125
753571

query I rowsort
SELECT + - col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-46
-64
-75

query I rowsort
SELECT + - 4 * + + col1 AS col2 FROM tab1 WHERE NOT NULL < + + 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT ALL 86 * - COUNT( * ) FROM tab0
----
-258

skipif mysql # not compatible
query I rowsort label-5239
SELECT ALL 86 * - COUNT ( * ) FROM tab0
----
-258

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 16 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 54 * - - 33 * + - 48 FROM tab0
----
85536
85536
85536

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5243
SELECT + 81 DIV + col2 AS col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5243
SELECT + 81 / + col2 AS col2 FROM tab1
----
0
1
1

query I rowsort
SELECT ALL 27 * col0 FROM tab2 cor0
----
1242
1728
2025

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT ALL + SUM( ALL col0 ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL + SUM ( ALL col0 ) AS col0 FROM tab1
----
227

query II rowsort
SELECT + col1, + ( - - col1 ) FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT DISTINCT col0 * col0 * col2 * - col2 FROM tab0 cor0
----
-497025
-756900
-92217609

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT ALL MAX( DISTINCT + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL MAX ( DISTINCT + col2 ) FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5250
SELECT ALL 69 AS col0 FROM tab0 cor0 WHERE + CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-5250
SELECT ALL 69 AS col0 FROM tab0 cor0 WHERE + CAST ( NULL AS INTEGER ) <= NULL
----

query I rowsort
SELECT ALL col1 + 13 FROM tab2
----
64
80
90

query I rowsort
SELECT DISTINCT + col0 + - 67 * + col1 FROM tab2
----
-3371
-4414
-5095

query I rowsort
SELECT - col1 + + col1 - col0 FROM tab1
----
-51
-85
-91

query II rowsort
SELECT + col0 + - col2, + col1 AS col0 FROM tab2
----
17
67
23
51
24
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5255
SELECT ALL COUNT( * ) + CAST( - - 47 AS SIGNED ) FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-5255
SELECT ALL COUNT ( * ) + CAST ( - - 47 AS INTEGER ) FROM tab1
----
50

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ( - + 88 ) FROM tab1 AS cor0 WHERE NULL IN ( 88, col0 + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5258
SELECT 4 DIV 33 + - col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5258
SELECT 4 / 33 + - col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT ALL + COUNT( DISTINCT + 43 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL + COUNT ( DISTINCT + 43 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT - - col2 + col0 + 25 + - col0 * + + col0 * + col2 AS col0 FROM tab0 AS cor0
----
-10488
-75568
-931270

query II rowsort
SELECT - ( 42 ) - 78, col2 FROM tab1
----
-120
59
-120
68
-120
96

query I rowsort
SELECT ALL 78 + - col0 AS col0 FROM tab1
----
-13
-7
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5263
SELECT - - col0 * + 22 * + CAST( NULL AS SIGNED ) * + col2 + + 54 + + - col1 * - col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5263
SELECT - - col0 * + 22 * + CAST ( NULL AS INTEGER ) * + col2 + + 54 + + - col1 * - col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5264
SELECT ALL - col1 DIV col1 + ( 50 ) AS col1 FROM tab0 AS cor0
----
49
49
49

skipif mysql # not compatible
query I rowsort label-5264
SELECT ALL - col1 / col1 + ( 50 ) AS col1 FROM tab0 AS cor0
----
49
49
49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5265
SELECT DISTINCT col1 * 53 FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-5265
SELECT DISTINCT col1 * 53 FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) <= NULL
----

query I rowsort
SELECT ALL + + 17 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 * - 46 > NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5267
SELECT ALL + + col2 - + 52 + + col2 DIV + - col1 - col2, col2 FROM tab2 AS cor0
----
-52
23
-52
40
-52
58

skipif mysql # not compatible
query II rowsort label-5267
SELECT ALL + + col2 - + 52 + + col2 / + - col1 - col2, col2 FROM tab2 AS cor0
----
-52
23
-52
40
-52
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT ALL ( + - COUNT( * ) ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL ( + - COUNT ( * ) ) AS col0 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT + - 47 + - COUNT( * ) FROM tab0 cor0
----
-50

skipif mysql # not compatible
query I rowsort label-5269
SELECT + - 47 + - COUNT ( * ) FROM tab0 cor0
----
-50

query I rowsort
SELECT DISTINCT col0 - + 73 + col0 * col1 AS col0 FROM tab1 cor0
----
4295
437
692

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 89 col1 FROM tab1 AS cor0
----
-89
-89
-89

query II rowsort
SELECT + col2 AS col2, 79 * - ( 83 ) * - col0 AS col2 FROM tab2 AS cor0
----
23
301622
40
419648
58
491775

query I rowsort
SELECT ALL - ( + - 92 ) FROM tab0 AS cor0
----
92
92
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 * + 6 * + - 65 * + ( col2 ) AS col1, col1 * col1 col1 FROM tab0 AS cor0
----
3822390
1
39000
441
861510
6561

query I rowsort
SELECT DISTINCT - 14 * col2 * + col2 + - - col2 FROM tab2 AS cor0
----
-22360
-47038
-7383

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 93 * + + col2 * col0 + - + 45 * - col0 IS NOT NULL
----

query I rowsort
SELECT col1 * + - 72 FROM tab2
----
-3672
-4824
-5544

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5278
SELECT 77 col2, - CAST( NULL AS SIGNED ) + + 19 * col0 * - 26 FROM tab1
----
77
NULL
77
NULL
77
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5278
SELECT 77 col2, - CAST ( NULL AS INTEGER ) + + 19 * col0 * - 26 FROM tab1
----
77
NULL
77
NULL
77
NULL

query II rowsort
SELECT DISTINCT 69, - 37 AS col0 FROM tab1
----
69
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT ALL COUNT( ALL + 89 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5280
SELECT ALL COUNT ( ALL + 89 ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 47 col2 FROM tab0 AS cor0
----
47
47
47

query I rowsort
SELECT DISTINCT - 74 + - - col2 * + - 86 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-4116
-8588
-934

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT ALL ( 88 ) + - + MAX( + - 77 ) FROM tab2
----
165

skipif mysql # not compatible
query I rowsort label-5283
SELECT ALL ( 88 ) + - + MAX ( + - 77 ) FROM tab2
----
165

query II rowsort
SELECT col2 AS col1, - col1 AS col1 FROM tab0 WHERE NOT + col2 BETWEEN NULL AND - col2 * - col1 + - col2 * + + 77
----
10
-21
99
-1

query I rowsort
SELECT ALL col2 * - - 69 AS col1 FROM tab2 cor0
----
1587
2760
4002

query I rowsort
SELECT ALL - - 41 AS col2 FROM tab0 AS cor0
----
41
41
41

query I rowsort
SELECT - 21 + + col1 * 55 AS col2 FROM tab2 AS cor0
----
2784
3664
4214

query I rowsort
SELECT DISTINCT + - 27 AS col0 FROM tab0 cor0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-5289
SELECT - 6 DIV + col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5289
SELECT - 6 / + col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT ALL + 49 + + COUNT( * ) col2 FROM tab0
----
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5290
SELECT ALL + 49 + + COUNT ( * ) col2 FROM tab0
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 col2 FROM tab1
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT + + COUNT( * ) AS col2 FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5292
SELECT + + COUNT ( * ) AS col2 FROM tab0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT ALL COUNT( * ) * + - 79 + - - 11 col0 FROM tab1, tab2 AS cor0
----
-700

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5293
SELECT ALL COUNT ( * ) * + - 79 + - - 11 col0 FROM tab1, tab2 AS cor0
----
-700

query II rowsort
SELECT ALL 4 + + 50 * + col2, - col2 + + - col1 + 88 * - col1 AS col1 FROM tab1
----
2954
-504
3404
-4251
4804
-1342

query III rowsort
SELECT * FROM tab1 WHERE col1 * - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-5296
SELECT ALL col0, + col1 DIV + col0 FROM tab2
----
46
1
64
1
75
0

skipif mysql # not compatible
query II rowsort label-5296
SELECT ALL col0, + col1 / + col0 FROM tab2
----
46
1
64
1
75
0

query I rowsort
SELECT + ( - - col0 ) + col2 - - + 20 FROM tab2 AS cor0
----
124
153
89

onlyif mysql # DIV for integer division: 
query I rowsort label-5298
SELECT col1 DIV + col1 + - col0 DIV 69 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5298
SELECT col1 / + col1 + - col0 / 69 FROM tab2
----
0
1
1

query I rowsort
SELECT ALL 5 FROM tab0 WHERE NOT NULL IN ( 91 )
----

query I rowsort
SELECT ALL + col2 * ( 20 ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
1980
200
940

query I rowsort
SELECT ALL + 75 * col1 FROM tab0
----
1575
6075
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT COUNT( ALL 87 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5302
SELECT COUNT ( ALL 87 ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 * + col1 NOT BETWEEN + col2 AND - col1 * + col1
----

query I rowsort
SELECT + 18 * - col1 + - col2 / - col1 AS col0 FROM tab1 WHERE ( 7 ) < ( ( col1 ) / 44 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 58 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + + 71 * col2 FROM tab0
----
3352
7126
797

query I rowsort
SELECT DISTINCT col2 + 76 AS col0 FROM tab2
----
116
134
99

query I rowsort
SELECT + 20 + - col1 FROM tab1
----
-27
15
6

query I rowsort
SELECT + col0 + col2 * + col1 FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT ALL SUM( col1 ) + - 87 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-5310
SELECT ALL SUM ( col1 ) + - 87 FROM tab0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT + SUM( + 82 ) AS col1 FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-5311
SELECT + SUM ( + 82 ) AS col1 FROM tab1
----
246

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 84 >= - col0 + + 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT ( MIN( + col2 ) ) col0 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5313
SELECT ( MIN ( + col2 ) ) col0 FROM tab2
----
23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( - col1 * + col1 + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <> ( 70 - - col2 * + col1 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( + 1 + col1 )
----

query I rowsort
SELECT + 3 + + col1 FROM tab2 WHERE NOT ( + col0 ) IS NULL
----
54
70
80

query I rowsort
SELECT + col1 + + 91 AS col1 FROM tab2 WHERE NOT - 49 * - col0 BETWEEN 93 * - col0 AND col1
----
142
158
168

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5319
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE - col1 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5320
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE ( NULL ) NOT IN ( + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-5320
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE ( NULL ) NOT IN ( + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 < ( 91 )
----
51
14
96
85
5
59

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 14 IS NULL
----

query I rowsort
SELECT - 58 + col2 * 44 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <= 57 + 39
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( - 28 ) AND + 36
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5325
SELECT + col0 + CAST( 74 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
1087
3569
455

skipif mysql # not compatible
query I rowsort label-5325
SELECT + col0 + CAST ( 74 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
1087
3569
455

query I rowsort
SELECT ALL 71 + - col1 AS col1 FROM tab2 AS cor0
----
-6
20
4

query I rowsort
SELECT ALL - + col1 + + 9 * col1 AS col1 FROM tab2 AS cor0
----
408
536
616

query I rowsort
SELECT 70 + - 2 * - 15 FROM tab1 WHERE NULL IS NULL
----
100
100
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5329
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - - col2 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5329
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - - col2 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL - 94 + + + col0 AS col2 FROM tab1
----
-3
-43
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT ALL COUNT( * ) + - - SUM( DISTINCT - 37 ) AS col2 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-5331
SELECT ALL COUNT ( * ) + - - SUM ( DISTINCT - 37 ) AS col2 FROM tab0
----
-34

query I rowsort
SELECT DISTINCT - 61 + 32 AS col2 FROM tab1
----
-29

query III rowsort
SELECT * FROM tab0 WHERE - col0 + + col0 IS NULL
----

query I rowsort
SELECT col1 * + + 40 + - col1 FROM tab0
----
3159
39
819

query I rowsort
SELECT ALL col2 + - - col1 * col0 AS col2 FROM tab2
----
2369
4968
5083

query III rowsort
SELECT * FROM tab2 WHERE ( col1 * - col0 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT DISTINCT - MAX( DISTINCT + col1 ) + SUM( 88 ) FROM tab1
----
217

skipif mysql # not compatible
query I rowsort label-5338
SELECT DISTINCT - MAX ( DISTINCT + col1 ) + SUM ( 88 ) FROM tab1
----
217

query I rowsort
SELECT ALL + 7 + - ( 70 + - col1 / col2 ) AS col2 FROM tab1 WHERE col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + + ( - + 52 ) * + col2 FROM tab1 AS cor0
----
-3068
-3536
-4992

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5341
SELECT - + col1 * + CAST( NULL AS DECIMAL ) / + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5341
SELECT - + col1 * + CAST ( NULL AS REAL ) / + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 27 * col2 AS col1 FROM tab2 AS cor0 WHERE + col1 BETWEEN NULL AND - col2 + 23 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5343
SELECT + CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE ( 85 * col1 ) BETWEEN col1 + + 6 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5343
SELECT + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE ( 85 * col1 ) BETWEEN col1 + + 6 AND NULL
----

query I rowsort
SELECT ALL - 73 - 17 FROM tab2 AS cor0
----
-90
-90
-90

query I rowsort
SELECT ALL + col2 * + col1 FROM tab1 AS cor0 WHERE NOT NULL <= col1 - - 99
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT DISTINCT MIN( + col1 ) * - 19 FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-5346
SELECT DISTINCT MIN ( + col1 ) * - 19 FROM tab1 AS cor0
----
-95

query I rowsort
SELECT DISTINCT + 53 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT ALL + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 BETWEEN ( 36 ) AND 61
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 * + - col0 AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 26 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT DISTINCT + - SUM( ALL - - 0 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5352
SELECT DISTINCT + - SUM ( ALL - - 0 ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN ( + - 70 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5354
SELECT ALL - COUNT( DISTINCT - ( + col1 ) ) * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL - COUNT ( DISTINCT - ( + col1 ) ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 85 * col1 FROM tab2 AS cor0
----
4335
5695
6545

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT + COUNT( ALL + 98 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 / + col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5356
SELECT + COUNT ( ALL + 98 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 / + col0 AND NULL
----
0

query I rowsort
SELECT DISTINCT 62 * + 30 FROM tab0 AS cor0
----
1860

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL OR ( - col1 ) <= NULL
----
-23
-40
-58

query I rowsort
SELECT ALL + + col2 * - col1 * + col2 FROM tab2 AS cor0
----
-123200
-225388
-26979

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT - ( MAX( DISTINCT + 97 ) ) * + COUNT( * ) FROM tab1 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-5360
SELECT - ( MAX ( DISTINCT + 97 ) ) * + COUNT ( * ) FROM tab1 AS cor0
----
-291

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 20
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5362
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN CAST( NULL AS SIGNED ) - + col0 * - col0 AND col0
----

skipif mysql # not compatible
query III rowsort label-5362
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN CAST ( NULL AS INTEGER ) - + col0 * - col0 AND col0
----

query I rowsort
SELECT - + 20 * - col0 AS col1 FROM tab2 AS cor0
----
1280
1500
920

onlyif mysql # DIV for integer division: 
query I rowsort label-5364
SELECT DISTINCT 5 DIV - 52 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5364
SELECT DISTINCT 5 / - 52 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5365
SELECT ALL - 61 DIV - col0, - col2 + col0 AS col0 FROM tab0
----
0
-2
0
77
4
-32

skipif mysql # not compatible
query II rowsort label-5365
SELECT ALL - 61 / - col0, - col2 + col0 AS col0 FROM tab0
----
0
-2
0
77
4
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT DISTINCT ( 27 ) * - MIN( 6 ) FROM tab1 WHERE NOT - col1 > - + ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5366
SELECT DISTINCT ( 27 ) * - MIN ( 6 ) FROM tab1 WHERE NOT - col1 > - + ( col0 )
----
NULL

query I rowsort
SELECT ALL col2 * col2 + - 35 FROM tab2 AS cor0
----
1565
3329
494

onlyif mysql # DIV for integer division: 
query I rowsort label-5368
SELECT - col1 DIV + col2 * + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5368
SELECT - col1 / + col2 * + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 59 col0 FROM tab0 AS cor0
----
1239
4779
59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col0 + - 25 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT + 26 + - 85 + COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + 58 ) IS NOT NULL
----
-59

skipif mysql # not compatible
query I rowsort label-5371
SELECT + 26 + - 85 + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + 58 ) IS NOT NULL
----
-59

query I rowsort
SELECT DISTINCT - col2 + col1 + + - col0 FROM tab2 AS cor0
----
-18
-27
-66

query I rowsort
SELECT DISTINCT - 82 + - + 6 + + col0 + - col2 FROM tab1
----
-133
-62
-65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5374
SELECT ALL + COUNT( * ) * + AVG ( + + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL + COUNT ( * ) * + AVG ( + + CAST ( NULL AS REAL ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 73 * col0 FROM tab0 AS cor0
----
1095
6351
7081

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 7 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - ( 21 ) AS col2 FROM tab0 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT ALL - MAX( - - 86 ) FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL - MAX ( - - 86 ) FROM tab2 AS cor0
----
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col0 FROM tab1 AS cor0 WHERE NOT ( col2 + - col1 ) IS NULL
----
-51
-85
-91

query I rowsort
SELECT - 7 AS col0 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN - col1 AND - col1
----
-7
-7
-7

query I rowsort
SELECT ALL + 46 + 96 AS col0 FROM tab0 AS cor0
----
142
142
142

query I rowsort
SELECT ALL + 47 AS col1 FROM tab1 cor0
----
47
47
47

query I rowsort
SELECT 2 * + col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN + + col0 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5385
SELECT DISTINCT 23 + + col2 + ( ( + + 14 ) ) + 17 DIV + col0 FROM tab2
----
60
77
95

skipif mysql # not compatible
query I rowsort label-5385
SELECT DISTINCT 23 + + col2 + ( ( + + 14 ) ) + 17 / + col0 FROM tab2
----
60
77
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT - MAX( ALL + col0 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-5386
SELECT - MAX ( ALL + col0 ) AS col1 FROM tab2
----
-75

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5387
SELECT ALL * FROM tab2 WHERE NULL IN ( 66 * col2 + - CAST( 72 AS DECIMAL ) + CAST( 32 AS SIGNED ) * col0 )
----

skipif mysql # not compatible
query III rowsort label-5387
SELECT ALL * FROM tab2 WHERE NULL IN ( 66 * col2 + - CAST ( 72 AS REAL ) + CAST ( 32 AS INTEGER ) * col0 )
----

query I rowsort
SELECT ALL 23 - 92 FROM tab1, tab0 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT ( - + 56 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 58 + + 54 + - + 10 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5391
SELECT DISTINCT - col2 - + ( + col2 ) * - + ( - - CAST( col0 AS SIGNED ) ) + col1 * col0 FROM tab0
----
1873
2687
9601

skipif mysql # not compatible
query I rowsort label-5391
SELECT DISTINCT - col2 - + ( + col2 ) * - + ( - - CAST ( col0 AS INTEGER ) ) + col1 * col0 FROM tab0
----
1873
2687
9601

query I rowsort
SELECT DISTINCT - 70 * 66 + + col2 FROM tab1
----
-4524
-4552
-4561

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT SUM( ALL - 53 ) - COUNT( * ) AS col0 FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-5393
SELECT SUM ( ALL - 53 ) - COUNT ( * ) AS col0 FROM tab0
----
-162

query I rowsort
SELECT 16 - - 26 AS col0 FROM tab2
----
42
42
42

query I rowsort
SELECT - 97 - - col0 + + + col0 * - 37 FROM tab0
----
-3229
-3589
-637

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 < - 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT ALL MIN( - - 93 ) + MAX( - + col0 ) col2 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5397
SELECT ALL MIN ( - - 93 ) + MAX ( - + col0 ) col2 FROM tab2 AS cor0
----
47

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 cor0 WHERE NOT ( - 17 * - 97 - + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5399
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5399
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + col0 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 48 / + + col0 AS col1 FROM tab1 AS cor0 WHERE 47 <= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5401
SELECT 90 DIV - COUNT( * ) col1 FROM tab1
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5401
SELECT 90 / - COUNT ( * ) col1 FROM tab1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT DISTINCT ( ( - ( COUNT( * ) ) ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5402
SELECT DISTINCT ( ( - ( COUNT ( * ) ) ) ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT ALL COUNT( ALL - col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL COUNT ( ALL - col1 ) AS col0 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
28

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 - - + 85 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT ALL COUNT( * ) * ( - 20 ) FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL COUNT ( * ) * ( - 20 ) FROM tab2 AS cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT ALL - - 13 * + + ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL - - 13 * + + ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
39

query II rowsort
SELECT + col0, + 69 FROM tab1
----
51
69
85
69
91
69

query II rowsort
SELECT - 56, - col0 AS col2 FROM tab2
----
-56
-46
-56
-64
-56
-75

query I rowsort
SELECT + col1 * - + col0 AS col0 FROM tab0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5411
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST( NULL AS DECIMAL ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-5411
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST ( NULL AS REAL ) <= NULL
----

query I rowsort
SELECT DISTINCT 15 * - col0 FROM tab1
----
-1275
-1365
-765

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5413
SELECT + col2 + - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5413
SELECT + col2 + - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col1 IN ( col2 + col1 + + 23 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 * - - col1 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( + - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 16 + - + ( - 5 ) + - - 81 FROM tab2
----
102
102
102

onlyif mysql # DIV for integer division: 
query I rowsort label-5418
SELECT DISTINCT + + 57 DIV - + col1 - - + col0 FROM tab2 AS cor0
----
45
64
75

skipif mysql # not compatible
query I rowsort label-5418
SELECT DISTINCT + + 57 / - + col1 - - + col0 FROM tab2 AS cor0
----
45
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5419
SELECT DISTINCT 44 DIV - COUNT( * ) FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT 44 / - COUNT ( * ) FROM tab1 AS cor0
----
-14

query I rowsort
SELECT + - col0 + - ( col2 ) FROM tab2 cor0
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT ALL - + MIN( DISTINCT col2 ) FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5421
SELECT ALL - + MIN ( DISTINCT col2 ) FROM tab0 cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5422
SELECT DISTINCT 60 AS col1 FROM tab2 AS cor0 WHERE NOT - 5 * - 25 NOT BETWEEN + 40 - - col1 + CAST( NULL AS SIGNED ) + + + col0 * + col2 AND + col0
----

skipif mysql # not compatible
query I rowsort label-5422
SELECT DISTINCT 60 AS col1 FROM tab2 AS cor0 WHERE NOT - 5 * - 25 NOT BETWEEN + 40 - - col1 + CAST ( NULL AS INTEGER ) + + + col0 * + col2 AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5423
SELECT - col2 DIV col0 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5423
SELECT - col2 / col0 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
0
0
0

query I rowsort
SELECT 33 + + col1 AS col0 FROM tab1 AS cor0
----
38
47
80

query I rowsort
SELECT - + 34 * - col2 + - + col0 - + col2 + - - 38 FROM tab2 AS cor0
----
1294
1877
751

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) * col1 * - col2 + + 10 col0 FROM tab1
----
-25065
-290826
-68534

query I rowsort
SELECT ALL col0 + - col0 * + col2 FROM tab0
----
-690
-783
-9506

query I rowsort
SELECT DISTINCT + 43 + + + 41 FROM tab0
----
84

query III rowsort
SELECT * FROM tab2 WHERE - 1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5430
SELECT DISTINCT - col1 FROM tab0 WHERE NULL NOT BETWEEN + + 77 + + CAST( + col1 AS SIGNED ) + - + CAST( - 83 AS SIGNED ) AND ( + + col0 + col0 )
----

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT - col1 FROM tab0 WHERE NULL NOT BETWEEN + + 77 + + CAST ( + col1 AS INTEGER ) + - + CAST ( - 83 AS INTEGER ) AND ( + + col0 + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 + - + 19 ) > col1
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE NULL IS NULL
----
51
85
91

query I rowsort
SELECT ALL col0 - - - col2 * - + 65 FROM tab1
----
3920
4511
6291

query I rowsort
SELECT DISTINCT col1 * - - 97 + 1 AS col2 FROM tab2
----
4948
6500
7470

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT DISTINCT - COUNT( * ) - + MAX( + col0 ) FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-5435
SELECT DISTINCT - COUNT ( * ) - + MAX ( + col0 ) FROM tab1
----
-94

query I rowsort
SELECT DISTINCT 6 - + 93 AS col2 FROM tab0
----
-87

query I rowsort
SELECT ALL - - col1 - + 52 FROM tab0 cor0
----
-31
-51
29

query II rowsort
SELECT DISTINCT - - col0, - col2 AS col1 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

query I rowsort
SELECT ALL - - 27 FROM tab2 cor0 WHERE NOT col2 <> 46
----

query II rowsort
SELECT DISTINCT + col2 AS col2, col2 AS col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT ALL MIN( col0 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5441
SELECT ALL MIN ( col0 ) AS col1 FROM tab2
----
46

query I rowsort
SELECT DISTINCT + 83 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
83

query II rowsort
SELECT + col0 AS col0, - col2 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5444
SELECT - COUNT( * ) DIV + + MIN( DISTINCT - col2 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5444
SELECT - COUNT ( * ) / + + MIN ( DISTINCT - col2 ) FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT ALL - ( + SUM( - + 67 ) ) FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL - ( + SUM ( - + 67 ) ) FROM tab2 AS cor0
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT ALL + - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL <= - 87 * + col0
----
0

skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL <= - 87 * + col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5447
SELECT ALL SUM( 20 ) * - 1 / CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE - col2 * - - col2 > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5447
SELECT ALL SUM ( 20 ) * - 1 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE - col2 * - - col2 > ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5448
SELECT - CAST( NULL AS SIGNED ) AS col2, col0 + - - col2 FROM tab0 AS cor0
----
NULL
196
NULL
62
NULL
97

skipif mysql # not compatible
query II rowsort label-5448
SELECT - CAST ( NULL AS INTEGER ) AS col2, col0 + - - col2 FROM tab0 AS cor0
----
NULL
196
NULL
62
NULL
97

query I rowsort
SELECT DISTINCT ( + + 72 ) AS col1 FROM tab1 AS cor0
----
72

query II rowsort
SELECT - + 92 AS col0, col2 FROM tab1 AS cor0
----
-92
59
-92
68
-92
96

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 * - + 58 + + col1 > + - col0
----

query I rowsort
SELECT DISTINCT + 10 + - - col0 FROM tab2
----
56
74
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5453
SELECT DISTINCT * FROM tab1 WHERE NOT + + col2 * + - 66 = + ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5453
SELECT DISTINCT * FROM tab1 WHERE NOT + + col2 * + - 66 = + ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT MAX( DISTINCT - 81 ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5454
SELECT MAX ( DISTINCT - 81 ) AS col2 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT - 98 + + col2 AS col1 FROM tab2
----
-40
-58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT ALL MAX( DISTINCT 72 ) + + MAX( col0 ) col2 FROM tab1
----
163

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5456
SELECT ALL MAX ( DISTINCT 72 ) + + MAX ( col0 ) col2 FROM tab1
----
163

query I rowsort
SELECT - 23 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT - COUNT( * ) * COUNT( * ) + + 74 AS col1 FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-5458
SELECT - COUNT ( * ) * COUNT ( * ) + + 74 AS col1 FROM tab2
----
65

query I rowsort
SELECT col0 * + - ( + + col2 ) * + col0 * - col2 + - + 75 + + 50 * - + col1 + - col0 FROM tab1 WHERE 1 - + col1 IS NOT NULL
----
23969990
25149815
38288828

query III rowsort
SELECT * FROM tab2 WHERE - col2 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col2 AS col1, - col2 FROM tab2 cor0
----
-23
-23
-40
-40
-58
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-5462
SELECT - col1 DIV + - ( + 30 ), col1 AS col0 FROM tab2 AS cor0
----
1
51
2
67
2
77

skipif mysql # not compatible
query II rowsort label-5462
SELECT - col1 / + - ( + 30 ), col1 AS col0 FROM tab2 AS cor0
----
1
51
2
67
2
77

query I rowsort
SELECT DISTINCT + - 91 - - col1 FROM tab2 AS cor0
----
-14
-24
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT DISTINCT - - SUM( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT - - SUM ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-223

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * 6 / col1 + - + col1 + + col0 + - - 46 >= + 23 + + col1 - - + 66
----
15
81
47

query II rowsort
SELECT ALL 23, + col1 FROM tab0 AS cor0
----
23
1
23
21
23
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT - MIN( ALL - col0 ) AS col1 FROM tab1 WHERE ( col2 ) > + col1
----
91

skipif mysql # not compatible
query I rowsort label-5467
SELECT - MIN ( ALL - col0 ) AS col1 FROM tab1 WHERE ( col2 ) > + col1
----
91

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 >= ( + 93 / + col0 + + 37 )
----
46
51
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5469
SELECT col1 - + col2 AS col0, CAST( col2 AS SIGNED ) AS col1 FROM tab2
----
28
23
37
40
9
58

skipif mysql # not compatible
query II rowsort label-5469
SELECT col1 - + col2 AS col0, CAST ( col2 AS INTEGER ) AS col1 FROM tab2
----
28
23
37
40
9
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5470
SELECT * FROM tab1 WHERE NULL NOT IN ( - + CAST( NULL AS SIGNED ), 28 )
----

skipif mysql # not compatible
query III rowsort label-5470
SELECT * FROM tab1 WHERE NULL NOT IN ( - + CAST ( NULL AS INTEGER ), 28 )
----

query I rowsort
SELECT 97 * 31 * - col0 - col1 AS col0 FROM tab2
----
-138373
-192525
-225592

onlyif mysql # DIV for integer division: 
query I rowsort label-5472
SELECT DISTINCT - 82 DIV col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5472
SELECT DISTINCT - 82 / col0 FROM tab2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5473
SELECT MAX( ALL + + 55 ) DIV - COUNT( * ) AS col2 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-5473
SELECT MAX ( ALL + + 55 ) / - COUNT ( * ) AS col2 FROM tab0
----
-18

query I rowsort
SELECT ALL + col1 + 92 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + 86 - + col1 )
----

query I rowsort
SELECT DISTINCT + 68 AS col1 FROM tab2 AS cor0 WHERE NULL IN ( col2 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT ALL COUNT( * ) + - COUNT( * ) * + 81 + + SUM( ALL - 95 ) FROM tab0
----
-525

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL COUNT ( * ) + - COUNT ( * ) * + 81 + + SUM ( ALL - 95 ) FROM tab0
----
-525

query I rowsort
SELECT + - col2 + col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - 83 * - col2 FROM tab2 WHERE NULL IS NULL
----
-1909
-3320
-4814

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 + ( + 25 ) col1 FROM tab0
----
5
5
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5481
SELECT ALL CAST( SUM( DISTINCT ( + col2 ) ) AS SIGNED ) + + CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5481
SELECT ALL CAST ( SUM ( DISTINCT ( + col2 ) ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT ALL COUNT( DISTINCT + + 37 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL COUNT ( DISTINCT + + 37 ) FROM tab0 cor0
----
1

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
15
87
97

query I rowsort
SELECT + col2 * - 89 AS col2 FROM tab1 AS cor0
----
-5251
-6052
-8544

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5485
SELECT ALL + - 23 * + COUNT( * ) - + AVG ( col2 ) * ( - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5485
SELECT ALL + - 23 * + COUNT ( * ) - + AVG ( col2 ) * ( - CAST ( NULL AS REAL ) ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5486
SELECT - + col2 FROM tab0 AS cor0 WHERE ( CAST( - col0 AS SIGNED ) ) BETWEEN ( - ( 69 ) ) AND ( col1 ) * - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5486
SELECT - + col2 FROM tab0 AS cor0 WHERE ( CAST ( - col0 AS INTEGER ) ) BETWEEN ( - ( 69 ) ) AND ( col1 ) * - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT 5 * + 96 + + + ( + col2 ) + - + 96 * - 95 AS col1 FROM tab2
----
9623
9640
9658

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5488
SELECT DISTINCT - col1 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5488
SELECT DISTINCT - col1 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 17 + col0 + - - col2 * + 61 IS NULL
----

query I rowsort
SELECT 29 + col1 AS col1 FROM tab0 AS cor0
----
110
30
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5491
SELECT ALL - - CAST( - 51 AS SIGNED ) * + + 7 - + - col1 AS col2 FROM tab2 AS cor0
----
-280
-290
-306

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL - - CAST ( - 51 AS INTEGER ) * + + 7 - + - col1 AS col2 FROM tab2 AS cor0
----
-280
-290
-306

query I rowsort
SELECT ALL - 39 - - - 46 * - col2 AS col2 FROM tab2 AS cor0
----
1019
1801
2629

query I rowsort
SELECT - + 70 + - + col2 AS col1 FROM tab1 cor0
----
-129
-138
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT ALL COUNT( * ) * + + 67 AS col0 FROM tab0 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-5494
SELECT ALL COUNT ( * ) * + + 67 AS col0 FROM tab0 AS cor0
----
201

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5495
SELECT + SUM( ALL - col0 ) * - CAST( NULL AS SIGNED ) / - 28 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5495
SELECT + SUM ( ALL - col0 ) * - CAST ( NULL AS INTEGER ) / - 28 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5496
SELECT ALL - COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5496
SELECT ALL - COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5497
SELECT 98 DIV + + col2 AS col2 FROM tab0
----
0
2
9

skipif mysql # not compatible
query I rowsort label-5497
SELECT 98 / + + col2 AS col2 FROM tab0
----
0
2
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT - + COUNT( ALL - col0 ) AS col2 FROM tab0 WHERE NOT + 9 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5498
SELECT - + COUNT ( ALL - col0 ) AS col2 FROM tab0 WHERE NOT + 9 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT COUNT( * ) FROM tab0 WHERE NOT + col0 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5499
SELECT COUNT ( * ) FROM tab0 WHERE NOT + col0 BETWEEN NULL AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0, + col0 col2 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5501
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( + col0 ) NOT BETWEEN ( + CAST( NULL AS SIGNED ) * - col1 + - col2 ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5501
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( + col0 ) NOT BETWEEN ( + CAST ( NULL AS INTEGER ) * - col1 + - col2 ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col0, 33 col1 FROM tab0 cor0
----
10
33
47
33
99
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT - MAX( col0 ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5503
SELECT - MAX ( col0 ) FROM tab2 cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT COUNT( ALL 31 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5504
SELECT COUNT ( ALL 31 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT - SUM( DISTINCT + 41 ) AS col1 FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-5505
SELECT - SUM ( DISTINCT + 41 ) AS col1 FROM tab2 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT DISTINCT SUM( ALL col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-5506
SELECT DISTINCT SUM ( ALL col2 ) AS col1 FROM tab1
----
223

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 > - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5508
SELECT ALL + CAST( ( - 19 ) AS SIGNED ) FROM tab2
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-5508
SELECT ALL + CAST ( ( - 19 ) AS INTEGER ) FROM tab2
----
-19
-19
-19

query I rowsort
SELECT col1 + 3 * + - 77 FROM tab2 AS cor0
----
-154
-164
-180

query I rowsort
SELECT col1 + col1 + + col0 AS col1 FROM tab1 AS cor0
----
185
79
95

query I rowsort
SELECT + + col2 + + + col1 AS col2 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT ALL 87 * - col1 FROM tab2 AS cor0
----
-4437
-5829
-6699

query II rowsort
SELECT ALL col1 + - 64 AS col1, - col1 AS col1 FROM tab1 AS cor0
----
-17
-47
-50
-14
-59
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 31 ) NOT BETWEEN - col0 / - - col0 AND col0
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT - col0 + 36 AS col0 FROM tab2 AS cor0
----
-10
-28
-39

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > ( 52 / - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT ALL - COUNT( * ) + + COUNT( * ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5517
SELECT ALL - COUNT ( * ) + + COUNT ( * ) col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE - - 52 * - ( - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col1 AS col0 FROM tab1 WHERE NULL IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT + MAX( + col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-5520
SELECT + MAX ( + col2 ) AS col0 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT - COUNT( DISTINCT + - 60 ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5521
SELECT - COUNT ( DISTINCT + - 60 ) AS col2 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT - + ( + MAX( - + col2 ) ) col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5522
SELECT - + ( + MAX ( - + col2 ) ) col0 FROM tab0 AS cor0
----
10

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5524
SELECT + - ( CAST( - + col1 AS SIGNED ) ) col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5524
SELECT + - ( CAST ( - + col1 AS INTEGER ) ) col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT COUNT( 98 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5525
SELECT COUNT ( 98 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT DISTINCT - COUNT( 81 ) * + + COUNT( * ) col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5526
SELECT DISTINCT - COUNT ( 81 ) * + + COUNT ( * ) col1 FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5527
SELECT CAST( + + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5527
SELECT CAST ( + + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT - ( col1 ) * + + col0 AS col2 FROM tab0 cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT DISTINCT ( + - COUNT( * ) ) * - 57 AS col1 FROM tab0 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-5529
SELECT DISTINCT ( + - COUNT ( * ) ) * - 57 AS col1 FROM tab0 AS cor0
----
171

query I rowsort
SELECT + 28 AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 * col0 * col0 AS col0 FROM tab2 AS cor0
----
-107916
-315392
-376875

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT ALL MAX( ( + col2 ) ) col1 FROM tab1 WHERE NOT + col1 - + col1 NOT BETWEEN 74 AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5533
SELECT ALL MAX ( ( + col2 ) ) col1 FROM tab1 WHERE NOT + col1 - + col1 NOT BETWEEN 74 AND NULL
----
NULL

query I rowsort
SELECT ALL - 25 FROM tab1 WHERE NOT NULL < - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5535
SELECT ( + + CAST( COUNT( + col1 ) AS SIGNED ) ) DIV - 5 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5535
SELECT ( + + CAST ( COUNT ( + col1 ) AS INTEGER ) ) / - 5 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT ALL COUNT( 85 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5536
SELECT ALL COUNT ( 85 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT - 23 * 11 AS col0 FROM tab1
----
-253
-253
-253

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5538
SELECT + 41 * CAST( - col0 AS SIGNED ) AS col2 FROM tab0
----
-3567
-3977
-615

skipif mysql # not compatible
query I rowsort label-5538
SELECT + 41 * CAST ( - col0 AS INTEGER ) AS col2 FROM tab0
----
-3567
-3977
-615

query I rowsort
SELECT DISTINCT col2 * - + col1 * - col2 * - - 23 AS col2 FROM tab1
----
2967552
400315
4998544

query I rowsort
SELECT DISTINCT 98 * ( + + col2 ) FROM tab1 WHERE NOT 95 IN ( + col0 + 16 * 20 * - + col0 )
----
5782
6664
9408

onlyif mysql # aggregate syntax: 
query II rowsort label-5541
SELECT MIN( + col1 ) AS col1, - 41 AS col1 FROM tab1
----
5
-41

skipif mysql # not compatible
query II rowsort label-5541
SELECT MIN ( + col1 ) AS col1, - 41 AS col1 FROM tab1
----
5
-41

query I rowsort
SELECT ALL - col0 FROM tab0 cor0 WHERE ( - col2 ) IS NOT NULL
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 41 = NULL
----

query I rowsort
SELECT - col0 + - ( - col2 ) FROM tab1 cor0 WHERE NOT col1 IS NULL
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT COUNT( + 13 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5545
SELECT COUNT ( + 13 ) FROM tab0 cor0
----
3

query I rowsort
SELECT + 14 * + + 5 FROM tab2
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT DISTINCT MIN( ALL + + 81 ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-5547
SELECT DISTINCT MIN ( ALL + + 81 ) FROM tab1
----
81

query I rowsort
SELECT - 41 * + col2 AS col0 FROM tab0
----
-1927
-4059
-410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * 12 col0 FROM tab2 AS cor0
----
612
804
924

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col2 * + 25 FROM tab1 AS cor0
----
1475
1700
2400

onlyif mysql # DIV for integer division: 
query I rowsort label-5552
SELECT ALL - 8 DIV - + col2 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5552
SELECT ALL - 8 / - + col2 AS col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( col1 * col2 * - col1, col2 * + 35, + col0 )
----

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE 10 BETWEEN - col1 AND 98
----
46
64
75

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5556
SELECT ALL - col0 DIV + ( - col0 ) + - - CAST( + col1 AS SIGNED ) FROM tab0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL - col0 / + ( - col0 ) + - - CAST ( + col1 AS INTEGER ) FROM tab0
----
2
22
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 + col0 col2 FROM tab0
----
196
297
3822

query I rowsort
SELECT ALL - col1 + - + ( - col2 ) FROM tab2
----
-28
-37
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 51 + - col2 col1 FROM tab2
----
-2624
-3475
-3967

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT - 14 + COUNT( * ) FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-5560
SELECT - 14 + COUNT ( * ) FROM tab0
----
-11

query I rowsort
SELECT ALL ( - + col0 ) + + col0 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( + 95 ) <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL <= + 5
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 + col2 NOT BETWEEN + col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT ALL MIN( ALL - - 59 ) AS col2 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5565
SELECT ALL MIN ( ALL - - 59 ) AS col2 FROM tab2 AS cor0
----
59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND 97 * - 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT - COUNT( - + ( - 58 ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5567
SELECT - COUNT ( - + ( - 58 ) ) FROM tab0 cor0
----
-3

query I rowsort
SELECT - ( - 94 ) + - col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT + 82 * + + 35 * + COUNT( * ) FROM tab0 AS cor0
----
8610

skipif mysql # not compatible
query I rowsort label-5569
SELECT + 82 * + + 35 * + COUNT ( * ) FROM tab0 AS cor0
----
8610

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT ALL - MIN( ALL + 7 ) col2 FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5570
SELECT ALL - MIN ( ALL + 7 ) col2 FROM tab2 AS cor0
----
-7

query I rowsort
SELECT 45 - + col0 * + 69 + - + 64 AS col0 FROM tab1
----
-3538
-5884
-6298

query I rowsort
SELECT ALL - 26 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT DISTINCT 47 - + ( + + COUNT( * ) ) AS col1 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-5573
SELECT DISTINCT 47 - + ( + + COUNT ( * ) ) AS col1 FROM tab2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT col0 + - 86 FROM tab2 AS cor0 WHERE col1 * - + col2 + col2 + - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5576
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 97 FROM tab2 cor0 WHERE NULL <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5576
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 97 FROM tab2 cor0 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT DISTINCT - ( + 54 ) AS col2 FROM tab1 AS cor0
----
-54

query II rowsort
SELECT col0 AS col1, col0 * + - col0 * - col1 + + 20 FROM tab1 AS cor0
----
51
36434
85
36145
91
389227

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5579
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NOT + col1 < - + col0 / - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5579
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NOT + col1 < - + col0 / - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5580
SELECT ALL + - COUNT( * ) AS col2, 57 + - 64 FROM tab1 AS cor0 WHERE 76 IS NOT NULL
----
-3
-7

skipif mysql # not compatible
query II rowsort label-5580
SELECT ALL + - COUNT ( * ) AS col2, 57 + - 64 FROM tab1 AS cor0 WHERE 76 IS NOT NULL
----
-3
-7

query I rowsort
SELECT + 61 * - 98 FROM tab0 AS cor0
----
-5978
-5978
-5978

query I rowsort
SELECT DISTINCT - 15 * 25 FROM tab1 AS cor0
----
-375

query II rowsort
SELECT + col2, col2 AS col0 FROM tab1
----
59
59
68
68
96
96

query II rowsort
SELECT + col2 AS col1, col2 - + + 94 AS col0 FROM tab2
----
23
-71
40
-54
58
-36

query II rowsort
SELECT ALL - col0 AS col0, col0 + + 32 AS col0 FROM tab2
----
-46
78
-64
96
-75
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5586
SELECT + ( + - ( - - COUNT( col0 ) ) ) AS col0, + CAST( NULL AS SIGNED ) FROM tab0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-5586
SELECT + ( + - ( - - COUNT ( col0 ) ) ) AS col0, + CAST ( NULL AS INTEGER ) FROM tab0
----
-3
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < col2 * + col1 - + - col0 * - - col1 + - 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT DISTINCT MAX( ALL - col0 ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT MAX ( ALL - col0 ) AS col0 FROM tab1
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 33 col1 FROM tab2
----
1683
2211
2541

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE + 2 IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5591
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + + 44 * - col1 * + 81 > + + col2
----

skipif mysql # not compatible
query III rowsort label-5591
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + + 44 * - col1 * + 81 > + + col2
----

query II rowsort
SELECT DISTINCT + col1, + col1 + col0 FROM tab2 AS cor0
----
51
97
67
142
77
141

query I rowsort
SELECT ALL + 33 * - 87 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b7a285d9cbcd07edc5a6481bab2be983

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 54 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 * + 82 * - col0 * 98 + + col0 AS col0 FROM tab0
----
-14681685
-779395
-9763725

query III rowsort
SELECT * FROM tab0 WHERE ( + ( + col0 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT ALL - COUNT( * ) * - 34 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
306

skipif mysql # not compatible
query I rowsort label-5597
SELECT ALL - COUNT ( * ) * - 34 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
306

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 col1 FROM tab1
----
37
37
37

query I rowsort
SELECT DISTINCT col2 * - + col1 AS col1 FROM tab0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5600
SELECT ALL + col0 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL + col0 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 24 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT + 42 + - SUM( DISTINCT col2 ) + + + 24 AS col0 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-5602
SELECT + 42 + - SUM ( DISTINCT col2 ) + + + 24 AS col0 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT + col2 * + + 6 + + col1 AS col2 FROM tab1 AS cor0
----
359
455
590

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT - + COUNT( * ) + MAX( DISTINCT - + col2 ) * 46 * - COUNT( * ) FROM tab2 AS cor0
----
3171

skipif mysql # not compatible
query I rowsort label-5604
SELECT - + COUNT ( * ) + MAX ( DISTINCT - + col2 ) * 46 * - COUNT ( * ) FROM tab2 AS cor0
----
3171

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT + - SUM( + - col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5605
SELECT + - SUM ( + - col0 ) AS col2 FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5606
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 + + CAST( NULL AS SIGNED ) * + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5606
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 + + CAST ( NULL AS INTEGER ) * + col0 IS NULL
----

query II rowsort
SELECT ALL - - 41 + col2 * col2, + col0 FROM tab2 AS cor0
----
1641
64
3405
75
570
46

query I rowsort
SELECT ALL + 55 * + col1 + + - ( + - col2 ) + + - col1 * - col1 FROM tab2 AS cor0
----
10204
5429
8232

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT ALL + COUNT( * ) + + COUNT( + - 43 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL + COUNT ( * ) + + COUNT ( + - 43 ) FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT - ( + - COUNT( * ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5610
SELECT - ( + - COUNT ( * ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT - SUM( ALL + ( + ( - col0 ) ) ) - + + 56 + 25 + 28 * + 47 AS col2 FROM tab1
----
1512

skipif mysql # not compatible
query I rowsort label-5611
SELECT - SUM ( ALL + ( + ( - col0 ) ) ) - + + 56 + 25 + 28 * + 47 AS col2 FROM tab1
----
1512

onlyif mysql # DIV for integer division: 
query I rowsort label-5612
SELECT col2 - + 90 DIV 9 * + col1 * + col0 AS col2 FROM tab2
----
-23437
-49240
-50192

skipif mysql # not compatible
query I rowsort label-5612
SELECT col2 - + 90 / 9 * + col1 * + col0 AS col2 FROM tab2
----
-23437
-49240
-50192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5613
SELECT DISTINCT + COUNT( * ) + - CAST( NULL AS SIGNED ) + - - SUM( ALL + 46 ) * 6 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5613
SELECT DISTINCT + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - - SUM ( ALL + 46 ) * 6 FROM tab2
----
NULL

query I rowsort
SELECT col0 - + 99 FROM tab1
----
-14
-48
-8

query I rowsort
SELECT ALL col1 - ( + col0 ) FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT - 30 * - - col1 + + col0 - - col2 + - col0 * col1 + + col0 AS col2 FROM tab1 AS cor0
----
-346
-5437
-936

query II rowsort
SELECT ALL + col2 AS col1, col0 + col0 AS col2 FROM tab2 AS cor0
----
23
92
40
128
58
150

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT + 37 * COUNT( * ) * + + ( + COUNT( DISTINCT + col1 ) ) + + 46 FROM tab2 AS cor0
----
379

skipif mysql # not compatible
query I rowsort label-5618
SELECT + 37 * COUNT ( * ) * + + ( + COUNT ( DISTINCT + col1 ) ) + + 46 FROM tab2 AS cor0
----
379

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT 67 + - 56 * - col1 * + col1 * ( - ( - - 29 ) ) FROM tab2 AS cor0
----
-4223957
-7290069
-9628629

query I rowsort
SELECT ALL + + 59 AS col0 FROM tab0 cor0
----
59
59
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5622
SELECT DISTINCT + 82 * + 54 DIV - COUNT( * ) FROM tab1
----
-1476

skipif mysql # not compatible
query I rowsort label-5622
SELECT DISTINCT + 82 * + 54 / - COUNT ( * ) FROM tab1
----
-1476

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT ALL - MIN( DISTINCT col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL - MIN ( DISTINCT col2 ) FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT SUM( 43 ) * + SUM( ALL + + col2 ) + - + ( - + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
28770

skipif mysql # not compatible
query I rowsort label-5624
SELECT SUM ( 43 ) * + SUM ( ALL + + col2 ) + - + ( - + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
28770

onlyif mysql # aggregate syntax: 
query II rowsort label-5625
SELECT DISTINCT - + MIN( - + col0 ) col2, - 6 AS col1 FROM tab0 AS cor0
----
97
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5625
SELECT DISTINCT - + MIN ( - + col0 ) col2, - 6 AS col1 FROM tab0 AS cor0
----
97
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5626
SELECT - col0 AS col1, col2 * + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - ( + - col0 ) )
----

skipif mysql # not compatible
query II rowsort label-5626
SELECT - col0 AS col1, col2 * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - ( + - col0 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 < NULL
----

query II rowsort
SELECT DISTINCT col2, + col0 AS col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5629
SELECT - COUNT( * ) DIV 66 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5629
SELECT - COUNT ( * ) / 66 FROM tab1
----
0

query I rowsort
SELECT + 49 * - - 20 FROM tab2
----
980
980
980

query I rowsort
SELECT ALL - col0 * ( + 52 ) FROM tab2
----
-2392
-3328
-3900

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 60 IS NOT NULL
----

query I rowsort
SELECT - col2 * - 26 FROM tab0
----
1222
2574
260

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 38 IN ( - 63 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5635
SELECT ALL ( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0 WHERE ( - 68 ) - + - 72 < - - col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5635
SELECT ALL ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0 WHERE ( - 68 ) - + - 72 < - - col0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5636
SELECT ALL + 21 FROM tab1 AS cor0 WHERE - col1 * - 93 / - CAST( NULL AS SIGNED ) + col2 IS NULL
----
21
21
21

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL + 21 FROM tab1 AS cor0 WHERE - col1 * - 93 / - CAST ( NULL AS INTEGER ) + col2 IS NULL
----
21
21
21

query I rowsort
SELECT ALL - - 99 * + + 67 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + 76 * - col2 + - col1
----

query I rowsort
SELECT ALL col0 + + + 85 AS col1 FROM tab1
----
136
170
176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col0 col2 FROM tab0 WHERE ( + 50 ) IS NOT NULL
----
-174
-194
-30

query II rowsort
SELECT ALL - col0, col2 - col2 AS col1 FROM tab0 AS cor0
----
-15
0
-87
0
-97
0

query I rowsort
SELECT DISTINCT - ( + 42 ) AS col0 FROM tab0 AS cor0
----
-42

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 = - col0
----

query I rowsort
SELECT + + 49 + col1 AS col1 FROM tab0 cor0
----
130
50
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) col0 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT COUNT( * ) + + 14 AS col1 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-5645
SELECT COUNT ( * ) + + 14 AS col1 FROM tab2 AS cor0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-5646
SELECT DISTINCT + col2 + - 26 DIV + 34 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5646
SELECT DISTINCT + col2 + - 26 / + 34 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT - - ( - + 11 ) + - col1 FROM tab1 AS cor0
----
-16
-25
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT COUNT( * ) + - SUM( - ( + col2 ) ) AS col2 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-5648
SELECT COUNT ( * ) + - SUM ( - ( + col2 ) ) AS col2 FROM tab0
----
159

query I rowsort
SELECT DISTINCT 21 + + col1 AS col1 FROM tab2
----
72
88
98

query I rowsort
SELECT - ( + 32 ) + + col0 AS col2 FROM tab0
----
-17
55
65

query I rowsort
SELECT + 0 + - col1 - - + col0 + col0 FROM tab1
----
135
165
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT DISTINCT + COUNT( * ) + - MAX( + col0 ) FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-5652
SELECT DISTINCT + COUNT ( * ) + - MAX ( + col0 ) FROM tab1
----
-88

query I rowsort
SELECT + col1 + 46 * + col2 FROM tab2
----
1109
1917
2735

query III rowsort
SELECT * FROM tab2 WHERE + col1 - + - col1 <= - + 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT ALL ( COUNT( * ) ) + 36 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL ( COUNT ( * ) ) + 36 FROM tab0
----
39

query I rowsort
SELECT DISTINCT 73 - col2 + - col0 FROM tab2
----
-31
-60
4

query I rowsort
SELECT - - 58 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > + 87
----

query I rowsort
SELECT - col0 * col1 * - col2 AS col2 FROM tab0 AS cor0
----
18270
57105
9603

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5660
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT 85 BETWEEN + CAST( - 31 AS SIGNED ) + - + 22 AND NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-5660
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT 85 BETWEEN + CAST ( - 31 AS INTEGER ) + - + 22 AND NULL
----

query I rowsort
SELECT ALL ( - - col1 ) AS col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT - COUNT( ALL + - col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5662
SELECT - COUNT ( ALL + - col1 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - 1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 26, col0 + 60 col1 FROM tab2 AS cor0
----
-26
106
-26
124
-26
135

query I rowsort
SELECT DISTINCT + - col0 * col0 * + + col0 * + ( - 66 ) FROM tab1 AS cor0
----
40532250
49735686
8754966

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT + - COUNT( ALL 42 ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5666
SELECT + - COUNT ( ALL 42 ) AS col2 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT - + COUNT( DISTINCT - - col1 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5667
SELECT - + COUNT ( DISTINCT - - col1 ) FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT SUM( ALL 30 ) FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-5668
SELECT SUM ( ALL 30 ) FROM tab2 AS cor0
----
90

query II rowsort
SELECT DISTINCT ( col0 ), - col2 FROM tab2
----
46
-23
64
-40
75
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5670
SELECT col1 * + CAST( + 87 AS SIGNED ) FROM tab0
----
1827
7047
87

skipif mysql # not compatible
query I rowsort label-5670
SELECT col1 * + CAST ( + 87 AS INTEGER ) FROM tab0
----
1827
7047
87

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT ALL COUNT( * ) * MAX( - + col0 ) + 54 AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5672
SELECT ALL COUNT ( * ) * MAX ( - + col0 ) + 54 AS col2 FROM tab0
----
9

query I rowsort
SELECT ALL - 24 AS col2 FROM tab2 WHERE NOT - col0 IS NULL
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT + SUM( DISTINCT - 45 ) AS col1 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-5674
SELECT + SUM ( DISTINCT - 45 ) AS col1 FROM tab2
----
-45

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 83 + - col0 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT ALL + + MAX( ( - col2 ) ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5676
SELECT ALL + + MAX ( ( - col2 ) ) AS col0 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT + 23 + - 51 + - + 99 + + 71 * - COUNT( DISTINCT 38 ) * + 33 col2 FROM tab1 cor0
----
-2470

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5677
SELECT + 23 + - 51 + - + 99 + + 71 * - COUNT ( DISTINCT 38 ) * + 33 col2 FROM tab1 cor0
----
-2470

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 + - col2 * col1 * + 3 col0 FROM tab1
----
-4027
-880
-9583

query I rowsort
SELECT ( + 25 ) AS col1 FROM tab2 cor0
----
25
25
25

query I rowsort
SELECT DISTINCT - col2 - - - 31 AS col0 FROM tab1 AS cor0
----
-127
-90
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-5681
SELECT + - 36 * + ( - COUNT( * ) ), COUNT( * ) AS col1 FROM tab1 AS cor0
----
108
3

skipif mysql # not compatible
query II rowsort label-5681
SELECT + - 36 * + ( - COUNT ( * ) ), COUNT ( * ) AS col1 FROM tab1 AS cor0
----
108
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT + MAX( ALL + - 25 ) AS col2 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-5682
SELECT + MAX ( ALL + - 25 ) AS col2 FROM tab0 AS cor0
----
-25

query I rowsort
SELECT ALL + - 69 AS col2 FROM tab2 AS cor0
----
-69
-69
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5684
SELECT ALL SUM( 0 ) * - CAST( NULL AS SIGNED ) + MAX( + + ( + col0 ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5684
SELECT ALL SUM ( 0 ) * - CAST ( NULL AS INTEGER ) + MAX ( + + ( + col0 ) ) AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 34 + - - col0 NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - col0 / col0
----

query I rowsort
SELECT ALL 44 + - ( + + col2 ) * - - col0 FROM tab0 AS cor0
----
-661
-826
-9559

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT DISTINCT COUNT( ALL 52 ) + + COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5688
SELECT DISTINCT COUNT ( ALL 52 ) + + COUNT ( * ) AS col0 FROM tab0
----
6

query I rowsort
SELECT DISTINCT + 24 * - + col1 FROM tab0
----
-1944
-24
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT ALL - COUNT( * ) + - - COUNT( ALL 80 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5690
SELECT ALL - COUNT ( * ) + - - COUNT ( ALL 80 ) AS col2 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 73 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5692
SELECT - + COUNT( * ) AS col0, + 73 * + COUNT( * ) FROM tab2 AS cor0
----
-3
219

skipif mysql # not compatible
query II rowsort label-5692
SELECT - + COUNT ( * ) AS col0, + 73 * + COUNT ( * ) FROM tab2 AS cor0
----
-3
219

onlyif mysql # aggregate syntax: 
query II rowsort label-5693
SELECT + COUNT( * ) AS col0, + 47 AS col2 FROM tab0 AS cor0
----
3
47

skipif mysql # not compatible
query II rowsort label-5693
SELECT + COUNT ( * ) AS col0, + 47 AS col2 FROM tab0 AS cor0
----
3
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT ALL - COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5694
SELECT ALL - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----
0

query I rowsort
SELECT + 37 * col2 FROM tab2
----
1480
2146
851

query I rowsort
SELECT DISTINCT + col2 * - col1 * - - 59 * + + col0 AS col2 FROM tab0 AS cor0
----
-1077930
-3369195
-566577

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5697
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = + CAST( + - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5697
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = + CAST ( + - col2 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5698
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT + CAST( NULL AS SIGNED ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5698
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT + CAST ( NULL AS INTEGER ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN - + col2 * + col1 AND + - col0 + + - col0
----

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NOT - 56 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col0, 37 * - + 15 FROM tab1
----
-59
-555
-68
-555
-96
-555

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5702
SELECT ALL - col0 + - CAST( - - 34 AS SIGNED ) - + ( + - col1 ) * + 0 col1 FROM tab2
----
-109
-80
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5702
SELECT ALL - col0 + - CAST ( - - 34 AS INTEGER ) - + ( + - col1 ) * + 0 col1 FROM tab2
----
-109
-80
-98

query II rowsort
SELECT DISTINCT - col1 AS col2, col1 + 3 AS col0 FROM tab1
----
-14
17
-47
50
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT ALL + ( - COUNT( * ) ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5704
SELECT ALL + ( - COUNT ( * ) ) col2 FROM tab0
----
-3

query II rowsort
SELECT ALL - - col1 AS col2, - 50 FROM tab1 AS cor0
----
14
-50
47
-50
5
-50

query I rowsort
SELECT DISTINCT - col0 * + + col2 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT ( 72 ) AS col2 FROM tab2 AS cor0
----
72
72
72

query I rowsort
SELECT DISTINCT - col1 + - 95 AS col2 FROM tab1 AS cor0
----
-100
-109
-142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5709
SELECT DISTINCT + - CAST( NULL AS SIGNED ) FROM tab0 WHERE - ( - 54 ) + 97 >= - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-5709
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) FROM tab0 WHERE - ( - 54 ) + 97 >= - 25
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5710
SELECT - MAX( DISTINCT + col1 ) AS col0, 10 FROM tab2
----
-77
10

skipif mysql # not compatible
query II rowsort label-5710
SELECT - MAX ( DISTINCT + col1 ) AS col0, 10 FROM tab2
----
-77
10

query I rowsort
SELECT DISTINCT col0 * - col2 + col0 * 54 * - 9 FROM tab2
----
-23414
-33664
-40800

query I rowsort
SELECT DISTINCT col0 + + - 94 AS col1 FROM tab2
----
-19
-30
-48

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5713
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( - + col0 AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5713
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( - + col0 AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5714
SELECT col1 DIV + + col0 col0 FROM tab1 AS cor0 WHERE - col1 DIV + col2 * col1 NOT IN ( + 27 )
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5714
SELECT col1 / + + col0 col0 FROM tab1 AS cor0 WHERE - col1 / + col2 * col1 NOT IN ( + 27 )
----
0
0
0

query II rowsort
SELECT 75 + col1, - 42 AS col1 FROM tab0 cor0
----
156
-42
76
-42
96
-42

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 88 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5717
SELECT col0 * - CAST( NULL AS SIGNED ) * + - 29 + - - col0 * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5717
SELECT col0 * - CAST ( NULL AS INTEGER ) * + - 29 + - - col0 * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT - COUNT( * ) + + 44 AS col2 FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-5718
SELECT - COUNT ( * ) + + 44 AS col2 FROM tab2
----
41

query I rowsort
SELECT 96 * col2 + - col1 * - ( 45 ) FROM tab0
----
1905
8157
9549

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT ALL + COUNT( * ) FROM tab1 WHERE col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5720
SELECT ALL + COUNT ( * ) FROM tab1 WHERE col1 <> NULL
----
0

query I rowsort
SELECT ALL - col2 + + - 49 AS col0 FROM tab1
----
-108
-117
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT DISTINCT SUM( ALL - + 16 ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-5722
SELECT DISTINCT SUM ( ALL - + 16 ) FROM tab2
----
-48

query I rowsort
SELECT DISTINCT ( + + 5 ) AS col2 FROM tab0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT ALL + - 73 * - + 65 - - + COUNT( * ) FROM tab1 AS cor0
----
4748

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL + - 73 * - + 65 - - + COUNT ( * ) FROM tab1 AS cor0
----
4748

query II rowsort
SELECT ALL + ( + 47 ) AS col2, + 56 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 5bf59f2eb7da0dcbf6c8135837014859

query I rowsort
SELECT ALL ( - 23 ) AS col2 FROM tab0
----
-23
-23
-23

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT DISTINCT + MIN( DISTINCT + + 11 ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-5728
SELECT DISTINCT + MIN ( DISTINCT + + 11 ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
33

query II rowsort
S