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
SELECT ALL + - 61, col1 AS col2 FROM tab2 AS cor0
----
-61
51
-61
67
-61
77

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

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

query I rowsort
SELECT ALL - 14 * - col0 + - - 86 AS col0 FROM tab0
----
1304
1444
296

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT - ( - col2 ) * + 90 AS col0 FROM tab2
----
2070
3600
5220

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 / - col1 <= - + col0
----

query I rowsort
SELECT + col1 * - + col2 * + + col2 AS col2 FROM tab2
----
-123200
-225388
-26979

onlyif mysql # DIV for integer division: 
query II rowsort label-5736
SELECT + - 46 * 4 DIV + 14, 2 AS col0 FROM tab1 AS cor0
----
-13
2
-13
2
-13
2

skipif mysql # not compatible
query II rowsort label-5736
SELECT + - 46 * 4 / + 14, 2 AS col0 FROM tab1 AS cor0
----
-13
2
-13
2
-13
2

query I rowsort
SELECT 31 + - 51 AS col0 FROM tab0 AS cor0 WHERE 37 IS NOT NULL
----
-20
-20
-20

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

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

query I rowsort
SELECT DISTINCT 49 - + 98 AS col0 FROM tab1 AS cor0
----
-49

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 64 col0 FROM tab2 AS cor0
----
-2944
-4096
-4800

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT MAX( ALL 60 ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-5746
SELECT MAX ( ALL 60 ) FROM tab2
----
60

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

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

query II rowsort
SELECT DISTINCT + 40 * - 61 AS col1, col2 AS col1 FROM tab2
----
-2440
23
-2440
40
-2440
58

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

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

query I rowsort
SELECT col1 * col1 / col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT ALL - - MIN( DISTINCT + 4 ) FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL - - MIN ( DISTINCT + 4 ) FROM tab1 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT DISTINCT - 89 + + COUNT( * ) * - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - col1
----
-89

skipif mysql # not compatible
query I rowsort label-5752
SELECT DISTINCT - 89 + + COUNT ( * ) * - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - col1
----
-89

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5756
SELECT DISTINCT col1 DIV - col1 + col1 AS col2 FROM tab1 AS cor0
----
13
4
46

skipif mysql # not compatible
query I rowsort label-5756
SELECT DISTINCT col1 / - col1 + col1 AS col2 FROM tab1 AS cor0
----
13
4
46

onlyif mysql # DIV for integer division: 
query I rowsort label-5757
SELECT + col1 DIV - col0 + + - col0 * col1 AS col0 FROM tab2 AS cor0
----
-2347
-4929
-5025

skipif mysql # not compatible
query I rowsort label-5757
SELECT + col1 / - col0 + + - col0 * col1 AS col0 FROM tab2 AS cor0
----
-2347
-4929
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT ALL - 73 + + SUM( DISTINCT - col0 ) + + 49 FROM tab2
----
-209

skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL - 73 + + SUM ( DISTINCT - col0 ) + + 49 FROM tab2
----
-209

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

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

query I rowsort
SELECT col0 + + 2 * + - col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT DISTINCT 58 * + col1 + + col2 FROM tab1
----
2794
349
908

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

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

query I rowsort
SELECT ALL 11 + - col2 FROM tab2
----
-12
-29
-47

query II rowsort
SELECT ALL + 46 + col0 AS col1, - 46 AS col0 FROM tab0
----
133
-46
143
-46
61
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-5765
SELECT DISTINCT - 40 DIV + 37 AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5765
SELECT DISTINCT - 40 / + 37 AS col2 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT + MIN( ALL - + col1 ) + - COUNT( DISTINCT col2 ) * 71 FROM tab0
----
-294

skipif mysql # not compatible
query I rowsort label-5766
SELECT + MIN ( ALL - + col1 ) + - COUNT ( DISTINCT col2 ) * 71 FROM tab0
----
-294

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

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

query II rowsort
SELECT ALL - 61 AS col1, + 52 FROM tab0 AS cor0
----
-61
52
-61
52
-61
52

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

query I rowsort
SELECT - 3 * - col2 AS col1 FROM tab0
----
141
297
30

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

query II rowsort
SELECT col1 * - col2 + + 87 AS col1, - col0 FROM tab1 AS cor0
----
-1257
-51
-208
-85
-3109
-91

query I rowsort
SELECT + + col0 * + + 8 FROM tab2 cor0
----
368
512
600

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

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

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

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

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT NULL = - col0
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5779
SELECT ALL + - CAST( + + 2 AS SIGNED ) * - 34 * - col1 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5779
SELECT ALL + - CAST ( + + 2 AS INTEGER ) * - 34 * - col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
-10
-47
-99

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5782
SELECT - + MAX( ALL + col2 ) AS col1 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5782
SELECT - + MAX ( ALL + col2 ) AS col1 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) < NULL
----
NULL

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

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

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

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

query II rowsort
SELECT - col0 AS col0, col2 AS col1 FROM tab1 cor0
----
-51
96
-85
59
-91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 * - col0 col0 FROM tab0 cor0
----
4089
4559
705

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT DISTINCT + ( SUM( - 27 ) ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-5792
SELECT DISTINCT + ( SUM ( - 27 ) ) AS col0 FROM tab0
----
-81

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT DISTINCT - SUM( ALL 77 ) * - COUNT( * ) + 17 AS col2 FROM tab0
----
710

skipif mysql # not compatible
query I rowsort label-5795
SELECT DISTINCT - SUM ( ALL 77 ) * - COUNT ( * ) + 17 AS col2 FROM tab0
----
710

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5797
SELECT DISTINCT + col2 * + col0 - col1 DIV col1 FROM tab0
----
704
869
9602

skipif mysql # not compatible
query I rowsort label-5797
SELECT DISTINCT + col2 * + col0 - col1 / col1 FROM tab0
----
704
869
9602

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 - - 16 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT + 27 + SUM( ALL 28 ) AS col2 FROM tab1
----
111

skipif mysql # not compatible
query I rowsort label-5799
SELECT + 27 + SUM ( ALL 28 ) AS col2 FROM tab1
----
111

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 99 ) IS NULL
----

query I rowsort
SELECT ALL 16 AS col0 FROM tab2 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT col2 + 82 FROM tab2
----
105
122
140

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 51 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5804
SELECT ALL - CAST( 56 AS SIGNED ) col2 FROM tab1
----
-56
-56
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5804
SELECT ALL - CAST ( 56 AS INTEGER ) col2 FROM tab1
----
-56
-56
-56

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

query I rowsort
SELECT 13 * 3 + - 57 AS col2 FROM tab2
----
-18
-18
-18

query I rowsort
SELECT DISTINCT - col0 * col1 + - col0 AS col1 FROM tab2
----
-2392
-4992
-5100

onlyif mysql # DIV for integer division: 
query I rowsort label-5808
SELECT + 74 DIV - col2 + - col0 col0 FROM tab1
----
-51
-86
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5808
SELECT + 74 / - col2 + - col0 col0 FROM tab1
----
-51
-86
-92

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5810
SELECT - ( ( + col1 ) ) + CAST( + ( + col2 ) + - 74 AS SIGNED ) * + col2 FROM tab2
----
-1224
-1437
-995

skipif mysql # not compatible
query I rowsort label-5810
SELECT - ( ( + col1 ) ) + CAST ( + ( + col2 ) + - 74 AS INTEGER ) * + col2 FROM tab2
----
-1224
-1437
-995

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5811
SELECT DISTINCT - 79 * CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5811
SELECT DISTINCT - 79 * CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT col1 + 29 AS col1 FROM tab1
----
34
43
76

query I rowsort
SELECT ALL + 28 * col2 FROM tab2
----
1120
1624
644

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT 22 - - COUNT( * ) FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-5815
SELECT 22 - - COUNT ( * ) FROM tab2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-5816
SELECT ALL col2 DIV + 86 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL col2 / + 86 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT - col1 * - 29 FROM tab1
----
1363
145
406

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT DISTINCT - 69 * COUNT( * ) AS col1 FROM tab1
----
-207

skipif mysql # not compatible
query I rowsort label-5818
SELECT DISTINCT - 69 * COUNT ( * ) AS col1 FROM tab1
----
-207

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5819
SELECT + 51 + - CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT ( col0 * 47 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5819
SELECT + 51 + - CAST ( NULL AS REAL ) FROM tab0 WHERE NOT ( col0 * 47 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5820
SELECT + CAST( - col2 AS SIGNED ) DIV col2 FROM tab1
----
-1
-1
-1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5821
SELECT + 0 DIV + 63 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5821
SELECT + 0 / + 63 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5822
SELECT + 74 + + col1 AS col0 FROM tab2 WHERE NOT - 66 IN ( + 31 - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5822
SELECT + 74 + + col1 AS col0 FROM tab2 WHERE NOT - 66 IN ( + 31 - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) )
----

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

query I rowsort
SELECT + 74 + col0 FROM tab0 cor0
----
161
171
89

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

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

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

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

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT 88 * col0 BETWEEN - 98 AND 16
----
10
47
99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5829
SELECT ALL 12 DIV 87 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL 12 / 87 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 = + 43
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5832
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + 71 * col1 > CAST( + 77 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5832
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + 71 * col1 > CAST ( + 77 AS REAL )
----

query I rowsort
SELECT ALL - col2 * 87 AS col0 FROM tab1 AS cor0
----
-5133
-5916
-8352

query I rowsort
SELECT DISTINCT - 6 * col1 + col1 AS col2 FROM tab1 AS cor0 WHERE col1 * + 44 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5835
SELECT DISTINCT - COUNT( * ) DIV COUNT( * ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5835
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) FROM tab0 cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * + ( - col1 ) col1 FROM tab0 cor0
----
-1
-441
-6561

onlyif mysql # DIV for integer division: 
query I rowsort label-5837
SELECT ALL - - 38 DIV + 68 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5837
SELECT ALL - - 38 / + 68 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5838
SELECT - col1 * CAST( CAST( 43 AS SIGNED ) * col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-12685
-137428
-57792

skipif mysql # not compatible
query I rowsort label-5838
SELECT - col1 * CAST ( CAST ( 43 AS INTEGER ) * col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-12685
-137428
-57792

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 / - col1 + + 40 BETWEEN col2 AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * - 28 AS col2 FROM tab1
----
1652
1904
2688

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5841
SELECT DISTINCT 96 / col0 AS col2 FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND - CAST( + col2 AS DECIMAL ) OR NOT NULL BETWEEN ( NULL ) AND - 9 + 10
----

skipif mysql # not compatible
query I rowsort label-5841
SELECT DISTINCT 96 / col0 AS col2 FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND - CAST ( + col2 AS REAL ) OR NOT NULL BETWEEN ( NULL ) AND - 9 + 10
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5842
SELECT col2 DIV 3 * col0 FROM tab1
----
1615
1632
2002

skipif mysql # not compatible
query I rowsort label-5842
SELECT col2 / 3 * col0 FROM tab1
----
1615
1632
2002

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + + 47 NOT BETWEEN NULL AND + col0
----

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

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col1 / col2 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( 82 )
----
0

skipif mysql # not compatible
query I rowsort label-5850
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( 82 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT + SUM( - 49 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 + col2 <> ( + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5851
SELECT + SUM ( - 49 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 + col2 <> ( + col2 )
----
NULL

query I rowsort
SELECT DISTINCT + + ( 24 ) * + col0 FROM tab2 AS cor0
----
1104
1536
1800

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

skipif mysql # not compatible
query I rowsort label-5853
SELECT DISTINCT - 74 + - COUNT ( DISTINCT + + ( - col0 ) ) FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT + SUM( - col1 ) * - 37 FROM tab2
----
7215

skipif mysql # not compatible
query I rowsort label-5854
SELECT + SUM ( - col1 ) * - 37 FROM tab2
----
7215

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

query I rowsort
SELECT - 17 * - col1 AS col0 FROM tab0
----
1377
17
357

query II rowsort
SELECT col2 AS col1, - col0 AS col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5861
SELECT ALL COUNT ( * ) + CAST ( COUNT ( * ) AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5862
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, 41 + 83 + + COUNT( * ) FROM tab0 AS cor0
----
NULL
127

skipif mysql # not compatible
query II rowsort label-5862
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, 41 + 83 + + COUNT ( * ) FROM tab0 AS cor0
----
NULL
127

query I rowsort
SELECT - + col0 + - 6 AS col2 FROM tab1 AS cor0
----
-57
-91
-97

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

query I rowsort
SELECT + 38 + - ( + col1 ) + col0 * col1 FROM tab2 AS cor0
----
2333
4889
4996

query I rowsort
SELECT + 42 + + + 71 FROM tab1 AS cor0
----
113
113
113

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT ALL + SUM( - col0 ) * - 18 FROM tab1 AS cor0 WHERE NULL NOT IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5867
SELECT ALL + SUM ( - col0 ) * - 18 FROM tab1 AS cor0 WHERE NULL NOT IN ( col0 )
----
NULL

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

query I rowsort
SELECT DISTINCT - 52 * col0 FROM tab2
----
-2392
-3328
-3900

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT ALL + 19 + - COUNT( * ) AS col0 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-5870
SELECT ALL + 19 + - COUNT ( * ) AS col0 FROM tab1
----
16

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5871
SELECT * FROM tab1 WHERE ( + CAST( NULL AS DECIMAL ) * - + col1 ) BETWEEN col0 * 99 AND ( - 25 )
----

skipif mysql # not compatible
query III rowsort label-5871
SELECT * FROM tab1 WHERE ( + CAST ( NULL AS REAL ) * - + col1 ) BETWEEN col0 * 99 AND ( - 25 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT 23 + + COUNT( * ) AS col2 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-5872
SELECT 23 + + COUNT ( * ) AS col2 FROM tab1
----
26

query I rowsort
SELECT 41 + + + col2 * - col0 + + - col1 AS col1 FROM tab2
----
-1068
-2596
-4376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5874
SELECT ALL CAST( - - col2 AS SIGNED ) * col1 + + - ( - col2 ) AS col2 FROM tab2
----
1196
3120
3944

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL CAST ( - - col2 AS INTEGER ) * col1 + + - ( - col2 ) AS col2 FROM tab2
----
1196
3120
3944

query I rowsort
SELECT ALL + col0 + - 43 AS col0 FROM tab2
----
21
3
32

query I rowsort
SELECT col0 * 86 * + col1 FROM tab2
----
201756
423808
432150

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT DISTINCT + 5 - + - 65 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
200

skipif mysql # not compatible
query I rowsort label-5877
SELECT DISTINCT + 5 - + - 65 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5878
SELECT 31 + CAST( ( COUNT( * ) ) AS SIGNED ) FROM tab1 AS cor0 WHERE + col1 IN ( + 26 )
----
31

skipif mysql # not compatible
query I rowsort label-5878
SELECT 31 + CAST ( ( COUNT ( * ) ) AS INTEGER ) FROM tab1 AS cor0 WHERE + col1 IN ( + 26 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT ALL SUM( DISTINCT 59 ) * - - MIN( - col0 ) AS col0 FROM tab0 AS cor0
----
-5723

skipif mysql # not compatible
query I rowsort label-5879
SELECT ALL SUM ( DISTINCT 59 ) * - - MIN ( - col0 ) AS col0 FROM tab0 AS cor0
----
-5723

query II rowsort
SELECT + 96 AS col1, - ( - col0 ) + + col2 AS col1 FROM tab0
----
96
196
96
62
96
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) * - 31 * - 38 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-95418

skipif mysql # not compatible
query I rowsort label-5882
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) * - 31 * - 38 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-95418

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

query I rowsort
SELECT - + ( + - col1 ) AS col2 FROM tab0 AS cor0
----
1
21
81

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

query I rowsort
SELECT ALL + 51 * - 81 * col1 + + + col1 * - - col2 FROM tab0 AS cor0
----
-330804
-4032
-86541

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5887
SELECT CAST( + - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5887
SELECT CAST ( + - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-5888
SELECT - 54 DIV - 29 + + 52 * - 77 col2 FROM tab2 AS cor0 WHERE NOT + 5 + - 1 < + col1 DIV + ( + col2 )
----
-4003
-4003
-4003

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5888
SELECT - 54 / - 29 + + 52 * - 77 col2 FROM tab2 AS cor0 WHERE NOT + 5 + - 1 < + col1 / + ( + col2 )
----
-4003
-4003
-4003

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT 62 * + MAX( ALL - 81 ) + - - 44 FROM tab2 AS cor0
----
-4978

skipif mysql # not compatible
query I rowsort label-5889
SELECT 62 * + MAX ( ALL - 81 ) + - - 44 FROM tab2 AS cor0
----
-4978

query I rowsort
SELECT - col0 * - col1 * - 60 FROM tab0 AS cor0
----
-109620
-5820
-72900

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5893
SELECT - CAST( + 89 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-89
-89
-89

skipif mysql # not compatible
query I rowsort label-5893
SELECT - CAST ( + 89 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-89
-89
-89

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

query I rowsort
SELECT DISTINCT - 44 * 90 FROM tab0
----
-3960

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 60 / ( - ( - ( - 9 ) ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT 41 / - col1 - col2 * col2 AS col0 FROM tab0 WHERE NOT ( - col1 BETWEEN ( - 96 ) AND NULL )
----

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

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

query I rowsort
SELECT ALL + col0 * + ( ( + 81 ) ) + col0 + - col0 * col0 AS col1 FROM tab1 cor0
----
-255
-819
1581

onlyif mysql # DIV for integer division: 
query I rowsort label-5904
SELECT - - 37 DIV ( + - col0 ) + + - col2 * + ( - col2 ) AS col1 FROM tab1 AS cor0
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-5904
SELECT - - 37 / ( + - col0 ) + + - col2 * + ( - col2 ) AS col1 FROM tab1 AS cor0
----
3481
4624
9216

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

query I rowsort
SELECT DISTINCT 13 + + - col0 + - col2 * 85 FROM tab2
----
-1988
-3451
-4992

query I rowsort
SELECT - ( + + col1 ) + + ( - 33 ) AS col1 FROM tab1 AS cor0
----
-38
-47
-80

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5910
SELECT + col0 DIV + + col1 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-5910
SELECT + col0 / + + col1 FROM tab1 AS cor0
----
1
17
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN NULL AND + 69
----

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

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

skipif mysql # not compatible
query I rowsort label-5913
SELECT DISTINCT MIN ( + + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5914
SELECT - col2 DIV + + 13 + + 24 DIV 71 col0 FROM tab1 AS cor0
----
-4
-5
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5914
SELECT - col2 / + + 13 + + 24 / 71 col0 FROM tab1 AS cor0
----
-4
-5
-7

query I rowsort
SELECT ALL 46 + - col1 * - ( - 12 ) FROM tab1
----
-122
-14
-518

query II rowsort
SELECT ALL col1 AS col1, col1 * col0 FROM tab2
----
51
2346
67
5025
77
4928

query I rowsort
SELECT DISTINCT - 29 - + col1 AS col2 FROM tab1
----
-34
-43
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-5918
SELECT - COUNT( * ) AS col2, + 3 FROM tab0 WHERE NULL IS NOT NULL
----
0
3

skipif mysql # not compatible
query II rowsort label-5918
SELECT - COUNT ( * ) AS col2, + 3 FROM tab0 WHERE NULL IS NOT NULL
----
0
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5920
SELECT DISTINCT col0 * - CAST( - 69 AS SIGNED ) - - - col0 * + CAST( col2 AS SIGNED ) * - ( 70 ) + - col2 AS col2 FROM tab2
----
183576
309617
77211

skipif mysql # not compatible
query I rowsort label-5920
SELECT DISTINCT col0 * - CAST ( - 69 AS INTEGER ) - - - col0 * + CAST ( col2 AS INTEGER ) * - ( 70 ) + - col2 AS col2 FROM tab2
----
183576
309617
77211

onlyif mysql # DIV for integer division: 
query I rowsort label-5921
SELECT ALL col2 DIV - 92 + col1 FROM tab0
----
0
21
81

skipif mysql # not compatible
query I rowsort label-5921
SELECT ALL col2 / - 92 + col1 FROM tab0
----
0
21
81

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

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

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

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

query I rowsort
SELECT + + 33 + + 11 - - - 67 AS col1 FROM tab0 AS cor0
----
-23
-23
-23

query I rowsort
SELECT - - 79 * - col0 * + + col1 + 52 AS col1 FROM tab1 AS cor0
----
-33523
-337831
-56354

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab1 AS cor0 WHERE - col2 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( NULL NOT IN ( - 94 * + col0 ) ) )
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT DISTINCT - 79 * + + COUNT( - - 34 ) AS col1 FROM tab0
----
-237

skipif mysql # not compatible
query I rowsort label-5930
SELECT DISTINCT - 79 * + + COUNT ( - - 34 ) AS col1 FROM tab0
----
-237

query II rowsort
SELECT ALL 42 * + - col2, + 90 AS col2 FROM tab2 cor0
----
-1680
90
-2436
90
-966
90

query II rowsort
SELECT DISTINCT ( + col2 ) AS col2, 69 AS col0 FROM tab0 AS cor0
----
10
69
47
69
99
69

query I rowsort
SELECT + 31 * + 97 FROM tab0 AS cor0
----
3007
3007
3007

query I rowsort
SELECT ALL + - col0 FROM tab1 AS cor0 WHERE NOT 88 + - col1 IN ( col1, + col0, - col2 * + - 91 )
----
-51
-85
-91

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

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

query I rowsort
SELECT 83 * - col0 AS col1 FROM tab1
----
-4233
-7055
-7553

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5938
SELECT + 73 + - col2 DIV + + col0 FROM tab1
----
72
73
73

skipif mysql # not compatible
query I rowsort label-5938
SELECT + 73 + - col2 / + + col0 FROM tab1
----
72
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT ALL - MIN( DISTINCT + + 5 ) AS col2 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-5939
SELECT ALL - MIN ( DISTINCT + + 5 ) AS col2 FROM tab0
----
-5

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

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

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

query I rowsort
SELECT ALL col0 * - 17 + col2 AS col0 FROM tab1
----
-1386
-1479
-771

query I rowsort
SELECT DISTINCT col0 * + 73 - + 33 AS col1 FROM tab2
----
3325
4639
5442

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * + 33 NOT IN ( - - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 15 + col2 + + 18 FROM tab0 AS cor0
----
132
43
80

onlyif mysql # aggregate syntax: 
query II rowsort label-5947
SELECT - MAX( ALL - col0 ) col2, 11 AS col2 FROM tab0 cor0 WHERE 88 BETWEEN 20 AND - col0 + + col2
----
NULL
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5947
SELECT - MAX ( ALL - col0 ) col2, 11 AS col2 FROM tab0 cor0 WHERE 88 BETWEEN 20 AND - col0 + + col2
----
NULL
11

query I rowsort
SELECT + 22 + + + 43 FROM tab1 AS cor0
----
65
65
65

query I rowsort
SELECT DISTINCT + 91 - - 54 AS col2 FROM tab0 cor0
----
145

query I rowsort
SELECT + col2 * + 17 + - 97 * - col2 + - + 61 AS col0 FROM tab2 AS cor0
----
2561
4499
6551

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 + - col1 >= 29
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 36 + + col2 FROM tab2 AS cor0
----
59
76
94

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5955
SELECT + 45 DIV + + 96 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5955
SELECT + 45 / + + 96 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col2 - + - col2 FROM tab0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT - ( COUNT( DISTINCT + 51 ) ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5957
SELECT - ( COUNT ( DISTINCT + 51 ) ) AS col2 FROM tab0 AS cor0
----
-1

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

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

query I rowsort
SELECT DISTINCT - - ( ( - 24 ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-24

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

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

query I rowsort
SELECT ALL - 69 * - col2 AS col0 FROM tab1
----
4071
4692
6624

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 82, col1 - + + 16 * - col1 + 73, + 64 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT + SUM( ALL - 9 ) FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5965
SELECT + SUM ( ALL - 9 ) FROM tab0 AS cor0
----
-27

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT DISTINCT SUM( ALL 53 ) FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-5968
SELECT DISTINCT SUM ( ALL 53 ) FROM tab1 AS cor0
----
159

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

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

query I rowsort
SELECT ALL - col2 + - - 35 + - - 69 FROM tab2
----
46
64
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5971
SELECT DISTINCT col2 DIV + - ( - - col1 ) AS col2 FROM tab0
----
-99
0

skipif mysql # not compatible
query I rowsort label-5971
SELECT DISTINCT col2 / + - ( - - col1 ) AS col2 FROM tab0
----
-99
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5973
SELECT + 12, CAST( NULL AS SIGNED ) - - + col0 AS col1 FROM tab0 WHERE + col0 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query II rowsort label-5973
SELECT + 12, CAST ( NULL AS INTEGER ) - - + col0 AS col1 FROM tab0 WHERE + col0 BETWEEN NULL AND NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + ( col0 ) + - - col0 + + - col2 * - + col1 col1 FROM tab1
----
5395
6291
9475

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT DISTINCT - 15 - MAX( ALL 49 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-64

skipif mysql # not compatible
query I rowsort label-5976
SELECT DISTINCT - 15 - MAX ( ALL 49 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-64

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

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

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

skipif mysql # not compatible
query I rowsort label-5978
SELECT - COUNT ( * ) AS col2 FROM tab0, tab2 cor0
----
-9

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

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

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

query II rowsort
SELECT - + 8 AS col2, col2 AS col2 FROM tab0 AS cor0 WHERE + col1 NOT IN ( + ( ( + + ( + col2 ) ) ) + + col1 + col1, col1 - + - col2 )
----
-8
10
-8
47
-8
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5983
SELECT + col0 DIV - 54 - 92 * + col0 * - col0 FROM tab1 AS cor0
----
239292
664699
761851

skipif mysql # not compatible
query I rowsort label-5983
SELECT + col0 / - 54 - 92 * + col0 * - col0 FROM tab1 AS cor0
----
239292
664699
761851

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

query II rowsort
SELECT + 27 * col2 * + - ( col2 ) * - col2 * + col0, col0 AS col2 FROM tab1
----
1218281472
51
471344805
85
772559424
91

query I rowsort
SELECT DISTINCT col0 * - - 86 FROM tab0
----
1290
7482
8342

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT - 93 * - + COUNT( * ) FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-5987
SELECT - 93 * - + COUNT ( * ) FROM tab1
----
279

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5988
SELECT ALL - 40 DIV - - COUNT( * ) FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-5988
SELECT ALL - 40 / - - COUNT ( * ) FROM tab2
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-5989
SELECT + col0 DIV ( + col1 ) FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-5989
SELECT + col0 / ( + col1 ) FROM tab1
----
1
17
3

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

skipif mysql # not compatible
query I rowsort label-5990
SELECT - COUNT ( * ) * + - COUNT ( DISTINCT - 84 ) FROM tab0
----
3

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT DISTINCT - MAX( col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5994
SELECT DISTINCT - MAX ( col2 ) FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT - - MIN( ALL + ( col0 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 = - - 21
----
51

skipif mysql # not compatible
query I rowsort label-5995
SELECT - - MIN ( ALL + ( col0 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 = - - 21
----
51

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

query I rowsort
SELECT + 72 * - 41 FROM tab0 cor0
----
-2952
-2952
-2952

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT SUM( + col1 ) + - 67 AS col1 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-5998
SELECT SUM ( + col1 ) + - 67 AS col1 FROM tab0
----
36

query I rowsort
SELECT + 31 + - col1 FROM tab2
----
-20
-36
-46

query I rowsort
SELECT 75 + + 7 FROM tab0
----
82
82
82

query II rowsort
SELECT ALL col0 + + col0 - + col1, - ( - + col0 ) + + 25 + col2 * col2 * - col1 + + 93 + 23 AS col1 FROM tab2
----
41
-26792
51
-122995
83
-225172

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6004
SELECT DISTINCT CAST( NULL AS SIGNED ) col0, ( + + COUNT( * ) ) AS col1 FROM tab0 cor0
----
NULL
3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT COUNT( ALL 91 ) - 50 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-6007
SELECT COUNT ( ALL 91 ) - 50 FROM tab1
----
-47

query I rowsort
SELECT ALL - col0 - + + 43 FROM tab2
----
-107
-118
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 * - col1 + + - col0 * + col0 * - + col0 col1 FROM tab2
----
258525
418726
94939

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

query I rowsort
SELECT DISTINCT - + col2 FROM tab0 AS cor0 WHERE + 84 IS NULL
----

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 79 * col0 FROM tab1
----
4029
6715
7189

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 + + col1 * + + ( + 10 ) * 91 * - 65 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6020
SELECT ALL - 40 AS col2, + col2 DIV - col1 * 39 + + - col0 * ( + - col1 ) * + 2 AS col1 FROM tab2 AS cor0
----
-40
10050
-40
4692
-40
9856

skipif mysql # not compatible
query II rowsort label-6020
SELECT ALL - 40 AS col2, + col2 / - col1 * 39 + + - col0 * ( + - col1 ) * + 2 AS col1 FROM tab2 AS cor0
----
-40
10050
-40
4692
-40
9856

onlyif mysql # DIV for integer division: 
query II rowsort label-6021
SELECT DISTINCT col2 AS col1, - col1 DIV + col0 FROM tab0 cor0
----
10
0
47
-5
99
0

skipif mysql # not compatible
query II rowsort label-6021
SELECT DISTINCT col2 AS col1, - col1 / + col0 FROM tab0 cor0
----
10
0
47
-5
99
0

query I rowsort
SELECT + ( - col0 ) * col2 + + - 3 FROM tab2 AS cor0
----
-1061
-2563
-4353

query I rowsort
SELECT 54 AS col0 FROM tab1 WHERE NOT + ( + + col1 ) <> - - col1 * + 99
----

query I rowsort
SELECT + - 65 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT DISTINCT - COUNT( * ) + + 69 AS col1 FROM tab1, tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-6026
SELECT DISTINCT - COUNT ( * ) + + 69 AS col1 FROM tab1, tab1 AS cor0
----
60

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

skipif mysql # not compatible
query II rowsort label-6027
SELECT ALL + 64, - COUNT ( * ) AS col0 FROM tab0 cor0
----
64
-3

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

query I rowsort
SELECT + + col1 + - 5 * + col1 FROM tab2 AS cor0
----
-204
-268
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT 44 + + + COUNT( * ) + + + 96 * + + 35 AS col0 FROM tab2 AS cor0
----
3407

skipif mysql # not compatible
query I rowsort label-6030
SELECT 44 + + + COUNT ( * ) + + + 96 * + + 35 AS col0 FROM tab2 AS cor0
----
3407

query I rowsort
SELECT + + ( + 55 ) + + col2 AS col1 FROM tab2 cor0
----
113
78
95

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

query II rowsort
SELECT DISTINCT - 14 AS col0, + col2 AS col1 FROM tab2 AS cor0
----
-14
23
-14
40
-14
58

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

query I rowsort
SELECT 51 - + col2 FROM tab0 cor0 WHERE NULL > - 66
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 <> NULL
----

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

query I rowsort
SELECT ALL + col2 + + - 78 FROM tab2 AS cor0
----
-20
-38
-55

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT DISTINCT 63 + - - COUNT( * ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-6041
SELECT DISTINCT 63 + - - COUNT ( * ) FROM tab0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT DISTINCT - MAX( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6042
SELECT DISTINCT - MAX ( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + 51 FROM tab1 AS cor0 WHERE NULL = - 32 * + 10
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 29 * + col2 * - + col1 = 4
----

query I rowsort
SELECT ALL - col2 - + - col0 * + col2 - + 1 AS col0 FROM tab2 AS cor0
----
1034
2519
4291

onlyif mysql # aggregate syntax: 
query II rowsort label-6048
SELECT 48 AS col1, ( + SUM( ALL + - col2 ) ) AS col2 FROM tab1 AS cor0
----
48
-223

skipif mysql # not compatible
query II rowsort label-6048
SELECT 48 AS col1, ( + SUM ( ALL + - col2 ) ) AS col2 FROM tab1 AS cor0
----
48
-223

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6049
SELECT DISTINCT + col1 * + - col1 + col2 AS col0, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-431
NULL
-6514
NULL
98
NULL

skipif mysql # not compatible
query II rowsort label-6049
SELECT DISTINCT + col1 * + - col1 + col2 AS col0, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-431
NULL
-6514
NULL
98
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 / - col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6052
SELECT ALL col2 DIV col0 * - ( - - ( col0 ) ) AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL col2 / col0 * - ( - - ( col0 ) ) AS col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - col2 * col2 + - col1 + - col2 FROM tab2 AS cor0
----
-1717
-3489
-603

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT ALL 0 * - COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6056
SELECT ALL 0 * - COUNT ( * ) AS col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + 30 * + + col1 AS col2 FROM tab1
----
1410
150
420

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT ALL 99 * - COUNT( * ) FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-6058
SELECT ALL 99 * - COUNT ( * ) FROM tab0
----
-297

onlyif mysql # DIV for integer division: 
query I rowsort label-6059
SELECT col1 DIV - col0 * + 74 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6059
SELECT col1 / - col0 * + 74 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 cor0 WHERE + col1 IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT + 70 * col1 AS col0 FROM tab2 AS cor0
----
3570
4690
5390

query I rowsort
SELECT + 67 * - 67 * 89 FROM tab1
----
-399521
-399521
-399521

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT ALL + 39 * + SUM( ALL + ( col2 ) ) AS col1 FROM tab1 AS cor0
----
8697

skipif mysql # not compatible
query I rowsort label-6063
SELECT ALL + 39 * + SUM ( ALL + ( col2 ) ) AS col1 FROM tab1 AS cor0
----
8697

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

query I rowsort
SELECT + 50 * - col2 AS col1 FROM tab0 AS cor0
----
-2350
-4950
-500

query I rowsort
SELECT DISTINCT - 43 + + 89 AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT - col2 / col0 - + + 54 = - 91 + - + col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT DISTINCT + 17 * - 73 + - 51 - + COUNT( - 82 ) col2 FROM tab2 AS cor0 WHERE NOT ( + col2 ) NOT BETWEEN col2 AND + 70 * + col2 * - 42
----
-1292

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6069
SELECT DISTINCT + 17 * - 73 + - 51 - + COUNT ( - 82 ) col2 FROM tab2 AS cor0 WHERE NOT ( + col2 ) NOT BETWEEN col2 AND + 70 * + col2 * - 42
----
-1292

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 + - - col2 col2 FROM tab0
----
752
880
9702

query I rowsort
SELECT col2 + - ( - 5 ) AS col2 FROM tab0
----
104
15
52

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6073
SELECT 6 + + col2 DIV - col0 + + 86 FROM tab1
----
91
92
92

skipif mysql # not compatible
query I rowsort label-6073
SELECT 6 + + col2 / - col0 + + 86 FROM tab1
----
91
92
92

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

query I rowsort
SELECT DISTINCT col0 + ( col2 ) AS col2 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT COUNT( + col0 ) + - MAX( ALL - col2 ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-6076
SELECT COUNT ( + col0 ) + - MAX ( ALL - col2 ) FROM tab0
----
13

query II rowsort
SELECT col1, + 47 + + col0 FROM tab0
----
1
144
21
134
81
62

query I rowsort
SELECT DISTINCT - - ( - col2 ) + + - col1 * col0 * col1 * - col2 * + ( + col2 ) FROM tab2 cor0
----
1132574642
607129560
63292711

query I rowsort
SELECT DISTINCT col2 - - + col2 * - 1 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 82 * col1 + - col1 FROM tab2 AS cor0
----
-4233
-5561
-6391

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT ALL - SUM( col0 ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL - SUM ( col0 ) AS col2 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT ALL - 54 * + + 31 / + + 98 + + - col2 / - col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col0 * + + 19 FROM tab1 cor0
----
-1615
-1729
-969

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT DISTINCT ( - - COUNT( DISTINCT + + 10 ) ) FROM tab1 AS cor0 WHERE - col1 * col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6086
SELECT DISTINCT ( - - COUNT ( DISTINCT + + 10 ) ) FROM tab1 AS cor0 WHERE - col1 * col0 IS NULL
----
0

query I rowsort
SELECT DISTINCT - 47 * + 56 AS col0 FROM tab2 AS cor0
----
-2632

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

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

query I rowsort
SELECT - ( - - col1 ) * - col1 + col0 * + col1 FROM tab2 AS cor0
----
10857
4947
9514

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 7 BETWEEN NULL AND 30
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL > col1 + + 94
----

query I rowsort
SELECT - + 17 AS col2 FROM tab0 AS cor0
----
-17
-17
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 * - - 60 col0 FROM tab2
----
300
300
300

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

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

skipif mysql # not compatible
query I rowsort label-6095
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( + 20 ) * - 41 * + COUNT ( * ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6096
SELECT CAST( - 24 AS SIGNED ) FROM tab0 WHERE NOT + - 27 < NULL
----

skipif mysql # not compatible
query I rowsort label-6096
SELECT CAST ( - 24 AS INTEGER ) FROM tab0 WHERE NOT + - 27 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6097
SELECT SUM( DISTINCT - ( ( + + 12 ) ) ) + - ( + CAST( NULL AS SIGNED ) ) + + 48 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6097
SELECT SUM ( DISTINCT - ( ( + + 12 ) ) ) + - ( + CAST ( NULL AS INTEGER ) ) + + 48 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6098
SELECT DISTINCT - col0 * col2 DIV - 40 AS col2, ( + col0 ) FROM tab0 AS cor0
----
17
15
21
87
240
97

skipif mysql # not compatible
query II rowsort label-6098
SELECT DISTINCT - col0 * col2 / - 40 AS col2, ( + col0 ) FROM tab0 AS cor0
----
17
15
21
87
240
97

query I rowsort
SELECT ALL - 49 AS col1 FROM tab2 AS cor0
----
-49
-49
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, - col2 * - - col0 col0 FROM tab0 AS cor0
----
1
-9603
21
-870
81
-705

query I rowsort
SELECT - 62 FROM tab0 WHERE NULL BETWEEN NULL AND + - col1 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT COUNT( * ) FROM tab0 WHERE - col2 + + + ( col0 ) <> - col0 * - + 92
----
3

skipif mysql # not compatible
query I rowsort label-6102
SELECT COUNT ( * ) FROM tab0 WHERE - col2 + + + ( col0 ) <> - col0 * - + 92
----
3

query I rowsort
SELECT DISTINCT - 29 FROM tab1 AS cor0 WHERE NOT NULL < col2 * 53
----

query I rowsort
SELECT - col0 * + 51 AS col1 FROM tab1 AS cor0
----
-2601
-4335
-4641

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT ALL 9 + - + MAX( DISTINCT col1 ) FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-6108
SELECT ALL 9 + - + MAX ( DISTINCT col1 ) FROM tab1 AS cor0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6109
SELECT ALL col2 + + + CAST( + 59 AS SIGNED ) AS col0 FROM tab2
----
117
82
99

skipif mysql # not compatible
query I rowsort label-6109
SELECT ALL col2 + + + CAST ( + 59 AS INTEGER ) AS col0 FROM tab2
----
117
82
99

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT ALL 1 - + COUNT( * ) AS col0 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-6112
SELECT ALL 1 - + COUNT ( * ) AS col0 FROM tab0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-6113
SELECT DISTINCT + col1 DIV - ( - col2 ) + + col0 AS col1 FROM tab0 AS cor0
----
16
89
97

skipif mysql # not compatible
query I rowsort label-6113
SELECT DISTINCT + col1 / - ( - col2 ) + + col0 AS col1 FROM tab0 AS cor0
----
16
89
97

query I rowsort
SELECT 95 + col2 AS col2 FROM tab1 AS cor0
----
154
163
191

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 19 * + - col1 - col0 <> + 4
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

query I rowsort
SELECT ALL + ( + 18 ) AS col1 FROM tab0 cor0
----
18
18
18

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

query II rowsort
SELECT ALL col2 AS col2, 3 + + col0 AS col2 FROM tab0 cor0
----
10
90
47
18
99
100

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT ALL 72 * + - MAX( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( 89 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6121
SELECT ALL 72 * + - MAX ( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( 89 ) AND NULL
----
NULL

query II rowsort
SELECT - col0 * - col1, + col1 FROM tab0
----
1215
81
1827
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT ALL SUM( - col1 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL SUM ( - col1 ) AS col0 FROM tab2
----
-195

query I rowsort
SELECT DISTINCT - col1 * + 43 * col2 FROM tab1
----
-12685
-137428
-57792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 95 col2 FROM tab0 WHERE NOT + 27 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 WHERE NOT NULL NOT BETWEEN 72 + - col2 - - 27 AND ( 83 * + 16 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6127
SELECT DISTINCT * FROM tab0 WHERE NOT 53 = - - col1 + + CAST( NULL AS SIGNED ) + - ( + 97 ) + col1 / - + ( col2 )
----

skipif mysql # not compatible
query III rowsort label-6127
SELECT DISTINCT * FROM tab0 WHERE NOT 53 = - - col1 + + CAST ( NULL AS INTEGER ) + - ( + 97 ) + col1 / - + ( col2 )
----

query I rowsort
SELECT DISTINCT + col1 * - + 3 AS col1 FROM tab2 AS cor0
----
-153
-201
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT ALL + - SUM( DISTINCT + 19 ) + 59 AS col2 FROM tab2 cor0
----
40

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL + - SUM ( DISTINCT + 19 ) + 59 AS col2 FROM tab2 cor0
----
40

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

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6134
SELECT DISTINCT - - MAX ( + 9 ) col1 FROM tab2 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-6135
SELECT DISTINCT - 20 DIV ( col0 ) + + 23 FROM tab1 cor0
----
23

skipif mysql # not compatible
query I rowsort label-6135
SELECT DISTINCT - 20 / ( col0 ) + + 23 FROM tab1 cor0
----
23

query I rowsort
SELECT - 93 + - ( + 6 ) AS col1 FROM tab1 AS cor0
----
-99
-99
-99

query I rowsort
SELECT + - col1 + - 90 AS col1 FROM tab2 AS cor0
----
-141
-157
-167

query I rowsort
SELECT + - col1 * col2 + + 88 * - col0 AS col0 FROM tab2 cor0
----
-10486
-5221
-8712

query I rowsort
SELECT - col0 + 6 + - 67 AS col1 FROM tab2
----
-107
-125
-136

query I rowsort
SELECT ALL 79 * col2 AS col1 FROM tab2
----
1817
3160
4582

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT ALL + COUNT( * ) + + - 40 AS col0 FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-6141
SELECT ALL + COUNT ( * ) + + - 40 AS col0 FROM tab1
----
-37

query II rowsort
SELECT - ( + 73 ) + + ( - 63 ), col0 FROM tab1
----
-136
51
-136
85
-136
91

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6143
SELECT DISTINCT + COUNT ( * ) + - + 67 col1 FROM tab0
----
-64

query I rowsort
SELECT ALL - col0 * - + 21 + + col2 FROM tab0 WHERE + ( - + ( - + col2 ) ) * + 87 * + col2 + + 99 IS NOT NULL
----
1837
2136
362

query I rowsort
SELECT ALL col0 * - 53 + + ( + - 95 ) FROM tab0
----
-4706
-5236
-890

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT ALL - + COUNT( * ) col0 FROM tab2 WHERE NULL BETWEEN + 84 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6147
SELECT ALL - + COUNT ( * ) col0 FROM tab2 WHERE NULL BETWEEN + 84 AND NULL
----
0

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6154
SELECT ALL col2 + - 45 + + CAST( 51 AS SIGNED ) AS col1 FROM tab1
----
102
65
74

skipif mysql # not compatible
query I rowsort label-6154
SELECT ALL col2 + - 45 + + CAST ( 51 AS INTEGER ) AS col1 FROM tab1
----
102
65
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col1 col1 FROM tab2 WHERE NOT ( + col2 * col1 <= + col2 )
----
28
37
9

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

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

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

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

query I rowsort
SELECT ALL + col0 + - + 50 * + col1 FROM tab0 AS cor0
----
-4035
-963
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6160
SELECT DISTINCT - - ( - CAST( NULL AS SIGNED ) ), CAST( + col2 AS SIGNED ) + - 10 AS col2 FROM tab0 AS cor0
----
NULL
0
NULL
37
NULL
89

skipif mysql # not compatible
query II rowsort label-6160
SELECT DISTINCT - - ( - CAST ( NULL AS INTEGER ) ), CAST ( + col2 AS INTEGER ) + - 10 AS col2 FROM tab0 AS cor0
----
NULL
0
NULL
37
NULL
89

query I rowsort
SELECT - col0 + + + 20 * + 59 AS col1 FROM tab2 AS cor0
----
1105
1116
1134

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

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

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

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

query I rowsort
SELECT - 54 * - + col2 + - col1 AS col0 FROM tab2 AS cor0
----
1191
2083
3065

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - - col1 col0 FROM tab1 AS cor0
----
-196
-2209
-25

query I rowsort
SELECT + 64 * col1 AS col0 FROM tab0 AS cor0
----
1344
5184
64

query I rowsort
SELECT DISTINCT + - 54 * - + 53 AS col2 FROM tab2 cor0
----
2862

query I rowsort
SELECT - + col2 * - + 61 AS col1 FROM tab1 AS cor0
----
3599
4148
5856

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

query I rowsort
SELECT ALL - 1 AS col2 FROM tab0 WHERE + 13 + col2 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6172
SELECT - 66 AS col0, - COUNT( * ) FROM tab2
----
-66
-3

skipif mysql # not compatible
query II rowsort label-6172
SELECT - 66 AS col0, - COUNT ( * ) FROM tab2
----
-66
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 28 col0, + 60 FROM tab0
----
28
60
28
60
28
60

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

query I rowsort
SELECT DISTINCT col1 FROM tab2 cor0 WHERE col2 * 69 IS NOT NULL
----
51
67
77

query I rowsort
SELECT 53 * - col1 AS col2 FROM tab0 AS cor0
----
-1113
-4293
-53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6177
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 * - CAST( NULL AS SIGNED ) > - 64
----

skipif mysql # not compatible
query III rowsort label-6177
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 * - CAST ( NULL AS INTEGER ) > - 64
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6179
SELECT + COUNT( DISTINCT - CAST( + 12 AS DECIMAL ) ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6179
SELECT + COUNT ( DISTINCT - CAST ( + 12 AS REAL ) ) AS col1 FROM tab0
----
1

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

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

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

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

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

query I rowsort
SELECT DISTINCT col0 + + col0 * - + col1 FROM tab2 AS cor0
----
-2300
-4864
-4950

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

query I rowsort
SELECT 89 + - col1 * + col0 FROM tab1
----
-336
-4188
-625

query I rowsort
SELECT - 15 + + col0 AS col2 FROM tab0
----
0
72
82

query I rowsort
SELECT - col1 FROM tab1 WHERE NULL > + - col0 + - col1 + - + col2 * + 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT SUM( - 16 ) + COUNT( * ) FROM tab1 AS cor0 WHERE ( + 90 ) BETWEEN + 17 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6190
SELECT SUM ( - 16 ) + COUNT ( * ) FROM tab1 AS cor0 WHERE ( + 90 ) BETWEEN + 17 AND NULL
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT + 28 + - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( + col2 ) NOT BETWEEN - 78 AND - 57
----
25

skipif mysql # not compatible
query I rowsort label-6193
SELECT + 28 + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( + col2 ) NOT BETWEEN - 78 AND - 57
----
25

query I rowsort
SELECT DISTINCT + + col2 * col1 - + col0 FROM tab0 cor0
----
123
2
3792

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 AS cor0 WHERE NOT + col0 + + 88 IS NOT NULL
----

query III rowsort
SELECT DISTINCT col1 AS col1, - col1 AS col2, - col0 + - + 27 AS col1 FROM tab2 AS cor0
----
9 values hashing to d003b977f45e158fc08c717d1c2bde61

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

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

query II rowsort
SELECT DISTINCT 72 * - col0, 65 AS col0 FROM tab2
----
-3312
65
-4608
65
-5400
65

query I rowsort
SELECT - col0 * + - col1 * col0 * - col2 * col1 FROM tab0
----
-33379290
-69382575
-931491

query I rowsort
SELECT ALL col2 * + - col0 * - - col1 FROM tab1
----
-25075
-290836
-68544

query I rowsort
SELECT ALL + 13 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

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

skipif mysql # not compatible
query I rowsort label-6202
SELECT ALL COUNT ( DISTINCT - col1 ) * - MIN ( ALL - + col0 ) AS col0 FROM tab0
----
291

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT - 5 * COUNT( * ) FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-6204
SELECT - 5 * COUNT ( * ) FROM tab2
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-6205
SELECT ALL ( + 83 ) DIV col1 + + + 84 + + - col0 * - 59 FROM tab2
----
2799
3861
4510

skipif mysql # not compatible
query I rowsort label-6205
SELECT ALL ( + 83 ) / col1 + + + 84 + + - col0 * - 59 FROM tab2
----
2799
3861
4510

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6207
SELECT ALL - 42 * COUNT( ALL + 2 ) AS col2 FROM tab2
----
-126

skipif mysql # not compatible
query I rowsort label-6207
SELECT ALL - 42 * COUNT ( ALL + 2 ) AS col2 FROM tab2
----
-126

query I rowsort
SELECT ALL 1 FROM tab1 AS cor0 WHERE NOT ( - 7 ) <= - - col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6209
SELECT DISTINCT + col1 DIV + CAST( + col2 AS SIGNED ), + col0 AS col0 FROM tab0 cor0
----
0
97
1
15
2
87

skipif mysql # not compatible
query II rowsort label-6209
SELECT DISTINCT + col1 / + CAST ( + col2 AS INTEGER ), + col0 AS col0 FROM tab0 cor0
----
0
97
1
15
2
87

query II rowsort
SELECT col1, + 63 AS col2 FROM tab1 AS cor0
----
14
63
47
63
5
63

query I rowsort
SELECT ALL 92 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query II rowsort
SELECT col0 AS col0, col2 * + col0 + + + 98 + - col1 AS col0 FROM tab0 AS cor0
----
15
722
87
947
97
9700

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

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

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

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

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

query II rowsort
SELECT col1 / - + 67, + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col0 + + col1, col0 * col1 - - 65 * + col2 FROM tab0 cor0 WHERE - 30 * - 30 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT DISTINCT - COUNT( * ) + - - 46 AS col2 FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-6218
SELECT DISTINCT - COUNT ( * ) + - - 46 AS col2 FROM tab0
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6219
SELECT ALL 99 * - COUNT( * ) + ( COUNT( * ) ) + + COUNT( DISTINCT col2 ) DIV + 63 FROM tab2
----
-294

skipif mysql # not compatible
query I rowsort label-6219
SELECT ALL 99 * - COUNT ( * ) + ( COUNT ( * ) ) + + COUNT ( DISTINCT col2 ) / + 63 FROM tab2
----
-294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col1 + - col0 col1 FROM tab1
----
-1395
-3287
-380

onlyif mysql # DIV for integer division: 
query I rowsort label-6221
SELECT ALL 11 + + - ( 27 ) DIV - col2 FROM tab0
----
11
11
13

skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL 11 + + - ( 27 ) / - col2 FROM tab0
----
11
11
13

query I rowsort
SELECT 58 * + col0 FROM tab1
----
2958
4930
5278

query I rowsort
SELECT - - col2 * - col1 + 41 + col1 AS col2 FROM tab1 AS cor0 WHERE + ( + 28 ) <= col0
----
-1289
-249
-3108

onlyif mysql # aggregate syntax: 
query II rowsort label-6224
SELECT + COUNT( * ) + 94 AS col2, 14 * MIN( DISTINCT - col2 ) col0 FROM tab2 AS cor0
----
97
-812

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6224
SELECT + COUNT ( * ) + 94 AS col2, 14 * MIN ( DISTINCT - col2 ) col0 FROM tab2 AS cor0
----
97
-812

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

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

query I rowsort
SELECT DISTINCT + ( - col1 ) * + + 2 * + + col1 - + 97 FROM tab1 AS cor0
----
-147
-4515
-489

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

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

skipif mysql # not compatible
query I rowsort label-6228
SELECT + COUNT ( * ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT col2 * + + 13 AS col2 FROM tab1
----
1248
767
884

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6230
SELECT COUNT( * ) AS col2, 23 DIV + 3 AS col2 FROM tab1
----
3
7

skipif mysql # not compatible
query II rowsort label-6230
SELECT COUNT ( * ) AS col2, 23 / + 3 AS col2 FROM tab1
----
3
7

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6234
SELECT CAST( - - col1 AS SIGNED ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6234
SELECT CAST ( - - col1 AS INTEGER ) FROM tab1 AS cor0
----
14
47
5

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

query I rowsort
SELECT ALL + 36 * - col2 AS col0 FROM tab0 cor0
----
-1692
-3564
-360

query I rowsort
SELECT - col2 * - + 61 FROM tab0
----
2867
6039
610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6238
SELECT DISTINCT + 81 + - ( col2 ) * + CAST( ( - col0 ) AS SIGNED ) FROM tab1
----
4977
5096
6269

skipif mysql # not compatible
query I rowsort label-6238
SELECT DISTINCT + 81 + - ( col2 ) * + CAST ( ( - col0 ) AS INTEGER ) FROM tab1
----
4977
5096
6269

query I rowsort
SELECT DISTINCT + 32 * + 24 AS col2 FROM tab0
----
768

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + - 74 ) * - col1 + col1 / - - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= 84
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 87 + + 13 col0 FROM tab1
----
4450
7408
7930

query I rowsort
SELECT DISTINCT col2 + - + 58 FROM tab0
----
-11
-48
41

query I rowsort
SELECT DISTINCT - 90 AS col2 FROM tab1, tab2 AS cor0
----
-90

query I rowsort
SELECT ALL + 4 + + + col1 FROM tab1
----
18
51
9

query I rowsort
SELECT + col0 + + + col0 * - - ( - col0 ) FROM tab1
----
-2550
-7140
-8190

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

skipif mysql # not compatible
query I rowsort label-6250
SELECT col2 + col1 / ( + 52 ) AS col1 FROM tab0
----
10
48
99

query I rowsort
SELECT - 81 * 52 + 37 FROM tab1
----
-4175
-4175
-4175

query II rowsort
SELECT 48 + + - ( + col2 ) AS col1, - ( - 21 ) * - ( - - 56 ) + - ( - col2 ) + col0 FROM tab0
----
-51
-980
1
-1114
38
-1079

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6255
SELECT ALL + 97 DIV - col1 FROM tab1
----
-19
-2
-6

skipif mysql # not compatible
query I rowsort label-6255
SELECT ALL + 97 / - col1 FROM tab1
----
-19
-2
-6

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

skipif mysql # not compatible
query I rowsort label-6256
SELECT DISTINCT + COUNT ( * ) * + 61 FROM tab2
----
183

query I rowsort
SELECT col1 * ( - 45 ) + col0 * + 16 FROM tab2
----
-1559
-1815
-2441

onlyif mysql # DIV for integer division: 
query I rowsort label-6258
SELECT + col2 * col1 - 88 FROM tab1 WHERE NOT col1 DIV 85 BETWEEN NULL AND + col1 + - col1
----

skipif mysql # not compatible
query I rowsort label-6258
SELECT + col2 * col1 - 88 FROM tab1 WHERE NOT col1 / 85 BETWEEN NULL AND + col1 + - col1
----

query I rowsort
SELECT DISTINCT 34 * col2 FROM tab1
----
2006
2312
3264

onlyif mysql # DIV for integer division: 
query I rowsort label-6260
SELECT - col1 DIV - 44 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6260
SELECT - col1 / - 44 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6261
SELECT - CAST( NULL AS SIGNED ) + CAST( COUNT( * ) AS SIGNED ) * - MIN( DISTINCT 98 ) FROM tab1 WHERE NOT - ( 58 ) + + 25 IN ( col1 / 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6261
SELECT - CAST ( NULL AS INTEGER ) + CAST ( COUNT ( * ) AS INTEGER ) * - MIN ( DISTINCT 98 ) FROM tab1 WHERE NOT - ( 58 ) + + 25 IN ( col1 / 95 )
----
NULL

query I rowsort
SELECT DISTINCT 54 FROM tab0 WHERE col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 < 49
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND + col2 * col1 + 1
----

query I rowsort
SELECT ALL col0 + 31 * 20 FROM tab0
----
635
707
717

query I rowsort
SELECT ALL - ( - col2 ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN 88 AND - col0 - 62
----

query I rowsort
SELECT 67 * + 37 AS col0 FROM tab0
----
2479
2479
2479

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6268
SELECT + CAST( COUNT( * ) AS SIGNED ) + + 85 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-6268
SELECT + CAST ( COUNT ( * ) AS INTEGER ) + + 85 FROM tab1
----
88

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

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

query I rowsort
SELECT + 90 AS col2 FROM tab1 WHERE NOT ( - col2 + 73 * col0 ) IS NULL
----
90
90
90

query I rowsort
SELECT - 94 + - col2 AS col0 FROM tab2
----
-117
-134
-152

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

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

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab2 WHERE 60 * + col0 <> 65 + ( - 45 ) * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6276
SELECT DISTINCT col2 DIV + col0 + 27 AS col1 FROM tab0
----
27
28
30

skipif mysql # not compatible
query I rowsort label-6276
SELECT DISTINCT col2 / + col0 + 27 AS col1 FROM tab0
----
27
28
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT DISTINCT MIN( DISTINCT 68 ) col1 FROM tab1 AS cor0 WHERE - col1 + 62 IN ( - 2 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6277
SELECT DISTINCT MIN ( DISTINCT 68 ) col1 FROM tab1 AS cor0 WHERE - col1 + 62 IN ( - 2 )
----
NULL

query I rowsort
SELECT DISTINCT + col0 + + 61 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 * - col1 col1 FROM tab1 AS cor0
----
-2115
-225
-630

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

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

query I rowsort
SELECT 40 FROM tab2 WHERE NOT NULL IN ( 12 * + col2 + + 19 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 81 + + col2 col1 FROM tab2 AS cor0 WHERE col2 <= ( col1 * 70 + - col2 )
----
-23
-41
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6284
SELECT col2 DIV - 90 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6284
SELECT col2 / - 90 FROM tab2 cor0
----
0
0
0

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

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

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

query I rowsort
SELECT 73 FROM tab1 cor0 WHERE + col2 * + 58 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT + + 55 * SUM( col2 ) FROM tab0 AS cor0
----
8580

skipif mysql # not compatible
query I rowsort label-6288
SELECT + + 55 * SUM ( col2 ) FROM tab0 AS cor0
----
8580

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

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

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

query I rowsort
SELECT + + 25 * 26 FROM tab1 AS cor0
----
650
650
650

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT DISTINCT - + 14 * + 5 + - COUNT( * ) FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-6292
SELECT DISTINCT - + 14 * + 5 + - COUNT ( * ) FROM tab1 AS cor0
----
-73

query I rowsort
SELECT DISTINCT 30 + + 86 FROM tab2
----
116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - 30 * - 21 col0 FROM tab1
----
681
715
721

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

query I rowsort
SELECT + col0 / col0 FROM tab2 WHERE NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6297
SELECT DISTINCT + 36 - + - MAX( DISTINCT col0 ) FROM tab0
----
133

skipif mysql # not compatible
query I rowsort label-6297
SELECT DISTINCT + 36 - + - MAX ( DISTINCT col0 ) FROM tab0
----
133

query I rowsort
SELECT ALL col2 + 55 AS col2 FROM tab0
----
102
154
65

query I rowsort
SELECT DISTINCT col0 * - + col2 + + 39 AS col2 FROM tab0
----
-666
-831
-9564

query I rowsort
SELECT ALL + 64 - ( col2 ) FROM tab2 AS cor0
----
24
41
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 * + + 35 * + 24 + + col0 * col1 + + col0 col0 FROM tab1 AS cor0
----
83670
83925
87528

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE NULL = col1 + col1
----

query I rowsort
SELECT ALL - 59 + - col0 AS col1 FROM tab2
----
-105
-123
-134

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6305
SELECT col0 DIV 26 * CAST( - 46 AS SIGNED ) * col0 FROM tab2
----
-2116
-5888
-6900

skipif mysql # not compatible
query I rowsort label-6305
SELECT col0 / 26 * CAST ( - 46 AS INTEGER ) * col0 FROM tab2
----
-2116
-5888
-6900

query I rowsort
SELECT + - 43 * 41 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3a849964875624b0c6fcbe6b9da6782c

query I rowsort
SELECT DISTINCT 74 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT + + 90 * - SUM( ( + 7 ) ) FROM tab0 AS cor0
----
-1890

skipif mysql # not compatible
query I rowsort label-6308
SELECT + + 90 * - SUM ( ( + 7 ) ) FROM tab0 AS cor0
----
-1890

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

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

query I rowsort
SELECT 82 * + col1 + - - 25 * col1 FROM tab0 AS cor0
----
107
2247
8667

query I rowsort
SELECT DISTINCT - col2 * - 76 * col0 * + 44 FROM tab1 AS cor0
----
16372224
16770160
20692672

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 6 * col2 + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + col1
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6318
SELECT DISTINCT + 30 DIV - MAX( ALL - col1 ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-6318
SELECT DISTINCT + 30 / - MAX ( ALL - col1 ) FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT + ( + COUNT( DISTINCT - 61 ) ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6319
SELECT + ( + COUNT ( DISTINCT - 61 ) ) AS col2 FROM tab2
----
1

query I rowsort
SELECT + 66 AS col0 FROM tab2 WHERE NOT 52 IN ( 73 )
----
66
66
66

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 30 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT DISTINCT + MIN( ALL + 26 ) AS col2 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-6323
SELECT DISTINCT + MIN ( ALL + 26 ) AS col2 FROM tab1
----
26

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= + col1 + col1
----

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

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

query I rowsort
SELECT - col2 * + 51 AS col0 FROM tab1 WHERE NOT NULL > - - 56 + + + col0
----

query I rowsort
SELECT + 61 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 90 col2, + 46 * + 18 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 2eb1f55e5e85a9c75831f55869ba1e60

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

query I rowsort
SELECT ALL + 5 + col1 FROM tab1
----
10
19
52

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 38 + 4 IS NOT NULL
----

query II rowsort
SELECT - + 81 * + col1 + + col0, - 90 AS col1 FROM tab0 AS cor0
----
-1614
-90
-6546
-90
16
-90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 >= + col2 / + 9 * 93
----

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 5 * 81 * + 92 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 3d5cc37a6dac8a8550e60f7e17662ac2

query I rowsort
SELECT + 62 + + - col2 FROM tab2
----
22
39
4

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

query I rowsort
SELECT ALL - 76 + + col2 AS col0 FROM tab2
----
-18
-36
-53

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

query I rowsort
SELECT DISTINCT 50 * - ( + + col0 ) * + 35 * ( + col0 ) + + 65 AS col0 FROM tab1
----
-12643685
-14491685
-4551685

query I rowsort
SELECT ALL + col1 * col2 - col1 FROM tab1
----
1330
290
3149

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT ALL MAX( ( + col0 ) ) - - COUNT( * ) / MIN( ALL + col0 * + col0 + col1 ) AS col1 FROM tab0 WHERE + + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL MAX ( ( + col0 ) ) - - COUNT ( * ) / MIN ( ALL + col0 * + col0 + col1 ) AS col1 FROM tab0 WHERE + + col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT ALL - COUNT( * ) + 11 AS col2 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL - COUNT ( * ) + 11 AS col2 FROM tab0
----
8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT DISTINCT + COUNT( * ) * + + ( - 5 ) - - MAX( ALL - col0 ) FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-6354
SELECT DISTINCT + COUNT ( * ) * + + ( - 5 ) - - MAX ( ALL - col0 ) FROM tab0 AS cor0
----
-30

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

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

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

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

query I rowsort
SELECT + col2 - - - ( 61 ) + col2 * - col0 FROM tab2 AS cor0
----
-1096
-2581
-4353

query I rowsort
SELECT DISTINCT col1 - - col1 * - + 1 FROM tab1 AS cor0 WHERE 95 IS NULL
----

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE NOT + col1 + + col0 + col1 IN ( - 37 )
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6360
SELECT ALL + COUNT( * ) DIV - 72 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6360
SELECT ALL + COUNT ( * ) / - 72 FROM tab1
----
0

query I rowsort
SELECT + 62 + - 26 FROM tab2 WHERE NOT - col2 - - 59 * - + col2 + col2 IS NULL
----
36
36
36

query III rowsort
SELECT ALL * FROM tab1 WHERE + - ( + ( + col0 ) ) + col2 * - col2 NOT BETWEEN + col0 + + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 13 * col0 FROM tab1 AS cor0
----
-1105
-1183
-663

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6365
SELECT DISTINCT + CAST( NULL AS SIGNED ) / 65 * + - ( + COUNT( * ) ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6365
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / 65 * + - ( + COUNT ( * ) ) col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 24 ) <= col1 - col1 * - + col0 + + col1 * - + col2 * + 89
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 99 FROM tab1 AS cor0 WHERE NOT 62 * - - col2 * + + col2 <= 6 * + 65 + - col0
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT DISTINCT + MAX( + col2 ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-6368
SELECT DISTINCT + MAX ( + col2 ) FROM tab1 cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT DISTINCT 86 * + COUNT( * ) FROM tab0
----
258

skipif mysql # not compatible
query I rowsort label-6369
SELECT DISTINCT 86 * + COUNT ( * ) FROM tab0
----
258

onlyif mysql # DIV for integer division: 
query I rowsort label-6370
SELECT ALL col0 DIV col2 * - 29 FROM tab0
----
-232
0
0

skipif mysql # not compatible
query I rowsort label-6370
SELECT ALL col0 / col2 * - 29 FROM tab0
----
-232
0
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6372
SELECT DISTINCT + 76 DIV - + COUNT( col0 ) FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-6372
SELECT DISTINCT + 76 / - + COUNT ( col0 ) FROM tab2
----
-25

query I rowsort
SELECT ALL + - col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

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

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

query I rowsort
SELECT + col0 * + col1 * - col0 FROM tab2 AS cor0
----
-107916
-315392
-376875

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6377
SELECT ALL + 99 DIV + col1 AS col2 FROM tab0 AS cor0
----
1
4
99

skipif mysql # not compatible
query I rowsort label-6377
SELECT ALL + 99 / + col1 AS col2 FROM tab0 AS cor0
----
1
4
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT MAX( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6378
SELECT MAX ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6379
SELECT ALL + - CAST( NULL AS SIGNED ) * ( 94 ) col2 FROM tab0 AS cor0 WHERE - 16 * + col2 > - col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6379
SELECT ALL + - CAST ( NULL AS INTEGER ) * ( 94 ) col2 FROM tab0 AS cor0 WHERE - 16 * + col2 > - col2
----

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

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

query I rowsort
SELECT ( - 15 ) FROM tab2 AS cor0
----
-15
-15
-15

query I rowsort
SELECT DISTINCT + + col2 + + 23 AS col0 FROM tab0 AS cor0 WHERE NOT ( - + col1 ) IS NULL
----
122
33
70

query I rowsort
SELECT ALL - col2 + ( + - 30 ) AS col0 FROM tab2 AS cor0
----
-53
-70
-88

query II rowsort
SELECT - - col2 * + - 5 AS col1, col2 * + + ( + col1 ) FROM tab0 AS cor0
----
-235
3807
-495
99
-50
210

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

query I rowsort
SELECT DISTINCT 5 + - col1 AS col2 FROM tab2
----
-46
-62
-72

query II rowsort
SELECT col0 * + 52 - - ( + + col1 ) - - col0 AS col1, 92 FROM tab2
----
2489
92
3469
92
4042
92

query I rowsort
SELECT + - col2 FROM tab0 WHERE - col2 IS NOT NULL
----
-10
-47
-99

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

skipif mysql # not compatible
query I rowsort label-6390
SELECT - 78 + + 87 + + COUNT ( * ) FROM tab0
----
12

query I rowsort
SELECT DISTINCT + 91 - - col1 FROM tab1
----
105
138
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6392
SELECT CAST( - 28 AS SIGNED ) + col2 FROM tab2
----
-5
12
30

skipif mysql # not compatible
query I rowsort label-6392
SELECT CAST ( - 28 AS INTEGER ) + col2 FROM tab2
----
-5
12
30

query I rowsort
SELECT - 96 + col2 AS col0 FROM tab0
----
-49
-86
3

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6395
SELECT ALL + + 35 - - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6395
SELECT ALL + + 35 - - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 56 + + col0 col2 FROM tab1 AS cor0
----
-5
29
35

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

query II rowsort
SELECT + 80 * + 71 * col1 AS col1, 4 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( - col2, 13 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6400
SELECT - ( - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT 53 BETWEEN ( NULL ) AND + 91 * + 61
----

skipif mysql # not compatible
query I rowsort label-6400
SELECT - ( - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT 53 BETWEEN ( NULL ) AND + 91 * + 61
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6401
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6401
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6402
SELECT - MIN( ALL + + 99 ) col0 FROM tab1 WHERE NOT ( + CAST( NULL AS DECIMAL ) ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6402
SELECT - MIN ( ALL + + 99 ) col0 FROM tab1 WHERE NOT ( + CAST ( NULL AS REAL ) ) IS NULL
----
NULL

query I rowsort
SELECT - - col0 * - ( - 19 ) AS col1 FROM tab0 AS cor0
----
1653
1843
285

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

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

query I rowsort
SELECT DISTINCT - 6 AS col1 FROM tab0 AS cor0 WHERE + ( + col0 ) IS NOT NULL
----
-6

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6407
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - + col2, 3 - - - col1 / col0 + col0, + + CAST( 48 AS DECIMAL ) * - CAST( NULL AS SIGNED ) * - 56 )
----

skipif mysql # not compatible
query III rowsort label-6407
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - + col2, 3 - - - col1 / col0 + col0, + + CAST ( 48 AS REAL ) * - CAST ( NULL AS INTEGER ) * - 56 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col1 + + 75 * - - col1 ) < NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT + + COUNT( * ) * ( - 83 ) col2 FROM tab2 cor0
----
-249

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

query I rowsort
SELECT + 50 + - 89 FROM tab0
----
-39
-39
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6413
SELECT COUNT( * ) + - COUNT( * ) * - 22 AS col0, CAST( NULL AS SIGNED ) + - 49 FROM tab2
----
69
NULL

skipif mysql # not compatible
query II rowsort label-6413
SELECT COUNT ( * ) + - COUNT ( * ) * - 22 AS col0, CAST ( NULL AS INTEGER ) + - 49 FROM tab2
----
69
NULL

query IIIIII rowsort
SELECT * FROM tab0, tab0 cor0 WHERE - 4 + + 21 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query II rowsort label-6415
SELECT COUNT( * ) + - 92 * + 2 AS col0, - 88 AS col1 FROM tab0
----
-181
-88

skipif mysql # not compatible
query II rowsort label-6415
SELECT COUNT ( * ) + - 92 * + 2 AS col0, - 88 AS col1 FROM tab0
----
-181
-88

query I rowsort
SELECT 80 + - col0 AS col1 FROM tab0
----
-17
-7
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 96 * ( - 75 ) col1 FROM tab1
----
-7200

query I rowsort
SELECT DISTINCT - col0 * + col1 * + col0 * + col1 FROM tab0
----
-1476225
-3337929
-9409

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

query I rowsort
SELECT + 83 AS col1 FROM tab0 AS cor0 WHERE 44 <= - col0
----

query I rowsort
SELECT + 22 + 73 + - - 91 * col1 * + 29 AS col0 FROM tab0 AS cor0 WHERE col1 * col1 * - col0 IS NOT NULL
----
213854
2734
55514

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> + col2 + - 35 + + col2 * col2 / - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6424
SELECT DISTINCT - 78 DIV + MAX( + 71 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6424
SELECT DISTINCT - 78 / + MAX ( + 71 ) AS col2 FROM tab0 AS cor0
----
-1

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

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL + - 60 + + COUNT ( DISTINCT ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
-57

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

query I rowsort
SELECT col0 * + 51 AS col0 FROM tab2
----
2346
3264
3825

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6429
SELECT + 54 DIV col0 * + col2 FROM tab1
----
0
0
96

skipif mysql # not compatible
query I rowsort label-6429
SELECT + 54 / col0 * + col2 FROM tab1
----
0
0
96

query I rowsort
SELECT ALL - col1 * - - col0 + + col1 AS col2 FROM tab1 AS cor0
----
-420
-4230
-700

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

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

query I rowsort
SELECT DISTINCT col0 * + + 1 FROM tab0
----
15
87
97

query I rowsort
SELECT col0 * + - 29 + + col1 AS col2 FROM tab0 cor0
----
-2502
-2812
-354

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT + + MIN( - 36 ) FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-6435
SELECT + + MIN ( - 36 ) FROM tab1 AS cor0
----
-36

query I rowsort
SELECT 44 * - col1 AS col2 FROM tab2
----
-2244
-2948
-3388

query I rowsort
SELECT ALL col1 * + col0 * + 60 FROM tab1
----
25500
256620
42840

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

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

query I rowsort
SELECT DISTINCT - col1 * - + col1 + - col0 FROM tab0
----
-96
354
6546

query I rowsort
SELECT DISTINCT - 98 * - + col1 FROM tab0
----
2058
7938
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT MIN( ALL - col2 ) col2 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6442
SELECT MIN ( ALL - col2 ) col2 FROM tab0
----
-99

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 98 + - 58 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 * + col2 * + - col1 * - - col2 / - col2 <> NULL
----

query I rowsort
SELECT DISTINCT + 87 - - col1 FROM tab1
----
101
134
92

query I rowsort
SELECT - 66 + + col1 AS col0 FROM tab1
----
-19
-52
-61

query I rowsort
SELECT 46 - + 27 AS col0 FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - 10 * + - 27 AS col1 FROM tab1 AS cor0
----
270
270
270

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NULL <= + 39 * - 47 * + ( 41 ) * - + 55 + - + col2
----
0

skipif mysql # not compatible
query I rowsort label-6450
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL <= + 39 * - 47 * + ( 41 ) * - + 55 + - + col2
----
0

query I rowsort
SELECT DISTINCT - - 85 AS col1 FROM tab1 AS cor0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-6452
SELECT - + 47 * + - 87 * col2 - - 30 * - - col1 DIV + + col1 col0 FROM tab0 AS cor0
----
192213
404841
40920

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6452
SELECT - + 47 * + - 87 * col2 - - 30 * - - col1 / + + col1 col0 FROM tab0 AS cor0
----
192213
404841
40920

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 12 NOT BETWEEN - ( - + col2 ) AND NULL
----

query I rowsort
SELECT ALL 44 + - + 47 FROM tab0
----
-3
-3
-3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6456
SELECT DISTINCT - 65 DIV - - col1 col1 FROM tab2
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6456
SELECT DISTINCT - 65 / - - col1 col1 FROM tab2
----
-1
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT DISTINCT - + MAX( ALL 28 ) AS col1 FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-6460
SELECT DISTINCT - + MAX ( ALL 28 ) AS col1 FROM tab0 AS cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT + + MAX( - + col0 ) * - 44 AS col2 FROM tab0 AS cor0
----
660

skipif mysql # not compatible
query I rowsort label-6461
SELECT + + MAX ( - + col0 ) * - 44 AS col2 FROM tab0 AS cor0
----
660

query I rowsort
SELECT 97 FROM tab1 AS cor0 WHERE NOT + col1 < - 73
----
97
97
97

query I rowsort
SELECT ALL + 50 FROM tab0 cor0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT COUNT( * ) * 25 * COUNT( * ) FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-6464
SELECT COUNT ( * ) * 25 * COUNT ( * ) FROM tab0
----
225

query I rowsort
SELECT DISTINCT 2 * ( - + 41 ) FROM tab0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6466
SELECT CAST( NULL AS SIGNED ) * - 39 * 76 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6466
SELECT CAST ( NULL AS INTEGER ) * - 39 * 76 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + 94 AS col0 FROM tab2 cor0
----
2162
3760
5452

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6470
SELECT col0 DIV col2 + + col2 FROM tab2
----
25
41
59

skipif mysql # not compatible
query I rowsort label-6470
SELECT col0 / col2 + + col2 FROM tab2
----
25
41
59

query I rowsort
SELECT + ( col1 ) FROM tab2 WHERE + col0 + - col2 = ( + - 92 - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT ALL + MIN( + col1 ) + COUNT( DISTINCT col2 ) AS col2 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-6472
SELECT ALL + MIN ( + col1 ) + COUNT ( DISTINCT col2 ) AS col2 FROM tab0
----
4

query I rowsort
SELECT DISTINCT - 37 + + col2 FROM tab2
----
-14
21
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6474
SELECT ALL CAST( + 58 AS SIGNED ) + - - col2 * + col2 AS col1 FROM tab1
----
3539
4682
9274

skipif mysql # not compatible
query I rowsort label-6474
SELECT ALL CAST ( + 58 AS INTEGER ) + - - col2 * + col2 AS col1 FROM tab1
----
3539
4682
9274

query II rowsort
SELECT + 70 + - ( - col0 ) AS col1, ( + col2 ) + 66 FROM tab2
----
116
89
134
106
145
124

onlyif mysql # DIV for integer division: 
query I rowsort label-6476
SELECT DISTINCT ( - - 42 ) DIV + + col2 + - col1 FROM tab2 AS cor0
----
-50
-67
-76

skipif mysql # not compatible
query I rowsort label-6476
SELECT DISTINCT ( - - 42 ) / + + col2 + - col1 FROM tab2 AS cor0
----
-50
-67
-76

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6478
SELECT + col1 DIV - 45 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6478
SELECT + col1 / - 45 FROM tab2 cor0
----
-1
-1
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT ALL + COUNT( - + col2 ) + - 64 AS col1 FROM tab1
----
-61

skipif mysql # not compatible
query I rowsort label-6480
SELECT ALL + COUNT ( - + col2 ) + - 64 AS col1 FROM tab1
----
-61

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

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

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

query I rowsort
SELECT DISTINCT - col2 + col2 * - col0 + - - 51 - - ( - 68 ) FROM tab1 WHERE NULL NOT IN ( - + col2 * - col1 + col2 / - col2 * - 88 - col2, - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 col0 FROM tab1 AS cor0 WHERE - col1 - - col1 IS NULL
----

query I rowsort
SELECT DISTINCT 2 * col2 * col1 + - col2 * + col1 - 79 FROM tab2 cor0
----
1094
3001
3807

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

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

query I rowsort
SELECT DISTINCT col1 * ( + - col1 ) * + col0 * - - col2 FROM tab1 AS cor0
----
-125375
-13669292
-959616

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT ALL - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + 55 >= + col0
----
-2

skipif mysql # not compatible
query I rowsort label-6488
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + 55 >= + col0
----
-2

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT - - COUNT( * ) * - 16 col0 FROM tab2 AS cor0
----
-48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT DISTINCT COUNT( + 28 ) * - 62 AS col2 FROM tab2
----
-186

skipif mysql # not compatible
query I rowsort label-6493
SELECT DISTINCT COUNT ( + 28 ) * - 62 AS col2 FROM tab2
----
-186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * + col1 AS col0, + col1 col1 FROM tab1
----
1344
14
295
5
3196
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT DISTINCT + COUNT( * ) * + SUM( ALL - ( col1 ) ) FROM tab2
----
-585

skipif mysql # not compatible
query I rowsort label-6495
SELECT DISTINCT + COUNT ( * ) * + SUM ( ALL - ( col1 ) ) FROM tab2
----
-585

query III rowsort
SELECT * FROM tab1 WHERE col2 + - col2 + 98 * + col1 * + col0 IS NOT NULL AND col1 > ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 90 AS col1 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT col1 - - col2 * + - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1330
-290
-3149

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6501
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, COUNT( * ) FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6501
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) FROM tab1
----
NULL
3

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT DISTINCT MAX( + + 70 ) FROM tab0 cor0
----
70

skipif mysql # not compatible
query I rowsort label-6504
SELECT DISTINCT MAX ( + + 70 ) FROM tab0 cor0
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6505
SELECT DISTINCT + COUNT( * ) AS col2, - SUM( + - col2 ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-6505
SELECT DISTINCT + COUNT ( * ) AS col2, - SUM ( + - col2 ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 97 col2, + col2 + col2 FROM tab2 AS cor0
----
97
116
97
46
97
80

query I rowsort
SELECT col0 AS col2 FROM tab0 cor0 WHERE NULL < + 45 - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, - col2 AS col1 FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

query II rowsort
SELECT - col1, col0 * - col2 AS col0 FROM tab2 AS cor0
----
-51
-1058
-67
-4350
-77
-2560

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT ALL - COUNT( * ) + - MAX( ALL + + 56 ) AS col1 FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL - COUNT ( * ) + - MAX ( ALL + + 56 ) AS col1 FROM tab2
----
-59

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6514
SELECT ALL col2 * + 4 AS col2 FROM tab1 WHERE NOT - - col1 * - col2 * - + 81 + + CAST( NULL AS SIGNED ) / + - col1 IS NOT NULL
----
236
272
384

skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL col2 * + 4 AS col2 FROM tab1 WHERE NOT - - col1 * - col2 * - + 81 + + CAST ( NULL AS INTEGER ) / + - col1 IS NOT NULL
----
236
272
384

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT - COUNT( * ) * - 35 * + - 79 - + COUNT( * ) AS col2 FROM tab2
----
-8298

skipif mysql # not compatible
query I rowsort label-6515
SELECT - COUNT ( * ) * - 35 * + - 79 - + COUNT ( * ) AS col2 FROM tab2
----
-8298

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6516
SELECT + col1 + + CAST( + + col1 AS SIGNED ) col1 FROM tab0
----
162
2
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6516
SELECT + col1 + + CAST ( + + col1 AS INTEGER ) col1 FROM tab0
----
162
2
42

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

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

query I rowsort
SELECT ALL + - col0 - - col2 AS col0 FROM tab0 cor0
----
-77
2
32

query I rowsort
SELECT DISTINCT - - 18 FROM tab1 AS cor0 WHERE NOT ( NULL ) < + col0 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT + SUM( ALL + 14 ) + + 86 AS col0 FROM tab2 AS cor0
----
128

skipif mysql # not compatible
query I rowsort label-6520
SELECT + SUM ( ALL + 14 ) + + 86 AS col0 FROM tab2 AS cor0
----
128

query I rowsort
SELECT - - col1 * + col0 + 49 AS col0 FROM tab1 AS cor0
----
4326
474
763

query I rowsort
SELECT ALL - - 34 + - col2 - + col2 AS col2 FROM tab0 AS cor0
----
-164
-60
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT DISTINCT + COUNT( * ) + - 75 FROM tab0 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-6523
SELECT DISTINCT + COUNT ( * ) + - 75 FROM tab0 cor0
----
-72

query II rowsort
SELECT ALL - col0 + + 43 AS col2, - col0 FROM tab2 AS cor0
----
-21
-64
-3
-46
-32
-75

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

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

query I rowsort
SELECT ALL + col0 + col2 * - col1 FROM tab2
----
-1127
-3016
-3811

query I rowsort
SELECT ALL col2 * - col1 + - col1 FROM tab1
----
-1358
-300
-3243

query II rowsort
SELECT DISTINCT 7 AS col0, 24 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
7
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0, - col0 * + col2 col2 FROM tab1 AS cor0
----
-51
-4896
-85
-5015
-91
-6188

query I rowsort
SELECT 37 * + + 17 FROM tab2 AS cor0
----
629
629
629

query I rowsort
SELECT ALL - 77 * - 53 FROM tab0 AS cor0
----
4081
4081
4081

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

query I rowsort
SELECT DISTINCT col0 * + + col2 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT - COUNT( DISTINCT col2 ) AS col1 FROM tab2 WHERE NOT - col2 + + col0 / - col1 * col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6534
SELECT - COUNT ( DISTINCT col2 ) AS col1 FROM tab2 WHERE NOT - col2 + + col0 / - col1 * col0 IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6535
SELECT - col2 DIV - ( 64 ) AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6535
SELECT - col2 / - ( 64 ) AS col1 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6536
SELECT ALL - col0 AS col2 FROM tab2 WHERE NOT - col1 / - - CAST( NULL AS SIGNED ) * + col2 * + col1 + 12 / 81 >= + 61
----

skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL - col0 AS col2 FROM tab2 WHERE NOT - col1 / - - CAST ( NULL AS INTEGER ) * + col2 * + col1 + 12 / 81 >= + 61
----

query I rowsort
SELECT + 25 * col0 AS col1 FROM tab2
----
1150
1600
1875

onlyif mysql # DIV for integer division: 
query I rowsort label-6538
SELECT + 43 DIV - 64 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6538
SELECT + 43 / - 64 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 * 92 AS col2 FROM tab1
----
4692
7820
8372

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

skipif mysql # not compatible
query II rowsort label-6540
SELECT COUNT ( * ), COUNT ( ALL col1 ) * + 77 + + - ( + - COUNT ( * ) ) AS col0 FROM tab0
----
3
234

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

query I rowsort
SELECT ALL col2 * + + 68 FROM tab2
----
1564
2720
3944

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6544
SELECT ALL col0 DIV col0 * 50 * - 76 AS col1 FROM tab0 AS cor0
----
-3800
-3800
-3800

skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL col0 / col0 * 50 * - 76 AS col1 FROM tab0 AS cor0
----
-3800
-3800
-3800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 94 col1, 64 AS col1 FROM tab2 AS cor0
----
-94
64
-94
64
-94
64

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

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

query I rowsort
SELECT + 41 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6550
SELECT DISTINCT - 78 * - COUNT( * ) AS col0, 90 * + 91 FROM tab2 cor0
----
234
8190

skipif mysql # not compatible
query II rowsort label-6550
SELECT DISTINCT - 78 * - COUNT ( * ) AS col0, 90 * + 91 FROM tab2 cor0
----
234
8190

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

skipif mysql # not compatible
query I rowsort label-6551
SELECT DISTINCT AVG ( + - CAST ( NULL AS INTEGER ) ) / - + 71 AS col2 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6553
SELECT DISTINCT 33 DIV ( - - ( - 82 ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT 33 / ( - - ( - 82 ) ) FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT - - col2 + + + 31 * - col1 AS col1 FROM tab2 cor0
----
-1558
-2019
-2347

query I rowsort
SELECT col0 * - col1 + + 12 AS col1 FROM tab2 AS cor0
----
-2334
-4916
-5013

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT DISTINCT COUNT( * ) + 22 col2 FROM tab2
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6557
SELECT DISTINCT COUNT ( * ) + 22 col2 FROM tab2
----
25

query I rowsort
SELECT DISTINCT col2 + - 49 * + - col2 * col0 AS col0 FROM tab2
----
125480
213208
51865

onlyif mysql # DIV for integer division: 
query I rowsort label-6559
SELECT - ( + 21 ) * col0 + - col0 + col0 * col1 DIV 3 - ( + + 93 ) + - - col2 FROM tab1
----
-1763
-602
-881

skipif mysql # not compatible
query I rowsort label-6559
SELECT - ( + 21 ) * col0 + - col0 + col0 * col1 / 3 - ( + + 93 ) + - - col2 FROM tab1
----
-1763
-602
-881

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

skipif mysql # not compatible
query I rowsort label-6560
SELECT ALL + SUM ( ALL - - col1 ) AS col0 FROM tab2
----
195

query I rowsort
SELECT ALL 29 - 80 + - 97 FROM tab2
----
-148
-148
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT ALL + COUNT( * ) * + COUNT( * ) * - 63 FROM tab2 AS cor0
----
-567

skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL + COUNT ( * ) * + COUNT ( * ) * - 63 FROM tab2 AS cor0
----
-567

onlyif mysql # aggregate syntax: 
query II rowsort label-6563
SELECT - MIN( DISTINCT col0 ) col2, COUNT( * ) FROM tab0
----
-15
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT DISTINCT + MAX( DISTINCT - - 62 ) * 99 FROM tab0
----
6138

skipif mysql # not compatible
query I rowsort label-6564
SELECT DISTINCT + MAX ( DISTINCT - - 62 ) * 99 FROM tab0
----
6138

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT DISTINCT + + ( + ( - MAX( + + 76 ) ) ) AS col2 FROM tab2 WHERE NOT ( NULL ) = ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6571
SELECT DISTINCT + + ( + ( - MAX ( + + 76 ) ) ) AS col2 FROM tab2 WHERE NOT ( NULL ) = ( col0 )
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT 74 + - col0 + - 14 + col0 * - - 60 * + 19 * + col1 * col1 AS col1 FROM tab2
----
136396454
383809485
432579836

query I rowsort
SELECT ALL col0 * + 28 * + + col2 AS col1 FROM tab1
----
137088
140420
173264

query I rowsort
SELECT DISTINCT 20 * + col1 FROM tab0
----
1620
20
420

query I rowsort
SELECT + 82 * + + col0 FROM tab1 cor0
----
4182
6970
7462

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6578
SELECT ALL COUNT( DISTINCT - col0 ) / CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6578
SELECT ALL COUNT ( DISTINCT - col0 ) / CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 81 * + col0 col2 FROM tab2 AS cor0
----
-171396
-331776
-455625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6580
SELECT COUNT( + ( - - col1 ) ) DIV - ( + 78 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6580
SELECT COUNT ( + ( - - col1 ) ) / - ( + 78 ) FROM tab1 AS cor0
----
0

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

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

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

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

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

query I rowsort
SELECT - 75 * - col0 FROM tab0 AS cor0
----
1125
6525
7275

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT ALL + COUNT( ALL + 65 ) + + 80 FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-6585
SELECT ALL + COUNT ( ALL + 65 ) + + 80 FROM tab2
----
83

query I rowsort
SELECT DISTINCT + col1 + - 15 AS col2 FROM tab1
----
-1
-10
32

query I rowsort
SELECT ALL + 31 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( 44 * + 5 / + col1 )
----

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

query I rowsort
SELECT - 62 * + 91 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 1d4ca735c55738e660df70f1f9acfe3a

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6590
SELECT CAST( - 54 AS SIGNED ) * + 2 + + SUM( - 89 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-909

skipif mysql # not compatible
query I rowsort label-6590
SELECT CAST ( - 54 AS INTEGER ) * + 2 + + SUM ( - 89 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-909

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, col2 * + col0 FROM tab2 cor0
----
51
1058
67
4350
77
2560

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

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

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

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

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

query I rowsort
SELECT ALL - - col0 AS col2 FROM tab2 WHERE NOT + - col2 / + 89 BETWEEN + + 69 AND - - col0 + col2
----
46
64
75

query I rowsort
SELECT 65 * + 56 * + col0 AS col0 FROM tab2
----
167440
232960
273000

query I rowsort
SELECT ( - col2 ) + - - col1 FROM tab2
----
28
37
9

query I rowsort
SELECT - col2 + + 22 FROM tab2
----
-1
-18
-36

query I rowsort
SELECT col1 + - col1 + col0 + + 3 FROM tab0
----
100
18
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT DISTINCT SUM( ALL + col1 ) * + 33 AS col0 FROM tab2
----
6435

skipif mysql # not compatible
query I rowsort label-6601
SELECT DISTINCT SUM ( ALL + col1 ) * + 33 AS col0 FROM tab2
----
6435

query I rowsort
SELECT 32 + col0 FROM tab1
----
117
123
83

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6607
SELECT DISTINCT + ( col2 ) + - - 4 DIV - 58 AS col0 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6607
SELECT DISTINCT + ( col2 ) + - - 4 / - 58 AS col0 FROM tab0
----
10
47
99

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

query I rowsort
SELECT DISTINCT col0 - - + col0 * 76 - - col2 FROM tab0 AS cor0
----
1202
6709
7568

query II rowsort
SELECT DISTINCT 92, + col1 FROM tab2 cor0
----
92
51
92
67
92
77

onlyif mysql # DIV for integer division: 
query II rowsort label-6611
SELECT DISTINCT - 70 col2, col0 DIV col0 FROM tab1 AS cor0
----
-70
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6611
SELECT DISTINCT - 70 col2, col0 / col0 FROM tab1 AS cor0
----
-70
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6612
SELECT DISTINCT - col0 DIV 72 + - + 18 + - col0 * - CAST( - col1 AS SIGNED ) * - col2 AS col2 FROM tab2 AS cor0
----
197102
291431
53940

skipif mysql # not compatible
query I rowsort label-6612
SELECT DISTINCT - col0 / 72 + - + 18 + - col0 * - CAST ( - col1 AS INTEGER ) * - col2 AS col2 FROM tab2 AS cor0
----
197102
291431
53940

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

skipif mysql # not compatible
query II rowsort label-6613
SELECT ALL + 40 AS col0, + COUNT ( * ) FROM tab0 AS cor0
----
40
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE - + col0 * - - col1 + - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6614
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE - + col0 * - - col1 + - col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT ALL - SUM( ALL + 85 ) AS col1 FROM tab1
----
-255

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL - SUM ( ALL + 85 ) AS col1 FROM tab1
----
-255

query I rowsort
SELECT ALL col2 + - 71 + + + col2 + + + col2 * 34 * - col2 * 2 AS col0 FROM tab1
----
-236661
-314367
-626567

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6618
SELECT + 84 DIV + col2 AS col0, col0 AS col2 FROM tab1
----
0
51
1
85
1
91

skipif mysql # not compatible
query II rowsort label-6618
SELECT + 84 / + col2 AS col0, col0 AS col2 FROM tab1
----
0
51
1
85
1
91

query II rowsort
SELECT DISTINCT - col1 - - col1 AS col2, - 61 FROM tab2
----
0
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6620
SELECT - - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6620
SELECT - - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

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

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

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

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

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

query II rowsort
SELECT - 94 * col1, col2 FROM tab1 AS cor0
----
-1316
96
-4418
68
-470
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6626
SELECT - col2 * - 29 AS col1, col0 + CAST( NULL AS SIGNED ) FROM tab1
----
1711
NULL
1972
NULL
2784
NULL

skipif mysql # not compatible
query II rowsort label-6626
SELECT - col2 * - 29 AS col1, col0 + CAST ( NULL AS INTEGER ) FROM tab1
----
1711
NULL
1972
NULL
2784
NULL

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

query I rowsort
SELECT + - 41 + col0 FROM tab0 WHERE NOT NULL BETWEEN - - 58 AND + 47 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - - col0 * col2 col0 FROM tab0
----
-10575
-75690
-931491

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + ( + col1 ) col1, 39 + - col1 * col0 + - + 8 FROM tab2 AS cor0
----
51
-2315
67
-4994
77
-4897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 76 col0, + 83 AS col2 FROM tab1
----
76
83
76
83
76
83

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + - ( - col0 ) > 84
----
87
21
10
97
1
99

query II rowsort
SELECT DISTINCT + col0 AS col2, col2 + - + 39 FROM tab2
----
46
-16
64
1
75
19

query I rowsort
SELECT col1 * + - 63 * 89 FROM tab0
----
-117747
-454167
-5607

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

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL 81 * COUNT ( * ) FROM tab1
----
243

query I rowsort
SELECT + - col1 * - - 8 + - + col0 + 94 + - + 95 + col1 - + col0 * + - ( - - col2 ) * - - col1 FROM tab2 AS cor0
----
196516
290905
53554

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 col2 FROM tab0 WHERE 21 + - col1 BETWEEN - + col1 AND col0 * - col2
----

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6644
SELECT - CAST( + 4 AS SIGNED ) * - col2 + - ( col1 ) DIV - - 73 AS col0 FROM tab2 AS cor0
----
159
232
92

skipif mysql # not compatible
query I rowsort label-6644
SELECT - CAST ( + 4 AS INTEGER ) * - col2 + - ( col1 ) / - - 73 AS col0 FROM tab2 AS cor0
----
159
232
92

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

query I rowsort
SELECT DISTINCT col2 - - 3 AS col2 FROM tab0 AS cor0
----
102
13
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT ALL COUNT( DISTINCT 13 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6647
SELECT ALL COUNT ( DISTINCT 13 ) FROM tab2 AS cor0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT ALL - COUNT( * ) * COUNT( * ) * - SUM( ALL - + col1 ) FROM tab2 cor0
----
-1755

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL - COUNT ( * ) * COUNT ( * ) * - SUM ( ALL - + col1 ) FROM tab2 cor0
----
-1755

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 20 col2 FROM tab1 AS cor0
----
100
280
940

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) >= + - 34
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6653
SELECT ALL col0 + + + col2 DIV - 13 AS col0 FROM tab0 cor0
----
12
87
90

skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL col0 + + + col2 / - 13 AS col0 FROM tab0 cor0
----
12
87
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - + 3 col0 FROM tab1
----
54
88
94

query I rowsort
SELECT - 87 + + - 46 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * - - col1 * - col1 FROM tab2
----
132651
300763
456533

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6657
SELECT DISTINCT + COUNT ( DISTINCT - + 67 ) col2 FROM tab0
----
1

query I rowsort
SELECT DISTINCT 52 AS col1 FROM tab2 cor0 WHERE - col1 > - 11
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6659
SELECT DISTINCT + COUNT( * ) * + + MIN( ALL + 16 ) * - + CAST( NULL AS DECIMAL ) + ( 62 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6659
SELECT DISTINCT + COUNT ( * ) * + + MIN ( ALL + 16 ) * - + CAST ( NULL AS REAL ) + ( 62 ) FROM tab0 AS cor0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( ( + ( + 59 ) ) ) * - + col1 col1 FROM tab2
----
-3009
-3953
-4543

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

query I rowsort
SELECT + col0 * - - 81 FROM tab2
----
3726
5184
6075

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT - SUM( ALL - + 18 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
162

skipif mysql # not compatible
query I rowsort label-6664
SELECT - SUM ( ALL - + 18 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
162

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6667
SELECT - - CAST( NULL AS SIGNED ) AS col1, 6 * col2 AS col1 FROM tab2 AS cor0
----
NULL
138
NULL
240
NULL
348

skipif mysql # not compatible
query II rowsort label-6667
SELECT - - CAST ( NULL AS INTEGER ) AS col1, 6 * col2 AS col1 FROM tab2 AS cor0
----
NULL
138
NULL
240
NULL
348

query II rowsort
SELECT DISTINCT - col2 AS col0, - col0 FROM tab1 AS cor0
----
-59
-85
-68
-91
-96
-51

query I rowsort
SELECT - - ( + col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 <> col1
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT DISTINCT + MAX( DISTINCT + ( - - 30 ) ) + - + 71 AS col0 FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-6670
SELECT DISTINCT + MAX ( DISTINCT + ( - - 30 ) ) + - + 71 AS col0 FROM tab0 AS cor0
----
-41

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <> - ( - - 37 ) - + 39
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT - - COUNT( - col0 ) FROM tab1 WHERE NOT 94 BETWEEN + + col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6673
SELECT - - COUNT ( - col0 ) FROM tab1 WHERE NOT 94 BETWEEN + + col1 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT + 83 + - - MIN( ALL + col0 ) AS col2 FROM tab2 WHERE NOT + + col0 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6674
SELECT + 83 + - - MIN ( ALL + col0 ) AS col2 FROM tab2 WHERE NOT + + col0 BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6675
SELECT CAST( + - COUNT( * ) AS SIGNED ) + + 94 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-6675
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) + + 94 FROM tab0
----
91

query I rowsort
SELECT ALL + col1 + - 63 * col2 * col2 AS col2 FROM tab2
----
-100723
-211865
-33276

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 WHERE NOT col0 IS NOT NULL
----

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

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

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

query I rowsort
SELECT + col2 + + col0 * 64 FROM tab1
----
3360
5499
5892

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6681
SELECT ALL * FROM tab1 WHERE NOT + CAST( col1 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6681
SELECT ALL * FROM tab1 WHERE NOT + CAST ( col1 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT - - col0 * + - col0 AS col1 FROM tab0 AS cor0
----
-225
-7569
-9409

query I rowsort
SELECT DISTINCT + 21 * + 41 FROM tab1 AS cor0
----
861

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

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

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

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

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

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

query I rowsort
SELECT ALL + col0 - - 69 FROM tab2 AS cor0
----
115
133
144

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

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

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

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

query I rowsort
SELECT + - 1 FROM tab2 cor0 WHERE col1 <> col2 + + + ( - col0 )
----
-1
-1
-1

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

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

query I rowsort
SELECT col2 * - ( + + col1 ) FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT 69 * - 66 FROM tab1 cor0
----
-4554
-4554
-4554

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT MAX( col2 ) * + 22 col2 FROM tab0
----
2178

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6697
SELECT MAX ( col2 ) * + 22 col2 FROM tab0
----
2178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6698
SELECT col2 AS col0 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) + + + 40 * col0 IN ( + 88 )
----

skipif mysql # not compatible
query I rowsort label-6698
SELECT col2 AS col0 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) + + + 40 * col0 IN ( + 88 )
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6700
SELECT ALL + COUNT ( DISTINCT + - col0 ) col0 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN + 51 AND + - col2 - - col2
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NULL IS NULL )
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT ALL + ( + + 76 ) * 28 * + + COUNT( + - col1 ) FROM tab1
----
6384

skipif mysql # not compatible
query I rowsort label-6704
SELECT ALL + ( + + 76 ) * 28 * + + COUNT ( + - col1 ) FROM tab1
----
6384

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

query I rowsort
SELECT DISTINCT 27 AS col2 FROM tab1 cor0
----
27

query I rowsort
SELECT DISTINCT + 71 * + - 73 * - + ( col2 ) AS col1 FROM tab0 AS cor0
----
243601
513117
51830

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6709
SELECT ALL - 2 + - + 83 * - - COUNT( ALL + CAST( NULL AS DECIMAL ) ) + - COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-6709
SELECT ALL - 2 + - + 83 * - - COUNT ( ALL + CAST ( NULL AS REAL ) ) + - COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0
----
-11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT DISTINCT ( + 52 ) + MIN( - - col0 ) FROM tab2
----
98

skipif mysql # not compatible
query I rowsort label-6712
SELECT DISTINCT ( + 52 ) + MIN ( - - col0 ) FROM tab2
----
98

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT DISTINCT + 21 * + MAX( ALL - 5 ) * - - COUNT( ALL col1 ) FROM tab0
----
-315

skipif mysql # not compatible
query I rowsort label-6714
SELECT DISTINCT + 21 * + MAX ( ALL - 5 ) * - - COUNT ( ALL col1 ) FROM tab0
----
-315

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6716
SELECT DISTINCT 1 + - ( col2 ) + + CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
10
29
38

skipif mysql # not compatible
query I rowsort label-6716
SELECT DISTINCT 1 + - ( col2 ) + + CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
10
29
38

query I rowsort
SELECT - + 27 + - col0 FROM tab1 cor0
----
-112
-118
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT + COUNT( * ) + + + 58 col2 FROM tab0 cor0
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6718
SELECT + COUNT ( * ) + + + 58 col2 FROM tab0 cor0
----
61

query II rowsort
SELECT DISTINCT + - 52 AS col0, + col1 * col0 AS col1 FROM tab0 AS cor0
----
-52
1215
-52
1827
-52
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6720
SELECT ALL ( + + CAST( 20 AS SIGNED ) ) AS col1 FROM tab1
----
20
20
20

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL ( + + CAST ( 20 AS INTEGER ) ) AS col1 FROM tab1
----
20
20
20

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

skipif mysql # not compatible
query I rowsort label-6721
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT - COUNT( * ) * - 97 AS col0 FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-6722
SELECT - COUNT ( * ) * - 97 AS col0 FROM tab1
----
291

query I rowsort
SELECT - 11 - + col1 AS col2 FROM tab0 AS cor0
----
-12
-32
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT DISTINCT + 37 - + MAX( - 69 ) AS col1 FROM tab2 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-6724
SELECT DISTINCT + 37 - + MAX ( - 69 ) AS col1 FROM tab2 AS cor0
----
106

query I rowsort
SELECT - - col2 - ( + 84 ) AS col2 FROM tab1 AS cor0
----
-16
-25
12

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

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

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

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

query I rowsort
SELECT + col0 * - 60 AS col2 FROM tab2
----
-2760
-3840
-4500

query II rowsort
SELECT DISTINCT col0, 30 * + 55 AS col0 FROM tab0
----
15
1650
87
1650
97
1650

onlyif mysql # DIV for integer division: 
query I rowsort label-6730
SELECT 97 DIV - + col1 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6730
SELECT 97 / - + col1 AS col1 FROM tab2
----
-1
-1
-1

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

query I rowsort
SELECT col0 * - - col0 AS col0 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT DISTINCT - - col0 * 74 FROM tab0 AS cor0
----
1110
6438
7178

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6735
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE ( + 69 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6735
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE ( + 69 ) IS NULL
----
0

query II rowsort
SELECT DISTINCT + 44, + 14 AS col1 FROM tab0 AS cor0
----
44
14

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

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

query I rowsort
SELECT - col1 + col1 * ( 65 * col0 ) AS col2 FROM tab2
----
152439
320243
326558

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT + COUNT( * ) * - 21 FROM tab0 WHERE col1 - col1 BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6740
SELECT + COUNT ( * ) * - 21 FROM tab0 WHERE col1 - col1 BETWEEN ( NULL ) AND NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6741
SELECT col0 FROM tab1 WHERE + col0 IN ( + CAST( col0 AS DECIMAL ) )
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6741
SELECT col0 FROM tab1 WHERE + col0 IN ( + CAST ( col0 AS REAL ) )
----
51
85
91

query I rowsort
SELECT ALL col2 + 94 FROM tab2 WHERE 38 * - 48 - col2 NOT BETWEEN - col1 AND ( NULL )
----
117
134
152

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6744
SELECT COUNT( * ) / 17 + SUM( DISTINCT + col0 ) * CAST( NULL AS SIGNED ) FROM tab0 WHERE ( col1 + 67 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6744
SELECT COUNT ( * ) / 17 + SUM ( DISTINCT + col0 ) * CAST ( NULL AS INTEGER ) FROM tab0 WHERE ( col1 + 67 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT 37 / - MAX( 56 ) FROM tab2 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6745
SELECT 37 / - MAX ( 56 ) FROM tab2 WHERE NOT col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT MIN( col1 ) + 75 AS col1 FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-6746
SELECT MIN ( col1 ) + 75 AS col1 FROM tab1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT DISTINCT MIN( ALL - col1 ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-6747
SELECT DISTINCT MIN ( ALL - col1 ) AS col2 FROM tab1
----
-47

query I rowsort
SELECT - col2 * + ( col2 * col2 ) AS col0 FROM tab1
----
-205379
-314432
-884736

query I rowsort
SELECT + 81 * col0 FROM tab0
----
1215
7047
7857

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT SUM( ALL col2 ) FROM tab1 WHERE + 86 = - ( + col2 ) + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-6751
SELECT SUM ( ALL col2 ) FROM tab1 WHERE + 86 = - ( + col2 ) + 32
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 + + col0 / - col0 = - 39
----

query I rowsort
SELECT ALL 60 + - 60 FROM tab0
----
0
0
0

query I rowsort
SELECT 94 * - ( - col1 ) AS col2 FROM tab1
----
1316
4418
470

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT 31 * + SUM( - 26 ) col0 FROM tab2
----
-2418

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6755
SELECT 31 * + SUM ( - 26 ) col0 FROM tab2
----
-2418

query I rowsort
SELECT 37 + - ( col0 ) AS col1 FROM tab1
----
-14
-48
-54

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

skipif mysql # not compatible
query I rowsort label-6757
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * col1 AS col1 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6758
SELECT - ( - CAST( NULL AS SIGNED ) ) * - col0 AS col2 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6758
SELECT - ( - CAST ( NULL AS INTEGER ) ) * - col0 AS col2 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT col2 - + 78 FROM tab0 AS cor0
----
-31
-68
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col2 col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT SUM( ALL col2 ) * 95 FROM tab0 AS cor0
----
14820

skipif mysql # not compatible
query I rowsort label-6762
SELECT SUM ( ALL col2 ) * 95 FROM tab0 AS cor0
----
14820

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT 93 - + COUNT( * ) AS col2 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-6763
SELECT 93 - + COUNT ( * ) AS col2 FROM tab1
----
90

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE NOT ( 9 ) IS NULL
----
51
67
77

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

skipif mysql # not compatible
query I rowsort label-6765
SELECT DISTINCT + MIN ( DISTINCT - col1 ) + 26 FROM tab0
----
-55

query I rowsort
SELECT ALL - 24 - + col1 FROM tab2
----
-101
-75
-91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 25 + col0 / - col0 <> ( - col0 * - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 43 + + col1 > ( + col0 )
----
87
21
10
97
1
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 AND ( + 45 / 97 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT DISTINCT + COUNT( + col1 ) * + 49 col2 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6770
SELECT DISTINCT + COUNT ( + col1 ) * + 49 col2 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
147

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT + - SUM( DISTINCT 34 ) AS col2 FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-6772
SELECT + - SUM ( DISTINCT 34 ) AS col2 FROM tab2 AS cor0
----
-34

query I rowsort
SELECT - + col2 * 21 FROM tab0 AS cor0
----
-2079
-210
-987

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6775
SELECT * FROM tab2 WHERE NOT + ( col1 ) + + CAST( - col0 AS SIGNED ) NOT IN ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-6775
SELECT * FROM tab2 WHERE NOT + ( col1 ) + + CAST ( - col0 AS INTEGER ) NOT IN ( - col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 64 * col0 BETWEEN + 36 + 75 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 * - 4 * col2 FROM tab0
----
-15228
-396
-840

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6778
SELECT - 9 * CAST( NULL AS DECIMAL ) FROM tab1 WHERE NOT NULL IN ( + 46 * col2 )
----

skipif mysql # not compatible
query I rowsort label-6778
SELECT - 9 * CAST ( NULL AS REAL ) FROM tab1 WHERE NOT NULL IN ( + 46 * col2 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT DISTINCT - - MIN( 62 ) FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-6781
SELECT DISTINCT - - MIN ( 62 ) FROM tab0 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT DISTINCT MAX( - col0 ) + 41 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-6782
SELECT DISTINCT MAX ( - col0 ) + 41 FROM tab2 AS cor0
----
-5

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 15 * - 76 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 64 * 83 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6786
SELECT * FROM tab0 cor0 WHERE + CAST( NULL AS SIGNED ) IN ( + 72 * + ( - col2 - - col1 ) )
----

skipif mysql # not compatible
query III rowsort label-6786
SELECT * FROM tab0 cor0 WHERE + CAST ( NULL AS INTEGER ) IN ( + 72 * + ( - col2 - - col1 ) )
----

query I rowsort
SELECT + 81 * + - col2 FROM tab1 AS cor0
----
-4779
-5508
-7776

query I rowsort
SELECT DISTINCT - col2 * - 8 * - + col1 FROM tab0 AS cor0
----
-1680
-30456
-792

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

query I rowsort
SELECT ALL + col2 + - col0 + - col1 FROM tab1 AS cor0
----
-31
-70
31

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

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

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

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

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

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

query I rowsort
SELECT ALL + col2 + + + ( + col1 ) AS col0 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT 3 * + col0 * col2 >= ( 40 )
----

query I rowsort
SELECT DISTINCT + col0 * col1 + - + col1 AS col2 FROM tab2
----
2295
4851
4958

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE - 14 <> ( NULL )
----

query I rowsort
SELECT DISTINCT col0 + - 73 AS col2 FROM tab1
----
-22
12
18

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT ALL - 94 + + + MIN( - col1 ) * + + 5 FROM tab0
----
-499

skipif mysql # not compatible
query I rowsort label-6801
SELECT ALL - 94 + + + MIN ( - col1 ) * + + 5 FROM tab0
----
-499

query I rowsort
SELECT DISTINCT ( + 12 ) - + col1 FROM tab0
----
-69
-9
11

query I rowsort
SELECT ALL 95 + col2 FROM tab0
----
105
142
194

query I rowsort
SELECT col1 + - 27 FROM tab1
----
-13
-22
20

query I rowsort
SELECT col2 + - 75 AS col0 FROM tab2
----
-17
-35
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT ( - + SUM( 9 ) ) + - 68 AS col0 FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-6806
SELECT ( - + SUM ( 9 ) ) + - 68 AS col0 FROM tab0 AS cor0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT + + COUNT( * ) + 75 AS col0 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-6807
SELECT + + COUNT ( * ) + 75 AS col0 FROM tab2 AS cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6808
SELECT ALL - 72 - + CAST( - 50 AS SIGNED ) * col1 - + col1 DIV col1 AS col2 FROM tab1 AS cor0
----
177
2277
627

skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL - 72 - + CAST ( - 50 AS INTEGER ) * col1 - + col1 / col1 AS col2 FROM tab1 AS cor0
----
177
2277
627

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6811
SELECT - 81 DIV - 76 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6811
SELECT - 81 / - 76 AS col1 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT - MIN( DISTINCT - 6 ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-6812
SELECT - MIN ( DISTINCT - 6 ) AS col0 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-6813
SELECT - COUNT( * ) AS col1, 73 * - + 59 * 31 AS col1 FROM tab2 AS cor0
----
-3
-133517

skipif mysql # not compatible
query II rowsort label-6813
SELECT - COUNT ( * ) AS col1, 73 * - + 59 * 31 AS col1 FROM tab2 AS cor0
----
-3
-133517

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL IN ( - 50 + - col1, col1 * + + col2 * + 88 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 61 col0, - col0 * 40 * 97 * + 34 AS col2 FROM tab0 cor0
----
61
-11477040
61
-12796240
61
-1978800

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

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

query II rowsort
SELECT ALL + col2 AS col2, col1 * 5 * - col2 AS col1 FROM tab0 AS cor0
----
10
-1050
47
-19035
99
-495

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

query I rowsort
SELECT DISTINCT + - col0 * - 67 * + 20 * - + col2 FROM tab2 AS cor0
----
-1417720
-3430400
-5829000

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6822
SELECT DISTINCT - 59 AS col2, + MIN( ALL + + col0 ) FROM tab1
----
-59
51

skipif mysql # not compatible
query II rowsort label-6822
SELECT DISTINCT - 59 AS col2, + MIN ( ALL + + col0 ) FROM tab1
----
-59
51

onlyif mysql # aggregate syntax: 
query II rowsort label-6823
SELECT ALL - COUNT( * ) AS col0, 16 AS col1 FROM tab0
----
-3
16

skipif mysql # not compatible
query II rowsort label-6823
SELECT ALL - COUNT ( * ) AS col0, 16 AS col1 FROM tab0
----
-3
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT 37 col1, 37, + col2 col2 FROM tab0
----
9 values hashing to 2115d5704f0c14155f27d9b61686a742

query I rowsort
SELECT DISTINCT + 90 * - col0 FROM tab1
----
-4590
-7650
-8190

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT + + MAX( 84 ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
84

skipif mysql # not compatible
query I rowsort label-6826
SELECT + + MAX ( 84 ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
84

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

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

query I rowsort
SELECT ALL + col2 + 6 * ( + + col1 ) FROM tab1
----
180
350
89

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

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

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-6831
SELECT DISTINCT SUM( DISTINCT + col0 ) AS col0, + COUNT( * ) FROM tab0 AS cor0
----
199
3

skipif mysql # not compatible
query II rowsort label-6831
SELECT DISTINCT SUM ( DISTINCT + col0 ) AS col0, + COUNT ( * ) FROM tab0 AS cor0
----
199
3

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

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

query II rowsort
SELECT 61 + - col1 AS col1, - 28 + 84 FROM tab0 cor0
----
-20
56
40
56
60
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - - col0 * + + col2 col0 FROM tab1 AS cor0
----
4882
5010
6141

query I rowsort
SELECT ALL - col2 + + - 42 FROM tab0
----
-141
-52
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 col2 FROM tab0 WHERE + col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6838
SELECT ALL + col2 * 70 + - + ( + CAST( 75 AS SIGNED ) ) FROM tab2
----
1535
2725
3985

skipif mysql # not compatible
query I rowsort label-6838
SELECT ALL + col2 * 70 + - + ( + CAST ( 75 AS INTEGER ) ) FROM tab2
----
1535
2725
3985

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT SUM( - col2 ) col2 FROM tab2
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6839
SELECT SUM ( - col2 ) col2 FROM tab2
----
-121

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

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

query I rowsort
SELECT - - col1 - 12 FROM tab0 cor0
----
-11
69
9

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6844
SELECT + 55 DIV + MIN( ALL + col2 ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-6844
SELECT + 55 / + MIN ( ALL + col2 ) FROM tab2 AS cor0
----
2

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6846
SELECT DISTINCT - col0 DIV - col1 AS col1 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-6846
SELECT DISTINCT - col0 / - col1 AS col1 FROM tab1 AS cor0
----
1
17
3

query I rowsort
SELECT col1 * - col2 * 91 * col0 AS col2 FROM tab1
----
-2281825
-26466076
-6237504

onlyif mysql # aggregate syntax: 
query II rowsort label-6848
SELECT DISTINCT - SUM( - col0 ) AS col0, 19 FROM tab1 AS cor0
----
227
19

skipif mysql # not compatible
query II rowsort label-6848
SELECT DISTINCT - SUM ( - col0 ) AS col0, 19 FROM tab1 AS cor0
----
227
19

query I rowsort
SELECT col1 - - + col0 FROM tab0 AS cor0 WHERE NOT col2 <= - 7
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6850
SELECT DISTINCT + + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6850
SELECT DISTINCT + + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
51
85
91

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6853
SELECT DISTINCT - - col1 DIV - - col1 + + col2 FROM tab2 AS cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-6853
SELECT DISTINCT - - col1 / - - col1 + + col2 FROM tab2 AS cor0
----
24
41
59

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - ( 5 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6855
SELECT DISTINCT 23 DIV 17 col0 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6855
SELECT DISTINCT 23 / 17 col0 FROM tab2
----
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT ALL COUNT( * ) + - ( + 59 ) col0 FROM tab1
----
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6858
SELECT ALL COUNT ( * ) + - ( + 59 ) col0 FROM tab1
----
-56

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

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

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

skipif mysql # not compatible
query III rowsort label-6860
SELECT * FROM tab1 WHERE NOT + + CAST ( NULL AS REAL ) IN ( - + col1 )
----

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

query I rowsort
SELECT DISTINCT - col1 * 81 AS col0 FROM tab2
----
-4131
-5427
-6237

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

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

query I rowsort
SELECT col0 + - - ( 27 ) - + 23 AS col0 FROM tab0 AS cor0
----
101
19
91

query III rowsort
SELECT * FROM tab0 WHERE - 73 NOT IN ( - 75 * 44 + col2 + - 90 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT ALL + col0 * col0 + col1 + + col0 AS col1 FROM tab0 AS cor0
----
321
7677
9507

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - + 12 col2 FROM tab2 AS cor0
----
-63
-79
-89

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

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

query I rowsort
SELECT 81 - - + 2 AS col2 FROM tab1 AS cor0
----
83
83
83

query I rowsort
SELECT ALL - col1 * + - 1 + - 80 AS col2 FROM tab0
----
-59
-79
1

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

query I rowsort
SELECT col1 * - + col1 * col0 + + col2 * + col0 * + - 12 FROM tab0
----
-106875
-115333
-48807

query I rowsort
SELECT ALL - 16 - + 51 AS col1 FROM tab1
----
-67
-67
-67

query I rowsort
SELECT - ( - 72 ) * + ( ( + col2 ) ) + col2 + + - 18 AS col0 FROM tab0 AS cor0
----
3413
712
7209

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + col2, + ( + + 19 ) * + col1 )
----

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

query I rowsort
SELECT + 50 + + col1 * + col1 * col1 AS col1 FROM tab0 WHERE NOT - col1 IS NULL
----
51
531491
9311

onlyif mysql # DIV for integer division: 
query I rowsort label-6883
SELECT col1 DIV 65 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6883
SELECT col1 / 65 AS col1 FROM tab1
----
0
0
0

query II rowsort
SELECT ALL col2 AS col2, col2 * - col0 FROM tab0
----
10
-870
47
-705
99
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT SUM( ALL + col1 ) FROM tab1 WHERE NOT - - col2 BETWEEN + 95 - + 50 AND - + col2 + col2
----
66

skipif mysql # not compatible
query I rowsort label-6885
SELECT SUM ( ALL + col1 ) FROM tab1 WHERE NOT - - col2 BETWEEN + 95 - + 50 AND - + col2 + col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT + MAX( DISTINCT + col2 ) * - - COUNT( * ) * 35 AS col0 FROM tab0 AS cor0
----
10395

skipif mysql # not compatible
query I rowsort label-6886
SELECT + MAX ( DISTINCT + col2 ) * - - COUNT ( * ) * 35 AS col0 FROM tab0 AS cor0
----
10395

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT + SUM( + + 27 ) AS col0 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6887
SELECT + SUM ( + + 27 ) AS col0 FROM tab2 AS cor0
----
81

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

query I rowsort
SELECT DISTINCT - col1 * - 83 FROM tab0 AS cor0
----
1743
6723
83

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 + - + col1 * col2 col0 FROM tab2
----
-1117
-3024
-3830

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT DISTINCT - COUNT( * ) * - - 2 * + 39 AS col2 FROM tab1
----
-234

skipif mysql # not compatible
query I rowsort label-6892
SELECT DISTINCT - COUNT ( * ) * - - 2 * + 39 AS col2 FROM tab1
----
-234

query II rowsort
SELECT col0 + + col0 AS col2, + 3 + + col1 * + - col0 * 70 * + - col1 - + - col0 + + 83 AS col2 FROM tab2
----
128
26562070
150
23567411
92
8375352

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6894
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) col2 FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6895
SELECT + col1 + + + CAST( - 91 AS SIGNED ) FROM tab2
----
-14
-24
-40

skipif mysql # not compatible
query I rowsort label-6895
SELECT + col1 + + + CAST ( - 91 AS INTEGER ) FROM tab2
----
-14
-24
-40

query I rowsort
SELECT ALL - col0 * - - 42 * - 85 * - - 24 AS col2 FROM tab0
----
1285200
7454160
8310960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 col2 FROM tab0 AS cor0 WHERE col2 * - col1 = - col0 * - 44 - + col0
----

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

skipif mysql # not compatible
query I rowsort label-6898
SELECT - + 94 / - - col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-2

query I rowsort
SELECT DISTINCT + - 26 + - col0 AS col2 FROM tab0 cor0
----
-113
-123
-41

query I rowsort
SELECT ALL 6 + - + 48 AS col1 FROM tab0
----
-42
-42
-42

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT + + MAX( - col1 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-6904
SELECT + + MAX ( - col1 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-1

query II rowsort
SELECT col0 * - col0, col0 AS col1 FROM tab1
----
-2601
51
-7225
85
-8281
91

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6907
SELECT + CAST( + col2 AS SIGNED ) * + 14 + ( col0 ) FROM tab1
----
1043
1395
911

skipif mysql # not compatible
query I rowsort label-6907
SELECT + CAST ( + col2 AS INTEGER ) * + 14 + ( col0 ) FROM tab1
----
1043
1395
911

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

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

query I rowsort
SELECT ALL - 89 + - - 58 AS col1 FROM tab1
----
-31
-31
-31

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6913
SELECT - 40 * - col0 DIV col0 FROM tab2 AS cor0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-6913
SELECT - 40 * - col0 / col0 FROM tab2 AS cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query II rowsort label-6914
SELECT ALL - - 44 col2, - COUNT( * ) * + - COUNT( + col0 ) FROM tab0 cor0
----
44
9

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6917
SELECT DISTINCT - COUNT( - CAST( NULL AS DECIMAL ) ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
0

skipif mysql # not compatible
query I rowsort label-6917
SELECT DISTINCT - COUNT ( - CAST ( NULL AS REAL ) ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6921
SELECT SUM( DISTINCT - col1 ) col0, 56 AS col0 FROM tab0 AS cor0
----
-103
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6921
SELECT SUM ( DISTINCT - col1 ) col0, 56 AS col0 FROM tab0 AS cor0
----
-103
56

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

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

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

query I rowsort
SELECT + 75 * - col0 FROM tab0 AS cor0
----
-1125
-6525
-7275

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

query I rowsort
SELECT ALL col0 * + - 7 + - col1 AS col0 FROM tab1
----
-371
-600
-684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6927
SELECT - 95 FROM tab2 WHERE - CAST( NULL AS SIGNED ) <> - 94
----

skipif mysql # not compatible
query I rowsort label-6927
SELECT - 95 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) <> - 94
----

query I rowsort
SELECT DISTINCT 70 * 1 AS col0 FROM tab2
----
70

query III rowsort
SELECT * FROM tab1 WHERE + col1 = + col0 + + 44
----

query II rowsort
SELECT ALL col0 + - 13 + + col2 AS col2, + col0 AS col0 FROM tab0
----
183
97
49
15
84
87

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE NOT col1 <> + col0
----

query II rowsort
SELECT ALL + 97, - 56 AS col2 FROM tab0 AS cor0
----
97
-56
97
-56
97
-56

query I rowsort
SELECT - col1 + 12 + - - col0 AS col2 FROM tab2 AS cor0
----
-1
20
7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6934
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6934
SELECT DISTINCT + - CAST ( NULL AS REAL ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6935
SELECT ALL * FROM tab2 WHERE NULL BETWEEN col2 + - - col0 + + - CAST( NULL AS SIGNED ) / + - col1 + - col0 - + 80 + + ( col1 ) * - + col2 * col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-6935
SELECT ALL * FROM tab2 WHERE NULL BETWEEN col2 + - - col0 + + - CAST ( NULL AS INTEGER ) / + - col1 + - col0 - + 80 + + ( col1 ) * - + col2 * col0 AND NULL
----

query I rowsort
SELECT ALL col2 - col0 + 75 FROM tab0
----
-2
107
77

query I rowsort
SELECT DISTINCT col1 + - + 0 AS col2 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT + 46 * + 39 - + + col2 AS col1 FROM tab1 AS cor0
----
1698
1726
1735

query I rowsort
SELECT col2 - - col2 + + + col0 AS col2 FROM tab1 cor0
----
203
227
243

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6940
SELECT DISTINCT COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT NULL <= - col2 * col1 * - col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6941
SELECT - + ( + 40 ) DIV - - 85 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6941
SELECT - + ( + 40 ) / - - 85 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6942
SELECT ALL * FROM tab1 WHERE NOT - CAST( col1 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6942
SELECT ALL * FROM tab1 WHERE NOT - CAST ( col1 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 38 AS col2 FROM tab2 WHERE NOT + 11 * + 37 >= - ( col2 ) * col2 / - 11 + - - 55 * + col1
----
38
38
38

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 ) < NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6946
SELECT + COUNT( * ) * CAST( - ( + 22 ) AS SIGNED ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-6946
SELECT + COUNT ( * ) * CAST ( - ( + 22 ) AS INTEGER ) AS col2 FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT MAX( - 31 ) FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-6947
SELECT MAX ( - 31 ) FROM tab1
----
-31

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

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

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

query I rowsort
SELECT DISTINCT + - col1 FROM tab2 cor0 WHERE + 75 * + col2 < - + col1
----

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

query II rowsort
SELECT ALL + col0 AS col1, + 45 AS col0 FROM tab2
----
46
45
64
45
75
45

query I rowsort
SELECT + - ( - col1 ) * + col2 * col2 + + + col1 FROM tab0 cor0
----
179010
2121
9802

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6954
SELECT + 68 col1, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6954
SELECT + 68 col1, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col1 + ( + 63 ) FROM tab0 cor0
----
-18
42
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6956
SELECT DISTINCT + AVG ( DISTINCT + - 34 ) * - - 87 AS col0, + COUNT( * ) * - 46 AS col1 FROM tab2 WHERE - CAST( + 86 AS SIGNED ) IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6956
SELECT DISTINCT + AVG ( DISTINCT + - 34 ) * - - 87 AS col0, + COUNT ( * ) * - 46 AS col1 FROM tab2 WHERE - CAST ( + 86 AS INTEGER ) IS NULL
----
NULL
0

query I rowsort
SELECT DISTINCT + 95 + 94 FROM tab2
----
189

query II rowsort
SELECT ALL col1 * - - col2, - 3 AS col0 FROM tab1
----
1344
-3
295
-3
3196
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 7 + col0 + - 5 col0, - col1 col2 FROM tab1
----
53
-14
87
-5
93
-47

query I rowsort
SELECT 0 AS col0 FROM tab2 WHERE - - col1 <> - col0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE - + 58 IN ( + col0 / - 7, 77 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 + 63 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6964
SELECT - COUNT( * ) + + SUM( DISTINCT - col0 ) FROM tab2 AS cor0 WHERE 80 < col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6964
SELECT - COUNT ( * ) + + SUM ( DISTINCT - col0 ) FROM tab2 AS cor0 WHERE 80 < col2
----
NULL

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

query I rowsort
SELECT DISTINCT + col0 - + - 54 FROM tab1
----
105
139
145

query I rowsort
SELECT ALL + + col1 - - - col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6968
SELECT DISTINCT col2 DIV + 7 - - 12 * 48 FROM tab2 cor0
----
579
581
584

skipif mysql # not compatible
query I rowsort label-6968
SELECT DISTINCT col2 / + 7 - - 12 * 48 FROM tab2 cor0
----
579
581
584

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT ALL - SUM( ALL + 80 ) - + 66 + + 93 AS col2 FROM tab0 cor0
----
-213

skipif mysql # not compatible
query I rowsort label-6969
SELECT ALL - SUM ( ALL + 80 ) - + 66 + + 93 AS col2 FROM tab0 cor0
----
-213

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * - 4 col2 FROM tab0 AS cor0
----
324
4
84

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

query I rowsort
SELECT 58 * - col0 * col1 AS col1 FROM tab0 AS cor0
----
-105966
-5626
-70470

query I rowsort
SELECT DISTINCT ( - col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-6976
SELECT ALL + col1 DIV col1 + + col1 AS col0 FROM tab1 AS cor0
----
15
48
6

skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL + col1 / col1 + + col1 AS col0 FROM tab1 AS cor0
----
15
48
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 * col2 * - - 47 col2 FROM tab0
----
154630
325710
32900

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6979
SELECT ALL - ( - - col0 ) DIV + + col1 AS col1 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-6979
SELECT ALL - ( - - col0 ) / + + col1 AS col1 FROM tab1
----
-1
-17
-3

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

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

query I rowsort
SELECT col0 * + - col0 AS col0 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT + MIN( - col1 ) * COUNT( * ) * - 76 + + + COUNT( * ) FROM tab0 WHERE NOT - 31 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6982
SELECT + MIN ( - col1 ) * COUNT ( * ) * - 76 + + + COUNT ( * ) FROM tab0 WHERE NOT - 31 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT - MIN( - col2 ) * 8 FROM tab0
----
792

skipif mysql # not compatible
query I rowsort label-6983
SELECT - MIN ( - col2 ) * 8 FROM tab0
----
792

query I rowsort
SELECT ALL + + ( + col1 ) AS col1 FROM tab0 AS cor0
----
1
21
81

query II rowsort
SELECT ALL - ( - ( + - col0 ) ) * 75 + - col1 AS col1, col0 + col0 AS col1 FROM tab2 AS cor0
----
-3501
92
-4877
128
-5692
150

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT ALL + AVG ( DISTINCT - + 51 ) * ( - - COUNT( * ) ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6987
SELECT ALL + AVG ( DISTINCT - + 51 ) * ( - - COUNT ( * ) ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - col0 + + + ( - ( col2 ) ) AS col2 FROM tab0
----
-196
-62
-97

query II rowsort
SELECT DISTINCT + 24 / col2 AS col1, col0 + + col2 FROM tab1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - 5 AS col1, col0 col0 FROM tab2 AS cor0 WHERE + 79 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 90 = col2
----

query II rowsort
SELECT ALL + col1, - 64 * - col1 FROM tab2 AS cor0
----
51
3264
67
4288
77
4928

onlyif mysql # DIV for integer division: 
query I rowsort label-6993
SELECT - col1 DIV col1 + - + 61 FROM tab0 AS cor0
----
-62
-62
-62

skipif mysql # not compatible
query I rowsort label-6993
SELECT - col1 / col1 + - + 61 FROM tab0 AS cor0
----
-62
-62
-62

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

query I rowsort
SELECT ALL + 47 * - - col1 - 41 FROM tab2 AS cor0
----
2356
3108
3578

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

skipif mysql # not compatible
query I rowsort label-6996
SELECT - CAST ( - COUNT ( - - col0 ) AS INTEGER ) + - + COUNT ( DISTINCT - col1 ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6997
SELECT ALL - MAX( + col0 ) + - COUNT( * ) * + 62 * COUNT( * ) FROM tab0
----
-655

skipif mysql # not compatible
query I rowsort label-6997
SELECT ALL - MAX ( + col0 ) + - COUNT ( * ) * + 62 * COUNT ( * ) FROM tab0
----
-655

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 59 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + - 47 AS col2 FROM tab0 AS cor0
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT ALL + 35 * - - MIN( ALL + + col1 ) AS col2 FROM tab2 AS cor0
----
1785

skipif mysql # not compatible
query I rowsort label-7001
SELECT ALL + 35 * - - MIN ( ALL + + col1 ) AS col2 FROM tab2 AS cor0
----
1785

query I rowsort
SELECT ALL - - 58 * - ( + - 12 ) * - - col0 AS col1 FROM tab1 AS cor0
----
35496
59160
63336

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 70 + - col1 < NULL
----

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

skipif mysql # not compatible
query I rowsort label-7004
SELECT ( + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) * + - 4 - + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) < + col1
----
NULL

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

query I rowsort
SELECT DISTINCT - 36 AS col0 FROM tab0 AS cor0 WHERE NOT col1 + - 97 + - 76 NOT BETWEEN NULL AND col0
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7008
SELECT ( col2 ) DIV - col0 AS col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-7008
SELECT ( col2 ) / - col0 AS col0 FROM tab0
----
-1
-3
0

query I rowsort
SELECT ALL ( - + 3 ) FROM tab1
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT COUNT( * ) * - 93 FROM tab2
----
-279

skipif mysql # not compatible
query I rowsort label-7010
SELECT COUNT ( * ) * - 93 FROM tab2
----
-279

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

query I rowsort
SELECT - 2 AS col1 FROM tab1 WHERE NOT NULL IS NULL AND ( NOT ( NULL ) <= - ( + col0 ) )
----

query II rowsort
SELECT col1 * col0 * - - 82, col0 FROM tab2
----
192372
46
404096
64
412050
75

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7016
SELECT ALL + - col2, col2 DIV col2 + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-10
-1826
-47
-1214
-99
-96

skipif mysql # not compatible
query II rowsort label-7016
SELECT ALL + - col2, col2 / col2 + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-10
-1826
-47
-1214
-99
-96

query I rowsort
SELECT DISTINCT - 29 * - col1 + col2 FROM tab2 AS cor0
----
1502
2001
2273

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

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

query I rowsort
SELECT ALL col1 + col0 AS col1 FROM tab0 WHERE - - col1 / - 17 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7020
SELECT + 18 DIV + 5 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

skipif mysql # not compatible
query I rowsort label-7020
SELECT + 18 / + 5 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

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

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

query I rowsort
SELECT ALL + + col0 * + + col2 * - col1 FROM tab2 AS cor0
----
-197120
-291450
-53958

onlyif mysql # DIV for integer division: 
query II rowsort label-7023
SELECT DISTINCT col1 DIV col1, - 11 * + 25 * col1 AS col1 FROM tab1 AS cor0
----
1
-12925
1
-1375
1
-3850

skipif mysql # not compatible
query II rowsort label-7023
SELECT DISTINCT col1 / col1, - 11 * + 25 * col1 AS col1 FROM tab1 AS cor0
----
1
-12925
1
-1375
1
-3850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7024
SELECT ALL - CAST( - 77 AS SIGNED ) * - col0 AS col2 FROM tab2 cor0
----
-3542
-4928
-5775

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL - CAST ( - 77 AS INTEGER ) * - col0 AS col2 FROM tab2 cor0
----
-3542
-4928
-5775

query II rowsort
SELECT + 44, - col0 * + - col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + col2
----

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

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

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

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

query I rowsort
SELECT DISTINCT + 53 + col1 + col2 FROM tab1
----
117
163
168

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

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

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

skipif mysql # not compatible
query I rowsort label-7030
SELECT - MIN ( CAST ( + - col2 AS INTEGER ) ) - - COUNT ( * ) FROM tab0 AS cor0
----
102

query I rowsort
SELECT - 59 - + col2 FROM tab2 cor0
----
-117
-82
-99

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7033
SELECT ALL col1 + - + col0 - - col1 * col0 DIV col0 * - col1 * + 69 AS col2 FROM tab0 WHERE col1 * - col0 + + col0 > 87 * + - col1 + col1
----
-165
-30495
-452643

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL col1 + - + col0 - - col1 * col0 / col0 * - col1 * + 69 AS col2 FROM tab0 WHERE col1 * - col0 + + col0 > 87 * + - col1 + col1
----
-165
-30495
-452643

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7036
SELECT DISTINCT - - COUNT( - col2 ) * + + MIN( + CAST( + 99 AS SIGNED ) ) + ( - MIN( ALL ( + 38 ) ) ) * + + 4 AS col0 FROM tab0 cor0
----
145

skipif mysql # not compatible
query I rowsort label-7036
SELECT DISTINCT - - COUNT ( - col2 ) * + + MIN ( + CAST ( + 99 AS INTEGER ) ) + ( - MIN ( ALL ( + 38 ) ) ) * + + 4 AS col0 FROM tab0 cor0
----
145

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7037
SELECT ALL - CAST( NULL AS DECIMAL ) * 98 / col0 * + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7037
SELECT ALL - CAST ( NULL AS REAL ) * 98 / col0 * + col0 FROM tab0 cor0
----
NULL
NULL
NULL

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT - COUNT( * ) * 23 FROM tab2 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-7042
SELECT - COUNT ( * ) * 23 FROM tab2 cor0
----
-69

query II rowsort
SELECT DISTINCT + col2, col0 AS col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 40 * - 79 NOT BETWEEN col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + - col2 * - 44 AS col1, - 64 AS col2 FROM tab0 AS cor0
----
2068
-64
4356
-64
440
-64

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7051
SELECT col0 DIV col1 - - col0 + col1 AS col2 FROM tab2 AS cor0
----
141
143
97

skipif mysql # not compatible
query I rowsort label-7051
SELECT col0 / col1 - - col0 + col1 AS col2 FROM tab2 AS cor0
----
141
143
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7052
SELECT - col1 DIV - - col2 + + + col1 col0 FROM tab2 cor0
----
49
66
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7052
SELECT - col1 / - - col2 + + + col1 col0 FROM tab2 cor0
----
49
66
76

query I rowsort
SELECT col2 * - col2 * - 16 AS col1 FROM tab0 AS cor0
----
156816
1600
35344

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT 4 + + MAX( - + col2 ) AS col0 FROM tab2 AS cor0 WHERE ( - - 12 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7054
SELECT 4 + + MAX ( - + col2 ) AS col0 FROM tab2 AS cor0 WHERE ( - - 12 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT SUM( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-7055
SELECT SUM ( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
-199

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

query I rowsort
SELECT ALL 30 + col1 * col0 FROM tab0
----
1245
127
1857

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT ALL + COUNT( + + 1 ) + COUNT( * ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7058
SELECT ALL + COUNT ( + + 1 ) + COUNT ( * ) AS col2 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT ALL - 23 + + + COUNT( * ) AS col2 FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-7059
SELECT ALL - 23 + + + COUNT ( * ) AS col2 FROM tab2
----
-20

query I rowsort
SELECT ALL + col2 * + col2 * + + 20 - - col1 FROM tab0
----
196021
2021
44261

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT ALL - 24 - + COUNT( * ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-7063
SELECT ALL - 24 - + COUNT ( * ) FROM tab2 AS cor0
----
-27

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

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

query I rowsort
SELECT ALL 87 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7067
SELECT ALL 7 * 52 FROM tab0 AS cor0 WHERE NOT CAST( - 3 AS DECIMAL ) - col2 * + col1 IS NULL
----
364
364
364

skipif mysql # not compatible
query I rowsort label-7067
SELECT ALL 7 * 52 FROM tab0 AS cor0 WHERE NOT CAST ( - 3 AS REAL ) - col2 * + col1 IS NULL
----
364
364
364

query II rowsort
SELECT - col1 AS col1, - col2 * - - col2 FROM tab0 AS cor0
----
-1
-9801
-21
-100
-81
-2209

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

query I rowsort
SELECT - 88 FROM tab2 cor0
----
-88
-88
-88

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE NOT + + col1 + + col1 * + + col1 * + 77 < + - 15
----
46
64
75

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

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

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

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

query II rowsort
SELECT ALL 76 * ( + col2 ) * col2 AS col1, - col0 FROM tab0
----
167884
-15
744876
-97
7600
-87

query I rowsort
SELECT ALL 77 FROM tab1, tab2 cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT - col2 + + + 32 AS col2 FROM tab1
----
-27
-36
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT DISTINCT MAX( - + col0 ) * - COUNT( - col2 ) col2 FROM tab2
----
138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7077
SELECT DISTINCT MAX ( - + col0 ) * - COUNT ( - col2 ) col2 FROM tab2
----
138

query I rowsort
SELECT ALL col0 * + + 31 FROM tab0
----
2697
3007
465

query I rowsort
SELECT DISTINCT + 64 * - ( + - 30 ) FROM tab2
----
1920

query I rowsort
SELECT - + col1 * - 79 AS col0 FROM tab0 cor0
----
1659
6399
79

query I rowsort
SELECT DISTINCT 0 * col1 AS col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + - 83 ) * + - 10 + - col1 col0 FROM tab0 AS cor0
----
749
809
829

query I rowsort
SELECT ALL - ( + col2 ) * - ( - + col2 ) + + + col0 + + col2 AS col1 FROM tab2 AS cor0
----
-1496
-3231
-460

query I rowsort
SELECT DISTINCT col1 * 30 + + col0 AS col1 FROM tab1 AS cor0
----
1501
235
471

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7086
SELECT ( col0 ) + - CAST( + 99 AS SIGNED ) FROM tab0
----
-12
-2
-84

skipif mysql # not compatible
query I rowsort label-7086
SELECT ( col0 ) + - CAST ( + 99 AS INTEGER ) FROM tab0
----
-12
-2
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-7087
SELECT ALL - 85 DIV col2 * - - col0 AS col0 FROM tab2
----
-128
-138
-75

skipif mysql # not compatible
query I rowsort label-7087
SELECT ALL - 85 / col2 * - - col0 AS col0 FROM tab2
----
-128
-138
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7088
SELECT DISTINCT - COUNT( * ) DIV - CAST( + + 94 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7088
SELECT DISTINCT - COUNT ( * ) / - CAST ( + + 94 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
0

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

query I rowsort
SELECT - 65 + col1 FROM tab1 AS cor0
----
-18
-51
-60

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

query I rowsort
SELECT DISTINCT 45 + - 93 + 85 FROM tab1 AS cor0
----
37

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

skipif mysql # not compatible
query II rowsort label-7093
SELECT - 15 AS col0, 17 + + ( - col1 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-15
NULL
-15
NULL
-15
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT - MIN( ALL col1 ) AS col2 FROM tab1 WHERE + + col1 / + col1 + + col0 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7094
SELECT - MIN ( ALL col1 ) AS col2 FROM tab1 WHERE + + col1 / + col1 + + col0 <> NULL
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7097
SELECT SUM( DISTINCT col2 ) col0 FROM tab0
----
156

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7098
SELECT ALL * FROM tab2 WHERE CAST( NULL AS SIGNED ) * - 95 * + ( col0 ) + 0 < NULL
----

skipif mysql # not compatible
query III rowsort label-7098
SELECT ALL * FROM tab2 WHERE CAST ( NULL AS INTEGER ) * - 95 * + ( col0 ) + 0 < NULL
----

query I rowsort
SELECT ALL col2 + 55 + - col1 * + col0 * + 84 + + col0 * + 21 FROM tab2
----
-196020
-412513
-420412

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7100
SELECT ( - AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) ) - + 90 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7100
SELECT ( - AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) ) - + 90 AS col1 FROM tab1
----
NULL

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

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

query I rowsort
SELECT + 90 * + ( + col2 ) * + - 95 + 93 + - col1 * + 8 AS col1 FROM tab0 AS cor0
----
-402405
-846365
-85575

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

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

query I rowsort
SELECT - col0 - - - col2 AS col1 FROM tab0 WHERE NOT NULL = - 38
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 50 * 42 * - 9 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT - COUNT( - 5 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7106
SELECT - COUNT ( - 5 ) FROM tab0
----
-3

query II rowsort
SELECT DISTINCT col2 AS col1, + 28 AS col0 FROM tab2
----
23
28
40
28
58
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT 44 * + COUNT( * ) FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-7109
SELECT 44 * + COUNT ( * ) FROM tab0
----
132

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

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

query I rowsort
SELECT + - 23 + - 45 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

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

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

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

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

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

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

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

query I rowsort
SELECT + col1 + + 1 AS col0 FROM tab2 cor0
----
52
68
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT ALL - COUNT( * ) + + 64 FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-7117
SELECT ALL - COUNT ( * ) + + 64 FROM tab0
----
61

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

query I rowsort
SELECT + ( col2 ) * col0 + col2 AS col1 FROM tab0 AS cor0
----
752
880
9702

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

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

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

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

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

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

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

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

query II rowsort
SELECT ALL - 95 + - col1 AS col0, 1 FROM tab0 AS cor0
----
-116
1
-176
1
-96
1

query I rowsort
SELECT DISTINCT - - col1 * - 79 AS col1 FROM tab0 AS cor0
----
-1659
-6399
-79

query I rowsort
SELECT DISTINCT - col1 + - - 96 AS col0 FROM tab2
----
19
29
45

query I rowsort
SELECT 55 * + + col0 + - 88 AS col1 FROM tab0 WHERE ( NULL <> ( col0 ) )
----

query I rowsort
SELECT col0 FROM tab2 WHERE + col1 IN ( + + col0 * + col2 + col2 + col1 + 65 / + col0, - col2 )
----

query I rowsort
SELECT ALL + col2 * + 7 AS col0 FROM tab0
----
329
693
70

onlyif mysql # aggregate syntax: 
query II rowsort label-7132
SELECT ( - MIN( col2 ) ) AS col0, - 53 AS col2 FROM tab2
----
-23
-53

skipif mysql # not compatible
query II rowsort label-7132
SELECT ( - MIN ( col2 ) ) AS col0, - 53 AS col2 FROM tab2
----
-23
-53

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - + col1 AS col2 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 <> + + col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 * + col1 - + - 26 <> 47 + col0 * col2
----

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

skipif mysql # not compatible
query I rowsort label-7144
SELECT ALL 10 + - COUNT ( * ) * + COUNT ( * ) FROM tab2
----
1

query I rowsort
SELECT col1 + - 60 * - - 25 FROM tab0
----
-1419
-1479
-1499

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7150
SELECT DISTINCT + 42 DIV - col1 - col2 * ( - ( + col1 ) ) AS col2 FROM tab0 AS cor0
----
208
3807
57

skipif mysql # not compatible
query I rowsort label-7150
SELECT DISTINCT + 42 / - col1 - col2 * ( - ( + col1 ) ) AS col2 FROM tab0 AS cor0
----
208
3807
57

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT - COUNT( * ) * 25 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7153
SELECT - COUNT ( * ) * 25 FROM tab0 AS cor0
----
-75

query I rowsort
SELECT DISTINCT + 69 * - - 46 + - - 58 FROM tab1 AS cor0
----
3232

query I rowsort
SELECT - 88 * + col0 AS col0 FROM tab2
----
-4048
-5632
-6600

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

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

query I rowsort
SELECT DISTINCT col2 * + 27 AS col2 FROM tab0
----
1269
2673
270

query I rowsort
SELECT 45 * - - ( + col2 ) AS col1 FROM tab0
----
2115
4455
450

query II rowsort
SELECT - col2 AS col1, col2 AS col0 FROM tab2
----
-23
23
-40
40
-58
58

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

skipif mysql # not compatible
query I rowsort label-7160
SELECT + 61 / + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
20

query II rowsort
SELECT DISTINCT 41 * 71 * - ( - - 83 ) AS col0, col0 FROM tab2 AS cor0
----
-241613
46
-241613
64
-241613
75

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT + 86 * + COUNT( * ) FROM tab0
----
258

skipif mysql # not compatible
query I rowsort label-7164
SELECT + 86 * + COUNT ( * ) FROM tab0
----
258

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 30 ) * col0 col0 FROM tab2
----
-1380
-1920
-2250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7166
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( CAST( NULL AS SIGNED ) ) AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-7166
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( CAST ( NULL AS INTEGER ) ) AND - col2
----
0

query I rowsort
SELECT ALL - col0 * col0 * + 39 FROM tab0 AS cor0
----
-295191
-366951
-8775

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

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

query I rowsort
SELECT ALL 96 + + - col1 FROM tab1 AS cor0
----
49
82
91

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7171
SELECT - CAST( col0 AS SIGNED ) AS col1, col0 AS col1 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

skipif mysql # not compatible
query II rowsort label-7171
SELECT - CAST ( col0 AS INTEGER ) AS col1, col0 AS col1 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query II rowsort
SELECT DISTINCT + 25 + col2, + col1 FROM tab0 AS cor0
----
124
1
35
21
72
81

query I rowsort
SELECT ALL - col2 * + col0 - 84 + + col2 AS col1 FROM tab2 AS cor0
----
-1119
-2604
-4376

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7174
SELECT - + CAST ( NULL AS INTEGER ) * 77 col0 FROM tab1 AS cor0 WHERE 72 + + col1 IS NULL
----

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

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

query I rowsort
SELECT ALL - 85 + - col2 + + 73 * - col2 AS col2 FROM tab1
----
-4451
-5117
-7189

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT DISTINCT COUNT( * ) + + + COUNT( * ) - - COUNT( * ) FROM tab1, tab0 cor0
----
27

skipif mysql # not compatible
query I rowsort label-7177
SELECT DISTINCT COUNT ( * ) + + + COUNT ( * ) - - COUNT ( * ) FROM tab1, tab0 cor0
----
27

query I rowsort
SELECT ALL 92 + col1 AS col0 FROM tab0
----
113
173
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT SUM( + 29 ) + + 44 FROM tab2
----
131

skipif mysql # not compatible
query I rowsort label-7179
SELECT SUM ( + 29 ) + + 44 FROM tab2
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT + COUNT( * ) + + MAX( col0 ) * + 32 FROM tab0 AS cor0
----
3107

skipif mysql # not compatible
query I rowsort label-7180
SELECT + COUNT ( * ) + + MAX ( col0 ) * + 32 FROM tab0 AS cor0
----
3107

query I rowsort
SELECT ALL + col0 - 10 FROM tab1 AS cor0
----
41
75
81

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

skipif mysql # not compatible
query I rowsort label-7182
SELECT ALL + - col2 / col2 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 / ( - 58 ) AND ( + 30 * - 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT + MAX( + ( col1 ) ) + + 16 AS col1 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-7185
SELECT + MAX ( + ( col1 ) ) + + 16 AS col1 FROM tab1
----
63

query I rowsort
SELECT + col0 + - 12 AS col1 FROM tab2
----
34
52
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL IN ( col0 + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7187
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL IN ( col0 + col2 )
----
0

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE - col2 <= 77
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7194
SELECT 45 DIV - col1 AS col1 FROM tab0
----
-2
-45
0

skipif mysql # not compatible
query I rowsort label-7194
SELECT 45 / - col1 AS col1 FROM tab0
----
-2
-45
0

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

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

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

query I rowsort
SELECT ( - col1 ) * 12 + + col0 AS col2 FROM tab0
----
-165
-957
85

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col1 / 2 ) IN ( - col2 )
----

query I rowsort
SELECT 51 + - col0 AS col1 FROM tab1
----
-34
-40
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7200
SELECT ( + 47 ) * col2 + CAST( 32 AS SIGNED ) FROM tab2
----
1113
1912
2758

skipif mysql # not compatible
query I rowsort label-7200
SELECT ( + 47 ) * col2 + CAST ( 32 AS INTEGER ) FROM tab2
----
1113
1912
2758

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7201
SELECT + CAST( - 16 AS SIGNED ) * - col2 + + col0 FROM tab0 WHERE NOT 68 IS NULL
----
1681
247
767

skipif mysql # not compatible
query I rowsort label-7201
SELECT + CAST ( - 16 AS INTEGER ) * - col2 + + col0 FROM tab0 WHERE NOT 68 IS NULL
----
1681
247
767

query I rowsort
SELECT DISTINCT 6 / col1 FROM tab0 WHERE + 96 IS NULL
----

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

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

query I rowsort
SELECT ALL + 70 * + col1 + - 13 FROM tab0
----
1457
5657
57

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

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

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

query I rowsort
SELECT 30 + + col0 * col1 AS col2 FROM tab0
----
1245
127
1857

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT 35 BETWEEN NULL AND ( - col1 )
----
51
85
91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col1 ) > ( + col1 )
----

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

skipif mysql # not compatible
query I rowsort label-7210
SELECT + 65 / COUNT ( * ) FROM tab2 cor0
----
21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT DISTINCT + 18 * - COUNT( * ) FROM tab2 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-7212
SELECT DISTINCT + 18 * - COUNT ( * ) FROM tab2 cor0
----
-54

query I rowsort
SELECT ALL 84 * + 14 AS col0 FROM tab2 AS cor0
----
1176
1176
1176

query I rowsort
SELECT DISTINCT col0 * - 19 FROM tab1 AS cor0
----
-1615
-1729
-969

query I rowsort
SELECT - ( - 85 ) * col2 FROM tab0
----
3995
8415
850

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT ALL + COUNT( * ) + + 27 FROM tab2 AS cor0 CROSS JOIN tab1
----
36

skipif mysql # not compatible
query I rowsort label-7216
SELECT ALL + COUNT ( * ) + + 27 FROM tab2 AS cor0 CROSS JOIN tab1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7217
SELECT ALL + 70 - - CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1
----
79

skipif mysql # not compatible
query I rowsort label-7217
SELECT ALL + 70 - - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT COUNT( ALL col2 ) FROM tab0 AS cor0 WHERE col2 * - col2 NOT BETWEEN col1 AND ( NULL )
----
3

skipif mysql # not compatible
query I rowsort label-7218
SELECT COUNT ( ALL col2 ) FROM tab0 AS cor0 WHERE col2 * - col2 NOT BETWEEN col1 AND ( NULL )
----
3

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

skipif mysql # not compatible
query I rowsort label-7219
SELECT ALL 50 / col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 43 AS col2 FROM tab2 cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( - col1 ) * col2 + col2 * col0 FROM tab1 AS cor0
----
2992
3552
4720

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > + 28
----

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

skipif mysql # not compatible
query I rowsort label-7223
SELECT ALL + - COUNT ( * ) / + 13 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7224
SELECT + 59 + COUNT( * ) * + 14 AS col2 FROM tab1 AS cor0 WHERE + col1 * - CAST( col0 / - col0 AS SIGNED ) IS NULL
----
59

skipif mysql # not compatible
query I rowsort label-7224
SELECT + 59 + COUNT ( * ) * + 14 AS col2 FROM tab1 AS cor0 WHERE + col1 * - CAST ( col0 / - col0 AS INTEGER ) IS NULL
----
59

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

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

query I rowsort
SELECT DISTINCT + col2 + - col1 * col0 FROM tab2 AS cor0
----
-2323
-4888
-4967

query I rowsort
SELECT + col2 - + 83 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-36
-73
16

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 63 < + col2 + + 34
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7229
SELECT ALL col0 + - col0 + - 23 DIV + 87 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7229
SELECT ALL col0 + - col0 + - 23 / + 87 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL 90 + - ( + col2 ) FROM tab2
----
32
50
67

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

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

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

query I rowsort
SELECT DISTINCT 74 - - - 46 * col2 FROM tab1
----
-2640
-3054
-4342

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT ALL ( 7 ) * 14 + COUNT( * ) FROM tab2 WHERE NULL BETWEEN 44 AND 87
----
98

skipif mysql # not compatible
query I rowsort label-7234
SELECT ALL ( 7 ) * 14 + COUNT ( * ) FROM tab2 WHERE NULL BETWEEN 44 AND 87
----
98

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * + col0 BETWEEN 78 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 + - - col0 FROM tab2
----
128
150
92

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

query I rowsort
SELECT DISTINCT + 92 + col1 AS col1 FROM tab1
----
106
139
97

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

query I rowsort
SELECT ALL col1 - - - 99 FROM tab0
----
-18
-78
-98

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

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

query I rowsort
SELECT DISTINCT + + 3 - 26 AS col2 FROM tab2 cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT + + COUNT( * ) - - 48 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7243
SELECT + + COUNT ( * ) - - 48 FROM tab0 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7244
SELECT + - col2 DIV + col0 - - col0 FROM tab0 AS cor0
----
12
87
96

skipif mysql # not compatible
query I rowsort label-7244
SELECT + - col2 / + col0 - - col0 FROM tab0 AS cor0
----
12
87
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7245
SELECT col1 FROM tab2 AS cor0 WHERE - col0 - 21 * col1 NOT BETWEEN - col1 * CAST( NULL AS SIGNED ) AND ( 7 ) AND NULL NOT IN ( col1 + + 70 / + 14 )
----

skipif mysql # not compatible
query I rowsort label-7245
SELECT col1 FROM tab2 AS cor0 WHERE - col0 - 21 * col1 NOT BETWEEN - col1 * CAST ( NULL AS INTEGER ) AND ( 7 ) AND NULL NOT IN ( col1 + + 70 / + 14 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * 88 IS NULL AND NOT NULL IN ( col0 * - col1 )
----

query I rowsort
SELECT - + 48 * col1 * - col2 - col1 FROM tab0 AS cor0
----
10059
182655
4751

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7248
SELECT + CAST( NULL AS SIGNED ) + 12 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7248
SELECT + CAST ( NULL AS INTEGER ) + 12 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + - 44 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query I rowsort
SELECT 81 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 40 + col0 FROM tab0
----
127
137
55

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-7253
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT ( - CAST( NULL AS DECIMAL ) ) IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

skipif mysql # not compatible
query IIIIII rowsort label-7253
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT ( - CAST ( NULL AS REAL ) ) IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT ALL ( col0 ) FROM tab0 AS cor0 WHERE - 53 BETWEEN + 41 + + col1 AND + 75 OR NOT NULL = ( NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT ALL COUNT( ALL + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7256
SELECT ALL COUNT ( ALL + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----
0

query II rowsort
SELECT DISTINCT - + 61 AS col2, - col0 + + + col0 FROM tab2 AS cor0
----
-61
0

query II rowsort
SELECT + col1, 43 + ( - col2 ) AS col0 FROM tab2 AS cor0
----
51
20
67
-15
77
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT ALL + SUM( + 9 ) FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-7259
SELECT ALL + SUM ( + 9 ) FROM tab1 AS cor0
----
27

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 67 > + col0
----
87
21
10
97
1
99

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

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

query I rowsort
SELECT 4 * - - col2 FROM tab2
----
160
232
92

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab0 WHERE NOT col0 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7266
SELECT - COUNT( * ) DIV - 45 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7266
SELECT - COUNT ( * ) / - 45 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - - col1 AS col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND + - 79
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 NOT BETWEEN ( + col1 * 31 ) AND ( - 0 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7270
SELECT + col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( + 48 * - col1 - - CAST( - ( 86 ) AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7270
SELECT + col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( + 48 * - col1 - - CAST ( - ( 86 ) AS INTEGER ) )
----

query I rowsort
SELECT - 75 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7273
SELECT DISTINCT - ( - 65 ) + col0 DIV col1 + col0 FROM tab2
----
111
129
141

skipif mysql # not compatible
query I rowsort label-7273
SELECT DISTINCT - ( - 65 ) + col0 / col1 + col0 FROM tab2
----
111
129
141

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7274
SELECT ALL * FROM tab1 WHERE NOT + CAST( ( col2 ) AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-7274
SELECT ALL * FROM tab1 WHERE NOT + CAST ( ( col2 ) AS INTEGER ) >= NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7276
SELECT + 52 DIV COUNT( * ) + 44 * - ( + - 8 ) FROM tab2 AS cor0
----
369

skipif mysql # not compatible
query I rowsort label-7276
SELECT + 52 / COUNT ( * ) + 44 * - ( + - 8 ) FROM tab2 AS cor0
----
369

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7277
SELECT * FROM tab1 AS cor0 WHERE ( CAST( NULL AS SIGNED ) / - + col2 / + ( + col0 ) + + 2 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7277
SELECT * FROM tab1 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) / - + col2 / + ( + col0 ) + + 2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7278
SELECT ALL + COUNT( * ) AS col2, SUM( DISTINCT col2 ) FROM tab0 cor0 WHERE NOT NULL > ( - col0 )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7278
SELECT ALL + COUNT ( * ) AS col2, SUM ( DISTINCT col2 ) FROM tab0 cor0 WHERE NOT NULL > ( - col0 )
----
0
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 93 IS NULL
----

query I rowsort
SELECT - 45 * - + col0 - + col2 * + - col2 AS col1 FROM tab1 AS cor0
----
11511
7306
8719

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < 20
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7283
SELECT + col1 DIV + 32 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7283
SELECT + col1 / + 32 AS col1 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT col0 + + col0 + + - col1 FROM tab0
----
-51
153
193

query I rowsort
SELECT DISTINCT 57 * - + 23 + col1 FROM tab1
----
-1264
-1297
-1306

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7287
SELECT ALL + col0 DIV - - 95 + + col1 FROM tab0
----
2
21
81

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL + col0 / - - 95 + + col1 FROM tab0
----
2
21
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7288
SELECT - 64 + - 21 * + - 86 * CAST( + ( col1 ) AS DECIMAL ) FROM tab0 WHERE NULL < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7288
SELECT - 64 + - 21 * + - 86 * CAST ( + ( col1 ) AS REAL ) FROM tab0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE - col0 + + col1 IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT + 53 + + + COUNT( DISTINCT - 20 ) AS col2 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-7290
SELECT + 53 + + + COUNT ( DISTINCT - 20 ) AS col2 FROM tab1
----
54

query III rowsort
SELECT * FROM tab1 WHERE - + col2 / + 10 * + 81 / - ( 27 ) IN ( col1 )
----

query I rowsort
SELECT DISTINCT + 33 * + - 22 + - col1 FROM tab2
----
-777
-793
-803

query III rowsort
SELECT * FROM tab0 WHERE + + col1 / + col0 IN ( col1 * - 63 + col2 )
----

query I rowsort
SELECT 96 * col1 + + + ( + col1 ) * 63 FROM tab0
----
12879
159
3339

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7295
SELECT ALL col0 - - + ( + CAST( + - col1 AS SIGNED ) ) - col2 + + + col2 + col1 * 98 AS col1 FROM tab1
----
1409
4650
570

skipif mysql # not compatible
query I rowsort label-7295
SELECT ALL col0 - - + ( + CAST ( + - col1 AS INTEGER ) ) - col2 + + + col2 + col1 * 98 AS col1 FROM tab1
----
1409
4650
570

query I rowsort
SELECT ALL + + col2 FROM tab0 WHERE NOT - 79 < + 76
----

query I rowsort
SELECT + 74 + - ( - col0 ) + + - 47 AS col0 FROM tab0 AS cor0
----
114
124
42

query I rowsort
SELECT DISTINCT col0 * - - col0 * + col0 AS col2 FROM tab1 AS cor0
----
132651
614125
753571

query II rowsort
SELECT + 96 AS col2, col2 + 89 FROM tab2 AS cor0
----
96
112
96
129
96
147

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

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE ( NULL ) < 19
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7302
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST( + + ( + col0 ) AS SIGNED ) < ( col1 * + col0 + 73 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7302
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST ( + + ( + col0 ) AS INTEGER ) < ( col1 * + col0 + 73 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 1 * - 24 * + col0 FROM tab0 AS cor0
----
2088
2328
360

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < + 97
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT - - COUNT( * ) FROM tab2 WHERE NOT NULL <> + 35
----
0

skipif mysql # not compatible
query I rowsort label-7307
SELECT - - COUNT ( * ) FROM tab2 WHERE NOT NULL <> + 35
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT + - COUNT( DISTINCT col2 ) col1 FROM tab2 WHERE NOT 81 / + col0 <= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7308
SELECT + - COUNT ( DISTINCT col2 ) col1 FROM tab2 WHERE NOT 81 / + col0 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT COUNT( * ) FROM tab2 WHERE NOT - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7309
SELECT COUNT ( * ) FROM tab2 WHERE NOT - col2 IS NULL
----
3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT DISTINCT 78 + SUM( - + col0 ) FROM tab0 WHERE ( - - col1 ) BETWEEN - 45 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7313
SELECT DISTINCT 78 + SUM ( - + col0 ) FROM tab0 WHERE ( - - col1 ) BETWEEN - 45 AND NULL
----
NULL

query II rowsort
SELECT + col1, ( - - col0 ) + - + col0 FROM tab1
----
14
0
47
0
5
0

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

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

query I rowsort
SELECT DISTINCT + 87 * + 90 + 30 AS col0 FROM tab1 AS cor0
----
7860

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT DISTINCT COUNT( - col0 ) * - 50 AS col0 FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-7318
SELECT DISTINCT COUNT ( - col0 ) * - 50 AS col0 FROM tab0
----
-150

onlyif mysql # DIV for integer division: 
query I rowsort label-7319
SELECT + - 98 DIV col1 AS col1 FROM tab1 cor0 WHERE col0 - + col2 - 50 IS NOT NULL
----
-19
-2
-7

skipif mysql # not compatible
query I rowsort label-7319
SELECT + - 98 / col1 AS col1 FROM tab1 cor0 WHERE col0 - + col2 - 50 IS NOT NULL
----
-19
-2
-7

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

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

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE - 9 <= NULL
----

query II rowsort
SELECT ALL - 40 + - - col0, ( col2 ) - + + 46 + - col2 + col2 - col1 * 69 * col1 * + 75 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 75 <> 44 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT ALL + MIN( DISTINCT - col2 ) col1 FROM tab1 AS cor0
----
-96

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

query I rowsort
SELECT ALL ( col2 ) * 24 FROM tab0 AS cor0
----
1128
2376
240

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < col1 * + col2 + - + ( + 92 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7329
SELECT DISTINCT col1 + + + 73 DIV 94 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7329
SELECT DISTINCT col1 + + + 73 / 94 FROM tab0
----
1
21
81

query II rowsort
SELECT 27, - 33 AS col1 FROM tab0
----
27
-33
27
-33
27
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-7331
SELECT + col0 DIV + 42 AS col0 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-7331
SELECT + col0 / + 42 AS col0 FROM tab1
----
1
2
2

onlyif mysql # aggregate syntax: 
query II rowsort label-7332
SELECT DISTINCT SUM( + col1 ), + COUNT( * ) col0 FROM tab1 WHERE - 11 IS NOT NULL
----
66
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7332
SELECT DISTINCT SUM ( + col1 ), + COUNT ( * ) col0 FROM tab1 WHERE - 11 IS NOT NULL
----
66
3

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE ( - col0 * - - 56 - + - col2 + + col2 ) IS NULL
----

query II rowsort
SELECT + 50 AS col0, - 42 + - 94 FROM tab1
----
50
-136
50
-136
50
-136

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

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

query III rowsort
SELECT * FROM tab0 WHERE - col1 - + 14 + - 31 IS NULL
----

query I rowsort
SELECT - col0 - col2 + + ( col1 ) FROM tab2 AS cor0
----
-18
-27
-66

query I rowsort
SELECT DISTINCT + 89 * + 60 + + col0 AS col0 FROM tab0 AS cor0
----
5355
5427
5437

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT ALL 15 * + COUNT( DISTINCT col0 ) * - COUNT( ALL - col2 ) FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL 15 * + COUNT ( DISTINCT col0 ) * - COUNT ( ALL - col2 ) FROM tab0
----
-135

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

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

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

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

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

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

query I rowsort
SELECT 99 + - col1 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7346
SELECT DISTINCT - ( + col2 ) DIV - 58 AS col2 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7346
SELECT DISTINCT - ( + col2 ) / - 58 AS col2 FROM tab0 AS cor0
----
0
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7348
SELECT ( MIN( 58 ) ) col0 FROM tab0 cor0 WHERE NOT ( 93 / col1 + + - 20 - + col0 + + 33 * - + 43 * + CAST( NULL AS SIGNED ) ) < col0 * - - col0 * - col2 + - col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7348
SELECT ( MIN ( 58 ) ) col0 FROM tab0 cor0 WHERE NOT ( 93 / col1 + + - 20 - + col0 + + 33 * - + 43 * + CAST ( NULL AS INTEGER ) ) < col0 * - - col0 * - col2 + - col2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL <> - col2
----

query II rowsort
SELECT + + 71 * - + col1, ( + 24 ) * col0 AS col2 FROM tab2 AS cor0
----
-3621
1104
-4757
1800
-5467
1536

onlyif mysql # aggregate syntax: 
query II rowsort label-7351
SELECT DISTINCT + MIN( 36 ) AS col2, COUNT( * ) AS col0 FROM tab1
----
36
3

skipif mysql # not compatible
query II rowsort label-7351
SELECT DISTINCT + MIN ( 36 ) AS col2, COUNT ( * ) AS col0 FROM tab1
----
36
3

query I rowsort
SELECT + 34 * col1 FROM tab2
----
1734
2278
2618

onlyif mysql # DIV for integer division: 
query II rowsort label-7353
SELECT DISTINCT col0 DIV + - col2, 24 * col0 * - 83 AS col1 FROM tab0
----
-8
-173304
0
-193224
0
-29880

skipif mysql # not compatible
query II rowsort label-7353
SELECT DISTINCT col0 / + - col2, 24 * col0 * - 83 AS col1 FROM tab0
----
-8
-173304
0
-193224
0
-29880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7354
SELECT + - col2 FROM tab1 WHERE NOT - CAST( - 39 AS SIGNED ) IS NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7354
SELECT + - col2 FROM tab1 WHERE NOT - CAST ( - 39 AS INTEGER ) IS NULL
----
-59
-68
-96

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + 47 NOT BETWEEN 38 AND - 90
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col1 + - + 38 + col1 FROM tab1 AS cor0
----
-10
-28
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT 66 * - MIN( DISTINCT - col2 ) * - - COUNT( * ) + - + 77 AS col1 FROM tab1 AS cor0
----
18931

skipif mysql # not compatible
query I rowsort label-7358
SELECT 66 * - MIN ( DISTINCT - col2 ) * - - COUNT ( * ) + - + 77 AS col1 FROM tab1 AS cor0
----
18931

query I rowsort
SELECT + 67 + - 31 FROM tab2
----
36
36
36

query I rowsort
SELECT ALL - 30 * - 14 + + 29 FROM tab2 WHERE NULL IN ( - - 67 * - col2 * + col0 / + - col1, 56 )
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT COUNT( * ) - 97 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-7364
SELECT COUNT ( * ) - 97 FROM tab0 AS cor0
----
-94

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7366
SELECT + COUNT( * ) - + 5 DIV + MIN( col1 ) AS col1 FROM tab1 AS cor0
----
2

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * - 39 col2 FROM tab1 cor0
----
-2301
-2652
-3744

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT DISTINCT + COUNT( * ) + 15 * + 28 * ( + - ( COUNT( * ) ) ) * - 49 AS col0 FROM tab0 AS cor0
----
61743

skipif mysql # not compatible
query I rowsort label-7368
SELECT DISTINCT + COUNT ( * ) + 15 * + 28 * ( + - ( COUNT ( * ) ) ) * - 49 AS col0 FROM tab0 AS cor0
----
61743

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 * ( - - 10 ) * - col0 + 98 col0 FROM tab0
----
-46882
-52282
-8002

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7372
SELECT ALL - MIN( ALL + col1 ), 30 AS col1 FROM tab0
----
-1
30

skipif mysql # not compatible
query II rowsort label-7372
SELECT ALL - MIN ( ALL + col1 ), 30 AS col1 FROM tab0
----
-1
30

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7376
SELECT - 79 DIV + col2 FROM tab0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-7376
SELECT - 79 / + col2 FROM tab0
----
-1
-7
0

query I rowsort
SELECT DISTINCT - + 32 * col1 FROM tab0 AS cor0
----
-2592
-32
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT + MIN( + col1 ) * - + COUNT( * ) * - COUNT( * ) col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7378
SELECT + MIN ( + col1 ) * - + COUNT ( * ) * - COUNT ( * ) col2 FROM tab0 AS cor0
----
9

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

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

query II rowsort
SELECT DISTINCT 49, col0 FROM tab1 AS cor0
----
49
51
49
85
49
91

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

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

query I rowsort
SELECT 99 + + + col2 AS col2 FROM tab0
----
109
146
198

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

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

query I rowsort
SELECT ( col2 ) * + col2 + - ( - col0 ) + + col2 FROM tab0
----
197
2271
9997

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7385
SELECT MIN( - 57 ) + - + CAST( - COUNT( ALL + ( + + col2 ) ) AS SIGNED ) FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-7385
SELECT MIN ( - 57 ) + - + CAST ( - COUNT ( ALL + ( + + col2 ) ) AS INTEGER ) FROM tab1
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7386
SELECT 47 + + + 25, CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
72
NULL
72
NULL
72
NULL

skipif mysql # not compatible
query II rowsort label-7386
SELECT 47 + + + 25, CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
72
NULL
72
NULL
72
NULL

query I rowsort
SELECT ( col0 ) + + - col0 FROM tab0
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT DISTINCT COUNT( DISTINCT - 84 ) col0 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7389
SELECT DISTINCT COUNT ( DISTINCT - 84 ) col0 FROM tab1
----
1

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

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

query I rowsort
SELECT ALL 44 * col2 + + + col0 AS col0 FROM tab1 AS cor0
----
2681
3083
4275

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

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

query I rowsort
SELECT - col0 + + 90 * 69 AS col0 FROM tab0
----
6113
6123
6195

query II rowsort
SELECT col1 + - - col1, col0 FROM tab2
----
102
46
134
75
154
64

query I rowsort
SELECT - ( ( - col0 ) ) * + 55 + col0 AS col1 FROM tab0
----
4872
5432
840

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7397
SELECT col2 DIV - col0 + + 77 - 10 AS col0 FROM tab0 AS cor0
----
64
66
67

skipif mysql # not compatible
query I rowsort label-7397
SELECT col2 / - col0 + + 77 - 10 AS col0 FROM tab0 AS cor0
----
64
66
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT - MAX( - col0 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7398
SELECT - MAX ( - col0 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT - COUNT( 16 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7399
SELECT - COUNT ( 16 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7400
SELECT + MAX( ALL + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7400
SELECT + MAX ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT ALL col0 + 3 + - ( + 11 ) FROM tab1
----
43
77
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT - MAX( DISTINCT - col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7402
SELECT - MAX ( DISTINCT - col0 ) AS col2 FROM tab0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7403
SELECT - CAST( col1 AS SIGNED ) AS col2 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-7403
SELECT - CAST ( col1 AS INTEGER ) AS col2 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT MAX( DISTINCT + col0 ) * + 39 AS col0 FROM tab2
----
2925

skipif mysql # not compatible
query I rowsort label-7404
SELECT MAX ( DISTINCT + col0 ) * + 39 AS col0 FROM tab2
----
2925

onlyif mysql # DIV for integer division: 
query I rowsort label-7405
SELECT col0 DIV - 8 FROM tab1
----
-10
-11
-6

skipif mysql # not compatible
query I rowsort label-7405
SELECT col0 / - 8 FROM tab1
----
-10
-11
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT - SUM( DISTINCT + col1 ) col0 FROM tab0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7406
SELECT - SUM ( DISTINCT + col1 ) col0 FROM tab0
----
-103

query I rowsort
SELECT ALL + 80 AS col2 FROM tab1 cor0
----
80
80
80

query I rowsort
SELECT + ( 76 ) AS col1 FROM tab1 AS cor0
----
76
76
76

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( 41 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT DISTINCT + COUNT( * ) * 25 * COUNT( * ) FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-7410
SELECT DISTINCT + COUNT ( * ) * 25 * COUNT ( * ) FROM tab1
----
225

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT 55 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT DISTINCT - 39 + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-48

skipif mysql # not compatible
query I rowsort label-7412
SELECT DISTINCT - 39 + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-48

query I rowsort
SELECT + ( + 67 ) * + col1 * col1 - + + 72 AS col0 FROM tab2 AS cor0
----
174195
300691
397171

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - + 90 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( - + col0 ) * - + col1 FROM tab1 AS cor0
----
425
4277
714

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( NULL IN ( 58 ) ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + - ( + ( - col2 ) ) ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 16 + + col1 - + col0 col2 FROM tab2 AS cor0
----
-11
-24
-3

query I rowsort
SELECT DISTINCT - col1 + + + ( - + col1 ) FROM tab1
----
-10
-28
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT + COUNT( - col1 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7420
SELECT + COUNT ( - col1 ) col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7421
SELECT - col1 + + col0 FROM tab0 WHERE - col1 > + col2 * - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7421
SELECT - col1 + + col0 FROM tab0 WHERE - col1 > + col2 * - + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT DISTINCT 62 * - - 76 * + - COUNT( * ) AS col1 FROM tab0
----
-14136

skipif mysql # not compatible
query I rowsort label-7422
SELECT DISTINCT 62 * - - 76 * + - COUNT ( * ) AS col1 FROM tab0
----
-14136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7423
SELECT ALL - COUNT( * ) * CAST( - 12 AS SIGNED ) AS col0 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-7423
SELECT ALL - COUNT ( * ) * CAST ( - 12 AS INTEGER ) AS col0 FROM tab2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT - + COUNT( * ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7424
SELECT - + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - 45 * + col1 AS col1 FROM tab0 AS cor0
----
-3645
-45
-945

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + - col0 col2 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT + col0 + + 95 AS col2 FROM tab1 AS cor0
----
146
180
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7428
SELECT ( + CAST( NULL AS SIGNED ) ) + - col1 * + col2 * + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7428
SELECT ( + CAST ( NULL AS INTEGER ) ) + - col1 * + col2 * + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 * - col1 + - 5 AS col0 FROM tab2 cor0
----
-1178
-3085
-3891

query I rowsort
SELECT DISTINCT - 60 * col1 + + col1 AS col2 FROM tab0 AS cor0
----
-1239
-4779
-59

query I rowsort
SELECT ALL 28 + + - col2 AS col1 FROM tab2
----
-12
-30
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT DISTINCT - COUNT( * ) - - COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7432
SELECT DISTINCT - COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT ALL 80 - 69 * + COUNT( * ) * - - ( + 87 ) FROM tab1
----
-17929

skipif mysql # not compatible
query I rowsort label-7433
SELECT ALL 80 - 69 * + COUNT ( * ) * - - ( + 87 ) FROM tab1
----
-17929

query I rowsort
SELECT ALL + + 12 - + ( col1 ) FROM tab1 AS cor0
----
-2
-35
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7435
SELECT + COUNT( * ) col1 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7435
SELECT + COUNT ( * ) col1 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT DISTINCT + COUNT( * ) - + ( - + COUNT( * ) ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7436
SELECT DISTINCT + COUNT ( * ) - + ( - + COUNT ( * ) ) FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7437
SELECT DISTINCT + + COUNT( * ) - + + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7437
SELECT DISTINCT + + COUNT ( * ) - + + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 69 >= - - 57
----

query I rowsort
SELECT - 34 - + col0 AS col2 FROM tab1 AS cor0
----
-119
-125
-85

query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0, + ( + col0 ) col1 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT ALL COUNT( + col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7442
SELECT ALL COUNT ( + col0 ) AS col1 FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 NOT BETWEEN col1 AND + col0 + 99
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT - col1 / + col1 = + + col0
----
10
47
99

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT NULL NOT IN ( - col0, col0, + ( + col2 ) * col0 / - col0, - ( 59 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7446
SELECT DISTINCT - ( + - ( + - ( + CAST( COUNT( * ) AS SIGNED ) ) ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7446
SELECT DISTINCT - ( + - ( + - ( + CAST ( COUNT ( * ) AS INTEGER ) ) ) ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT + 51 * + col1 + + - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 NOT IN ( - ( + + 64 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT DISTINCT + COUNT( DISTINCT + - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7449
SELECT DISTINCT + COUNT ( DISTINCT + - col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT ALL + MAX( DISTINCT - 28 ) FROM tab2 cor0
----
-28

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL + MAX ( DISTINCT - 28 ) FROM tab2 cor0
----
-28

query I rowsort
SELECT + 98 * + + col1 FROM tab2
----
4998
6566
7546

onlyif mysql # DIV for integer division: 
query II rowsort label-7452
SELECT DISTINCT + col0, - col2 DIV + ( - 72 ) FROM tab2 AS cor0
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-7452
SELECT DISTINCT + col0, - col2 / + ( - 72 ) FROM tab2 AS cor0
----
46
0
64
0
75
0

query I rowsort
SELECT + 27 + + 1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT 92 + - - MIN( + 62 ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-7454
SELECT 92 + - - MIN ( + 62 ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-94

query I rowsort
SELECT DISTINCT + 35 * + - col2 + - - 82 * + col0 * col2 + + col1 + - 33 AS col0 FROM tab1 AS cor0
----
398093
409137
505050

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col1 ) <> col2 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - 11 AS col1 FROM tab0 cor0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT 73 * + ( + + COUNT( ALL col2 ) ) + + COUNT( * ) AS col1 FROM tab0
----
222

skipif mysql # not compatible
query I rowsort label-7458
SELECT 73 * + ( + + COUNT ( ALL col2 ) ) + + COUNT ( * ) AS col1 FROM tab0
----
222

onlyif mysql # aggregate syntax: 
query II rowsort label-7459
SELECT COUNT( * ) + 86 col0, + COUNT( * ) FROM tab2
----
89
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7459
SELECT COUNT ( * ) + 86 col0, + COUNT ( * ) FROM tab2
----
89
3

query I rowsort
SELECT col1 * col1 * + 79 + - col0 * col2 FROM tab2
----
204421
350281
465831

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT ALL + COUNT( * ) FROM tab1 WHERE ( col0 IN ( col1 / - + 96, + col0 + col0, + col0 ) )
----
3

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL + COUNT ( * ) FROM tab1 WHERE ( col0 IN ( col1 / - + 96, + col0 + col0, + col0 ) )
----
3

query I rowsort
SELECT ALL 11 AS col0 FROM tab1 WHERE + 70 * + col2 * + col1 * col1 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7463
SELECT ALL CAST( NULL AS SIGNED ) + + 83 + + - SUM( + + col2 ) + + CAST( NULL AS SIGNED ) * - + COUNT( ALL - 33 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7463
SELECT ALL CAST ( NULL AS INTEGER ) + + 83 + + - SUM ( + + col2 ) + + CAST ( NULL AS INTEGER ) * - + COUNT ( ALL - 33 ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7464
SELECT DISTINCT + 4 DIV + + col2 * - 38 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7464
SELECT DISTINCT + 4 / + + col2 * - 38 AS col2 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7465
SELECT * FROM tab1 WHERE - col1 IN ( - col0 + + CAST( NULL AS SIGNED ), + col1 / - - CAST( + + 61 AS SIGNED ), + + 40 )
----

skipif mysql # not compatible
query III rowsort label-7465
SELECT * FROM tab1 WHERE - col1 IN ( - col0 + + CAST ( NULL AS INTEGER ), + col1 / - - CAST ( + + 61 AS INTEGER ), + + 40 )
----

query I rowsort
SELECT ALL 90 + + + 28 AS col2 FROM tab0
----
118
118
118

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE - col0 IS NOT NULL
----
15
87
97

query II rowsort
SELECT ( + col0 ), ( - - col1 ) FROM tab2
----
46
51
64
77
75
67

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= 68
----

query II rowsort
SELECT ALL + 0 + col2 AS col2, 36 - - + col2 + - col0 AS col2 FROM tab1 AS cor0
----
59
10
68
13
96
81

query I rowsort
SELECT 89 * + col0 + + 46 * - 98 FROM tab2
----
-414
1188
2167

query I rowsort
SELECT - col2 + + - 92 FROM tab0
----
-102
-139
-191

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT DISTINCT - SUM( ALL + col1 ) + - + SUM( DISTINCT col1 ) FROM tab2
----
-390

skipif mysql # not compatible
query I rowsort label-7473
SELECT DISTINCT - SUM ( ALL + col1 ) + - + SUM ( DISTINCT col1 ) FROM tab2
----
-390

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col1 BETWEEN - 76 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7475
SELECT col2 * - col2 * - CAST( NULL AS SIGNED ) + - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7475
SELECT col2 * - col2 * - CAST ( NULL AS INTEGER ) + - col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT - COUNT( * ) col1 FROM tab0 WHERE - - col2 + + + 84 NOT IN ( - + col1, col1 )
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7476
SELECT - COUNT ( * ) col1 FROM tab0 WHERE - - col2 + + + 84 NOT IN ( - + col1, col1 )
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT DISTINCT MAX( + - 60 ) FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-7478
SELECT DISTINCT MAX ( + - 60 ) FROM tab0 AS cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT ALL + SUM( ALL + - 37 ) AS col2 FROM tab1 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-7479
SELECT ALL + SUM ( ALL + - 37 ) AS col2 FROM tab1 AS cor0
----
-111

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - - col2
----

query I rowsort
SELECT ALL + - 7 * - col0 + - col0 AS col2 FROM tab0 AS cor0
----
522
582
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT + MAX( col0 ) AS col2 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-7482
SELECT + MAX ( col0 ) AS col2 FROM tab2 cor0
----
75

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - - 36 col1 FROM tab2
----
1836
2412
2772

query II rowsort
SELECT 54, 78 * col2 AS col0 FROM tab0
----
54
3666
54
7722
54
780

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( + - col1 ) - 58 - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 * - col0 col2 FROM tab0 AS cor0
----
-4872
-5432
-840

query I rowsort
SELECT - col2 * + ( - col1 ) + - + 98 * + col1 FROM tab0 AS cor0
----
-1848
-4131
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7489
SELECT CAST( NULL AS SIGNED ) + + col1 AS col0, col2 + - + col0 AS col1 FROM tab2
----
NULL
-17
NULL
-23
NULL
-24

skipif mysql # not compatible
query II rowsort label-7489
SELECT CAST ( NULL AS INTEGER ) + + col1 AS col0, col2 + - + col0 AS col1 FROM tab2
----
NULL
-17
NULL
-23
NULL
-24

onlyif mysql # DIV for integer division: 
query II rowsort label-7490
SELECT 71 + - 21, - 13 DIV + + col0 AS col2 FROM tab1
----
50
0
50
0
50
0

skipif mysql # not compatible
query II rowsort label-7490
SELECT 71 + - 21, - 13 / + + col0 AS col2 FROM tab1
----
50
0
50
0
50
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT DISTINCT + + MAX( ALL 31 ) AS col2 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-7491
SELECT DISTINCT + + MAX ( ALL 31 ) AS col2 FROM tab1 AS cor0
----
31

query I rowsort
SELECT 80 * - ( + 80 ) AS col0 FROM tab2 AS cor0
----
-6400
-6400
-6400

onlyif mysql # aggregate syntax: 
query II rowsort label-7493
SELECT ALL COUNT( * ) AS col0, 77 FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----
0
77

skipif mysql # not compatible
query II rowsort label-7493
SELECT ALL COUNT ( * ) AS col0, 77 FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----
0
77

query I rowsort
SELECT ALL col2 + + 1 FROM tab2
----
24
41
59

onlyif mysql # aggregate syntax: 
query II rowsort label-7495
SELECT COUNT( * ) col0, 22 FROM tab2
----
3
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7495
SELECT COUNT ( * ) col0, 22 FROM tab2
----
3
22

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - col0 + col2 + 82, + 10, col2 * + - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IS NOT NULL AND NOT 44 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + - - 46 * - + col0 * + - col1 - + + col2 + col0 * - col0 AS col2 FROM tab1
----
12325
188461
30243

query I rowsort
SELECT col0 FROM tab1 WHERE ( - col2 ) IS NOT NULL
----
51
85
91

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - - 38 + + + 36 col2 FROM tab2 AS cor0
----
1784
2468
2886

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT DISTINCT + ( COUNT( 18 ) ) * - 95 * + COUNT( * ) FROM tab2 AS cor0
----
-855

skipif mysql # not compatible
query I rowsort label-7502
SELECT DISTINCT + ( COUNT ( 18 ) ) * - 95 * + COUNT ( * ) FROM tab2 AS cor0
----
-855

onlyif mysql # DIV for integer division: 
query I rowsort label-7503
SELECT DISTINCT 3 DIV + col0 col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7503
SELECT DISTINCT 3 / + col0 col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT ALL + + COUNT( * ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL + + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9

query I rowsort
SELECT ( + - 92 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-92
-92
-92

query I rowsort
SELECT + ( - 12 ) * + col1 AS col2 FROM tab2
----
-612
-804
-924

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT ( NULL IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col0, + col1 col1 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT + MAX( DISTINCT 70 ) FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-7509
SELECT + MAX ( DISTINCT 70 ) FROM tab0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT + MIN( + col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7510
SELECT + MIN ( + col1 ) AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7511
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) <= - + col1
----

skipif mysql # not compatible
query III rowsort label-7511
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) <= - + col1
----

query I rowsort
SELECT ALL + col1 + - 64 + col1 AS col1 FROM tab1 cor0
----
-36
-54
30

query I rowsort
SELECT - col1 * - + 76 FROM tab0
----
1596
6156
76

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) <> - 58
----

query I rowsort
SELECT ALL - - col0 FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT DISTINCT - ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7516
SELECT DISTINCT - ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
3

query I rowsort
SELECT DISTINCT - + 64 FROM tab1 AS cor0 WHERE NOT col2 * - col0 NOT BETWEEN + 40 + + - 74 AND NULL
----

query I rowsort
SELECT - col0 + + 33 FROM tab1 AS cor0
----
-18
-52
-58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT + + 28 + + col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7520
SELECT ALL 16 col2, COUNT( * ) FROM tab1 AS cor0
----
16
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7520
SELECT ALL 16 col2, COUNT ( * ) FROM tab1 AS cor0
----
16
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7521
SELECT + 29 AS col0 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7521
SELECT + 29 AS col0 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7522
SELECT 47 DIV - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7522
SELECT 47 / - col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT ALL COUNT( * ) FROM tab0 WHERE NULL IN ( + + 49 * - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL COUNT ( * ) FROM tab0 WHERE NULL IN ( + + 49 * - col1 )
----
0

query I rowsort
SELECT DISTINCT col0 + - + col1 + col2 AS col1 FROM tab0
----
-19
195
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT ALL COUNT( col2 ) * - COUNT( * ) + - - 79 AS col2 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL COUNT ( col2 ) * - COUNT ( * ) + - - 79 AS col2 FROM tab2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT DISTINCT - SUM( - + ( - 50 ) ) FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-7526
SELECT DISTINCT - SUM ( - + ( - 50 ) ) FROM tab0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT ALL + COUNT( * ) FROM tab1 WHERE 49 <> - + col1
----
3

skipif mysql # not compatible
query I rowsort label-7527
SELECT ALL + COUNT ( * ) FROM tab1 WHERE 49 <> - + col1
----
3

query III rowsort
SELECT - col1 AS col1, + 18 * + + col0, + col2 + + ( col1 ) / + - 80 FROM tab0 AS cor0 WHERE - 96 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7529
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - COUNT( * ) / + AVG ( ALL - 79 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7529
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) / + AVG ( ALL - 79 ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 + + 7 + 51 + + col2 FROM tab1 AS cor0
----
122
168
173

query I rowsort
SELECT ALL 34 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7532
SELECT ALL ( - + CAST( + + 45 AS SIGNED ) ) FROM tab2
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-7532
SELECT ALL ( - + CAST ( + + 45 AS INTEGER ) ) FROM tab2
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-7533
SELECT + 89, COUNT( * ) AS col0 FROM tab0
----
89
3

skipif mysql # not compatible
query II rowsort label-7533
SELECT + 89, COUNT ( * ) AS col0 FROM tab0
----
89
3

query I rowsort
SELECT ALL + 3 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT ALL + col2 * + + col1 * - col2 AS col0 FROM tab0 AS cor0 WHERE col1 - - - col1 IS NOT NULL
----
-178929
-2100
-9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 46, - col2 col0 FROM tab1 AS cor0
----
46
-59
46
-68
46
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-7537
SELECT DISTINCT col0 DIV - + col1 AS col2 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7537
SELECT DISTINCT col0 / - + col1 AS col2 FROM tab2 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE col1 + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7538
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col1 + col1 IS NULL
----
0

query II rowsort
SELECT col0 * - ( 36 ) AS col2, - col1 AS col2 FROM tab1 AS cor0
----
-1836
-14
-3060
-5
-3276
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT + MAX( 99 ) AS col1 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7540
SELECT + MAX ( 99 ) AS col1 FROM tab2 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT DISTINCT COUNT( * ) * 76 col1 FROM tab1 AS cor0
----
228

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7541
SELECT DISTINCT COUNT ( * ) * 76 col1 FROM tab1 AS cor0
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT DISTINCT + SUM( ALL - + 77 ) AS col0 FROM tab0
----
-231

skipif mysql # not compatible
query I rowsort label-7542
SELECT DISTINCT + SUM ( ALL - + 77 ) AS col0 FROM tab0
----
-231

query I rowsort
SELECT ( + + col1 ) * - + 73 AS col1 FROM tab0
----
-1533
-5913
-73

query II rowsort
SELECT col1 * 43 AS col1, col1 FROM tab2
----
2193
51
2881
67
3311
77

onlyif mysql # aggregate syntax: 
query II rowsort label-7545
SELECT ALL COUNT( * ) * - 52 AS col1, 97 FROM tab0
----
-156
97

skipif mysql # not compatible
query II rowsort label-7545
SELECT ALL COUNT ( * ) * - 52 AS col1, 97 FROM tab0
----
-156
97

query I rowsort
SELECT DISTINCT col1 * col1 * + + ( + col2 ) + + + col2 + 45 * + col1 FROM tab2 AS cor0
----
240665
263435
62141

query I rowsort
SELECT ALL - + 24 * + 64 - + - col2 * + col2 + + + col1 AS col1 FROM tab2 AS cor0
----
-956
141
1895

onlyif mysql # DIV for integer division: 
query I rowsort label-7548
SELECT 99 * + ( - col1 ) + + + col1 + col1 DIV + + col0 FROM tab1
----
-1372
-4606
-490

skipif mysql # not compatible
query I rowsort label-7548
SELECT 99 * + ( - col1 ) + + + col1 + col1 / + + col0 FROM tab1
----
-1372
-4606
-490

query I rowsort
SELECT ALL col0 * ( + 38 ) FROM tab1
----
1938
3230
3458

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7550
SELECT - + CAST( NULL AS SIGNED ), - col1 AS col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-7550
SELECT - + CAST ( NULL AS INTEGER ), - col1 AS col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col2 FROM tab2 AS cor0 WHERE NOT - col1 + col0 + + col0 NOT BETWEEN NULL AND + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col0, 2 FROM tab2 AS cor0
----
23
2
40
2
58
2

query I rowsort
SELECT DISTINCT + 37 + - - col0 AS col1 FROM tab1 AS cor0
----
122
128
88

query I rowsort
SELECT + 27 AS col1 FROM tab2 AS cor0 WHERE - col1 * - + ( 81 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 67 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7557
SELECT DISTINCT - col1 - - 58 - + 6 * - + CAST( NULL AS SIGNED ) - + col1 / + 32, col0 - - col2 AS col0 FROM tab0
----
NULL
196
NULL
62
NULL
97

skipif mysql # not compatible
query II rowsort label-7557
SELECT DISTINCT - col1 - - 58 - + 6 * - + CAST ( NULL AS INTEGER ) - + col1 / + 32, col0 - - col2 AS col0 FROM tab0
----
NULL
196
NULL
62
NULL
97

query III rowsort
SELECT * FROM tab0 WHERE - 29 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT ALL 61 + - COUNT( * ) AS col2 FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-7559
SELECT ALL 61 + - COUNT ( * ) AS col2 FROM tab1
----
58

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE + + col2 / - col1 BETWEEN - col0 * + 30 + + col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + 71 NOT BETWEEN - + col2 AND + 7
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 55 + col0 + + 93 FROM tab0
----
125
135
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT ALL - COUNT( * ) - ( + + COUNT( * ) ) AS col0 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL - COUNT ( * ) - ( + + COUNT ( * ) ) AS col0 FROM tab2
----
-6

query I rowsort
SELECT - + 71 + + col1 FROM tab1 AS cor0
----
-24
-57
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7565
SELECT ALL - CAST( NULL AS SIGNED ) - 89 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL - CAST ( NULL AS INTEGER ) - 89 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7566
SELECT - CAST( - + ( - col1 ) AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7566
SELECT - CAST ( - + ( - col1 ) AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT - + COUNT( * ) * MIN( - 3 ) col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7567
SELECT - + COUNT ( * ) * MIN ( - 3 ) col0 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT ALL 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-7568
SELECT ALL COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 NOT BETWEEN - 32 AND + 85
----
51
14
96
85
5
59

onlyif mysql # aggregate syntax: 
query II rowsort label-7570
SELECT + COUNT( col0 ) AS col1, ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-7570
SELECT + COUNT ( col0 ) AS col1, ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
3
-3

query I rowsort
SELECT - 27 * - - col1 AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1269
-135
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT ALL - MAX( ALL - col2 ) col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7572
SELECT ALL - MAX ( ALL - col2 ) col2 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT ALL MAX( - 54 ) AS col1 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-7573
SELECT ALL MAX ( - 54 ) AS col1 FROM tab0 AS cor0
----
-54

query I rowsort
SELECT DISTINCT + + ( - - col0 ) * - 99 FROM tab0 AS cor0
----
-1485
-8613
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, 6 + - col2 col2 FROM tab2
----
46
-17
64
-34
75
-52

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 * + - col1 - col1 >= 48
----

query I rowsort
SELECT 97 + col0 FROM tab0
----
112
184
194

query I rowsort
SELECT DISTINCT + 71 + - col2 + col1 AS col1 FROM tab0 WHERE NULL NOT BETWEEN + - col2 AND 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT DISTINCT - 66 * + COUNT( * ) AS col2 FROM tab2
----
-198

skipif mysql # not compatible
query I rowsort label-7579
SELECT DISTINCT - 66 * + COUNT ( * ) AS col2 FROM tab2
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT DISTINCT 0 + + - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7580
SELECT DISTINCT 0 + + - COUNT ( * ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7581
SELECT ALL - CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7581
SELECT ALL - CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT 38 * + COUNT( * ) FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-7582
SELECT 38 * + COUNT ( * ) FROM tab2
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-7583
SELECT 78 col1, - COUNT( * ) * COUNT( * ) AS col2 FROM tab1
----
78
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7583
SELECT 78 col1, - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1
----
78
-9

query I rowsort
SELECT 45 * - col2 * + - col1 * - 63 AS col0 FROM tab1
----
-3810240
-836325
-9060660

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + 74
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7586
SELECT col2 DIV ( - - col0 ) col2, 13 - - col2 + + col0 + + + col1 FROM tab2
----
0
133
0
194
0
213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7586
SELECT col2 / ( - - col0 ) col2, 13 - - col2 + + col0 + + + col1 FROM tab2
----
0
133
0
194
0
213

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7587
SELECT DISTINCT - MAX( + + ( + + 44 ) ) DIV + - 8 AS col1 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7587
SELECT DISTINCT - MAX ( + + ( + + 44 ) ) / + - 8 AS col1 FROM tab2 AS cor0
----
5

query I rowsort
SELECT ALL + + 42 + - col2 AS col1 FROM tab2 AS cor0
----
-16
19
2

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT + - 98 / - - 84 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 98 + col1 AS col1 FROM tab1
----
103
112
145

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE + 5 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7592
SELECT - ( - - CAST( col2 AS SIGNED ) ) FROM tab1 WHERE ( NOT NULL BETWEEN NULL AND ( NULL ) )
----

skipif mysql # not compatible
query I rowsort label-7592
SELECT - ( - - CAST ( col2 AS INTEGER ) ) FROM tab1 WHERE ( NOT NULL BETWEEN NULL AND ( NULL ) )
----

query I rowsort
SELECT + 45 * + - col2 AS col1 FROM tab2 AS cor0 WHERE 88 - - 93 IS NOT NULL
----
-1035
-1800
-2610

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 70 + - + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + + 59 + 90 FROM tab2 AS cor0
----
172
189
207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7596
SELECT col1 * + - col2 / col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7596
SELECT col1 * + - col2 / col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - - col1 + + col0 * - 72 col1 FROM tab0
----
-1080
-6264
-6984

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7598
SELECT ALL - 33 - + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7598
SELECT ALL - 33 - + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 - + ( + 3 ) AS col0 FROM tab1
----
11
2
44

onlyif mysql # DIV for integer division: 
query I rowsort label-7600
SELECT DISTINCT col2 * - + col2 DIV - + 1 + - - 1 col1 FROM tab1
----
3482
4625
9217

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7600
SELECT DISTINCT col2 * - + col2 / - + 1 + - - 1 col1 FROM tab1
----
3482
4625
9217

onlyif mysql # DIV for integer division: 
query I rowsort label-7601
SELECT ALL + col2 DIV + 64 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7601
SELECT ALL + col2 / + 64 AS col1 FROM tab0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7602
SELECT ALL ( + - ( - col0 ) ) DIV + ( - col0 ) FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7602
SELECT ALL ( + - ( - col0 ) ) / + ( - col0 ) FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab2 AS cor0 WHERE - ( + - 96 ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 81 col0 FROM tab0 cor0
----
-81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> - col2 + col0 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT - - MIN( DISTINCT 83 ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-7606
SELECT - - MIN ( DISTINCT 83 ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
249

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT + 6 IS NULL
----
-10
-47
-99

query I rowsort
SELECT + + col0 * + - 92 AS col2 FROM tab1 AS cor0
----
-4692
-7820
-8372

onlyif mysql # DIV for integer division: 
query I rowsort label-7609
SELECT + 67 DIV + col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7609
SELECT + 67 / + col1 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT + ( 76 ) FROM tab0
----
76

query III rowsort
SELECT ALL - col1 AS col0, col1 AS col2, + - col0 FROM tab0 AS cor0
----
9 values hashing to 35b9b8ab4b291781afa3715dbf1c1395

query II rowsort
SELECT - ( + col1 ), col1 * + col2 AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT 32 / - 1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7613
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 32 / - 1 IS NULL
----
-3

query I rowsort
SELECT - ( 47 ) AS col2 FROM tab1 AS cor0
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT DISTINCT - COUNT( + + col0 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7615
SELECT DISTINCT - COUNT ( + + col0 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT MAX( - + ( + - 39 ) ) AS col2 FROM tab2 cor0
----
39

skipif mysql # not compatible
query I rowsort label-7616
SELECT MAX ( - + ( + - 39 ) ) AS col2 FROM tab2 cor0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7617
SELECT DISTINCT CAST( + 83 AS SIGNED ) FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-7617
SELECT DISTINCT CAST ( + 83 AS INTEGER ) FROM tab0
----
83

query I rowsort
SELECT ALL - col0 + + 12 * - col1 AS col2 FROM tab2
----
-658
-879
-988

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT + MIN( - col0 ) FROM tab2 WHERE NULL IS NULL
----
-75

skipif mysql # not compatible
query I rowsort label-7619
SELECT + MIN ( - col0 ) FROM tab2 WHERE NULL IS NULL
----
-75

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL NOT BETWEEN NULL AND + col2 * + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 29 ) col2 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * col0 * + + col2 > + col2 + + 50
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col1 * - col0 AS col1 FROM tab0 cor0 WHERE col1 IS NOT NULL
----
-1215
-1827
-97

query I rowsort
SELECT - - col0 + - + col0 + + + col1 AS col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT DISTINCT + SUM( DISTINCT + + col1 ) FROM tab1 AS cor0 WHERE NULL <= col2 * + col1 * + - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7625
SELECT DISTINCT + SUM ( DISTINCT + + col1 ) FROM tab1 AS cor0 WHERE NULL <= col2 * + col1 * + - col0
----
NULL

query I rowsort
SELECT DISTINCT + col1 + - col1 * + col2 FROM tab1
----
-1330
-290
-3149

onlyif mysql # DIV for integer division: 
query I rowsort label-7627
SELECT - col1 DIV ( + col1 ) FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7627
SELECT - col1 / ( + col1 ) FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT ALL + COUNT( * ) - - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7628
SELECT ALL + COUNT ( * ) - - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

query I rowsort
SELECT - - 77 - - col0 AS col0 FROM tab0 AS cor0
----
164
174
92

query I rowsort
SELECT DISTINCT + col0 - 35 + - col1 + + col0 FROM tab2 AS cor0
----
16
48
6

query II rowsort
SELECT ALL - col1 AS col1, - col2 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT ALL + + SUM( + col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7633
SELECT ALL + + SUM ( + col1 ) FROM tab1 AS cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 - + col1 col2 FROM tab1 AS cor0
----
51
84
93

query II rowsort
SELECT - 99 - - col2 + - 26, col0 AS col1 FROM tab1 AS cor0
----
-29
51
-57
91
-66
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7636
SELECT DISTINCT + col2 * + + col0 * - CAST( 17 AS SIGNED ) FROM tab1
----
-105196
-83232
-85255

skipif mysql # not compatible
query I rowsort label-7636
SELECT DISTINCT + col2 * + + col0 * - CAST ( 17 AS INTEGER ) FROM tab1
----
-105196
-83232
-85255

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 47 <= + 60
----

query I rowsort
SELECT ALL + col1 * - 61 AS col0 FROM tab0
----
-1281
-4941
-61

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - - 5 ) / col0 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7640
SELECT + + ( - COUNT( * ) ) FROM tab0 WHERE NOT + col0 IN ( + CAST( + - col0 AS SIGNED ), col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-7640
SELECT + + ( - COUNT ( * ) ) FROM tab0 WHERE NOT + col0 IN ( + CAST ( + - col0 AS INTEGER ), col2 )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7641
SELECT ALL + 10 DIV - + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL + 10 / - + col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7642
SELECT DISTINCT + CAST( - - 83 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-7642
SELECT DISTINCT + CAST ( - - 83 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT DISTINCT - MAX( ALL 61 ) FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-7643
SELECT DISTINCT - MAX ( ALL 61 ) FROM tab0 AS cor0
----
-61

query I rowsort
SELECT 89 AS col1 FROM tab1 AS cor0 WHERE NOT col1 * - 15 >= - col0
----
89
89

query I rowsort
SELECT + col1 * 57 FROM tab2
----
2907
3819
4389

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 77 col0 FROM tab0 AS cor0
----
-77
-77
-77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 85 * + - col1 * - 94 * + + 97 + col1 + col1 IS NOT NULL
----

query I rowsort
SELECT ALL 42 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
42
42
42

query I rowsort
SELECT - 7 + - + col1 FROM tab0
----
-28
-8
-88

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 23 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col2 * col1 + col2 * + ( - 73 ) col2 FROM tab1 WHERE NULL NOT BETWEEN - ( + + col0 ) AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7652
SELECT - col1 * - ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7652
SELECT - col1 * - ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT DISTINCT + MAX( ALL - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-7653
SELECT DISTINCT + MAX ( ALL - col1 ) FROM tab1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7654
SELECT DISTINCT - col0, CAST( col0 AS SIGNED ) AS col2 FROM tab0
----
-15
15
-87
87
-97
97

skipif mysql # not compatible
query II rowsort label-7654
SELECT DISTINCT - col0, CAST ( col0 AS INTEGER ) AS col2 FROM tab0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT + + 23 * + + ( + col2 ) AS col1 FROM tab1 AS cor0
----
1357
1564
2208

query II rowsort
SELECT ALL - col1 AS col1, + col0 * + col1 FROM tab0 AS cor0
----
-1
97
-21
1827
-81
1215

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 + + col2 >= NULL
----

query I rowsort
SELECT ALL - ( + - 83 ) FROM tab1 AS cor0
----
83
83
83

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NULL <> - 82
----

query I rowsort
SELECT + 31 - + - col0 FROM tab0 AS cor0
----
118
128
46

query III rowsort
SELECT * FROM tab2 WHERE - - 39 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT col1 + - - col1 AS col1, + 31 AS col2 FROM tab1
----
10
31
28
31
94
31

query III rowsort
SELECT * FROM tab2 WHERE + 9 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7664
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7665
SELECT ALL - 48 + - - col0 DIV + ( + col2 ) FROM tab2
----
-46
-47
-47

skipif mysql # not compatible
query I rowsort label-7665
SELECT ALL - 48 + - - col0 / + ( + col2 ) FROM tab2
----
-46
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT COUNT( * ) + - COUNT( * ) AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7666
SELECT COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT + + MIN( + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7667
SELECT + + MIN ( + col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7668
SELECT DISTINCT 93 + + 70, + col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-7668
SELECT DISTINCT 93 + + 70, + col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7669
SELECT ALL col2 * - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7669
SELECT ALL col2 * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 63 * - + col1 FROM tab0 AS cor0
----
1323
5103
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT + - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + ( + col1 ) NOT BETWEEN NULL AND + + col1 + - col2
----
-3

skipif mysql # not compatible
query I rowsort label-7671
SELECT + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + ( + col1 ) NOT BETWEEN NULL AND + + col1 + - col2
----
-3

query II rowsort
SELECT ALL + col0 + - col1, col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
37
14
44
47
80
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT ALL COUNT( * ) * - SUM( - col2 ) AS col0 FROM tab1 AS cor0
----
669

skipif mysql # not compatible
query I rowsort label-7673
SELECT ALL COUNT ( * ) * - SUM ( - col2 ) AS col0 FROM tab1 AS cor0
----
669

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7674
SELECT + CAST( NULL AS SIGNED ) * - + 43 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7674
SELECT + CAST ( NULL AS INTEGER ) * - + 43 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7675
SELECT DISTINCT - col1 / 43 + - - ( + col2 ) / + + ( + 7 ) - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7675
SELECT DISTINCT - col1 / 43 + - - ( + col2 ) / + + ( + 7 ) - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 27 + 3 col1 FROM tab0 cor0
----
-2346
-2616
-402

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7677
SELECT ALL - + 47 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7677
SELECT ALL - + 47 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT SUM( - 18 ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-7678
SELECT SUM ( - 18 ) FROM tab2
----
-54

query I rowsort
SELECT - 78 * - + col0 * + col1 FROM tab2
----
182988
384384
391950

onlyif mysql # DIV for integer division: 
query I rowsort label-7680
SELECT DISTINCT col2 DIV - 48 AS col2 FROM tab1
----
-1
-2

skipif mysql # not compatible
query I rowsort label-7680
SELECT DISTINCT col2 / - 48 AS col2 FROM tab1
----
-1
-2

query I rowsort
SELECT ALL - 10 * - col2 FROM tab2
----
230
400
580

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT DISTINCT SUM( ALL col1 ) AS col2 FROM tab2 WHERE NULL > + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7682
SELECT DISTINCT SUM ( ALL col1 ) AS col2 FROM tab2 WHERE NULL > + col1
----
NULL

query I rowsort
SELECT ALL ( - 56 ) AS col1 FROM tab1 cor0
----
-56
-56
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7684
SELECT CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7684
SELECT CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 64 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab0 WHERE NOT ( col0 ) IS NULL
----
1
21
81

query III rowsort
SELECT ALL * FROM tab0 WHERE + 13 = + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7688
SELECT DISTINCT * FROM tab2 WHERE CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7688
SELECT DISTINCT * FROM tab2 WHERE CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7689
SELECT ALL col2 DIV + col2 + - col0 FROM tab2 WHERE NULL IS NULL
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-7689
SELECT ALL col2 / + col2 + - col0 FROM tab2 WHERE NULL IS NULL
----
-45
-63
-74

query I rowsort
SELECT ALL col1 * ( - 65 ) FROM tab0
----
-1365
-5265
-65

query I rowsort
SELECT ALL col1 - - 87 AS col1 FROM tab2
----
138
154
164

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT - COUNT( 14 ) + 4 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7692
SELECT - COUNT ( 14 ) + 4 FROM tab2
----
1

query I rowsort
SELECT ALL - 87 - col0 FROM tab1
----
-138
-172
-178

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 90 IN ( + 88 / 52 + - 91 )
----

query I rowsort
SELECT DISTINCT - ( col2 ) + 0 AS col2 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT 69 + - col1 FROM tab2
----
-8
18
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7697
SELECT 94 * CAST( NULL AS DECIMAL ) + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7697
SELECT 94 * CAST ( NULL AS REAL ) + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 66 + col2 ) IS NOT NULL
----

query I rowsort
SELECT + ( col2 ) FROM tab1 WHERE + 17 NOT BETWEEN ( NULL ) AND ( - col0 )
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) BETWEEN 35 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7701
SELECT ( + CAST( NULL AS SIGNED ) ) + COUNT( * ) FROM tab2 WHERE NOT col1 * + col0 - col1 BETWEEN 32 * col2 AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7701
SELECT ( + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) FROM tab2 WHERE NOT col1 * + col0 - col1 BETWEEN 32 * col2 AND ( NULL )
----
NULL

query I rowsort
SELECT 45 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT MAX( - 56 ) FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-7703
SELECT MAX ( - 56 ) FROM tab0
----
-56

query III rowsort
SELECT * FROM tab1 WHERE + col1 * 33 + ( col2 ) > 38 * col1
----
51
14
96
85
5
59

query I rowsort
SELECT ALL + 76 * - col0 AS col0 FROM tab2
----
-3496
-4864
-5700

onlyif mysql # DIV for integer division: 
query I rowsort label-7706
SELECT + col1 + + col0 DIV col1 AS col1 FROM tab1
----
17
22
48

skipif mysql # not compatible
query I rowsort label-7706
SELECT + col1 + + col0 / col1 AS col1 FROM tab1
----
17
22
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + ( + 37 ) ) * - 65 col1 FROM tab2
----
-2405
-2405
-2405

query I rowsort
SELECT DISTINCT - 2 * + 99 AS col1 FROM tab1
----
-198

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < + 91
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 + + col0 col0 FROM tab2
----
-2555
-4414
-5865

query I rowsort
SELECT ALL 75 AS col2 FROM tab2 WHERE - col2 BETWEEN + col1 AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 * + ( + col0 ) col0 FROM tab1
----
1360
1456
816

query I rowsort
SELECT ALL 14 * 11 AS col0 FROM tab2
----
154
154
154

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 NOT IN ( + 52 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7715
SELECT + 38 * col1 FROM tab0 AS cor0 WHERE CAST( - 69 AS SIGNED ) BETWEEN + col0 + col1 AND + col0
----

skipif mysql # not compatible
query I rowsort label-7715
SELECT + 38 * col1 FROM tab0 AS cor0 WHERE CAST ( - 69 AS INTEGER ) BETWEEN + col0 + col1 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT ALL COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-7716
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2
----
9

query I rowsort
SELECT DISTINCT col0 * 65 - - 20 * 61 FROM tab1
----
4535
6745
7135

query I rowsort
SELECT ALL - 46 AS col0 FROM tab1 WHERE ( - 27 ) IS NOT NULL
----
-46
-46
-46

query I rowsort
SELECT DISTINCT - 37 + col1 AS col2 FROM tab0
----
-16
-36
44

query I rowsort
SELECT + + 37 * + col2 FROM tab1 AS cor0
----
2183
2516
3552

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 37 NOT BETWEEN ( + col2 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7722
SELECT DISTINCT - ( COUNT( * ) ) AS col0 FROM tab2 cor0 WHERE + CAST( NULL AS DECIMAL ) + - 94 >= - 96 * col1
----
0

skipif mysql # not compatible
query I rowsort label-7722
SELECT DISTINCT - ( COUNT ( * ) ) AS col0 FROM tab2 cor0 WHERE + CAST ( NULL AS REAL ) + - 94 >= - 96 * col1
----
0

query I rowsort
SELECT DISTINCT + - 53 * - col0 AS col1 FROM tab1 AS cor0
----
2703
4505
4823

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7724
SELECT ALL CAST( col1 AS SIGNED ) * - col2 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-7724
SELECT ALL CAST ( col1 AS INTEGER ) * - col2 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT ALL - COUNT( * ) * - 53 FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL - COUNT ( * ) * - 53 FROM tab0 AS cor0
----
159

query I rowsort
SELECT DISTINCT - 63 * - col2 FROM tab0 AS cor0
----
2961
6237
630

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT + COUNT( * ) * 19 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-7727
SELECT + COUNT ( * ) * 19 FROM tab2 AS cor0
----
57

query I rowsort
SELECT ALL + + col1 * - 50 FROM tab0 AS cor0
----
-1050
-4050
-50

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( 78 ) + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * col1 * - col0 AS col1 FROM tab1
----
-36125
-36414
-389207

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 67 * col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7732
SELECT COUNT( DISTINCT - - col2 ) DIV ( COUNT( * ) ) col2 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7732
SELECT COUNT ( DISTINCT - - col2 ) / ( COUNT ( * ) ) col2 FROM tab2
----
1

query I rowsort
SELECT ALL col1 * + 95 * col0 FROM tab0
----
115425
173565
9215

query I rowsort
SELECT - 61 * - col2 FROM tab0
----
2867
6039
610

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 BETWEEN + col2 AND ( + col1 )
----
75
67
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7736
SELECT - 96 DIV + col2 AS col2 FROM tab2 cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-7736
SELECT - 96 / + col2 AS col2 FROM tab2 cor0
----
-1
-2
-4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7737
SELECT + MAX( DISTINCT - - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7737
SELECT + MAX ( DISTINCT - - CAST ( NULL AS REAL ) ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT MAX( - 77 ) col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7738
SELECT MAX ( - 77 ) col1 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE + col0 / col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7739
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE + col0 / col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT - 29 * ( col0 ) + + 32 FROM tab1 AS cor0
----
-1447
-2433
-2607

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 * - col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7742
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > + 94 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-7742
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > + 94 * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 65 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
65

query I rowsort
SELECT ALL - 59 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT ALL + - COUNT( * ) * 22 col2 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7745
SELECT ALL + - COUNT ( * ) * 22 col2 FROM tab2 AS cor0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-7746
SELECT ALL col0 DIV - 72 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7746
SELECT ALL col0 / - 72 FROM tab0 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT + + ( - + MIN( + 0 ) ) + - COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7747
SELECT + + ( - + MIN ( + 0 ) ) + - COUNT ( * ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + + 50 AS col1 FROM tab1 AS cor0
----
50

query I rowsort
SELECT ALL col0 * 38 AS col0 FROM tab2 AS cor0 WHERE col0 > NULL
----

query I rowsort
SELECT + + 60 + + col0 - col1 FROM tab0 cor0
----
-6
126
156

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 50 IN ( col2 + 39 * + 81 )
----

query I rowsort
SELECT + col2 - - col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( 73 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7754
SELECT DISTINCT - COUNT( * ) + + + 44 DIV 41 col0 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7754
SELECT DISTINCT - COUNT ( * ) + + + 44 / 41 col0 FROM tab0 AS cor0
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 77 + 97 col2, - col0 FROM tab0
----
174
-15
174
-87
174
-97

query III rowsort
SELECT * FROM tab0 WHERE + col0 * - 82 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7757
SELECT DISTINCT AVG ( ( CAST( NULL AS SIGNED ) ) ) + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7757
SELECT DISTINCT AVG ( ( CAST ( NULL AS INTEGER ) ) ) + COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7758
SELECT ALL 57 DIV + 59 + COUNT( * ) AS col0 FROM tab1 WHERE NULL >= ( + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7758
SELECT ALL 57 / + 59 + COUNT ( * ) AS col0 FROM tab1 WHERE NULL >= ( + + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT DISTINCT - MIN( DISTINCT + col2 ) + + COUNT( * ) FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT - MIN ( DISTINCT + col2 ) + + COUNT ( * ) FROM tab1
----
-56

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 91 NOT IN ( + col0 )
----

query I rowsort
SELECT DISTINCT col0 * - col0 + + - col1 AS col2 FROM tab1
----
-2615
-7230
-8328

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT ( + + COUNT( + 60 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7762
SELECT ( + + COUNT ( + 60 ) ) FROM tab1
----
3

query I rowsort
SELECT ALL + col0 * - col2 * + + col0 - col0 FROM tab0
----
-10590
-75777
-931588

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT 12 * COUNT( * ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-7764
SELECT 12 * COUNT ( * ) FROM tab2
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7765
SELECT ALL + 81 + - + col0 + + - col2 * - + col0 * + col2 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL + 81 + - + col0 + + - col2 * - + col0 * + col2 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - - 36
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 76 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT MAX( DISTINCT - col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-7768
SELECT MAX ( DISTINCT - col2 ) FROM tab0
----
-10

query II rowsort
SELECT 1 AS col2, + 40 AS col0 FROM tab1
----
1
40
1
40
1
40

query I rowsort
SELECT DISTINCT 32 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <= ( + ( - 31 ) )
----

query I rowsort
SELECT ALL + col0 * + - 91 FROM tab0 AS cor0
----
-1365
-7917
-8827

query I rowsort
SELECT + col0 + - col1 * 93 FROM tab1 AS cor0 WHERE NOT 5 / - col1 NOT IN ( ( - + col1 ) * - 39 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7773
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7773
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 3 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7776
SELECT + CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7776
SELECT + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT + COUNT( * ) * 63 FROM tab2 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-7777
SELECT + COUNT ( * ) * 63 FROM tab2 AS cor0
----
189

query I rowsort
SELECT col1 FROM tab1 WHERE NOT ( ( ( NOT ( NULL ) IS NULL ) ) )
----
14
47
5

query I rowsort
SELECT DISTINCT - ( + ( - col2 ) ) FROM tab1
----
59
68
96

query I rowsort
SELECT col1 * - 6 FROM tab1
----
-282
-30
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT COUNT( * ) * - + 10 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-7781
SELECT COUNT ( * ) * - + 10 FROM tab2
----
-30

query I rowsort
SELECT ALL 33 * 97 FROM tab0
----
3201
3201
3201

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( NULL ) NOT IN ( + col0 ) )
----

query II rowsort
SELECT DISTINCT + 26, + 64 + + col2 AS col1 FROM tab0
----
26
111
26
163
26
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT ALL COUNT( + 16 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL COUNT ( + 16 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 < NULL OR + col0 / - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7787
SELECT - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7787
SELECT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7788
SELECT - 94 DIV 10 + - col0 + col2 AS col0 FROM tab2 AS cor0
----
-26
-32
-33

skipif mysql # not compatible
query I rowsort label-7788
SELECT - 94 / 10 + - col0 + col2 AS col0 FROM tab2 AS cor0
----
-26
-32
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-7789
SELECT + col2 DIV - col2 FROM tab2 AS cor0 WHERE NOT - col0 DIV + col0 IS NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7789
SELECT + col2 / - col2 FROM tab2 AS cor0 WHERE NOT - col0 / + col0 IS NULL
----
-1
-1
-1

query I rowsort
SELECT - ( col2 ) + 91 FROM tab0
----
-8
44
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7791
SELECT DISTINCT * FROM tab2 WHERE - 70 * + 57 * + CAST( NULL AS SIGNED ) + + col0 * col1 = NULL
----

skipif mysql # not compatible
query III rowsort label-7791
SELECT DISTINCT * FROM tab2 WHERE - 70 * + 57 * + CAST ( NULL AS INTEGER ) + + col0 * col1 = NULL
----

query II rowsort
SELECT ALL col0 * + col2 AS col0, - col0 * 50 FROM tab0
----
705
-750
870
-4350
9603
-4850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7793
SELECT ALL - CAST( NULL AS SIGNED ) * 58 + + 1 AS col2 FROM tab2 WHERE NOT + ( ( - col2 ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL - CAST ( NULL AS INTEGER ) * 58 + + 1 AS col2 FROM tab2 WHERE NOT + ( ( - col2 ) ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 87 * + - 96 * - col1 + - col0 col2 FROM tab1 AS cor0
----
-116979
-392635
-41845

query I rowsort
SELECT + col0 * + col0 * ( 98 ) AS col1 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * - col0 + 32, 31 col2 FROM tab2 AS cor0
----
-2084
31
-4064
31
-5593
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT - COUNT( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7797
SELECT - COUNT ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7798
SELECT DISTINCT CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7798
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 33 + + col2 FROM tab1
----
26
35
63

onlyif mysql # DIV for integer division: 
query I rowsort label-7800
SELECT DISTINCT col2 DIV col2 + + 9 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-7800
SELECT DISTINCT col2 / col2 + + 9 FROM tab0
----
10

query I rowsort
SELECT ALL 77 + col1 AS col0 FROM tab2
----
128
144
154

query III rowsort
SELECT * FROM tab1 WHERE + - 18 NOT BETWEEN NULL AND - 82 - 49
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 21 * 12 * + 87 + - + 77 FROM tab1
----
21847
21847
21847

query I rowsort
SELECT col0 + + col1 * + - col2 AS col1 FROM tab0
----
-123
-2
-3792

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT - - MIN( - col0 ) * COUNT( 75 ) AS col0 FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-7805
SELECT - - MIN ( - col0 ) * COUNT ( 75 ) AS col0 FROM tab2 AS cor0
----
-225

query I rowsort
SELECT - - 33 AS col0 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT ALL - - col1 * + - col2 FROM tab0 AS cor0
----
-210
-3807
-99

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 43 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT - + 99 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT 55 * + - col0 FROM tab0 AS cor0
----
-4785
-5335
-825

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7811
SELECT ALL * FROM tab0 WHERE NOT + + col0 * - + 18 + 78 - CAST( + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7811
SELECT ALL * FROM tab0 WHERE NOT + + col0 * - + 18 + 78 - CAST ( + col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7812
SELECT ALL CAST( 51 AS SIGNED ) * - col0 * - 86 * - col1 FROM tab2
----
-10289556
-21614208
-22039650

skipif mysql # not compatible
query I rowsort label-7812
SELECT ALL CAST ( 51 AS INTEGER ) * - col0 * - 86 * - col1 FROM tab2
----
-10289556
-21614208
-22039650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7813
SELECT DISTINCT + - ( CAST( NULL AS SIGNED ) ) + + col0 AS col2 FROM tab2 WHERE NOT col0 * + col2 * + col1 / - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7813
SELECT DISTINCT + - ( CAST ( NULL AS INTEGER ) ) + + col0 AS col2 FROM tab2 WHERE NOT col0 * + col2 * + col1 / - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( + 71 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7815
SELECT - col0 DIV ( 77 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7815
SELECT - col0 / ( 77 ) FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7816
SELECT - 96 / - + 48 * ( + + CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7816
SELECT - 96 / - + 48 * ( + + CAST ( NULL AS REAL ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7817
SELECT DISTINCT - CAST( col1 AS SIGNED ) * col0 - + col1 FROM tab2 cor0 WHERE NOT - 58 NOT BETWEEN col0 AND 55 * - col2 + CAST( ( - col2 ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7817
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * col0 - + col1 FROM tab2 cor0 WHERE NOT - 58 NOT BETWEEN col0 AND 55 * - col2 + CAST ( ( - col2 ) AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > ( - col1 )
----

query I rowsort
SELECT DISTINCT col0 + - + 69 * + col0 FROM tab1
----
-3468
-5780
-6188

query I rowsort
SELECT col2 + + + 45 FROM tab0
----
144
55
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 43 + - + col1 * - col1 col2 FROM tab2 cor0
----
1264
3177
623

query I rowsort
SELECT - 69 * 36 + - col1 FROM tab2 AS cor0
----
-2535
-2551
-2561

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE - col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE - col0 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( 99 ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7824
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( 99 ) = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7825
SELECT ALL - + col0 + - CAST( - 37 AS SIGNED ) FROM tab2 cor0
----
-27
-38
-9

skipif mysql # not compatible
query I rowsort label-7825
SELECT ALL - + col0 + - CAST ( - 37 AS INTEGER ) FROM tab2 cor0
----
-27
-38
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7826
SELECT + 82 DIV - + col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7826
SELECT + 82 / - + col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 26 = + ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7828
SELECT DISTINCT + 81 + ( + 77 ) + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7828
SELECT DISTINCT + 81 + ( + 77 ) + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT ALL - 99 + COUNT( * ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL - 99 + COUNT ( * ) FROM tab0
----
-96

query I rowsort
SELECT - col1 - + col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 + ( ( + col2 ) ) AS col2 FROM tab0
----
100
128
31

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE col1 IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - col1 * 92 AS col1 FROM tab0 cor0
----
-1932
-7452
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 27 col0 FROM tab2 AS cor0
----
27

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 84 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT + - COUNT( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-7836
SELECT + - COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

query I rowsort
SELECT DISTINCT - - 10 AS col1 FROM tab2 AS cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab2 AS cor0 WHERE ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE + 93 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7839
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE + 93 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT ALL - - SUM( ALL + col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL - - SUM ( ALL + col1 ) FROM tab1 cor0
----
66

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( 11 * + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( 32 ) < 58
----
0

skipif mysql # not compatible
query I rowsort label-7842
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( 32 ) < 58
----
0

query I rowsort
SELECT + + col0 * 31 * + - col1 AS col1 FROM tab0 AS cor0
----
-3007
-37665
-56637

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 91 < NULL
----

query II rowsort
SELECT ALL + col0, + col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT DISTINCT 5 + 67 * col2 * + 18 * col1 FROM tab2
----
1414643
3714485
4686521

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - col0 AND col2 / ( + + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 4 + + 49 - col1 + 48 >= col0
----
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < - col1 + + col2 + - 52
----

query I rowsort
SELECT ALL - - ( + col0 ) / - 73 + col0 FROM tab1 WHERE NOT + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7851
SELECT DISTINCT + SUM( - 30 ), COUNT( * ) col2 FROM tab1
----
-90
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7851
SELECT DISTINCT + SUM ( - 30 ), COUNT ( * ) col2 FROM tab1
----
-90
3

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT NULL <> ( NULL ) OR NOT - ( + col0 ) * - col2 IS NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7853
SELECT ALL CAST( NULL AS SIGNED ) + col2 + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7853
SELECT ALL CAST ( NULL AS INTEGER ) + col2 + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * - col2 + + + col2 + col1 + + + 29 col1 FROM tab0 AS cor0
----
160
2366
9930

query I rowsort
SELECT DISTINCT - col1 + 26 FROM tab0 AS cor0
----
-55
25
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 + col1 * - col2 col2 FROM tab2 AS cor0
----
-1140
-3047
-3853

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7857
SELECT + 84 FROM tab2 WHERE - + 20 + - - CAST( NULL AS SIGNED ) * col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7857
SELECT + 84 FROM tab2 WHERE - + 20 + - - CAST ( NULL AS INTEGER ) * col1 IS NOT NULL
----

query I rowsort
SELECT ALL - + ( - + 16 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 10 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT + SUM( - col2 ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-7860
SELECT + SUM ( - col2 ) AS col0 FROM tab2
----
-121

query I rowsort
SELECT ALL col0 - - + col2 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT - - MIN( - col1 ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-7862
SELECT - - MIN ( - col1 ) FROM tab2 cor0
----
-77

query I rowsort
SELECT ALL ( col2 ) AS col2 FROM tab1 cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT ALL COUNT( - col1 ) FROM tab1 AS cor0 WHERE NOT 6 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7864
SELECT ALL COUNT ( - col1 ) FROM tab1 AS cor0 WHERE NOT 6 IS NULL
----
3

query I rowsort
SELECT - + 98 - - + col0 FROM tab0 AS cor0
----
-1
-11
-83

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 * + col1 IS NULL
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - ( col0 ) + col2 + - - col2 / - col1 / col2
----

query II rowsort
SELECT DISTINCT col1 AS col1, - col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT DISTINCT COUNT( * ) * - 66 FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-7869
SELECT DISTINCT COUNT ( * ) * - 66 FROM tab2 AS cor0
----
-198

query I rowsort
SELECT + + col0 - - 50 AS col1 FROM tab2 AS cor0
----
114
125
96

query I rowsort
SELECT DISTINCT - - 52 * + col1 + - + col0 FROM tab2 AS cor0
----
2606
3409
3940

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 52 > - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 49 + 75 AS col2 FROM tab2 AS cor0
----
124
124
124

query I rowsort
SELECT + ( - col2 ) + + - col2 AS col1 FROM tab2
----
-116
-46
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT ALL + SUM( DISTINCT col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-7875
SELECT ALL + SUM ( DISTINCT col0 ) FROM tab0
----
199

query I rowsort
SELECT ALL + col1 + + ( col0 ) + - col1 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT - 38 + - - ( + - col2 ) AS col1 FROM tab0
----
-137
-48
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT DISTINCT - COUNT( * ) - + + 22 FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-7878
SELECT DISTINCT - COUNT ( * ) - + + 22 FROM tab2
----
-25

query I rowsort
SELECT ALL - col1 - - - col1 FROM tab1
----
-10
-28
-94

query II rowsort
SELECT - col0, 8 AS col2 FROM tab1
----
-51
8
-85
8
-91
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 - + + col0 + col1 col0 FROM tab2 AS cor0
----
1178
3093
3878

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 26 * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT ALL + + COUNT( * ) * - 84 AS col0 FROM tab2 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL + + COUNT ( * ) * - 84 AS col0 FROM tab2 AS cor0
----
-252

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 45 = NULL
----

query I rowsort
SELECT ALL + col0 - + col1 + + 76 * - - ( ( + - 93 ) ) * - - col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-360431
-600700
-643144

query I rowsort
SELECT - 81 * - + 26 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 81ffac32e6625f0346c81356db7a643d

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT - ( COUNT( * ) ) col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7887
SELECT - ( COUNT ( * ) ) col1 FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL - col1 * - 34 - ( - col0 ) AS col2 FROM tab0 AS cor0
----
131
2769
801

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7889
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7889
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT + MAX( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7890
SELECT + MAX ( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT DISTINCT + - 51 FROM tab2 cor0
----
-51

query I rowsort
SELECT ALL + ( + - 37 ) FROM tab1
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT DISTINCT - 5 + + - MAX( + col1 ) + COUNT( * ) * COUNT( * ) * - ( - + 34 ) * + ( 81 ) AS col1 FROM tab2
----
24704

skipif mysql # not compatible
query I rowsort label-7893
SELECT DISTINCT - 5 + + - MAX ( + col1 ) + COUNT ( * ) * COUNT ( * ) * - ( - + 34 ) * + ( 81 ) AS col1 FROM tab2
----
24704

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 41 + + ( + - 78 ) * - - 18 * - col2 - + col1 - - col2 + - col2, - col2 col1 FROM tab2
----
32282
-23
56124
-40
81406
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 col0 FROM tab1
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT ALL - COUNT( * ) + + 96 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-7896
SELECT ALL - COUNT ( * ) + + 96 FROM tab1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7897
SELECT CAST( NULL AS SIGNED ) * ( + 58 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7897
SELECT CAST ( NULL AS INTEGER ) * ( + 58 ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7898
SELECT + col0 AS col0, col2 * + + col0 * - col2 + + col1 * + + CAST( NULL AS SIGNED ) * + col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-7898
SELECT + col0 AS col0, col2 * + + col0 * - col2 + + col1 * + + CAST ( NULL AS INTEGER ) * + col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

query II rowsort
SELECT DISTINCT - col0 AS col2, + col0 FROM tab0
----
-15
15
-87
87
-97
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7900
SELECT MIN( + 43 ) DIV ( - 52 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7900
SELECT MIN ( + 43 ) / ( - 52 ) FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7901
SELECT CAST( + 88 AS SIGNED ) + col2 * 27 DIV - 74 - + 15 FROM tab2
----
52
59
65

skipif mysql # not compatible
query I rowsort label-7901
SELECT CAST ( + 88 AS INTEGER ) + col2 * 27 / - 74 - + 15 FROM tab2
----
52
59
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7902
SELECT - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7902
SELECT - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - col2 col1 FROM tab0
----
196
62
97

query I rowsort
SELECT - + col1 + 47 AS col0 FROM tab1 AS cor0
----
0
33
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT DISTINCT - SUM( ALL col0 ) - + ( - MIN( + 6 ) ) FROM tab2 AS cor0
----
-179

skipif mysql # not compatible
query I rowsort label-7905
SELECT DISTINCT - SUM ( ALL col0 ) - + ( - MIN ( + 6 ) ) FROM tab2 AS cor0
----
-179

query I rowsort
SELECT DISTINCT + 26 * - - 14 AS col0 FROM tab1 cor0
----
364

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 3 / + 33 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7908
SELECT + ( + COUNT( * ) ) DIV - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7908
SELECT + ( + COUNT ( * ) ) / - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7909
SELECT + COUNT( * ) DIV + + COUNT( * ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7909
SELECT + COUNT ( * ) / + + COUNT ( * ) AS col1 FROM tab2
----
1

query I rowsort
SELECT DISTINCT - ( - ( 39 ) ) + + col1 AS col0 FROM tab0 WHERE + + 5 IS NULL
----

query I rowsort
SELECT + 59 * 39 FROM tab1
----
2301
2301
2301

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7912
SELECT 2 DIV + COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7912
SELECT 2 / + COUNT ( * ) AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7913
SELECT col1 * col1 * + CAST( - col2 AS SIGNED ) AS col1 FROM tab2
----
-237160
-260362
-59823

skipif mysql # not compatible
query I rowsort label-7913
SELECT col1 * col1 * + CAST ( - col2 AS INTEGER ) AS col1 FROM tab2
----
-237160
-260362
-59823

query II rowsort
SELECT ALL - 13 AS col0, 79 * + col0 * + 41 AS col2 FROM tab0 AS cor0
----
-13
281793
-13
314183
-13
48585

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7915
SELECT * FROM tab0 AS cor0 WHERE NOT 47 + + + 38 + + - col2 * + - CAST( - ( 96 ) AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7915
SELECT * FROM tab0 AS cor0 WHERE NOT 47 + + + 38 + + - col2 * + - CAST ( - ( 96 ) AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 80 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT + SUM( + - ( col0 ) ) * - 62 FROM tab0 AS cor0
----
12338

skipif mysql # not compatible
query I rowsort label-7917
SELECT + SUM ( + - ( col0 ) ) * - 62 FROM tab0 AS cor0
----
12338

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 17 col0, ( - + col0 ) FROM tab1 cor0
----
-17
-51
-17
-85
-17
-91

query I rowsort
SELECT DISTINCT + + ( - - col2 ) * 17 FROM tab0 AS cor0
----
1683
170
799

query I rowsort
SELECT ALL + + 82 * - col2 + col0 FROM tab2 AS cor0
----
-1840
-3216
-4681

query II rowsort
SELECT + col1, 52 AS col0 FROM tab1 AS cor0
----
14
52
47
52
5
52

query I rowsort
SELECT col0 * + 14 * col2 - + 71 FROM tab1 AS cor0
----
68473
70139
86561

query I rowsort
SELECT 5 AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT + MIN( ALL - col0 ) FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7924
SELECT + MIN ( ALL - col0 ) FROM tab1 cor0
----
-91

query I rowsort
SELECT DISTINCT - ( + + 28 ) * + col0 FROM tab0
----
-2436
-2716
-420

onlyif mysql # aggregate syntax: 
query II rowsort label-7926
SELECT DISTINCT 18 + - - COUNT( * ), COUNT( * ) * + MIN( DISTINCT - 94 ) * 87 col0 FROM tab1
----
21
-24534

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7926
SELECT DISTINCT 18 + - - COUNT ( * ), COUNT ( * ) * + MIN ( DISTINCT - 94 ) * 87 col0 FROM tab1
----
21
-24534

query I rowsort
SELECT DISTINCT ( - + 19 ) * + col0 AS col2 FROM tab0
----
-1653
-1843
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT - + SUM( ALL col0 ) col0 FROM tab2 AS cor0 WHERE ( + - col1 ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7928
SELECT - + SUM ( ALL col0 ) col0 FROM tab2 AS cor0 WHERE ( + - col1 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT - + 53 + - 26 - + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-7929
SELECT - + 53 + - 26 - + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-82

query I rowsort
SELECT - ( col2 ) + col0 * - 75 * - 45 * - col1 AS col1 FROM tab0 AS cor0
----
-327474
-4100672
-6166135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 + + - 37 AS col1, - col1 + - 85 col2 FROM tab2 AS cor0
----
-14
-136
21
-152
3
-162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7932
SELECT DISTINCT + 65 + - CAST( NULL AS SIGNED ) * + + SUM( ALL col1 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7932
SELECT DISTINCT + 65 + - CAST ( NULL AS INTEGER ) * + + SUM ( ALL col1 ) AS col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + col0 AS col0, + col2 FROM tab1
----
51
96
85
59
91
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 33 NOT BETWEEN NULL AND 16
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL <> + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col1 NOT IN ( - col1, 65 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + + col2, - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 col0 FROM tab0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7939
SELECT + CAST( NULL AS SIGNED ) * + col2 * + 71 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-7939
SELECT + CAST ( NULL AS INTEGER ) * + col2 * + 71 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7940
SELECT ALL + col1 * CAST( + col2 AS SIGNED ) AS col2 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-7940
SELECT ALL + col1 * CAST ( + col2 AS INTEGER ) AS col2 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT - COUNT( * ) * - MIN( DISTINCT + 19 ) AS col1 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-7941
SELECT - COUNT ( * ) * - MIN ( DISTINCT + 19 ) AS col1 FROM tab2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT ALL SUM( + col2 ) col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7942
SELECT ALL SUM ( + col2 ) col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7943
SELECT + + 56, + COUNT( * ) - - SUM( DISTINCT 21 ) col0 FROM tab0 AS cor0
----
56
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7943
SELECT + + 56, + COUNT ( * ) - - SUM ( DISTINCT 21 ) col0 FROM tab0 AS cor0
----
56
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( + col0 ) + - col0 - + col2 BETWEEN NULL AND + 47
----
0

skipif mysql # not compatible
query I rowsort label-7944
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( + col0 ) + - col0 - + col2 BETWEEN NULL AND + 47
----
0

query I rowsort
SELECT + ( + col0 ) + - col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7946
SELECT ALL - - col2 AS col1 FROM tab1 AS cor0 WHERE col1 NOT IN ( - - col2, + 16 + + CAST( NULL AS SIGNED ) - col2 / - col2, 57 + - col2 * + - col2, 70 * + ( - col2 ), + - col1 )
----

skipif mysql # not compatible
query I rowsort label-7946
SELECT ALL - - col2 AS col1 FROM tab1 AS cor0 WHERE col1 NOT IN ( - - col2, + 16 + + CAST ( NULL AS INTEGER ) - col2 / - col2, 57 + - col2 * + - col2, 70 * + ( - col2 ), + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT - + COUNT( * ) + 84 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7947
SELECT - + COUNT ( * ) + 84 FROM tab1 AS cor0
----
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7948
SELECT ALL 31 + - + MAX( + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7948
SELECT ALL 31 + - + MAX ( + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 34 col1 FROM tab1
----
-25
-34
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-7950
SELECT DISTINCT - 62 DIV col0 DIV - col1 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7950
SELECT DISTINCT - 62 / col0 / - col1 AS col1 FROM tab0
----
0

query II rowsort
SELECT col2, col2 * - + col2 * 8 * - 29 * - + 57 AS col2 FROM tab1
----
59
-46032744
68
-61147776
96
-121872384

onlyif mysql # DIV for integer division: 
query I rowsort label-7952
SELECT + 49 * - col0 DIV + - col0 AS col1 FROM tab2
----
49
49
49

skipif mysql # not compatible
query I rowsort label-7952
SELECT + 49 * - col0 / + - col0 AS col1 FROM tab2
----
49
49
49

query III rowsort
SELECT DISTINCT 33, + 18 * 27 * col2 * + + 49 * + col0 + - 20 AS col1, + col0 AS col2 FROM tab1
----
9 values hashing to 4110d998f9f8488dbf5f40fd1d462517

onlyif mysql # DIV for integer division: 
query II rowsort label-7954
SELECT col0 AS col2, 84 + - col0 - + col0 DIV - col0 AS col0 FROM tab1
----
51
34
85
0
91
-6

skipif mysql # not compatible
query II rowsort label-7954
SELECT col0 AS col2, 84 + - col0 - + col0 / - col0 AS col0 FROM tab1
----
51
34
85
0
91
-6

query III rowsort
SELECT ALL * FROM tab1 WHERE 66 / - - 99 IS NULL OR NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 / - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - + col0 col1 FROM tab2 cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT + 81 + + + COUNT( * ) AS col2 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-7958
SELECT + 81 + + + COUNT ( * ) AS col2 FROM tab2
----
84

query I rowsort
SELECT ALL col0 * col2 + + + 46 * col2 AS col1 FROM tab1
----
7729
9312
9316

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7960
SELECT DISTINCT CAST( NULL AS DECIMAL ) - - col0 + + col0 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7960
SELECT DISTINCT CAST ( NULL AS REAL ) - - col0 + + col0 AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 72 col2 FROM tab2
----
72

query I rowsort
SELECT DISTINCT + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT + MIN( DISTINCT - ( col0 ) ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7963
SELECT + MIN ( DISTINCT - ( col0 ) ) AS col2 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT + 39 * - col1 - - 47 + + + col0 / - col0 FROM tab1 WHERE NOT - col1 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7965
SELECT ALL - COUNT( * ) DIV + + 35 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7965
SELECT ALL - COUNT ( * ) / + + 35 col1 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * + 53 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - ( col2 ) + 42 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col0, - col1 FROM tab0
----
15
-81
87
-21
97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT ALL + - COUNT( * ) col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7969
SELECT ALL + - COUNT ( * ) col2 FROM tab2 cor0
----
-3

query I rowsort
SELECT DISTINCT + col0 + - col2 - + - col0 FROM tab2
----
69
88
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT + COUNT( * ) / + AVG ( + + ( - col0 ) ) col2 FROM tab0 WHERE NOT + - col2 + col2 NOT BETWEEN + ( - 59 ) AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7971
SELECT + COUNT ( * ) / + AVG ( + + ( - col0 ) ) col2 FROM tab0 WHERE NOT + - col2 + col2 NOT BETWEEN + ( - 59 ) AND NULL
----
NULL

query I rowsort
SELECT - 96 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT DISTINCT - + 46 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-46

query I rowsort
SELECT + - 45 * + col2 + 74 AS col2 FROM tab1 AS cor0 WHERE + 66 IS NOT NULL
----
-2581
-2986
-4246

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT DISTINCT + MAX( ALL 24 ) AS col2 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-7975
SELECT DISTINCT + MAX ( ALL 24 ) AS col2 FROM tab2 AS cor0
----
24

query I rowsort
SELECT - 70 * 15 * + col1 FROM tab1 AS cor0
----
-14700
-49350
-5250

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT DISTINCT - ( + MAX( col1 ) ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7977
SELECT DISTINCT - ( + MAX ( col1 ) ) AS col2 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT - ( - - col2 ) * + col1 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT - + 96 FROM tab0 cor0
----
-96
-96
-96

query I rowsort
SELECT 23 + + col1 AS col1 FROM tab1
----
28
37
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7981
SELECT DISTINCT + - CAST( - 44 AS SIGNED ) AS col2 FROM tab1 WHERE ( NOT - col1 * + col1 IS NULL )
----
44

skipif mysql # not compatible
query I rowsort label-7981
SELECT DISTINCT + - CAST ( - 44 AS INTEGER ) AS col2 FROM tab1 WHERE ( NOT - col1 * + col1 IS NULL )
----
44

query I rowsort
SELECT ALL + - 73 AS col2 FROM tab1 WHERE col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - ( col1 ) * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 6 - col1 AS col1 FROM tab0
----
-27
-7
-87

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE - + col0 IS NOT NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7986
SELECT + + col1 + - - col2 + + 68 + - col0 DIV + col1 AS col2 FROM tab0 AS cor0
----
196
71
95

skipif mysql # not compatible
query I rowsort label-7986
SELECT + + col1 + - - col2 + + 68 + - col0 / + col1 AS col2 FROM tab0 AS cor0
----
196
71
95

query I rowsort
SELECT DISTINCT 25 * + + col1 AS col0 FROM tab2 AS cor0
----
1275
1675
1925

query I rowsort
SELECT + + col1 * + + col2 AS col0 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT ALL 79 * + 38 * COUNT( * ) * - + COUNT( * ) * ( - + 3 ) FROM tab1
----
81054

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL 79 * + 38 * COUNT ( * ) * - + COUNT ( * ) * ( - + 3 ) FROM tab1
----
81054

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT ALL + ( - - COUNT( * ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7990
SELECT ALL + ( - - COUNT ( * ) ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT - 69 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT - 81 * + COUNT( * ) * + 30 FROM tab0 AS cor0
----
-7290

skipif mysql # not compatible
query I rowsort label-7992
SELECT - 81 * + COUNT ( * ) * + 30 FROM tab0 AS cor0
----
-7290

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT + + MAX( + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7993
SELECT + + MAX ( + col0 ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT ALL 44 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT + + MAX( ALL - ( - 59 ) ) FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7995
SELECT + + MAX ( ALL - ( - 59 ) ) FROM tab0 AS cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7996
SELECT ALL - col1 AS col1, 35 + + CAST( NULL AS SIGNED ) * - + col1 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-7996
SELECT ALL - col1 AS col1, 35 + + CAST ( NULL AS INTEGER ) * - + col1 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 95 > - ( + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7998
SELECT 14 DIV - col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7998
SELECT 14 / - col2 FROM tab0
----
-1
0
0

query I rowsort
SELECT 63 * + - col2 * - - 60 FROM tab1
----
-223020
-257040
-362880

query I rowsort
SELECT + 24 AS col0 FROM tab0 WHERE NOT col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 * + col0, 76 col0 FROM tab0 cor0
----
-705
76
-870
76
-9603
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8002
SELECT ALL + CAST( + 76 AS SIGNED ) FROM tab0 AS cor0
----
76
76
76

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL + CAST ( + 76 AS INTEGER ) FROM tab0 AS cor0
----
76
76
76

query II rowsort
SELECT DISTINCT - col2 * - col1 AS col2, - col2 FROM tab0 AS cor0
----
210
-10
3807
-47
99
-99

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE + 29 IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8005
SELECT DISTINCT + 31 - ( - CAST( COUNT( * ) AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
40

skipif mysql # not compatible
query I rowsort label-8005
SELECT DISTINCT + 31 - ( - CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-8006
SELECT ALL - COUNT( * ) AS col0, ( - + MAX( DISTINCT - 52 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
52

skipif mysql # not compatible
query II rowsort label-8006
SELECT ALL - COUNT ( * ) AS col0, ( - + MAX ( DISTINCT - 52 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8007
SELECT ALL * FROM tab0 WHERE NOT - col1 NOT IN ( - CAST( - + col1 AS SIGNED ), + col0, col2 * - col2 * - col1, 25 )
----

skipif mysql # not compatible
query III rowsort label-8007
SELECT ALL * FROM tab0 WHERE NOT - col1 NOT IN ( - CAST ( - + col1 AS INTEGER ), + col0, col2 * - col2 * - col1, 25 )
----

query I rowsort
SELECT - 85 + + col0 * col0 FROM tab2 AS cor0
----
2031
4011
5540

query II rowsort
SELECT DISTINCT col2, - 70 FROM tab1 AS cor0
----
59
-70
68
-70
96
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT ALL + + 57 * + SUM( ALL - + col2 ) FROM tab0 AS cor0
----
-8892

skipif mysql # not compatible
query I rowsort label-8010
SELECT ALL + + 57 * + SUM ( ALL - + col2 ) FROM tab0 AS cor0
----
-8892

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8011
SELECT ALL - CAST( - - 4 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-8011
SELECT ALL - CAST ( - - 4 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-4
-4
-4

query I rowsort
SELECT 19 * - 56 + col2 + + col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( + 69 * + 44 * + ( + col2 ), col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE + 12 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8014
SELECT DISTINCT COUNT( * ) * + + SUM( CAST( NULL AS SIGNED ) ) + + - ( + - 69 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8014
SELECT DISTINCT COUNT ( * ) * + + SUM ( CAST ( NULL AS INTEGER ) ) + + - ( + - 69 ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 ) <= NULL
----

query I rowsort
SELECT DISTINCT col0 + 24 AS col2 FROM tab0
----
111
121
39

query I rowsort
SELECT DISTINCT - col1 - - + col0 AS col1 FROM tab2
----
-13
-5
8

query I rowsort
SELECT DISTINCT col0 - + - col2 * + 40 + - col1 AS col2 FROM tab1
----
2440
2764
3877

query I rowsort
SELECT ( - - col1 ) * + col1 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT ALL + 40 - + SUM( + col0 ) FROM tab1
----
-187

skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL + 40 - + SUM ( + col0 ) FROM tab1
----
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT ALL 33 - - COUNT( * ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-8021
SELECT ALL 33 - - COUNT ( * ) FROM tab0
----
36

query I rowsort
SELECT - 3 - - ( col1 ) FROM tab0
----
-2
18
78

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT MAX( DISTINCT + ( - col2 ) ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-8024
SELECT MAX ( DISTINCT + ( - col2 ) ) FROM tab2
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 * - + col0 col2 FROM tab1
----
-1122
-1870
-2002

query I rowsort
SELECT ALL - - 50 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT ALL - MAX( ALL + + 64 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-64

skipif mysql # not compatible
query I rowsort label-8027
SELECT ALL - MAX ( ALL + + 64 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-8028
SELECT + COUNT( * ), 84 * + + COUNT( * ) AS col2 FROM tab0
----
3
252

skipif mysql # not compatible
query II rowsort label-8028
SELECT + COUNT ( * ), 84 * + + COUNT ( * ) AS col2 FROM tab0
----
3
252

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 * - col1 = + 99
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 91 / - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8031
SELECT ALL + - col0 + + + CAST( - - col0 AS SIGNED ) + + ( + 56 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
56
56
56

skipif mysql # not compatible
query I rowsort label-8031
SELECT ALL + - col0 + + + CAST ( - - col0 AS INTEGER ) + + ( + 56 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
56
56
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * 57 col1 FROM tab1 AS cor0
----
3363
3876
5472

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT ALL - SUM( + 7 ) AS col0 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL - SUM ( + 7 ) AS col0 FROM tab0
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8034
SELECT DISTINCT COUNT( * ) DIV + + COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8034
SELECT DISTINCT COUNT ( * ) / + + COUNT ( * ) FROM tab0
----
1

query I rowsort
SELECT - 40 * + - 9 AS col2 FROM tab1
----
360
360
360

query I rowsort
SELECT + - col2 FROM tab1 WHERE NOT col2 / - col1 <> - col2
----

query II rowsort
SELECT ALL - 83 AS col1, 92 * + col0 FROM tab0
----
-83
1380
-83
8004
-83
8924

onlyif mysql # aggregate syntax: 
query III rowsort label-8038
SELECT DISTINCT - COUNT( * ) AS col2, + ( + 74 ) + + 26 AS col2, 12 FROM tab0
----
-3
100
12

skipif mysql # not compatible
query III rowsort label-8038
SELECT DISTINCT - COUNT ( * ) AS col2, + ( + 74 ) + + 26 AS col2, 12 FROM tab0
----
-3
100
12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8039
SELECT ALL * FROM tab2 WHERE + 97 * CAST( NULL AS SIGNED ) * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8039
SELECT ALL * FROM tab2 WHERE + 97 * CAST ( NULL AS INTEGER ) * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT + - ( + COUNT( * ) ) + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8040
SELECT + - ( + COUNT ( * ) ) + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----
0

query II rowsort
SELECT ALL - col0 * - + col0 AS col0, 42 FROM tab1 AS cor0
----
2601
42
7225
42
8281
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8042
SELECT DISTINCT + col1 + + CAST( NULL AS SIGNED ) * + + ( + 21 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8042
SELECT DISTINCT + col1 + + CAST ( NULL AS INTEGER ) * + + ( + 21 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - + col0 * + 72 AS col2 FROM tab0 AS cor0 WHERE ( - col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8044
SELECT + - CAST( + col0 AS SIGNED ) * + col1 + + - 21 AS col0, + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
-2367
46
-4949
64
-5046
75

skipif mysql # not compatible
query II rowsort label-8044
SELECT + - CAST ( + col0 AS INTEGER ) * + col1 + + - 21 AS col0, + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
-2367
46
-4949
64
-5046
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8045
SELECT DISTINCT 79 + - - 69 - - + 67 * 5 DIV - 33 AS col0 FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-8045
SELECT DISTINCT 79 + - - 69 - - + 67 * 5 / - 33 AS col0 FROM tab1
----
138

query I rowsort
SELECT + 10 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT + + COUNT( * ) FROM tab2 WHERE - 20 <> 53
----
3

skipif mysql # not compatible
query I rowsort label-8047
SELECT + + COUNT ( * ) FROM tab2 WHERE - 20 <> 53
----
3

query II rowsort
SELECT - 54 * - col0, + col2 FROM tab0 AS cor0
----
4698
10
5238
99
810
47

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE ( NOT + 34 < NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8050
SELECT ALL 29 DIV + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL 29 / + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8051
SELECT DISTINCT - 85 DIV - ( + col2 ) AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8051
SELECT DISTINCT - 85 / - ( + col2 ) AS col0 FROM tab1 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 36 + 85 col2, + col2 + 45 FROM tab0 AS cor0
----
49
144
49
55
49
92

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8054
SELECT 45 DIV ( - col0 ) + + - col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8054
SELECT 45 / ( - col0 ) + + - col1 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT DISTINCT COUNT( * ) + + - 11 * 16 AS col0 FROM tab2
----
-173

skipif mysql # not compatible
query I rowsort label-8055
SELECT DISTINCT COUNT ( * ) + + - 11 * 16 AS col0 FROM tab2
----
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT + ( + SUM( ALL + + col1 ) ) + + 11 AS col2 FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-8056
SELECT + ( + SUM ( ALL + + col1 ) ) + + 11 AS col2 FROM tab0
----
114

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT + MIN( DISTINCT + col0 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8058
SELECT + MIN ( DISTINCT + col0 ) AS col1 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-8059
SELECT ALL ( + + 65 ), + COUNT( * ) col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
65
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8059
SELECT ALL ( + + 65 ), + COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
65
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT ALL - + SUM( - col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8060
SELECT ALL - + SUM ( - col1 ) FROM tab0 AS cor0
----
103

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * col1 / col2 + col1 >= + col0
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8062
SELECT ALL - COUNT( * ) AS col0 FROM tab0 cor0 WHERE ( ( 80 ) ) <= + col2 - - CAST( + - col2 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8062
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 cor0 WHERE ( ( 80 ) ) <= + col2 - - CAST ( + - col2 AS INTEGER )
----
0

query II rowsort
SELECT DISTINCT 88 AS col1, + 60 AS col0 FROM tab1 AS cor0
----
88
60

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + 39 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 80 col0 FROM tab1 AS cor0
----
-80

query II rowsort
SELECT DISTINCT col2 * - 22 AS col2, col1 FROM tab0
----
-1034
81
-2178
1
-220
21

query I rowsort
SELECT DISTINCT - + col0 * + + col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8068
SELECT + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8068
SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8069
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <> ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT ( + COUNT( * ) ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8070
SELECT ( + COUNT ( * ) ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3

query II rowsort
SELECT ( col0 ), + col2 FROM tab1 cor0
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT DISTINCT - - MAX( + + 26 ) * - COUNT( * ) AS col1 FROM tab0 cor0
----
-78

skipif mysql # not compatible
query I rowsort label-8072
SELECT DISTINCT - - MAX ( + + 26 ) * - COUNT ( * ) AS col1 FROM tab0 cor0
----
-78

query I rowsort
SELECT ALL - 72 * - col1 FROM tab0 AS cor0
----
1512
5832
72

query I rowsort
SELECT ALL + + 10 AS col1 FROM tab1 AS cor0
----
10
10
10

query I rowsort
SELECT + + AVG ( ALL - 61 ) + + 99 AS col1 FROM tab0 WHERE NOT NULL > - col1 + col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8076
SELECT 18 DIV - 9 + col1 FROM tab1
----
12
3
45

skipif mysql # not compatible
query I rowsort label-8076
SELECT 18 / - 9 + col1 FROM tab1
----
12
3
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT + COUNT( * ) * - ( - COUNT( * ) ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8077
SELECT + COUNT ( * ) * - ( - COUNT ( * ) ) FROM tab1
----
9

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = + col1 * - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8079
SELECT ALL CAST( - + col2 AS SIGNED ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8079
SELECT ALL CAST ( - + col2 AS INTEGER ) FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - - col2 FROM tab1 WHERE NOT + 59 / + - col1 IS NULL
----
59
68
96

query I rowsort
SELECT - 90 * - col2 * ( + ( col1 ) ) AS col1 FROM tab1
----
120960
26550
287640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8082
SELECT - + col2 FROM tab1 WHERE NOT NULL <> + - CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8082
SELECT - + col2 FROM tab1 WHERE NOT NULL <> + - CAST ( col0 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT COUNT( DISTINCT - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8084
SELECT COUNT ( DISTINCT - col1 ) FROM tab1
----
3

query I rowsort
SELECT ALL - col2 * - 60 FROM tab1
----
3540
4080
5760

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT DISTINCT - - ( + + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8086
SELECT DISTINCT - - ( + + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - - col0 * - - ( - + 63 ) * + col1 + - col2 AS col1 FROM tab2 cor0
----
-147821
-310504
-316633

onlyif mysql # DIV for integer division: 
query I rowsort label-8088
SELECT ALL + + col0 DIV - col2 + - col1 * + + col2 FROM tab1 AS cor0
----
-1344
-296
-3197

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL + + col0 / - col2 + - col1 * + + col2 FROM tab1 AS cor0
----
-1344
-296
-3197

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT ALL - + ( - COUNT( * ) ) + 1 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-8089
SELECT ALL - + ( - COUNT ( * ) ) + 1 FROM tab0 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT DISTINCT 23 + + SUM( + ( + - col0 ) ) + 40 AS col0 FROM tab2
----
-122

skipif mysql # not compatible
query I rowsort label-8090
SELECT DISTINCT 23 + + SUM ( + ( + - col0 ) ) + 40 AS col0 FROM tab2
----
-122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8091
SELECT ALL + 95 + + - col2 * + CAST( - - 97 AS SIGNED ) FROM tab1
----
-5628
-6501
-9217

skipif mysql # not compatible
query I rowsort label-8091
SELECT ALL + 95 + + - col2 * + CAST ( - - 97 AS INTEGER ) FROM tab1
----
-5628
-6501
-9217

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 + - + 82 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT SUM( + 13 ) + + 24 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-8093
SELECT SUM ( + 13 ) + + 24 FROM tab2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT + SUM( ALL + col2 ) + + + 9 FROM tab1
----
232

skipif mysql # not compatible
query I rowsort label-8094
SELECT + SUM ( ALL + col2 ) + + + 9 FROM tab1
----
232

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT - - 57 + - MIN( DISTINCT - 39 ) - - 76 AS col2 FROM tab0 cor0
----
172

skipif mysql # not compatible
query I rowsort label-8095
SELECT - - 57 + - MIN ( DISTINCT - 39 ) - - 76 AS col2 FROM tab0 cor0
----
172

query I rowsort
SELECT - col1 * - - col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-2601
-4489
-5929

onlyif mysql # DIV for integer division: 
query I rowsort label-8097
SELECT ALL col2 DIV + + 65 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8097
SELECT ALL col2 / + + 65 FROM tab0 AS cor0
----
0
0
1

query II rowsort
SELECT ALL col0 + - col2 AS col2, col1 FROM tab0
----
-2
1
-32
81
77
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT ( - + MIN( 24 ) ) AS col2 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-8099
SELECT ( - + MIN ( 24 ) ) AS col2 FROM tab0
----
-24

query I rowsort
SELECT + col1 - - - col2 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE - - 68 NOT BETWEEN NULL AND - 43
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8102
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8102
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8103
SELECT ALL 42 DIV 40 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL 42 / 40 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8104
SELECT CAST( NULL AS SIGNED ) * - 9 - - 74 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8104
SELECT CAST ( NULL AS INTEGER ) * - 9 - - 74 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 82 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > 49
----

query I rowsort
SELECT - - 49 * - - 23 * + col1 FROM tab2 AS cor0
----
57477
75509
86779

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 71 AS col0, 6 * + - 43 col0 FROM tab1
----
-71
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT DISTINCT MIN( - 8 ) AS col2 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-8109
SELECT DISTINCT MIN ( - 8 ) AS col2 FROM tab0
----
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 * - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT col1 <> - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT - - COUNT( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8113
SELECT - - COUNT ( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT col1 * + 83 - + - col1 + - - col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + ( - 84 ) FROM tab1 AS cor0
----
-84

query I rowsort
SELECT ALL ( + - 40 ) FROM tab1 AS cor0
----
-40
-40
-40

query I rowsort
SELECT + + 87 FROM tab0 cor0
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT + + MIN( DISTINCT - 17 ) AS col1 FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-8118
SELECT + + MIN ( DISTINCT - 17 ) AS col1 FROM tab2 AS cor0
----
-17

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < ( + - 32 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 72 IS NULL
----

query I rowsort
SELECT DISTINCT + 63 + - 81 AS col2 FROM tab2
----
-18

query I rowsort
SELECT + ( - 15 ) FROM tab0
----
-15
-15
-15

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col0 + + + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT 99 * - COUNT( * ) FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-8125
SELECT 99 * - COUNT ( * ) FROM tab0
----
-297

query III rowsort
SELECT * FROM tab2 WHERE ( - 55 ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 68 * + - 14 col1 FROM tab2
----
-952
-952
-952

onlyif mysql # aggregate syntax: 
query II rowsort label-8128
SELECT 39 * + COUNT( * ) * COUNT( * ) AS col2, COUNT( DISTINCT + - 27 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
351
1

skipif mysql # not compatible
query II rowsort label-8128
SELECT 39 * + COUNT ( * ) * COUNT ( * ) AS col2, COUNT ( DISTINCT + - 27 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
351
1

query I rowsort
SELECT - 25 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT ALL MIN( ALL - 88 ) AS col2 FROM tab0, tab2 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL MIN ( ALL - 88 ) AS col2 FROM tab0, tab2 AS cor0
----
-88

query I rowsort
SELECT 53 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * - col2 IS NULL
----

query I rowsort
SELECT DISTINCT col1 - + + 64 FROM tab1 AS cor0
----
-17
-50
-59

query I rowsort
SELECT DISTINCT - ( + - col0 ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8135
SELECT 13 + + + col1 - + CAST( NULL AS SIGNED ) * + + 49 + - - col0 + + col1 col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8135
SELECT 13 + + + col1 - + CAST ( NULL AS INTEGER ) * + + 49 + - - col0 + + col1 col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8136
SELECT - CAST( 35 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8136
SELECT - CAST ( 35 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8137
SELECT - + col0 FROM tab0 AS cor0 WHERE NOT - col0 - + CAST( - + col1 AS DECIMAL ) + - 91 * - 56 BETWEEN - + col2 AND - - col2
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8137
SELECT - + col0 FROM tab0 AS cor0 WHERE NOT - col0 - + CAST ( - + col1 AS REAL ) + - 91 * - 56 BETWEEN - + col2 AND - - col2
----
-15
-87
-97

query I rowsort
SELECT ALL - col1 * 93 AS col0 FROM tab1
----
-1302
-4371
-465

query I rowsort
SELECT DISTINCT + + col1 FROM tab0 WHERE 58 / + 38 + 8 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col0 AS col1, col1 + 74 + 64 * + + col1 + col0 - + + col1 col1, + + col2 AS col1 FROM tab2
----
9 values hashing to 1ae2f8967b5a1060ae78b1abe43ad3bf

query I rowsort
SELECT DISTINCT + + col0 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8142
SELECT MAX( DISTINCT - + col1 ) AS col1, 87 AS col1 FROM tab2
----
-51
87

skipif mysql # not compatible
query II rowsort label-8142
SELECT MAX ( DISTINCT - + col1 ) AS col1, 87 AS col1 FROM tab2
----
-51
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, - col1 col1 FROM tab1
----
-59
-5
-68
-47
-96
-14

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8144
SELECT + col1 AS col2, col0 * - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-8144
SELECT + col1 AS col2, col0 * - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) AS col2 FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8145
SELECT DISTINCT + CAST( + 8 AS SIGNED ) FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-8145
SELECT DISTINCT + CAST ( + 8 AS INTEGER ) FROM tab0 AS cor0
----
8

query I rowsort
SELECT DISTINCT col0 / + 7 - - 23 * - - col1 FROM tab2 AS cor0 WHERE ( NULL ) <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8147
SELECT - + CAST( NULL AS SIGNED ) * - 70 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8147
SELECT - + CAST ( NULL AS INTEGER ) * - 70 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * - col0 + - - 7 AS col0 FROM tab0 cor0
----
-698
-863
-9596

query II rowsort
SELECT DISTINCT col2 AS col1, - col1 FROM tab0 cor0
----
10
-21
47
-81
99
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT - + COUNT( DISTINCT + 70 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-8150
SELECT - + COUNT ( DISTINCT + 70 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

query I rowsort
SELECT DISTINCT + - col0 AS col0 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab1 AS cor1 ON NOT + + 6 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 64 col0 FROM tab1
----
3264
5440
5824

query I rowsort
SELECT - 23 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 23 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8156
SELECT - col2 / + 27 * - + CAST( NULL AS DECIMAL ) + - 79 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8156
SELECT - col2 / + 27 * - + CAST ( NULL AS REAL ) + - 79 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( 56 ) FROM tab1 AS cor0
----
-56
-56
-56

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 <= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-8159
SELECT DISTINCT - 28 + - - col0 DIV - col1, col1 AS col1 FROM tab2
----
-28
51
-28
77
-29
67

skipif mysql # not compatible
query II rowsort label-8159
SELECT DISTINCT - 28 + - - col0 / - col1, col1 AS col1 FROM tab2
----
-28
51
-28
77
-29
67

query I rowsort
SELECT ( 32 ) FROM tab2
----
32
32
32

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> ( - + col1 )
----

query I rowsort
SELECT DISTINCT - 14 * col1 + - col1 + - - 83 + - - col0 FROM tab2 AS cor0
----
-1008
-636
-847

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT DISTINCT 48 * - COUNT( * ) FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-8163
SELECT DISTINCT 48 * - COUNT ( * ) FROM tab1
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT 89 * - ( MIN( - col0 ) ) FROM tab1
----
8099

skipif mysql # not compatible
query I rowsort label-8164
SELECT 89 * - ( MIN ( - col0 ) ) FROM tab1
----
8099

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT ALL MIN( DISTINCT + 55 ) * - 76 FROM tab1
----
-4180

skipif mysql # not compatible
query I rowsort label-8165
SELECT ALL MIN ( DISTINCT + 55 ) * - 76 FROM tab1
----
-4180

onlyif mysql # DIV for integer division: 
query I rowsort label-8166
SELECT DISTINCT - col2 DIV - col2 + - 9 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-8166
SELECT DISTINCT - col2 / - col2 + - 9 FROM tab0
----
-8

query III rowsort
SELECT * FROM tab1 WHERE ( col1 ) NOT BETWEEN + col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT + ( - 78 ) * + MAX( - 85 ) AS col0 FROM tab0
----
6630

skipif mysql # not compatible
query I rowsort label-8168
SELECT + ( - 78 ) * + MAX ( - 85 ) AS col0 FROM tab0
----
6630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8169
SELECT ALL + 6 * col0 + - CAST( NULL AS SIGNED ) * 58 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8169
SELECT ALL + 6 * col0 + - CAST ( NULL AS INTEGER ) * 58 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT 82 * - ( - COUNT( * ) ) + - 40 col0 FROM tab2
----
206

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8170
SELECT 82 * - ( - COUNT ( * ) ) + - 40 col0 FROM tab2
----
206

onlyif mysql # DIV for integer division: 
query I rowsort label-8171
SELECT ALL + col0 DIV 28 FROM tab2
----
1
2
2

skipif mysql # not compatible
query I rowsort label-8171
SELECT ALL + col0 / 28 FROM tab2
----
1
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8172
SELECT * FROM tab1 WHERE NOT + col0 + CAST( 26 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8172
SELECT * FROM tab1 WHERE NOT + col0 + CAST ( 26 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - 16 + - 2 AS col1 FROM tab1
----
-18
-18
-18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8174
SELECT * FROM tab0 WHERE ( + CAST( + col1 AS SIGNED ) + col2 * - 23 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8174
SELECT * FROM tab0 WHERE ( + CAST ( + col1 AS INTEGER ) + col2 * - 23 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( - col1 ) AS col2 FROM tab1 WHERE NOT + col2 IS NULL
----
-14
-47
-5

query I rowsort
SELECT + ( col1 ) * - col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8177
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL = ( 19 )
----

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL = ( 19 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8178
SELECT ALL col2 DIV 29 FROM tab1
----
2
2
3

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL col2 / 29 FROM tab1
----
2
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT COUNT( * ) * ( COUNT( * ) ) FROM tab2 WHERE - col0 / - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8179
SELECT COUNT ( * ) * ( COUNT ( * ) ) FROM tab2 WHERE - col0 / - col0 IS NULL
----
0

query I rowsort
SELECT 49 + + col0 FROM tab0
----
136
146
64

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN col0 AND + 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT COUNT( * ) + SUM( col0 + + col0 ) FROM tab0
----
401

skipif mysql # not compatible
query I rowsort label-8182
SELECT COUNT ( * ) + SUM ( col0 + + col0 ) FROM tab0
----
401

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8183
SELECT CAST( + 64 AS SIGNED ) AS col0 FROM tab1
----
64
64
64

skipif mysql # not compatible
query I rowsort label-8183
SELECT CAST ( + 64 AS INTEGER ) AS col0 FROM tab1
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT 61 + + 8 * - ( 65 * + 77 + + COUNT( * ) ) FROM tab0
----
-40003

skipif mysql # not compatible
query I rowsort label-8184
SELECT 61 + + 8 * - ( 65 * + 77 + + COUNT ( * ) ) FROM tab0
----
-40003

query I rowsort
SELECT - col2 * col2 + 7 AS col1 FROM tab1
----
-3474
-4617
-9209

query III rowsort
SELECT * FROM tab1 WHERE col2 + + col2 * col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 20 / col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT + MAX( DISTINCT ( col0 ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8188
SELECT + MAX ( DISTINCT ( col0 ) ) FROM tab2
----
75

query I rowsort
SELECT 91 + + 75 * col1 FROM tab0
----
166
1666
6166

query I rowsort
SELECT 28 + 89 FROM tab1
----
117
117
117

query I rowsort
SELECT DISTINCT ( 16 ) AS col1 FROM tab2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8192
SELECT * FROM tab2 WHERE NOT ( NULL ) > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8192
SELECT * FROM tab2 WHERE NOT ( NULL ) > CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 87 * + 43 + 88 FROM tab2 WHERE - col1 IS NOT NULL
----
3829
3829
3829

query I rowsort
SELECT ALL + 3 FROM tab2 WHERE NOT NULL <= ( - col1 / ( + 10 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT DISTINCT + 10 + 45 * COUNT( 86 ) FROM tab1
----
145

skipif mysql # not compatible
query I rowsort label-8195
SELECT DISTINCT + 10 + 45 * COUNT ( 86 ) FROM tab1
----
145

query I rowsort
SELECT DISTINCT + 73 * - 9 AS col1 FROM tab0 AS cor0
----
-657

query I rowsort
SELECT - 88 * col1 AS col1 FROM tab2 AS cor0
----
-4488
-5896
-6776

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 * + col0 ) <= - 22
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 15 col1 FROM tab1 AS cor0
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT MIN( DISTINCT + 32 ) FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-8200
SELECT MIN ( DISTINCT + 32 ) FROM tab2 AS cor0
----
32

query I rowsort
SELECT ALL 57 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * col0 NOT BETWEEN col2 * ( - col0 ) AND ( + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8203
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) * - MAX( - col2 + - 45 ) - COUNT( * ) AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
-207

skipif mysql # not compatible
query I rowsort label-8203
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) * - MAX ( - col2 + - 45 ) - COUNT ( * ) AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT ALL - 1 + - COUNT( * ) FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
-4

skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL - 1 + - COUNT ( * ) FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8205
SELECT * FROM tab1 AS cor0 WHERE - col0 * - CAST( 19 * - 54 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-8205
SELECT * FROM tab1 AS cor0 WHERE - col0 * - CAST ( 19 * - 54 AS INTEGER ) <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT SUM( ALL col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8207
SELECT SUM ( ALL col1 ) AS col1 FROM tab2 AS cor0
----
195

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col1 ) * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE + col0 <> NULL
----

query I rowsort
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE - ( + 58 ) * col1 = + col2
----

query I rowsort
SELECT DISTINCT - + col0 + - col2 AS col2 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT col1 * col1 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT + SUM( DISTINCT ( ( + 94 ) ) ) FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-8213
SELECT + SUM ( DISTINCT ( ( + 94 ) ) ) FROM tab1 AS cor0
----
94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( col0 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT DISTINCT - COUNT( * ) + + - SUM( ALL col1 ) FROM tab2
----
-198

skipif mysql # not compatible
query I rowsort label-8215
SELECT DISTINCT - COUNT ( * ) + + - SUM ( ALL col1 ) FROM tab2
----
-198

query I rowsort
SELECT ALL - 68 + + + col0 FROM tab1
----
-17
17
23

query I rowsort
SELECT + 42 + col0 FROM tab1 WHERE ( 52 + col0 ) IS NOT NULL
----
127
133
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT ALL 22 * - - MAX( col1 ) + - 56 AS col0 FROM tab0
----
1726

skipif mysql # not compatible
query I rowsort label-8218
SELECT ALL 22 * - - MAX ( col1 ) + - 56 AS col0 FROM tab0
----
1726

query I rowsort
SELECT ALL 19 + col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col2 * col1 + + ( col2 ) FROM tab2
----
1196
3120
3944

query I rowsort
SELECT + 76 * + col1 + col2 * col1 FROM tab2
----
5049
8932
8978

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) <> + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 + - col0 col0 FROM tab1 cor0
----
4845
4930
6097

query I rowsort
SELECT 96 + + col0 AS col0 FROM tab2 AS cor0
----
142
160
171

query I rowsort
SELECT - 5 + - col1 * + 46 FROM tab0 AS cor0
----
-3731
-51
-971

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT ALL SUM( DISTINCT - 27 ) AS col2 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL SUM ( DISTINCT - 27 ) AS col2 FROM tab2 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT 47 * COUNT( * ) AS col2 FROM tab0 cor0
----
141

skipif mysql # not compatible
query I rowsort label-8227
SELECT 47 * COUNT ( * ) AS col2 FROM tab0 cor0
----
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8228
SELECT MIN( DISTINCT + 51 ) DIV COUNT( * ) AS col1 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-8228
SELECT MIN ( DISTINCT + 51 ) / COUNT ( * ) AS col1 FROM tab1 AS cor0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8229
SELECT * FROM tab0 AS cor0 WHERE - 39 - - CAST( 11 - col1 AS SIGNED ) * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8229
SELECT * FROM tab0 AS cor0 WHERE - 39 - - CAST ( 11 - col1 AS INTEGER ) * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT AVG ( ALL 71 ) AS col2 FROM tab0 cor0 WHERE - col2 * 51 NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT ALL + 37 * COUNT( DISTINCT 61 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
37

skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL + 37 * COUNT ( DISTINCT 61 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8232
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE ( ( + col2 ) * col1 ) <= col0 + CAST( + col1 AS SIGNED ) * 82
----
47
5

skipif mysql # not compatible
query I rowsort label-8232
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE ( ( + col2 ) * col1 ) <= col0 + CAST ( + col1 AS INTEGER ) * 82
----
47
5

query I rowsort
SELECT ALL - 55 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8234
SELECT - CAST( + - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8234
SELECT - CAST ( + - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT col1 * - - col2 AS col1 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT + col2 * col1 * + col2 FROM tab0 cor0
----
178929
2100
9801

query I rowsort
SELECT col2 * - + col1 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8239
SELECT DISTINCT - 5, COUNT( * ) AS col0 FROM tab2 AS cor0
----
-5
3

skipif mysql # not compatible
query II rowsort label-8239
SELECT DISTINCT - 5, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-5
3

query I rowsort
SELECT ( 40 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8241
SELECT + CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8241
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * + - col1 AS col1 FROM tab1 cor0
----
425
4277
714

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 0 BETWEEN - col0 * ( + col0 ) AND 19
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT ( - COUNT( * ) ) FROM tab1 WHERE NOT ( col0 * 79 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8245
SELECT ( - COUNT ( * ) ) FROM tab1 WHERE NOT ( col0 * 79 ) IS NOT NULL
----
0

query I rowsort
SELECT ( - + col2 ) AS col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NULL = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT ALL MIN( + col1 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8248
SELECT ALL MIN ( + col1 ) AS col2 FROM tab0
----
1

query I rowsort
SELECT ALL - 34 * - col0 AS col1 FROM tab2
----
1564
2176
2550

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT ALL + COUNT( * ) * + 1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL + COUNT ( * ) * + 1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / col2 < ( + - 83 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( - + 59 + - col2 ) IS NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 24 * + + col0 - + col1 - col0 * col1 NOT BETWEEN NULL AND ( - 10 )
----

query I rowsort
SELECT ALL 4 + - - col0 AS col2 FROM tab2
----
50
68
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT - 70 * - - SUM( DISTINCT col0 ) * + 45 FROM tab0
----
-626850

skipif mysql # not compatible
query I rowsort label-8255
SELECT - 70 * - - SUM ( DISTINCT col0 ) * + 45 FROM tab0
----
-626850

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT + COUNT( * ) * + COUNT( * ) col1 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8256
SELECT + COUNT ( * ) * + COUNT ( * ) col1 FROM tab1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + - col2 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ( col2 ) + col1 FROM tab1 cor0
----
110
115
64

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8259
SELECT * FROM tab0 AS cor0 WHERE 40 * col0 + - col0 - - CAST( NULL AS DECIMAL ) / - ( + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8259
SELECT * FROM tab0 AS cor0 WHERE 40 * col0 + - col0 - - CAST ( NULL AS REAL ) / - ( + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 + + ( + 3 ) AS col0 FROM tab1 AS cor0
----
17
50
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8261
SELECT ALL + col2 DIV - 94 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL + col2 / - 94 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8262
SELECT ALL - col0 DIV 57 * - 0 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL - col0 / 57 * - 0 AS col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT ALL - - 45 + - COUNT( * ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-8263
SELECT ALL - - 45 + - COUNT ( * ) FROM tab0 AS cor0
----
42

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN NULL AND - 10
----
-10
-47
-99

query I rowsort
SELECT - + col2 FROM tab1 cor0 WHERE col1 IS NOT NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8266
SELECT ALL + + col1 * + 14 - CAST( + 52 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE col0 * - + 39 IS NOT NULL
----
1026
662
886

skipif mysql # not compatible
query I rowsort label-8266
SELECT ALL + + col1 * + 14 - CAST ( + 52 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE col0 * - + 39 IS NOT NULL
----
1026
662
886

query I rowsort
SELECT col2 - - col0 FROM tab1 WHERE + - col0 / + + ( + col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 col2 FROM tab0
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT + SUM( ALL + + col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8269
SELECT + SUM ( ALL + + col2 ) AS col1 FROM tab0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8270
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( - - CAST( NULL AS SIGNED ) - - 42 )
----

skipif mysql # not compatible
query III rowsort label-8270
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( - - CAST ( NULL AS INTEGER ) - - 42 )
----

query I rowsort
SELECT - ( - 28 ) * 0 - + - 65 - - col0 AS col2 FROM tab1
----
116
150
156

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8272
SELECT - 4 * - + CAST( col2 AS SIGNED ) DIV - + col0 + col2 FROM tab0
----
10
35
95

skipif mysql # not compatible
query I rowsort label-8272
SELECT - 4 * - + CAST ( col2 AS INTEGER ) / - + col0 + col2 FROM tab0
----
10
35
95

query I rowsort
SELECT DISTINCT - 55 * + + 27 + - 86 + - 48 AS col0 FROM tab0
----
-1619

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8274
SELECT DISTINCT * FROM tab2 WHERE 77 * - col2 / - 75 * - + col0 * 46 + col1 IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8274
SELECT DISTINCT * FROM tab2 WHERE 77 * - col2 / - 75 * - + col0 * 46 + col1 IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT 4 + 88 AS col1 FROM tab0
----
92

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8277
SELECT DISTINCT + MAX( + + col2 ) AS col2, AVG ( + CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
96
NULL

skipif mysql # not compatible
query II rowsort label-8277
SELECT DISTINCT + MAX ( + + col2 ) AS col2, AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT ALL - - MAX( - col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL - - MAX ( - col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8279
SELECT + CAST( - 93 AS SIGNED ) FROM tab2 AS cor0
----
-93
-93
-93

skipif mysql # not compatible
query I rowsort label-8279
SELECT + CAST ( - 93 AS INTEGER ) FROM tab2 AS cor0
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT DISTINCT - - COUNT( - ( col2 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8280
SELECT DISTINCT - - COUNT ( - ( col2 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8281
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col1 * + - CAST( + + col0 AS SIGNED ) * - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8281
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col1 * + - CAST ( + + col0 AS INTEGER ) * - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT + 76 * - COUNT( * ) * - COUNT( * ) FROM tab0
----
684

skipif mysql # not compatible
query I rowsort label-8282
SELECT + 76 * - COUNT ( * ) * - COUNT ( * ) FROM tab0
----
684

query I rowsort
SELECT + ( + 88 ) AS col2 FROM tab2
----
88
88
88

query I rowsort
SELECT DISTINCT + col0 + - 80 FROM tab1 WHERE NOT + col1 IS NULL
----
-29
11
5

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col2 < NULL
----

query II rowsort
SELECT ALL - 41, col1 FROM tab2
----
-41
51
-41
67
-41
77

query I rowsort
SELECT 74 + - + col2 / - col2 - - 92 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 * + - 69 * col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 29 * + - 8 + - col2 + 41 NOT IN ( col1 * - 71 + + - col2 + - col2 / + 82 * + col2 )
----

query I rowsort
SELECT ALL + col0 + + - 23 FROM tab2 AS cor0
----
23
41
52

onlyif mysql # DIV for integer division: 
query I rowsort label-8290
SELECT ALL - + col0 DIV + 56 col2 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8290
SELECT ALL - + col0 / + 56 col2 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT COUNT( * ) * - 78 + + + MAX( ALL - + col2 ) FROM tab2 AS cor0
----
-257

skipif mysql # not compatible
query I rowsort label-8291
SELECT COUNT ( * ) * - 78 + + + MAX ( ALL - + col2 ) FROM tab2 AS cor0
----
-257

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8292
SELECT ALL CAST( NULL AS SIGNED ) + CAST( + - 80 AS SIGNED ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL CAST ( NULL AS INTEGER ) + CAST ( + - 80 AS INTEGER ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT ALL - COUNT( * ) FROM tab2 WHERE + + 4 + + + 23 + 94 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8293
SELECT ALL - COUNT ( * ) FROM tab2 WHERE + + 4 + + + 23 + 94 IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 39 ) col1 FROM tab0 WHERE NULL IS NULL
----
-39
-39
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8295
SELECT DISTINCT + ( - ( - ( CAST( - + col2 AS SIGNED ) ) ) ) * col2 + - col0 AS col2 FROM tab2
----
-1664
-3439
-575

skipif mysql # not compatible
query I rowsort label-8295
SELECT DISTINCT + ( - ( - ( CAST ( - + col2 AS INTEGER ) ) ) ) * col2 + - col0 AS col2 FROM tab2
----
-1664
-3439
-575

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT ALL COUNT( DISTINCT + ( - ( - col2 ) ) ) * MIN( DISTINCT 43 ) FROM tab2 cor0
----
129

skipif mysql # not compatible
query I rowsort label-8296
SELECT ALL COUNT ( DISTINCT + ( - ( - col2 ) ) ) * MIN ( DISTINCT 43 ) FROM tab2 cor0
----
129

query II rowsort
SELECT + + 24, ( + - col0 ) + + col2 FROM tab2 cor0 WHERE - col2 + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8298
SELECT DISTINCT + ( ( CAST( - 61 AS SIGNED ) ) ) * + - col0 AS col1 FROM tab1 AS cor0
----
3111
5185
5551

skipif mysql # not compatible
query I rowsort label-8298
SELECT DISTINCT + ( ( CAST ( - 61 AS INTEGER ) ) ) * + - col0 AS col1 FROM tab1 AS cor0
----
3111
5185
5551

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT MIN( 17 ) col0 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8299
SELECT MIN ( 17 ) col0 FROM tab1 AS cor0
----
17

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8300
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-8300
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( + CAST ( NULL AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8301
SELECT + col0 * + col0 * ( + col0 ) * - CAST( + - col0 AS SIGNED ) + + 32 FROM tab2 AS cor0
----
16777248
31640657
4477488

skipif mysql # not compatible
query I rowsort label-8301
SELECT + col0 * + col0 * ( + col0 ) * - CAST ( + - col0 AS INTEGER ) + + 32 FROM tab2 AS cor0
----
16777248
31640657
4477488

query I rowsort
SELECT DISTINCT - 72 + + - ( + ( - 91 ) ) AS col0 FROM tab1
----
19

onlyif mysql # DIV for integer division: 
query II rowsort label-8303
SELECT ALL 92 DIV - - col0 - - col0 AS col1, + col2 AS col1 FROM tab2
----
48
23
65
40
76
58

skipif mysql # not compatible
query II rowsort label-8303
SELECT ALL 92 / - - col0 - - col0 AS col1, + col2 AS col1 FROM tab2
----
48
23
65
40
76
58

query II rowsort
SELECT ALL + col1 * 56 + - - col1 AS col1, - 57 FROM tab2
----
2907
-57
3819
-57
4389
-57

query III rowsort
SELECT * FROM tab2 WHERE - - 47 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL 28 AS col0 FROM tab1 WHERE - 10 * ( - col1 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col1 * + - col0 - + - col1 FROM tab0
----
-1134
-1806
-96

query I rowsort
SELECT - col2 * + 34 FROM tab0 AS cor0
----
-1598
-3366
-340

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT col2 NOT BETWEEN + - ( - 75 ) AND col0 )
----

query I rowsort
SELECT - col0 * - + col1 FROM tab2 cor0
----
2346
4928
5025

query I rowsort
SELECT ALL col0 FROM tab1 cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8313
SELECT 92 DIV - SUM( + 94 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8313
SELECT 92 / - SUM ( + 94 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT ALL SUM( + 51 ) AS col1 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-8314
SELECT ALL SUM ( + 51 ) AS col1 FROM tab1
----
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, - col2 col2 FROM tab2
----
23
-23
40
-40
58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8316
SELECT ( CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8316
SELECT ( CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 col1, + col2 * - + col1 + + col1 + col1 FROM tab1 AS cor0
----
51
-1316
85
-285
91
-3102

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT - MAX( DISTINCT + ( 71 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT - col2 + - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8318
SELECT - MAX ( DISTINCT + ( 71 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT - col2 + - col2 IS NOT NULL
----
NULL

query II rowsort
SELECT ALL + ( - col0 ), 92 AS col2 FROM tab1 AS cor0
----
-51
92
-85
92
-91
92

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 87 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8321
SELECT - COUNT( * ) AS col2, - COUNT( * ) + 7 * + ( - 25 ) FROM tab1 AS cor0
----
-3
-178

skipif mysql # not compatible
query II rowsort label-8321
SELECT - COUNT ( * ) AS col2, - COUNT ( * ) + 7 * + ( - 25 ) FROM tab1 AS cor0
----
-3
-178

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 - - 54 * col2 > NULL
----

query II rowsort
SELECT ALL + col2, col0 AS col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8325
SELECT - CAST( - - SUM( DISTINCT - col2 ) AS SIGNED ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-8325
SELECT - CAST ( - - SUM ( DISTINCT - col2 ) AS INTEGER ) AS col0 FROM tab1
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8326
SELECT DISTINCT col1 * + 89 + col1 + + CAST( col1 AS SIGNED ) FROM tab1
----
1274
4277
455

skipif mysql # not compatible
query I rowsort label-8326
SELECT DISTINCT col1 * + 89 + col1 + + CAST ( col1 AS INTEGER ) FROM tab1
----
1274
4277
455

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8327
SELECT DISTINCT CAST( AVG ( + ( 54 ) ) AS SIGNED ) AS col2 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-8327
SELECT DISTINCT CAST ( AVG ( + ( 54 ) ) AS INTEGER ) AS col2 FROM tab2
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8328
SELECT DISTINCT - 26 * - + col1 + col1 DIV + + col0 AS col0 FROM tab0
----
2111
26
546

skipif mysql # not compatible
query I rowsort label-8328
SELECT DISTINCT - 26 * - + col1 + col1 / + + col0 AS col0 FROM tab0
----
2111
26
546

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 25 <= ( - col2 ) AND NOT NULL IS NULL
----

query I rowsort
SELECT ALL col2 * ( - + col1 ) AS col0 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT + col0 / + + col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 42 >= + ( - + 30 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 * + 40 >= NULL
----

query II rowsort
SELECT DISTINCT - col2 + col0 + - col1 AS col2, - 47 + + + col2 FROM tab2 cor0
----
-28
-24
-50
11
-53
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-8335
SELECT ALL COUNT( * ) + + - 48 AS col1, - 27 AS col0 FROM tab1
----
-45
-27

skipif mysql # not compatible
query II rowsort label-8335
SELECT ALL COUNT ( * ) + + - 48 AS col1, - 27 AS col0 FROM tab1
----
-45
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT ( + MAX( DISTINCT col0 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8336
SELECT ( + MAX ( DISTINCT col0 ) ) FROM tab1
----
91

query II rowsort
SELECT col0 * + 16 - + col0 * + + 82, + col0 FROM tab1
----
-3366
51
-5610
85
-6006
91

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab1 AS cor0 WHERE 77 IS NULL
----

query I rowsort
SELECT DISTINCT + - 42 AS col0 FROM tab2 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT ALL + MIN( DISTINCT col1 ) * + 6 FROM tab2 cor0
----
306

skipif mysql # not compatible
query I rowsort label-8340
SELECT ALL + MIN ( DISTINCT col1 ) * + 6 FROM tab2 cor0
----
306

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT + MIN( col2 ) * - 64 FROM tab0
----
-640

skipif mysql # not compatible
query I rowsort label-8341
SELECT + MIN ( col2 ) * - 64 FROM tab0
----
-640

onlyif mysql # DIV for integer division: 
query I rowsort label-8342
SELECT ALL + 34 DIV 88 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL + 34 / 88 AS col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
54
54
54

query I rowsort
SELECT AVG ( - 69 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8345
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----
0

query II rowsort
SELECT ALL - col2 AS col0, 37 + - col0 + - + 97 FROM tab0 AS cor0
----
-10
-147
-47
-75
-99
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT ALL + MAX( + col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8347
SELECT ALL + MAX ( + col0 ) AS col0 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT - SUM( + 22 ) AS col2 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8348
SELECT - SUM ( + 22 ) AS col2 FROM tab0 AS cor0
----
-66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 = ( + ( - col2 ) ) + + - col2 - - + col1 + - 9
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE - 91 < + ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8351
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * - 49 < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8351
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * - 49 < CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + - col0 + - + col2 AS col2 FROM tab2 WHERE NOT - 41 IS NULL
----
-104
-133
-69

query I rowsort
SELECT DISTINCT 2 * - col0 AS col0 FROM tab2
----
-128
-150
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8354
SELECT ALL + CAST( - COUNT( ALL 45 ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8354
SELECT ALL + CAST ( - COUNT ( ALL 45 ) AS INTEGER ) FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, - col0 + col2 col0 FROM tab2 AS cor0
----
23
-23
40
-24
58
-17

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8356
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 26 * - - col0 / + + CAST( NULL AS DECIMAL ) + + - col2 * 14 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8356
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 26 * - - col0 / + + CAST ( NULL AS REAL ) + + - col2 * 14 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8357
SELECT * FROM tab0 AS cor0 WHERE col0 + - + col0 <= - col0 - - ( + col1 ) * - CAST( - - 92 AS SIGNED ) * - 11
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8357
SELECT * FROM tab0 AS cor0 WHERE col0 + - + col0 <= - col0 - - ( + col1 ) * - CAST ( - - 92 AS INTEGER ) * - 11
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8358
SELECT col1 + + - 71 DIV col2 AS col1 FROM tab2 AS cor0
----
48
66
76

skipif mysql # not compatible
query I rowsort label-8358
SELECT col1 + + - 71 / col2 AS col1 FROM tab2 AS cor0
----
48
66
76

query I rowsort
SELECT DISTINCT col2 + - - 2 * - col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT ALL - 47 AS col2 FROM tab1 cor0
----
-47
-47
-47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + + 46 * + col1 * + + col0 IS NULL AND NOT ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT ALL + 6 * MAX( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-8363
SELECT ALL + 6 * MAX ( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
-138

query II rowsort
SELECT ( col0 ) - - - col1, col0 FROM tab0 AS cor0
----
-66
15
66
87
96
97

query I rowsort
SELECT - 65 - - ( - - col2 ) AS col2 FROM tab1 AS cor0
----
-6
3
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8366
SELECT - + ( col2 ) + - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) + col0 + + col0 * + col0 col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8366
SELECT - + ( col2 ) + - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + col0 + + col0 * + col0 col1 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - + col2 + + col1 AS col2, + col0 AS col1 FROM tab2 AS cor0
----
28
46
37
64
9
75

query I rowsort
SELECT DISTINCT 8 + + col0 FROM tab2
----
54
72
83

query III rowsort
SELECT ALL * FROM tab1 WHERE + 3 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8370
SELECT DISTINCT 75 DIV + + col1 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-8370
SELECT DISTINCT 75 / + + col1 FROM tab2
----
0
1

query I rowsort
SELECT 88 * + col1 FROM tab2
----
4488
5896
6776

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - ( col2 ), col0 * col1 * 82 + col1 )
----

query I rowsort
SELECT - + 72 + - - 76 * + col0 - + - col0 FROM tab0 WHERE NOT + 44 * + - 23 * - ( + col2 ) + col2 + + + 33 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * - + col2 FROM tab2 cor0 WHERE NOT col0 + - + 22 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8375
SELECT ALL 36 * 49 * + - CAST( - + ( + - col1 ) AS SIGNED ) FROM tab1 AS cor0
----
-24696
-82908
-8820

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL 36 * 49 * + - CAST ( - + ( + - col1 ) AS INTEGER ) FROM tab1 AS cor0
----
-24696
-82908
-8820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8376
SELECT - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 WHERE NOT ( - col0 ) NOT BETWEEN + col1 / + - 90 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8376
SELECT - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 WHERE NOT ( - col0 ) NOT BETWEEN + col1 / + - 90 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT DISTINCT - COUNT( * ) * + 54 * - 79 AS col2 FROM tab1 cor0
----
12798

skipif mysql # not compatible
query I rowsort label-8377
SELECT DISTINCT - COUNT ( * ) * + 54 * - 79 AS col2 FROM tab1 cor0
----
12798

query II rowsort
SELECT DISTINCT - col1 + 80 AS col1, col0 FROM tab2 AS cor0
----
13
75
29
46
3
64

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 * - 3 AND + col0
----

query I rowsort
SELECT DISTINCT - col0 + + 98 AS col0 FROM tab2
----
23
34
52

query I rowsort
SELECT DISTINCT 66 + + 57 AS col1 FROM tab1
----
123

query I rowsort
SELECT - col0 * - 93 FROM tab0
----
1395
8091
9021

query I rowsort
SELECT 12 * - - col0 AS col0 FROM tab0
----
1044
1164
180

query I rowsort
SELECT DISTINCT col0 * - 21 FROM tab2
----
-1344
-1575
-966

query III rowsort
SELECT * FROM tab2 WHERE NULL >= + + col0 - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT SUM( ALL 77 ) FROM tab0 cor0
----
231

skipif mysql # not compatible
query I rowsort label-8386
SELECT SUM ( ALL 77 ) FROM tab0 cor0
----
231

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 93 IS NULL
----

query I rowsort
SELECT DISTINCT - 36 FROM tab0, tab1 AS cor0
----
-36

query III rowsort
SELECT * FROM tab0 WHERE ( ( col0 ) ) > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8390
SELECT 96 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8390
SELECT 96 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8391
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col0 + + 9 AND - col1 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8391
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col0 + + 9 AND - col1 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT ALL + COUNT( DISTINCT - 70 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL + COUNT ( DISTINCT - 70 ) AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8393
SELECT - - ( - col1 ) + + + col0 + + CAST( NULL AS SIGNED ), col2 - col1 AS col0 FROM tab1 AS cor0 WHERE col2 <= + - 23
----

skipif mysql # not compatible
query II rowsort label-8393
SELECT - - ( - col1 ) + + + col0 + + CAST ( NULL AS INTEGER ), col2 - col1 AS col0 FROM tab1 AS cor0 WHERE col2 <= + - 23
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8394
SELECT 50 DIV + col0 AS col1 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-8394
SELECT 50 / + col0 AS col1 FROM tab0 AS cor0
----
0
0
3

query I rowsort
SELECT DISTINCT + col0 + + - col1 AS col1 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT ALL - col2 * col0 + - col2 AS col2 FROM tab2 AS cor0
----
-1081
-2600
-4408

query I rowsort
SELECT ALL - col0 * + col2 + - 2 FROM tab1 AS cor0 WHERE NOT col0 + - - col0 > NULL
----

query I rowsort
SELECT DISTINCT ( + 75 ) FROM tab0
----
75

query II rowsort
SELECT ALL ( col0 ), - col0 AS col2 FROM tab2
----
46
-46
64
-64
75
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8400
SELECT CAST( NULL AS SIGNED ) * + - COUNT( * ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8400
SELECT CAST ( NULL AS INTEGER ) * + - COUNT ( * ) col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT - MIN( DISTINCT - 11 ) FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-8401
SELECT - MIN ( DISTINCT - 11 ) FROM tab0
----
11

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE ( NULL ) IN ( + 70 + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8403
SELECT ALL col1 * CAST( NULL AS SIGNED ) AS col0, + CAST( NULL AS DECIMAL ) - - col0 / + col0 AS col0, + - col1 FROM tab2 AS cor0
----
9 values hashing to 5b41ace4572e9be4775153719d3ea5db

skipif mysql # not compatible
query III rowsort label-8403
SELECT ALL col1 * CAST ( NULL AS INTEGER ) AS col0, + CAST ( NULL AS REAL ) - - col0 / + col0 AS col0, + - col1 FROM tab2 AS cor0
----
9 values hashing to 5b41ace4572e9be4775153719d3ea5db

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 11 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - col2, - col1 * + 67 )
----

query I rowsort
SELECT ALL col2 * + - 62 FROM tab2
----
-1426
-2480
-3596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8407
SELECT ALL - COUNT( * ) * - + MAX( ALL + + 39 ) DIV - - COUNT( * ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL - COUNT ( * ) * - + MAX ( ALL + + 39 ) / - - COUNT ( * ) FROM tab2
----
39

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN col2 AND NULL
----

query II rowsort
SELECT + col0 AS col0, 77 FROM tab1 AS cor0
----
51
77
85
77
91
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + + col0 col2 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query II rowsort label-8411
SELECT ALL col0 DIV + 32 + + col1, col0 FROM tab2 AS cor0
----
52
46
69
75
79
64

skipif mysql # not compatible
query II rowsort label-8411
SELECT ALL col0 / + 32 + + col1, col0 FROM tab2 AS cor0
----
52
46
69
75
79
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT ALL + COUNT( * ) * + - COUNT( * ) + - + 55 FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) + - + 55 FROM tab0 AS cor0
----
-64

query I rowsort
SELECT + ( - + 85 ) AS col0 FROM tab2 cor0
----
-85
-85
-85

query I rowsort
SELECT 81 * + col0 * + 7 FROM tab1 AS cor0
----
28917
48195
51597

query I rowsort
SELECT ALL - 42 * col1 * + col2 * + col2 + + col0 * + - 93 FROM tab0
----
-420663
-7516413
-96291

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT - COUNT( 34 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8416
SELECT - COUNT ( 34 ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT col0 * - 66 AS col2 FROM tab2
----
-3036
-4224
-4950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8418
SELECT - col1 * + col2 + CAST( NULL AS SIGNED ) + + - col1 * - col1 * col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8418
SELECT - col1 * + col2 + CAST ( NULL AS INTEGER ) + + - col1 * - col1 * col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * - col2 + + + col0 FROM tab1
----
-1293
-210
-3105

query III rowsort
SELECT * FROM tab2 WHERE ( 31 > NULL )
----

query I rowsort
SELECT DISTINCT - col2 * + 53 AS col0 FROM tab0
----
-2491
-5247
-530

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT NULL IN ( - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT ALL + MAX( ALL col2 ) AS col0 FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-8423
SELECT ALL + MAX ( ALL col2 ) AS col0 FROM tab2 cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8424
SELECT + - col0 * col1 + CAST( NULL AS SIGNED ) - + - col2, 8 AS col2 FROM tab0 AS cor0
----
NULL
8
NULL
8
NULL
8

skipif mysql # not compatible
query II rowsort label-8424
SELECT + - col0 * col1 + CAST ( NULL AS INTEGER ) - + - col2, 8 AS col2 FROM tab0 AS cor0
----
NULL
8
NULL
8
NULL
8

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 93 ) * + 21 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + 1 FROM tab1 AS cor0
----
60
69
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT DISTINCT COUNT( * ) + - 81 col1 FROM tab1
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8427
SELECT DISTINCT COUNT ( * ) + - 81 col1 FROM tab1
----
-78

query I rowsort
SELECT - ( 66 ) - + 80 FROM tab2 AS cor0
----
-146
-146
-146

query I rowsort
SELECT + 97 * + 23 FROM tab0 AS cor0
----
2231
2231
2231

query II rowsort
SELECT DISTINCT col1 AS col0, - col0 AS col2 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-8431
SELECT - + col1 DIV + col1 * + CAST( - col2 AS SIGNED ) DIV - col2 AS col2, + col0, col1 FROM tab0 AS cor0
----
9 values hashing to 9d4cdf202d77d8595b0c0b9f14c0f3f7

skipif mysql # not compatible
query III rowsort label-8431
SELECT - + col1 / + col1 * + CAST ( - col2 AS INTEGER ) / - col2 AS col2, + col0, col1 FROM tab0 AS cor0
----
9 values hashing to 9d4cdf202d77d8595b0c0b9f14c0f3f7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8432
SELECT CAST( NULL AS SIGNED ), col1 * 86 AS col2 FROM tab1
----
NULL
1204
NULL
4042
NULL
430

skipif mysql # not compatible
query II rowsort label-8432
SELECT CAST ( NULL AS INTEGER ), col1 * 86 AS col2 FROM tab1
----
NULL
1204
NULL
4042
NULL
430

onlyif mysql # DIV for integer division: 
query II rowsort label-8433
SELECT ALL col0, 79 DIV col2 AS col0 FROM tab0
----
15
1
87
7
97
0

skipif mysql # not compatible
query II rowsort label-8433
SELECT ALL col0, 79 / col2 AS col0 FROM tab0
----
15
1
87
7
97
0

query III rowsort
SELECT ALL * FROM tab2 WHERE 36 > + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, col0 + - col2 col0 FROM tab2
----
-46
23
-64
24
-75
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 col0 FROM tab1
----
44
44
44

query I rowsort
SELECT DISTINCT ( - - 1 ) * - - col2 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8438
SELECT - 71 / 85 + - col0 - - col0 col2, + col2 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8438
SELECT - 71 / 85 + - col0 - - col0 col2, + col2 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT - COUNT( * ) - - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 62 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8439
SELECT - COUNT ( * ) - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 62 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8440
SELECT ALL - col1 col2, + col1 - - CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-51
74
-67
125
-77
117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8440
SELECT ALL - col1 col2, + col1 - - CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-51
74
-67
125
-77
117

query I rowsort
SELECT ALL + col1 * - col0 + + col0 * - col2 * - + col1 FROM tab0
----
16443
55890
9506

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( + 6 ) <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8443
SELECT 19 * + CAST( NULL AS SIGNED ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8443
SELECT 19 * + CAST ( NULL AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT 99 + MIN( ALL - + ( - ( col1 ) ) ) FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-8444
SELECT 99 + MIN ( ALL - + ( - ( col1 ) ) ) FROM tab0 AS cor0
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-8445
SELECT - - col2 * col1 DIV + col1 + + + col2 AS col0 FROM tab0 AS cor0
----
198
20
94

skipif mysql # not compatible
query I rowsort label-8445
SELECT - - col2 * col1 / + col1 + + + col2 AS col0 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT DISTINCT col1 / + 91 + + 77 * - 28 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - 28 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8448
SELECT DISTINCT + SUM( DISTINCT + col2 ) + - 75 DIV + 54 AS col0 FROM tab1
----
222

skipif mysql # not compatible
query I rowsort label-8448
SELECT DISTINCT + SUM ( DISTINCT + col2 ) + - 75 / + 54 AS col0 FROM tab1
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT DISTINCT 19 * - - SUM( ALL - - col1 ) FROM tab2
----
3705

skipif mysql # not compatible
query I rowsort label-8449
SELECT DISTINCT 19 * - - SUM ( ALL - - col1 ) FROM tab2
----
3705

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT ALL + ( MIN( col2 ) ) + - + 48 * + 42 FROM tab0
----
-2006

skipif mysql # not compatible
query I rowsort label-8450
SELECT ALL + ( MIN ( col2 ) ) + - + 48 * + 42 FROM tab0
----
-2006

query I rowsort
SELECT - col0 * 47 AS col2 FROM tab0
----
-4089
-4559
-705

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 42, - col0 col1 FROM tab1
----
42
-51
42
-85
42
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8453
SELECT DISTINCT + + CAST( col2 AS SIGNED ) FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8453
SELECT DISTINCT + + CAST ( col2 AS INTEGER ) FROM tab1 cor0
----
59
68
96

query II rowsort
SELECT DISTINCT + col0 AS col1, col0 AS col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT 6 + + + col1 FROM tab0
----
27
7
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 40 + - + col0 col2, col2 AS col1 FROM tab1
----
-11
96
-45
59
-51
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT + COUNT( * ) - 89 * + + COUNT( * ) * - 4 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
3213

skipif mysql # not compatible
query I rowsort label-8457
SELECT + COUNT ( * ) - 89 * + + COUNT ( * ) * - 4 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
3213

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 39 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * - - 69 IS NOT NULL
----

query I rowsort
SELECT ALL - ( - + col2 ) AS col0 FROM tab1 cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8461
SELECT * FROM tab0 cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8461
SELECT * FROM tab0 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT - MAX( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8462
SELECT - MAX ( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
51

query I rowsort
SELECT DISTINCT col1 + 23 AS col2 FROM tab2 AS cor0 WHERE NULL = + ( - 34 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT + + 6 * + SUM( col0 ) FROM tab1 AS cor0
----
1362

skipif mysql # not compatible
query I rowsort label-8464
SELECT + + 6 * + SUM ( col0 ) FROM tab1 AS cor0
----
1362

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT 75 * + 72 * + COUNT( * ) FROM tab2
----
16200

skipif mysql # not compatible
query I rowsort label-8465
SELECT 75 * + 72 * + COUNT ( * ) FROM tab2
----
16200

onlyif mysql # DIV for integer division: 
query I rowsort label-8466
SELECT col2 DIV - - col1 AS col2 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-8466
SELECT col2 / - - col1 AS col2 FROM tab0
----
0
0
99

query I rowsort
SELECT + col2 * + + 65 FROM tab2
----
1495
2600
3770

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT 34 * - MAX( - + col0 ) AS col1 FROM tab0
----
510

skipif mysql # not compatible
query I rowsort label-8468
SELECT 34 * - MAX ( - + col0 ) AS col1 FROM tab0
----
510

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8469
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( - col1 ) > CAST( col1 AS DECIMAL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8469
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( - col1 ) > CAST ( col1 AS REAL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT ALL + ( + + MAX( ALL + 22 ) ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-8470
SELECT ALL + ( + + MAX ( ALL + 22 ) ) FROM tab1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT + ( + 26 ) + MAX( + col0 ) FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-8471
SELECT + ( + 26 ) + MAX ( + col0 ) FROM tab0 AS cor0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT + + ( - SUM( - col0 ) ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
230

skipif mysql # not compatible
query I rowsort label-8472
SELECT + + ( - SUM ( - col0 ) ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
230

query I rowsort
SELECT - - col0 + - - col2 AS col0 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT - + ( 11 ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8475
SELECT * FROM tab0 WHERE - CAST( col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8475
SELECT * FROM tab0 WHERE - CAST ( col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 88 * + - col1 + + + 53 FROM tab0 cor0
----
-1795
-35
-7075

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8477
SELECT DISTINCT + CAST( 36 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-8477
SELECT DISTINCT + CAST ( 36 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT SUM( col1 ) * + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-8478
SELECT SUM ( col1 ) * + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
585

query I rowsort
SELECT DISTINCT + col0 + col0 * + 32 FROM tab1 AS cor0
----
1683
2805
3003

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT + MIN( + - col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8480
SELECT + MIN ( + - col0 ) AS col2 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE - 48 BETWEEN col1 / + col0 AND NULL
----

query I rowsort
SELECT ALL + 57 * - + col1 * - 10 + 8 AS col2 FROM tab2
----
29078
38198
43898

query I rowsort
SELECT DISTINCT 83 - col0 AS col2 FROM tab1
----
-2
-8
32

query I rowsort
SELECT - col2 + + 51 FROM tab2
----
-7
11
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT ALL - COUNT( * ) - COUNT( * ) AS col0 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-8485
SELECT ALL - COUNT ( * ) - COUNT ( * ) AS col0 FROM tab0
----
-6

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) < - col1 - - 45
----

query I rowsort
SELECT ALL + 64 + col1 FROM tab0
----
145
65
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8488
SELECT CAST( 91 AS SIGNED ) * - COUNT( * ) + 80 + - - 66 FROM tab0
----
-127

skipif mysql # not compatible
query I rowsort label-8488
SELECT CAST ( 91 AS INTEGER ) * - COUNT ( * ) + 80 + - - 66 FROM tab0
----
-127

query I rowsort
SELECT - 18 * 2 + + 84 FROM tab1
----
48
48
48

query II rowsort
SELECT ALL + + 55 + + - ( - + 42 ), col2 AS col2 FROM tab2 AS cor0
----
97
23
97
40
97
58

query I rowsort
SELECT ( 67 ) * + 99 + - col2 FROM tab0 AS cor0
----
6534
6586
6623

onlyif mysql # aggregate syntax: 
query II rowsort label-8492
SELECT ALL COUNT( ALL + ( - col1 ) ) * - + COUNT( * ) + - - 75 AS col2, 67 AS col1 FROM tab2 AS cor0
----
66
67

skipif mysql # not compatible
query II rowsort label-8492
SELECT ALL COUNT ( ALL + ( - col1 ) ) * - + COUNT ( * ) + - - 75 AS col2, 67 AS col1 FROM tab2 AS cor0
----
66
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT DISTINCT + + SUM( - col0 ) FROM tab2 AS cor0 WHERE NOT 94 NOT BETWEEN 9 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8493
SELECT DISTINCT + + SUM ( - col0 ) FROM tab2 AS cor0 WHERE NOT 94 NOT BETWEEN 9 AND NULL
----
NULL

query I rowsort
SELECT DISTINCT 12 * + col0 + + 67 FROM tab0 AS cor0 WHERE - col1 < + - col2
----
1111
247

query I rowsort
SELECT ( - 57 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT ALL - - ( - 18 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8497
SELECT 66 AS col0, col0 * - CAST( NULL AS SIGNED ) FROM tab1
----
66
NULL
66
NULL
66
NULL

skipif mysql # not compatible
query II rowsort label-8497
SELECT 66 AS col0, col0 * - CAST ( NULL AS INTEGER ) FROM tab1
----
66
NULL
66
NULL
66
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT ALL - - MAX( DISTINCT + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8498
SELECT ALL - - MAX ( DISTINCT + col2 ) FROM tab2 AS cor0
----
58

query II rowsort
SELECT + ( + ( - col0 ) ) * + col2 * - + 20 * - ( + ( - col1 ) ), + col2 FROM tab0 cor0
----
1142100
47
192060
99
365400
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8500
SELECT ALL - CAST( - col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8500
SELECT ALL - CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT DISTINCT - MAX( DISTINCT + + 21 ) AS col0 FROM tab0 AS cor0 WHERE + 11 * col0 NOT BETWEEN + - col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8501
SELECT DISTINCT - MAX ( DISTINCT + + 21 ) AS col0 FROM tab0 AS cor0 WHERE + 11 * col0 NOT BETWEEN + - col1 AND NULL
----
NULL

query II rowsort
SELECT + col1 AS col2, col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT DISTINCT + + col1 + - 33 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT + 69 * + col2 FROM tab2 AS cor0
----
1587
2760
4002

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT + - col0 + + col1 NOT BETWEEN 49 AND - + col2
----
0

skipif mysql # not compatible
query I rowsort label-8505
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT + - col0 + + col1 NOT BETWEEN 49 AND - + col2
----
0

query I rowsort
SELECT ALL + col2 * + col2 AS col0 FROM tab1 WHERE NOT col1 - + + ( col0 ) >= + 47
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT ALL + SUM( 1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8507
SELECT ALL + SUM ( 1 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8508
SELECT + col1 * CAST( + col1 AS SIGNED ) AS col0 FROM tab2
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-8508
SELECT + col1 * CAST ( + col1 AS INTEGER ) AS col0 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT 3 * + + col0 * + + col0 FROM tab0
----
22707
28227
675

query I rowsort
SELECT - 8 * + + 78 FROM tab0
----
-624
-624
-624

onlyif mysql # DIV for integer division: 
query II rowsort label-8511
SELECT + 26 DIV col2 AS col1, col0 FROM tab2
----
0
64
0
75
1
46

skipif mysql # not compatible
query II rowsort label-8511
SELECT + 26 / col2 AS col1, col0 FROM tab2
----
0
64
0
75
1
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT + COUNT( - - col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8512
SELECT + COUNT ( - - col1 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 <= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT 15 + + - 98 - + - COUNT( * ) AS col0 FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-8515
SELECT 15 + + - 98 - + - COUNT ( * ) AS col0 FROM tab1
----
-80

query I rowsort
SELECT DISTINCT col1 * - - col2 FROM tab0 AS cor0 WHERE NOT col1 * + col2 / + 13 NOT BETWEEN + col2 * - col1 AND NULL
----

query II rowsort
SELECT DISTINCT + + col2 AS col1, 63 * + 91 FROM tab1 AS cor0 WHERE NOT - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT DISTINCT - MAX( 64 ) FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-8518
SELECT DISTINCT - MAX ( 64 ) FROM tab0 AS cor0
----
-64

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE + col0 * - col1 <> - col2 + + col1
----
23
40
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT ALL - 78 AS col0 FROM tab2 cor0
----
-78
-78
-78

query I rowsort
SELECT DISTINCT - col0 + - 48 * + col2 FROM tab1 AS cor0
----
-2917
-3355
-4659

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT COUNT( 48 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8523
SELECT COUNT ( 48 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8524
SELECT DISTINCT - col0 + + + col1 + + CAST( NULL AS SIGNED ) * col0 * col1 + + col0 col0, 85 AS col1 FROM tab0
----
NULL
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8524
SELECT DISTINCT - col0 + + + col1 + + CAST ( NULL AS INTEGER ) * col0 * col1 + + col0 col0, 85 AS col1 FROM tab0
----
NULL
85

query II rowsort
SELECT + col0, col2 AS col2 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8526
SELECT - ( - - CAST( + 45 AS SIGNED ) ) FROM tab0
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-8526
SELECT - ( - - CAST ( + 45 AS INTEGER ) ) FROM tab0
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT ALL + MIN( ALL - 45 ) AS col2 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-8527
SELECT ALL + MIN ( ALL - 45 ) AS col2 FROM tab0
----
-45

query I rowsort
SELECT + - 29 - + col2 FROM tab1 AS cor0
----
-125
-88
-97

query I rowsort
SELECT DISTINCT + col0 * - 54 FROM tab1 AS cor0
----
-2754
-4590
-4914

query I rowsort
SELECT DISTINCT - - col2 * 42 FROM tab0 AS cor0
----
1974
4158
420

query I rowsort
SELECT ( + 38 ) AS col2 FROM tab1 AS cor0 WHERE NOT 82 <> ( - - col2 )
----

query I rowsort
SELECT ALL 29 * col2 * - + col0 AS col2 FROM tab2 AS cor0
----
-126150
-30682
-74240

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 7 / - - 72 + + + col0 * - + col1 + + col2 * - + 71 / + + 80 = ( NULL )
----

query I rowsort
SELECT - col2 / - ( - + col2 ) * - + col1 FROM tab1 cor0 WHERE NOT NULL NOT IN ( - col2 )
----

query I rowsort
SELECT 75 * + + 5 FROM tab1
----
375
375
375

onlyif mysql # aggregate syntax: 
query II rowsort label-8536
SELECT ALL + COUNT( * ) AS col2, MIN( col0 ) AS col2 FROM tab1
----
3
51

skipif mysql # not compatible
query II rowsort label-8536
SELECT ALL + COUNT ( * ) AS col2, MIN ( col0 ) AS col2 FROM tab1
----
3
51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 / + col2 BETWEEN NULL AND - col2 * - 18
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8538
SELECT DISTINCT CAST( - 2 AS SIGNED ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-8538
SELECT DISTINCT CAST ( - 2 AS INTEGER ) FROM tab1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT DISTINCT + SUM( DISTINCT - - ( - col2 ) ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-8539
SELECT DISTINCT + SUM ( DISTINCT - - ( - col2 ) ) AS col0 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT ALL + COUNT( * ) * - 44 FROM tab1 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-8540
SELECT ALL + COUNT ( * ) * - 44 FROM tab1 AS cor0
----
-132

query I rowsort
SELECT ALL + 46 FROM tab1 cor0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT ALL - COUNT( * ) AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT ALL 61 * COUNT( - col0 ) * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
549

skipif mysql # not compatible
query I rowsort label-8543
SELECT ALL 61 * COUNT ( - col0 ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
549

query I rowsort
SELECT DISTINCT + col1 * - col1 + + - 69 FROM tab0 AS cor0
----
-510
-6630
-70

query I rowsort
SELECT DISTINCT + 72 AS col1 FROM tab0, tab1 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT - COUNT( ALL - + col0 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8546
SELECT - COUNT ( ALL - + col0 ) AS col2 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8547
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL <> - col1
----

skipif mysql # not compatible
query I rowsort label-8547
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT ALL + + SUM( ALL - ( col1 ) ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8548
SELECT ALL + + SUM ( ALL - ( col1 ) ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT ALL - 70 / - 22 AS col0 FROM tab0 AS cor0 WHERE NOT 62 IS NOT NULL
----

query II rowsort
SELECT col1 + + 69 + + col1 * - 55, + col1 AS col0 FROM tab1 AS cor0
----
-201
5
-2469
47
-687
14

query I rowsort
SELECT DISTINCT + - col0 + + - col1 + - + col1 FROM tab2 AS cor0
----
-148
-209
-218

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT DISTINCT + - ( COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8552
SELECT DISTINCT + - ( COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 - - col0 + - 78 BETWEEN NULL AND - + col1
----

query I rowsort
SELECT ALL + col2 + 81 FROM tab2 AS cor0
----
104
121
139

query I rowsort
SELECT col2 + + 76 FROM tab1 AS cor0
----
135
144
172

query II rowsort
SELECT - col0, col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 + + 93 AS col2 FROM tab2
----
144
160
170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8558
SELECT DISTINCT CAST( - col1 AS SIGNED ) * + col1 - + 23 FROM tab0
----
-24
-464
-6584

skipif mysql # not compatible
query I rowsort label-8558
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * + col1 - + 23 FROM tab0
----
-24
-464
-6584

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 WHERE - 64 IS NOT NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - 34 col1 FROM tab1
----
-39
-48
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT ALL + MAX( DISTINCT - 63 ) FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-8561
SELECT ALL + MAX ( DISTINCT - 63 ) FROM tab1 AS cor0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT DISTINCT - - COUNT( * ) * - COUNT( * ) FROM tab1 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8562
SELECT DISTINCT - - COUNT ( * ) * - COUNT ( * ) FROM tab1 WHERE NOT col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL 73 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
73
73
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8564
SELECT + CAST( NULL AS SIGNED ) * + 45 * - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8564
SELECT + CAST ( NULL AS INTEGER ) * + 45 * - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL 96 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # DIV for integer division: 
query I rowsort label-8566
SELECT col0 DIV 61 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8566
SELECT col0 / 61 FROM tab0
----
0
1
1

query II rowsort
SELECT + col0, 83 FROM tab2 AS cor0
----
46
83
64
83
75
83

onlyif mysql # DIV for integer division: 
query I rowsort label-8568
SELECT + 17 DIV - col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8568
SELECT + 17 / - col2 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT ALL + + MAX( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL + + MAX ( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
99

query I rowsort
SELECT - - col0 * - col0 FROM tab2 AS cor0 WHERE NOT 63 IS NULL
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT ALL 3 * + + MAX( ALL - col2 ) + + SUM( 3 ) FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-8571
SELECT ALL 3 * + + MAX ( ALL - col2 ) + + SUM ( 3 ) FROM tab0 AS cor0
----
-21

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 61 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 82 + - col0 AS col2 FROM tab0
----
-15
-5
67

query I rowsort
SELECT ALL + 80 * ( col1 ) * + col1 FROM tab1
----
15680
176720
2000

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT + ( - 36 ) * + COUNT( * ) FROM tab0
----
-108

skipif mysql # not compatible
query I rowsort label-8575
SELECT + ( - 36 ) * + COUNT ( * ) FROM tab0
----
-108

query II rowsort
SELECT ALL col0 + + - col0, + 56 AS col1 FROM tab2
----
0
56
0
56
0
56

onlyif mysql # DIV for integer division: 
query I rowsort label-8577
SELECT 93 DIV - - col0 AS col1 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8577
SELECT 93 / - - col0 AS col1 FROM tab2
----
1
1
2

query I rowsort
SELECT - col2 + - 3 FROM tab1
----
-62
-71
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT ALL - + MIN( + col0 ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8579
SELECT ALL - + MIN ( + col0 ) AS col1 FROM tab2 AS cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8580
SELECT * FROM tab0 AS cor0 WHERE 24 IN ( - CAST( NULL AS SIGNED ), 8, - col2 / - col0 * - - col2 )
----

skipif mysql # not compatible
query III rowsort label-8580
SELECT * FROM tab0 AS cor0 WHERE 24 IN ( - CAST ( NULL AS INTEGER ), 8, - col2 / - col0 * - - col2 )
----

query I rowsort
SELECT + ( - col0 ) FROM tab2 AS cor0 WHERE ( NOT ( NOT ( NULL ) IS NOT NULL ) )
----

query I rowsort
SELECT ALL - + ( - + 66 ) FROM tab0 AS cor0
----
66
66
66

query I rowsort
SELECT DISTINCT + ( + 53 ) AS col1 FROM tab0
----
53

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8585
SELECT * FROM tab0 WHERE + CAST( NULL AS SIGNED ) IS NULL OR col0 - + + 13 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8585
SELECT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) IS NULL OR col0 - + + 13 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT + 85 BETWEEN col0 AND NULL
----
91
47
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 38 col1 FROM tab2 cor0
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT COUNT( - ( - - 93 ) ) * 55 AS col0 FROM tab2
----
165

skipif mysql # not compatible
query I rowsort label-8588
SELECT COUNT ( - ( - - 93 ) ) * 55 AS col0 FROM tab2
----
165

query I rowsort
SELECT col2 * - - 20 AS col2 FROM tab0
----
1980
200
940

onlyif mysql # aggregate syntax: 
query II rowsort label-8590
SELECT + COUNT( * ) * + + 98 col2, 67 AS col1 FROM tab0, tab1 AS cor0
----
882
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8590
SELECT + COUNT ( * ) * + + 98 col2, 67 AS col1 FROM tab0, tab1 AS cor0
----
882
67

query I rowsort
SELECT - - 0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL + col1 * - + 2 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT + + MIN( DISTINCT + - col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8593
SELECT + + MIN ( DISTINCT + - col1 ) FROM tab1 AS cor0
----
-47

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
14
47
5

query I rowsort
SELECT + 32 / - col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + + 87 + - 38 AS col2 FROM tab0 AS cor0
----
49
49
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, + 19 * - + col2 AS col2 FROM tab2 cor0
----
-51
-437
-67
-1102
-77
-760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 74 col0 FROM tab0 AS cor0
----
-74
-74
-74

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 28 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col0, 48 FROM tab1
----
51
48
85
48
91
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 44 col2, + 67 FROM tab2
----
44
67
44
67
44
67

query I rowsort
SELECT ALL + 36 FROM tab0 WHERE NOT 13 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8603
SELECT - + col2 + + + col0 col2 FROM tab1 WHERE CAST( + + 39 AS SIGNED ) + col2 BETWEEN col2 AND col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8603
SELECT - + col2 + + + col0 col2 FROM tab1 WHERE CAST ( + + 39 AS INTEGER ) + col2 BETWEEN col2 AND col1
----

query I rowsort
SELECT DISTINCT - col2 * + - 38 * 27 AS col2 FROM tab2
----
23598
41040
59508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8605
SELECT + CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE col2 + + col0 + - col2 - + col2 / - col1 / - + 38 BETWEEN + 75 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8605
SELECT + CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE col2 + + col0 + - col2 - + col2 / - col1 / - + 38 BETWEEN + 75 AND NULL
----

query I rowsort
SELECT DISTINCT 1 * - - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 90 * + - col1 IS NULL
----

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE col2 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT - col0 - + 28 AS col2 FROM tab0 cor0
----
-115
-125
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-8610
SELECT - 56 - + col0 DIV + col2 - col2 AS col1 FROM tab0 cor0
----
-103
-155
-74

skipif mysql # not compatible
query I rowsort label-8610
SELECT - 56 - + col0 / + col2 - col2 AS col1 FROM tab0 cor0
----
-103
-155
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8611
SELECT + CAST( 12 AS SIGNED ) + 95 AS col1 FROM tab1 AS cor0
----
107
107
107

skipif mysql # not compatible
query I rowsort label-8611
SELECT + CAST ( 12 AS INTEGER ) + 95 AS col1 FROM tab1 AS cor0
----
107
107
107

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + col0, col2 col2 FROM tab2 AS cor0
----
104
40
133
58
69
23

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( + col1 / - 19 * + col1 * - col0 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT DISTINCT - COUNT( * ) * 29 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-8614
SELECT DISTINCT - COUNT ( * ) * 29 FROM tab1 AS cor0
----
-87

query I rowsort
SELECT DISTINCT col0 * + 71 * col2 * + ( - col1 ) AS col2 FROM tab1
----
-1780325
-20649356
-4866624

query I rowsort
SELECT ALL 90 FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
90
90
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8617
SELECT DISTINCT + 86 DIV - 3 AS col1 FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-8617
SELECT DISTINCT + 86 / - 3 AS col1 FROM tab0
----
-28

query I rowsort
SELECT ALL 55 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + col0 ) col2 FROM tab1
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col2, col0 * + col0 AS col2 FROM tab1
----
51
2601
85
7225
91
8281

query III rowsort
SELECT ALL * FROM tab0 WHERE 26 * + 34 - + 19 + col0 IS NULL
----

query II rowsort
SELECT - 85 AS col0, col2 AS col0 FROM tab2 AS cor0
----
-85
23
-85
40
-85
58

query III rowsort
SELECT DISTINCT 28 AS col0, + col0 * - col2 + + col0, + 41 AS col0 FROM tab1 AS cor0
----
9 values hashing to 99042f548f9273e6b8057368e4e6383a

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT + + COUNT( ALL col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8624
SELECT + + COUNT ( ALL col0 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + + ( - - 3 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT 76 * + col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3876
5092
5852

onlyif mysql # DIV for integer division: 
query I rowsort label-8627
SELECT DISTINCT + 17 DIV col2 FROM tab1 WHERE NOT ( col1 * - col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8627
SELECT DISTINCT + 17 / col2 FROM tab1 WHERE NOT ( col1 * - col2 ) IS NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE + 59 + + col0 <> 79 + - 67 / + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 38 * - 31 FROM tab1
----
1178
1178
1178

query I rowsort
SELECT DISTINCT 49 - - col2 FROM tab0
----
148
59
96

query I rowsort
SELECT 10 + 87 FROM tab0
----
97
97
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 14 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT DISTINCT + 31 - COUNT( * ) AS col1 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-8633
SELECT DISTINCT + 31 - COUNT ( * ) AS col1 FROM tab2
----
28

query I rowsort
SELECT ALL col0 + + 45 FROM tab1
----
130
136
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8635
SELECT CAST( NULL AS SIGNED ) FROM tab2 WHERE col2 NOT IN ( - col0 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8635
SELECT CAST ( NULL AS INTEGER ) FROM tab2 WHERE col2 NOT IN ( - col0 )
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + 94 FROM tab2
----
-2162
-3760
-5452

query III rowsort
SELECT * FROM tab0 WHERE col2 NOT IN ( + col1 + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 * + 50 AS col2 FROM tab0
----
4350
4850
750

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT - 12 * - col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT DISTINCT - ( - MAX( DISTINCT col2 ) ) * - COUNT( * ) AS col0 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-8640
SELECT DISTINCT - ( - MAX ( DISTINCT col2 ) ) * - COUNT ( * ) AS col0 FROM tab1
----
-288

query I rowsort
SELECT col2 + - 59 AS col0 FROM tab1
----
0
37
9

query I rowsort
SELECT ( col2 ) + 82 FROM tab2
----
105
122
140

query I rowsort
SELECT ALL 55 + col1 AS col0 FROM tab0 WHERE NOT - col2 IS NULL
----
136
56
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8644
SELECT + ( CAST( 58 AS SIGNED ) ) FROM tab1
----
58
58
58

skipif mysql # not compatible
query I rowsort label-8644
SELECT + ( CAST ( 58 AS INTEGER ) ) FROM tab1
----
58
58
58

query I rowsort
SELECT + 16 * col1 FROM tab2 WHERE NOT ( ( - col2 ) + + 15 ) IS NOT NULL
----

query I rowsort
SELECT - ( - 93 ) FROM tab2
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT DISTINCT MAX( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8647
SELECT DISTINCT MAX ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
-23

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND ( + ( col2 ) / 96 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8649
SELECT DISTINCT - 82 * CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8649
SELECT DISTINCT - 82 * CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 7 + ( col2 ) FROM tab0 AS cor0 WHERE ( 28 + - col0 ) < + col2
----
106
17
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8651
SELECT - CAST( NULL AS SIGNED ) + 97 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8651
SELECT - CAST ( NULL AS INTEGER ) + 97 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT ALL COUNT( - col2 ) + 85 FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-8652
SELECT ALL COUNT ( - col2 ) + 85 FROM tab0
----
88

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 58 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT DISTINCT MAX( + 86 ) FROM tab0 AS cor0 WHERE col1 < ( + col0 - ( + col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8654
SELECT DISTINCT MAX ( + 86 ) FROM tab0 AS cor0 WHERE col1 < ( + col0 - ( + col0 ) )
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 / 18 BETWEEN NULL AND ( - col2 + + col2 )
----

query I rowsort
SELECT DISTINCT + 93 AS col0 FROM tab2 cor0
----
93

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 > + 79 / + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT - 35 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-8658
SELECT - 35 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-8659
SELECT DISTINCT col1 DIV + col0 FROM tab0 AS cor0 WHERE NOT col2 * - ( + ( + 84 ) ) = - col0 * col0
----
0
5

skipif mysql # not compatible
query I rowsort label-8659
SELECT DISTINCT col1 / + col0 FROM tab0 AS cor0 WHERE NOT col2 * - ( + ( + 84 ) ) = - col0 * col0
----
0
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8660
SELECT DISTINCT COUNT( * ) * - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8660
SELECT DISTINCT COUNT ( * ) * - CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT + col2 * 13 FROM tab1 AS cor0
----
1248
767
884

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8662
SELECT * FROM tab0 AS cor0 WHERE NOT + 29 * - 67 = col1 * CAST( col1 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8662
SELECT * FROM tab0 AS cor0 WHERE NOT + 29 * - 67 = col1 * CAST ( col1 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8663
SELECT - + CAST( + COUNT( * ) AS SIGNED ) * - 28 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-8663
SELECT - + CAST ( + COUNT ( * ) AS INTEGER ) * - 28 FROM tab0 AS cor0
----
84

query I rowsort
SELECT + col2 * 90 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND ( 64 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT DISTINCT + 12 * COUNT( * ) FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-8665
SELECT DISTINCT + 12 * COUNT ( * ) FROM tab0 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT ALL MIN( col1 ) col1 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8666
SELECT ALL MIN ( col1 ) col1 FROM tab1
----
5

query I rowsort
SELECT - 84 * + 53 FROM tab1 WHERE NOT + 9 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8668
SELECT COUNT( * ) DIV + - 23 col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8668
SELECT COUNT ( * ) / + - 23 col0 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8669
SELECT ALL 12 DIV - + col0 * col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8669
SELECT ALL 12 / - + col0 * col0 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE ( col0 * col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8672
SELECT ALL + CAST( + 8 AS SIGNED ) FROM tab2
----
8
8
8

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL + CAST ( + 8 AS INTEGER ) FROM tab2
----
8
8
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8673
SELECT * FROM tab1 WHERE NOT - CAST( - 43 AS SIGNED ) / col2 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8673
SELECT * FROM tab1 WHERE NOT - CAST ( - 43 AS INTEGER ) / col2 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT ALL + - SUM( + - 25 ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8674
SELECT ALL + - SUM ( + - 25 ) FROM tab1 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8675
SELECT ALL + col2 * CAST( - col2 AS SIGNED ) col1 FROM tab0 AS cor0 WHERE NULL <= ( + col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8675
SELECT ALL + col2 * CAST ( - col2 AS INTEGER ) col1 FROM tab0 AS cor0 WHERE NULL <= ( + col1 )
----

query I rowsort
SELECT DISTINCT 96 + 29 AS col1 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( 84 * - col2 ) > NULL
----

query I rowsort
SELECT - - col1 * + + col0 FROM tab1 cor0
----
425
4277
714

query I rowsort
SELECT + - col2 * + col0 * + 13 + + col0 AS col2 FROM tab1 AS cor0
----
-63597
-65110
-80353

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8680
SELECT 36 DIV 89 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-8680
SELECT 36 / 89 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8681
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + col0 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8681
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + col0 AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT DISTINCT + MIN( col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8682
SELECT DISTINCT + MIN ( col2 ) AS col1 FROM tab2
----
23

query I rowsort
SELECT DISTINCT 49 AS col2 FROM tab1 AS cor0 WHERE + col2 * - ( + 66 ) IS NOT NULL
----
49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 11 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT + MIN( DISTINCT + col2 ) * 67 AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8685
SELECT + MIN ( DISTINCT + col2 ) * 67 AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( 79 )
----
NULL

query I rowsort
SELECT ALL ( 91 ) FROM tab0 AS cor0
----
91
91
91

query I rowsort
SELECT ALL + ( col0 ) + - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 65 + + - col2 + col0 / col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8689
SELECT - col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8689
SELECT - col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col2 + 24, + col2 AS col0 FROM tab1
----
120
96
83
59
92
68

query III rowsort
SELECT * FROM tab2 WHERE 26 NOT IN ( + 67 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8692
SELECT DISTINCT - CAST( + ( 98 ) AS SIGNED ) AS col1 FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-8692
SELECT DISTINCT - CAST ( + ( 98 ) AS INTEGER ) AS col1 FROM tab1
----
-98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 97 < ( - 77 + - 44 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * 63 + - col1 FROM tab1
----
2914
310
868

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + ( - - col2 ) + 57 + col0 * + 72 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * + - 15 AS col2 FROM tab2
----
-1125
-690
-960

query II rowsort
SELECT DISTINCT - col0 AS col2, col1 - col0 AS col0 FROM tab0 AS cor0
----
-15
66
-87
-66
-97
-96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( 86 ) ) = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8699
SELECT + CAST( + 76 AS SIGNED ) * - - MAX( DISTINCT + + col1 ) FROM tab1 AS cor0
----
3572

skipif mysql # not compatible
query I rowsort label-8699
SELECT + CAST ( + 76 AS INTEGER ) * - - MAX ( DISTINCT + + col1 ) FROM tab1 AS cor0
----
3572

query I rowsort
SELECT + - ( + - col0 ) AS col1 FROM tab2 cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT + - 18 * + - COUNT( * ) FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-8701
SELECT + - 18 * + - COUNT ( * ) FROM tab1 AS cor0
----
54

query II rowsort
SELECT ALL - 34 AS col1, col0 AS col1 FROM tab1 AS cor0
----
-34
51
-34
85
-34
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT COUNT( * ) * - COUNT( * ) - + 67 FROM tab2 AS cor0 WHERE NOT ( - col2 ) <= NULL
----
-67

skipif mysql # not compatible
query I rowsort label-8703
SELECT COUNT ( * ) * - COUNT ( * ) - + 67 FROM tab2 AS cor0 WHERE NOT ( - col2 ) <= NULL
----
-67

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 41 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8705
SELECT 30, - COUNT( * ) + - 23 DIV - - 74 + + + COUNT( * ) col0 FROM tab1 AS cor0
----
30
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8705
SELECT 30, - COUNT ( * ) + - 23 / - - 74 + + + COUNT ( * ) col0 FROM tab1 AS cor0
----
30
0

query I rowsort
SELECT DISTINCT + - ( + - 93 ) AS col1 FROM tab0 AS cor0
----
93

query I rowsort
SELECT DISTINCT + 14 * + col2 + - 72 - - col1 + - 71 + col2 * - col0 FROM tab2 AS cor0
----
-2066
-3614
-828

query I rowsort
SELECT ALL - col1 * + - 27 FROM tab2 AS cor0
----
1377
1809
2079

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 10 - col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL + + 57 * - col0 FROM tab1 cor0
----
-2907
-4845
-5187

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 * 60 * + 43 AND ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8712
SELECT - col1 * col1 + + - 77 + 80 * + CAST( NULL AS DECIMAL ) / - ( + col0 ) * col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8712
SELECT - col1 * col1 + + - 77 + 80 * + CAST ( NULL AS REAL ) / - ( + col0 ) * col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8713
SELECT ALL COUNT( * ) DIV + 29 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL COUNT ( * ) / + 29 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 WHERE NOT ( 98 - - 74 IS NULL )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT DISTINCT MAX( - 81 ) FROM tab2, tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8715
SELECT DISTINCT MAX ( - 81 ) FROM tab2, tab0 AS cor0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 86 col1 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT col1 AS col1, 39 AS col2 FROM tab1
----
14
39
47
39
5
39

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 >= - 49 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8719
SELECT - 19 col0, - COUNT( * ) FROM tab2
----
-19
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8719
SELECT - 19 col0, - COUNT ( * ) FROM tab2
----
-19
-3

query II rowsort
SELECT ALL col0, - col2 + - col1 FROM tab0
----
15
-128
87
-31
97
-100

query II rowsort
SELECT + col2, - ( - 62 ) + + 23 FROM tab1
----
59
85
68
85
96
85

onlyif mysql # DIV for integer division: 
query I rowsort label-8722
SELECT DISTINCT - + col1 DIV + - col0 + - col1 * 62 AS col2 FROM tab0 AS cor0
----
-1302
-5017
-62

skipif mysql # not compatible
query I rowsort label-8722
SELECT DISTINCT - + col1 / + - col0 + - col1 * 62 AS col2 FROM tab0 AS cor0
----
-1302
-5017
-62

onlyif mysql # DIV for integer division: 
query II rowsort label-8723
SELECT + - 7 col0, - 92 DIV + col2 FROM tab1 AS cor0
----
-7
-1
-7
-1
-7
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8723
SELECT + - 7 col0, - 92 / + col2 FROM tab1 AS cor0
----
-7
-1
-7
-1
-7
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col2 col0 FROM tab0 AS cor0 WHERE NOT - col0 NOT IN ( + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT ALL COUNT( - - col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL COUNT ( - - col0 ) FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col1 IN ( col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - 0 * + - col1 + col2 + + col0 * + + 30 + - - col1 - - 75 FROM tab0 AS cor0
----
2716
3085
653

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( ( + col2 ) + + col0 <> - col2 ) )
----

query I rowsort
SELECT ALL + col1 * + 63 * ( col0 ) * - - col1 FROM tab0 AS cor0
----
2417121
6111
6200145

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8730
SELECT CAST( NULL AS DECIMAL ) + + + SUM( - + col2 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8730
SELECT CAST ( NULL AS REAL ) + + + SUM ( - + col2 ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 BETWEEN - - col2 + - 14 * - col1 AND ( - - 14 * 22 + - col0 / + col1 + 51 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT ALL + 1 + - MAX( - + 28 ) FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL + 1 + - MAX ( - + 28 ) FROM tab1 AS cor0
----
29

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 27 IN ( + + 13 + + + col2, 53 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8734
SELECT * FROM tab2 cor0 WHERE ( col0 ) IN ( - CAST( + + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8734
SELECT * FROM tab2 cor0 WHERE ( col0 ) IN ( - CAST ( + + col2 AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8735
SELECT DISTINCT - ( + - COUNT( * ) ) + + CAST( + 95 AS SIGNED ) - - + ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT - ( + - COUNT ( * ) ) + + CAST ( + 95 AS INTEGER ) - - + ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
101

query II rowsort
SELECT DISTINCT col0 * - col0 * + - col2 + + col1 + col1, ( - col2 ) AS col0 FROM tab2 AS cor0
----
163994
-40
326384
-58
48770
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8737
SELECT DISTINCT ( col0 ) + - - col1 * + + col1 * + CAST( - col1 AS SIGNED ) AS col1 FROM tab2 WHERE + col2 BETWEEN NULL AND - col2
----

skipif mysql # not compatible
query I rowsort label-8737
SELECT DISTINCT ( col0 ) + - - col1 * + + col1 * + CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 WHERE + col2 BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT SUM( ALL - col1 ) * - + COUNT( * ) col0 FROM tab2
----
585

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8738
SELECT SUM ( ALL - col1 ) * - + COUNT ( * ) col0 FROM tab2
----
585

query I rowsort
SELECT DISTINCT + 58 + + - 18 * col2 AS col0 FROM tab1
----
-1004
-1166
-1670

query I rowsort
SELECT ALL 96 + + col0 FROM tab1
----
147
181
187

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE ( - - ( - col1 ) ) > NULL
----

query I rowsort
SELECT DISTINCT + col2 + col1 + - col1 AS col0 FROM tab1
----
59
68
96

query II rowsort
SELECT + col1, 47 + col1 + - - col1 * + + 33 FROM tab2
----
51
1781
67
2325
77
2665

onlyif mysql # aggregate syntax: 
query II rowsort label-8744
SELECT ALL - MIN( - + col1 ) * + 87 + + 0 AS col0, 53 col1 FROM tab0
----
7047
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8744
SELECT ALL - MIN ( - + col1 ) * + 87 + + 0 AS col0, 53 col1 FROM tab0
----
7047
53

query II rowsort
SELECT col1, - 89 - + + col1 AS col0 FROM tab1
----
14
-103
47
-136
5
-94

query I rowsort
SELECT 81 - + col2 AS col2 FROM tab1 AS cor0
----
-15
13
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT COUNT( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8747
SELECT COUNT ( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT + - 1 * - - 83 + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-74

skipif mysql # not compatible
query I rowsort label-8748
SELECT + - 1 * - - 83 + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT DISTINCT + SUM( DISTINCT + col0 ) * + ( COUNT( * ) ) FROM tab0 AS cor0
----
597

skipif mysql # not compatible
query I rowsort label-8749
SELECT DISTINCT + SUM ( DISTINCT + col0 ) * + ( COUNT ( * ) ) FROM tab0 AS cor0
----
597

query I rowsort
SELECT ALL + + col2 * + + col1 - col0 FROM tab1 AS cor0
----
1293
210
3105

query I rowsort
SELECT + + 18 * + + 82 AS col0 FROM tab2 cor0
----
1476
1476
1476

onlyif mysql # DIV for integer division: 
query I rowsort label-8752
SELECT ( - col1 ) DIV + + 18 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-8752
SELECT ( - col1 ) / + + 18 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2
-3
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT 19 * - + COUNT( * ) FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-8753
SELECT 19 * - + COUNT ( * ) FROM tab0
----
-57

query II rowsort
SELECT + col1 AS col0, - col1 AS col2 FROM tab2
----
51
-51
67
-67
77
-77

query II rowsort
SELECT DISTINCT - 9 AS col0, - col2 AS col2 FROM tab1
----
-9
-59
-9
-68
-9
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-8756
SELECT ALL + COUNT( DISTINCT col0 ) * + 38 AS col1, 80 FROM tab1
----
114
80

skipif mysql # not compatible
query II rowsort label-8756
SELECT ALL + COUNT ( DISTINCT col0 ) * + 38 AS col1, 80 FROM tab1
----
114
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT ALL COUNT( * ) * 76 FROM tab1
----
228

skipif mysql # not compatible
query I rowsort label-8757
SELECT ALL COUNT ( * ) * 76 FROM tab1
----
228

query I rowsort
SELECT col0 AS col0 FROM tab0 cor0 WHERE NOT col0 > - + col0
----

query I rowsort
SELECT col0 AS col0 FROM tab2 cor0 WHERE NOT ( + col1 IS NOT NULL )
----

query I rowsort
SELECT ALL ( col0 ) + + 54 AS col2 FROM tab1 AS cor0
----
105
139
145

query I rowsort
SELECT + + col1 * 73 + + - col2 AS col1 FROM tab2 AS cor0
----
3700
4833
5581

query I rowsort
SELECT ALL + 27 + - col1 + + 64 FROM tab2
----
14
24
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - ( - + col2 ) ) col0 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT DISTINCT - 53 * + MIN( 50 ) AS col1 FROM tab2
----
-2650

skipif mysql # not compatible
query I rowsort label-8764
SELECT DISTINCT - 53 * + MIN ( 50 ) AS col1 FROM tab2
----
-2650

onlyif mysql # aggregate syntax: 
query II rowsort label-8765
SELECT DISTINCT 5 * + 66, COUNT( * ) AS col2 FROM tab2
----
330
3

skipif mysql # not compatible
query II rowsort label-8765
SELECT DISTINCT 5 * + 66, COUNT ( * ) AS col2 FROM tab2
----
330
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 * - + ( + + col2 ) * 74 col1 FROM tab2
----
14586880
21567300
3992892

query II rowsort
SELECT ALL + col0 + + col1 - - col2 * + col0 AS col2, + col0 FROM tab2 cor0
----
1155
46
2701
64
4492
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT COUNT( * ) - + 4 col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8768
SELECT COUNT ( * ) - + 4 col1 FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8769
SELECT ALL + + CAST( NULL AS SIGNED ) / - 30 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL + + CAST ( NULL AS INTEGER ) / - 30 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8770
SELECT ALL + + CAST( NULL AS SIGNED ), 7 AS col1 FROM tab2 AS cor0
----
NULL
7
NULL
7
NULL
7

skipif mysql # not compatible
query II rowsort label-8770
SELECT ALL + + CAST ( NULL AS INTEGER ), 7 AS col1 FROM tab2 AS cor0
----
NULL
7
NULL
7
NULL
7

query I rowsort
SELECT + 71 + + 5 FROM tab1 AS cor0
----
76
76
76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 12 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 53 + + - col2 AS col2 FROM tab2 cor0
----
-5
13
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8774
SELECT ALL + CAST( + col1 AS SIGNED ) * col0 + - 61 AS col2 FROM tab0
----
1154
1766
36

skipif mysql # not compatible
query I rowsort label-8774
SELECT ALL + CAST ( + col1 AS INTEGER ) * col0 + - 61 AS col2 FROM tab0
----
1154
1766
36

query I rowsort
SELECT DISTINCT + col1 + + - ( - 62 ) FROM tab2
----
113
129
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8776
SELECT col0 AS col2 FROM tab0 WHERE NULL <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8776
SELECT col0 AS col2 FROM tab0 WHERE NULL <= - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE col0 + + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 - - 78 FROM tab2
----
1
11
27

query I rowsort
SELECT DISTINCT + + 26 AS col1 FROM tab0 AS cor0
----
26

query I rowsort
SELECT - col1 * 36 FROM tab1 WHERE NOT col0 IN ( + col0 )
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL ( - + col0 ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT - MIN( ALL - - col2 ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8783
SELECT - MIN ( ALL - - col2 ) AS col1 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT DISTINCT + ( + 79 ) AS col0 FROM tab0 AS cor0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8785
SELECT - CAST( 18 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT 33 * 34 IS NULL
----
-18
-18
-18

skipif mysql # not compatible
query I rowsort label-8785
SELECT - CAST ( 18 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT 33 * 34 IS NULL
----
-18
-18
-18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8786
SELECT - 5 AS col1, - CAST( NULL AS SIGNED ) * - ( - - 28 ) + 73 FROM tab2 AS cor0
----
-5
NULL
-5
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-8786
SELECT - 5 AS col1, - CAST ( NULL AS INTEGER ) * - ( - - 28 ) + 73 FROM tab2 AS cor0
----
-5
NULL
-5
NULL
-5
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL IN ( - col2 )
----

query I rowsort
SELECT - ( 64 ) AS col2 FROM tab2 cor0
----
-64
-64
-64

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL = 11 / + + col2
----

query I rowsort
SELECT DISTINCT 65 * + col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3315
5525
5915

onlyif mysql # DIV for integer division: 
query I rowsort label-8791
SELECT + 47 * - + col0 DIV - col0 + + + col1 col0 FROM tab0 AS cor0
----
128
48
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8791
SELECT + 47 * - + col0 / - col0 + + + col1 col0 FROM tab0 AS cor0
----
128
48
68

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT + col0 < ( - col2 - 69 * + + col2 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT ALL + - COUNT( ALL + - 28 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col0 * + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8793
SELECT ALL + - COUNT ( ALL + - 28 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col0 * + col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT col0 <> - 58 * - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 73 ) col1 FROM tab2
----
-73
-73
-73

query I rowsort
SELECT DISTINCT + - 39 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-39

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT ( NULL ) <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT + ( COUNT( * ) ) col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8798
SELECT + ( COUNT ( * ) ) col2 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT SUM( ALL - - col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-8799
SELECT SUM ( ALL - - col0 ) AS col2 FROM tab2 AS cor0
----
185

query II rowsort
SELECT col2 AS col2, + 85 FROM tab2
----
23
85
40
85
58
85

query II rowsort
SELECT col1 - - - 73 AS col1, - col2 FROM tab0
----
-52
-10
-72
-99
8
-47

query I rowsort
SELECT - col0 - + + 39 * + + col1 AS col1 FROM tab2
----
-2035
-2688
-3067

query II rowsort
SELECT + col1 - + col2, + col1 AS col2 FROM tab0
----
-98
1
11
21
34
81

query I rowsort
SELECT DISTINCT col2 - + + col2 + col2 AS col0 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8805
SELECT ALL + COUNT( * ) * + - CAST( - COUNT( * ) AS SIGNED ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8805
SELECT ALL + COUNT ( * ) * + - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1
----
9

query I rowsort
SELECT ALL ( col2 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 AND NULL
----

query II rowsort
SELECT - col0 * - - col0 AS col2, col2 FROM tab0 AS cor0
----
-225
47
-7569
10
-9409
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, + col1 + - col1 AS col1 FROM tab0 AS cor0
----
1
0
21
0
81
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 - + - 15 + - + col2 * col1 > NULL
----

query I rowsort
SELECT - + 78 * - 47 FROM tab0 AS cor0
----
3666
3666
3666

query I rowsort
SELECT col0 * - col2 - + 63 - col2 - col2 * - - 39 FROM tab2 AS cor0
----
-2041
-4223
-6733

query I rowsort
SELECT ALL - + 35 AS col2 FROM tab2 AS cor0
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT ALL - 18 + - COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-8813
SELECT ALL - 18 + - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-27

query I rowsort
SELECT + - col2 AS col0 FROM tab1 WHERE NOT + col2 NOT BETWEEN - col0 + - - 21 * col2 AND - - 70 + + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8816
SELECT CAST( NULL AS SIGNED ) / ( + MAX( - 30 ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8816
SELECT CAST ( NULL AS INTEGER ) / ( + MAX ( - 30 ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8817
SELECT ALL * FROM tab1 WHERE NOT ( + col0 ) <= col1 * + CAST( NULL AS SIGNED ) * 57
----

skipif mysql # not compatible
query III rowsort label-8817
SELECT ALL * FROM tab1 WHERE NOT ( + col0 ) <= col1 * + CAST ( NULL AS INTEGER ) * 57
----

query I rowsort
SELECT DISTINCT ( - - col0 ) AS col0 FROM tab1
----
51
85
91

query I rowsort
SELECT + - col2 - + 86 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 48 AS col2 FROM tab0 WHERE NOT 9 BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT DISTINCT - MIN( ALL - col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-8821
SELECT DISTINCT - MIN ( ALL - col1 ) AS col1 FROM tab0
----
81

query I rowsort
SELECT + + 73 + 39 FROM tab0 AS cor0
----
112
112
112

onlyif mysql # aggregate syntax: 
query II rowsort label-8823
SELECT ALL COUNT( * ), COUNT( * ) col1 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8823
SELECT ALL COUNT ( * ), COUNT ( * ) col1 FROM tab1 AS cor0
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8824
SELECT ALL - col2 + - 6 DIV col2 + - col2 AS col0 FROM tab2 AS cor0
----
-116
-46
-80

skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL - col2 + - 6 / col2 + - col2 AS col0 FROM tab2 AS cor0
----
-116
-46
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, col2 AS col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 * + - col2 + - col2 > col2 * col0 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT + COUNT( * ) - + 88 AS col0 FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-8827
SELECT + COUNT ( * ) - + 88 AS col0 FROM tab1 AS cor0
----
-85

query I rowsort
SELECT + + 83 * + col1 + + 0 AS col1 FROM tab2 AS cor0
----
4233
5561
6391

onlyif mysql # aggregate syntax: 
query II rowsort label-8829
SELECT COUNT( * ) AS col1, COUNT( * ) FROM tab0 AS cor0 WHERE + col1 <> + - 64
----
3
3

skipif mysql # not compatible
query II rowsort label-8829
SELECT COUNT ( * ) AS col1, COUNT ( * ) FROM tab0 AS cor0 WHERE + col1 <> + - 64
----
3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8830
SELECT + ( - CAST( NULL AS SIGNED ) ) + - + COUNT( * ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8830
SELECT + ( - CAST ( NULL AS INTEGER ) ) + - + COUNT ( * ) AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT col0 + - 55 FROM tab0 cor0
----
-40
32
42

query I rowsort
SELECT DISTINCT - 5 + + ( col0 ) FROM tab0 AS cor0
----
10
82
92

query III rowsort
SELECT * FROM tab1 WHERE + 95 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT ALL - COUNT( * ) + + + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL - COUNT ( * ) + + + COUNT ( * ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT + SUM( - - col1 ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-8835
SELECT + SUM ( - - col1 ) AS col1 FROM tab0
----
103

query I rowsort
SELECT DISTINCT + + 18 * - + 12 FROM tab0 WHERE col2 >= + col2
----
-216

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8837
SELECT + ( + ( CAST( NULL AS DECIMAL ) ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8837
SELECT + ( + ( CAST ( NULL AS REAL ) ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT + ( MIN( + ( - col1 ) ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-8838
SELECT + ( MIN ( + ( - col1 ) ) ) FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT + SUM( + - col0 ) FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-8839
SELECT + SUM ( + - col0 ) FROM tab1 cor0
----
-227

query I rowsort
SELECT + + 15 * - col2 FROM tab1 AS cor0
----
-1020
-1440
-885

query II rowsort
SELECT col0 AS col0, col2 * + 86 FROM tab0 AS cor0
----
15
4042
87
860
97
8514

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * + ( - col0 ) AS col0, 48 col2 FROM tab1 cor0
----
4896
48
5015
48
6188
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, + col0 AS col2 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT DISTINCT - 9 * + + col1 AS col2 FROM tab2 AS cor0
----
-459
-603
-693

onlyif mysql # DIV for integer division: 
query I rowsort label-8845
SELECT + 19 DIV - 35 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8845
SELECT + 19 / - 35 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 86 col2 FROM tab2 AS cor0
----
86
86
86

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 1 NOT BETWEEN NULL AND + + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8848
SELECT DISTINCT - 40 * - + COUNT( * ) * - - SUM( DISTINCT - col1 ) AS col1, + 28 + - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-23400
31

skipif mysql # not compatible
query II rowsort label-8848
SELECT DISTINCT - 40 * - + COUNT ( * ) * - - SUM ( DISTINCT - col1 ) AS col1, + 28 + - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-23400
31

query I rowsort
SELECT - - 90 + col0 * - col1 FROM tab2 AS cor0
----
-2256
-4838
-4935

query I rowsort
SELECT ALL col2 + + col0 + col1 * + col0 AS col1 FROM tab0 AS cor0
----
1277
1924
293

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8851
SELECT DISTINCT COUNT( * ) AS col0, 49 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8851
SELECT DISTINCT COUNT ( * ) AS col0, 49 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
3
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> col1
----

query II rowsort
SELECT DISTINCT col0 AS col0, - col1 + - 3 AS col2 FROM tab1 cor0
----
51
-17
85
-8
91
-50

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT NULL = - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8855
SELECT ALL + 19 + + - CAST( NULL AS SIGNED ) * + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8855
SELECT ALL + 19 + + - CAST ( NULL AS INTEGER ) * + col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT - ( col1 ), - col1 AS col0 FROM tab2
----
-51
-51
-67
-67
-77
-77

query III rowsort
SELECT * FROM tab2 WHERE - 66 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT DISTINCT - MAX( + 38 ) FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-8858
SELECT DISTINCT - MAX ( + 38 ) FROM tab0 AS cor0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8859
SELECT - CAST( NULL AS SIGNED ) / + col1 + 61 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8859
SELECT - CAST ( NULL AS INTEGER ) / + col1 + 61 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT ALL - MAX( DISTINCT - 4 ) FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL - MAX ( DISTINCT - 4 ) FROM tab1 AS cor0
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 24 + - col1 * + col1 col2, col2 col2 FROM tab0
----
-417
10
-6537
47
23
99

query I rowsort
SELECT - col2 * 65 * + col2 + - - col0 + + 99 FROM tab1
----
-226081
-300370
-598890

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8863
SELECT - 99 AS col2, - 44 + CAST( NULL AS SIGNED ) FROM tab2
----
-99
NULL
-99
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-8863
SELECT - 99 AS col2, - 44 + CAST ( NULL AS INTEGER ) FROM tab2
----
-99
NULL
-99
NULL
-99
NULL

query II rowsort
SELECT + - col1 AS col1, col2 * - - col1 AS col0 FROM tab0 WHERE - col1 > ( + + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8865
SELECT ALL - 95 DIV - - 25 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

skipif mysql # not compatible
query I rowsort label-8865
SELECT ALL - 95 / - - 25 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT ALL + col1 * + 80 AS col1 FROM tab2 AS cor0
----
4080
5360
6160

query II rowsort
SELECT DISTINCT + col0 - col2 * 21 + 12 AS col2, 26 FROM tab0 AS cor0
----
-111
26
-1970
26
-960
26

query I rowsort
SELECT DISTINCT - - 63 * + col2 AS col2 FROM tab2 AS cor0
----
1449
2520
3654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8869
SELECT ALL + 19, COUNT( * ) - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT + col0 BETWEEN NULL AND NULL
----
19
NULL

skipif mysql # not compatible
query II rowsort label-8869
SELECT ALL + 19, COUNT ( * ) - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT + col0 BETWEEN NULL AND NULL
----
19
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT ALL - SUM( + ( col1 ) ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8870
SELECT ALL - SUM ( + ( col1 ) ) AS col1 FROM tab1
----
-66

query I rowsort
SELECT + col1 * - 58 * - col0 FROM tab1
----
24650
248066
41412

query I rowsort
SELECT + 98 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8873
SELECT ALL * FROM tab0 WHERE NULL = - + CAST( NULL AS SIGNED ) + ( - CAST( - 52 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8873
SELECT ALL * FROM tab0 WHERE NULL = - + CAST ( NULL AS INTEGER ) + ( - CAST ( - 52 AS INTEGER ) )
----

query I rowsort
SELECT ALL + col0 * 68 FROM tab0 cor0
----
1020
5916
6596

query I rowsort
SELECT DISTINCT col2 * 81 FROM tab0 cor0
----
3807
8019
810

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT DISTINCT COUNT( + - ( + 82 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8877
SELECT DISTINCT COUNT ( + - ( + 82 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT - + col0 NOT BETWEEN 71 AND + 39 * + col0 + - 27
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8879
SELECT ALL 20 * - CAST( + ( COUNT( * ) ) AS SIGNED ) FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-8879
SELECT ALL 20 * - CAST ( + ( COUNT ( * ) ) AS INTEGER ) FROM tab0 AS cor0
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-8880
SELECT DISTINCT + 33 DIV 91 - - - col0 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8880
SELECT DISTINCT + 33 / 91 - - - col0 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

query I rowsort
SELECT + - 79 * + 77 AS col2 FROM tab2 AS cor0
----
-6083
-6083
-6083

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( col0 )
----

query I rowsort
SELECT ALL + + col2 * - + col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT col2 + + col1 + ( + + 79 ) * - col2 AS col1 FROM tab0
----
-3585
-759
-7721

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8886
SELECT ALL - CAST( + 42 AS SIGNED ) FROM tab1
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL - CAST ( + 42 AS INTEGER ) FROM tab1
----
-42
-42
-42

query I rowsort
SELECT - col1 * + col0 + - col0 AS col0 FROM tab1
----
-4368
-510
-765

query I rowsort
SELECT DISTINCT + col2 + - col0 + 7 * - - col0 + - col0 FROM tab2
----
253
360
433

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8889
SELECT ALL * FROM tab1 WHERE NULL IN ( - + ( - + CAST( NULL AS DECIMAL ) ), - 78, + + col1, - col1, + ( - + 51 ) + + 35 * - - col1, + col2 )
----

skipif mysql # not compatible
query III rowsort label-8889
SELECT ALL * FROM tab1 WHERE NULL IN ( - + ( - + CAST ( NULL AS REAL ) ), - 78, + + col1, - col1, + ( - + 51 ) + + 35 * - - col1, + col2 )
----

query I rowsort
SELECT DISTINCT 47 * col0 * + + ( col0 ) FROM tab1
----
122247
339575
389207

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT ALL - ( - - SUM( ALL + + 54 ) ) * + + 38 FROM tab0
----
-6156

skipif mysql # not compatible
query I rowsort label-8891
SELECT ALL - ( - - SUM ( ALL + + 54 ) ) * + + 38 FROM tab0
----
-6156

query II rowsort
SELECT ALL + 14, col0 AS col1 FROM tab2
----
14
46
14
64
14
75

query II rowsort
SELECT ALL + col0 AS col0, - col1 AS col1 FROM tab2 WHERE NOT NULL > + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8894
SELECT 31 / - - col1 + + col1 * + col2 * - ( - 65 ) * col0 * + col0 + col0 + - ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8894
SELECT 31 / - - col1 + + col1 * + col2 * - ( - 65 ) * col0 * + col0 + col0 + - ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 60 + + ( + + 60 ) * + - col0 - + col0 - + col2 * + 52 AS col2 FROM tab0 AS cor0
----
-11125
-3419
-5887

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 67 ) + + + 88 col2 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8897
SELECT ALL 50 * - CAST( + ( col2 ) AS SIGNED ) - - ( - - col0 ) * - col0 * - col0 * + 0 FROM tab2
----
-1150
-2000
-2900

skipif mysql # not compatible
query I rowsort label-8897
SELECT ALL 50 * - CAST ( + ( col2 ) AS INTEGER ) - - ( - - col0 ) * - col0 * - col0 * + 0 FROM tab2
----
-1150
-2000
-2900

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE 77 * + 63 IS NULL
----

query I rowsort
SELECT + + 4 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT MAX( - 27 ) AS col2 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-8900
SELECT MAX ( - 27 ) AS col2 FROM tab0 AS cor0
----
-27

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL < - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8902
SELECT ALL + 10 * - col0 + + col0, - col0 * + col2 * - 39 + + CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-459
190958
-765
195590
-819
241379

skipif mysql # not compatible
query II rowsort label-8902
SELECT ALL + 10 * - col0 + + col0, - col0 * + col2 * - 39 + + CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-459
190958
-765
195590
-819
241379

query I rowsort
SELECT - 69 * + + col1 FROM tab1 AS cor0
----
-3243
-345
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT DISTINCT COUNT( * ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8904
SELECT DISTINCT COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-8905
SELECT - 72 DIV - + 93, - col1 AS col0 FROM tab0 AS cor0
----
0
-1
0
-21
0
-81

skipif mysql # not compatible
query II rowsort label-8905
SELECT - 72 / - + 93, - col1 AS col0 FROM tab0 AS cor0
----
0
-1
0
-21
0
-81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( - - col0 ) - 91 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col2 / + col0 * + col0 + + - 34 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT COUNT( * ) * - 16 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-8909
SELECT COUNT ( * ) * - 16 FROM tab2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT DISTINCT COUNT( * ) * 60 FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-8910
SELECT DISTINCT COUNT ( * ) * 60 FROM tab2
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8911
SELECT 28 * - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8911
SELECT 28 * - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 83 * + col0 FROM tab1
----
-4233
-7055
-7553

query II rowsort
SELECT ALL + col1 AS col2, 4 AS col0 FROM tab1 AS cor0
----
14
4
47
4
5
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8914
SELECT - 63 + + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-8914
SELECT - 63 + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * 90, - col1 col1 FROM tab2
----
4590
-51
6030
-67
6930
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 NOT IN ( - 26 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 * - 45, col2 * + col1, - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 + - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8919
SELECT DISTINCT COUNT( * ) + + MAX( DISTINCT + - col2 ) - - COUNT( * ) + + CAST( - + 99 AS SIGNED ) FROM tab1
----
-152

skipif mysql # not compatible
query I rowsort label-8919
SELECT DISTINCT COUNT ( * ) + + MAX ( DISTINCT + - col2 ) - - COUNT ( * ) + + CAST ( - + 99 AS INTEGER ) FROM tab1
----
-152

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
23
40
58

query I rowsort
SELECT ALL - ( - 72 ) AS col2 FROM tab0
----
72
72
72

query I rowsort
SELECT 67 - - 29 FROM tab0
----
96
96
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8923
SELECT DISTINCT CAST( NULL AS SIGNED ) * - AVG ( ALL CAST( ( col2 ) AS SIGNED ) ) + + COUNT( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - AVG ( ALL CAST ( ( col2 ) AS INTEGER ) ) + + COUNT ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 62 col2, col2 FROM tab2
----
-62
23
-62
40
-62
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 79 <> 82
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 42 / - 69 * + col0 / 5 + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN 81 AND col2
----

query I rowsort
SELECT DISTINCT - + AVG ( + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 + - - col1 >= - 99 + - - col0 * - 95
----
NULL

query II rowsort
SELECT DISTINCT + col2, + 45 AS col1 FROM tab1 AS cor0
----
59
45
68
45
96
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8930
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8930
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - 15 * 56 AS col1 FROM tab1
----
-840
-840
-840

query I rowsort
SELECT ALL - 23 * - col2 AS col0 FROM tab1
----
1357
1564
2208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT 66 * - 86 * + col0 AS col1 FROM tab2
----
-261096
-363264
-425700

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NOT col1 * - 85 / - col1 * + 97 * col0 * + col2 IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT + 16 + ( SUM( DISTINCT - 96 ) ) FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-8936
SELECT + 16 + ( SUM ( DISTINCT - 96 ) ) FROM tab2 AS cor0
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8937
SELECT DISTINCT + CAST( - AVG ( + 40 ) AS SIGNED ) FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-8937
SELECT DISTINCT + CAST ( - AVG ( + 40 ) AS INTEGER ) FROM tab0 AS cor0
----
-40

query I rowsort
SELECT ALL col1 * + col2 + 44 AS col2 FROM tab0
----
143
254
3851

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col2 NOT BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT ALL + COUNT( * ) * 24 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL + COUNT ( * ) * 24 FROM tab2
----
72

query I rowsort
SELECT DISTINCT - col2 * 95 * - + 71 + + col1 * col1 - + col1 FROM tab2
----
157685
275652
395632

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT 50 * + ( - ( COUNT( * ) ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-150

skipif mysql # not compatible
query I rowsort label-8942
SELECT 50 * + ( - ( COUNT ( * ) ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-150

query II rowsort
SELECT DISTINCT - 52, col1 + 43 AS col2 FROM tab2 AS cor0
----
-52
110
-52
120
-52
94

query II rowsort
SELECT col1 * - col1 + + col1, col2 FROM tab0 AS cor0
----
-420
10
-6480
47
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT MAX( DISTINCT + col0 ) * - - 78 - - 21 AS col1 FROM tab1 AS cor0
----
7119

skipif mysql # not compatible
query I rowsort label-8945
SELECT MAX ( DISTINCT + col0 ) * - - 78 - - 21 AS col1 FROM tab1 AS cor0
----
7119

query I rowsort
SELECT - 84 FROM tab2 AS cor0 WHERE + col0 + - - 26 IS NOT NULL
----
-84
-84
-84

query I rowsort
SELECT col2 + 80 AS col0 FROM tab1 cor0
----
139
148
176

query I rowsort
SELECT col0 + col0 - - col1 * 43 FROM tab2 AS cor0
----
2285
3031
3439

query I rowsort
SELECT DISTINCT - 16 + - + 31 FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT - 20 + MIN( + + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8950
SELECT - 20 + MIN ( + + col2 ) FROM tab2
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8951
SELECT + 30 AS col1 FROM tab0 WHERE ( - CAST( NULL AS DECIMAL ) * - col0 * col1 * + col0 * + - col2 ) NOT BETWEEN col1 * + 68 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8951
SELECT + 30 AS col1 FROM tab0 WHERE ( - CAST ( NULL AS REAL ) * - col0 * col1 * + col0 * + - col2 ) NOT BETWEEN col1 * + 68 AND NULL
----

query I rowsort
SELECT DISTINCT 8 + + + col0 * + col2 AS col1 FROM tab1
----
4904
5023
6196

onlyif mysql # DIV for integer division: 
query I rowsort label-8953
SELECT DISTINCT + 66 DIV - col2 - + 92 FROM tab0
----
-92
-93
-98

skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT + 66 / - col2 - + 92 FROM tab0
----
-92
-93
-98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 55 + - + 47 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * - - col0 - col2 AS col0 FROM tab1 AS cor0
----
4800
4956
6120

query II rowsort
SELECT col2 AS col0, col2 * - 61 * - + col1 * col0 AS col0 FROM tab2 AS cor0 WHERE - col2 * + 21 IS NOT NULL
----
23
3291438
40
12024320
58
17778450

onlyif mysql # DIV for integer division: 
query I rowsort label-8957
SELECT - col0 DIV - - 51 AS col2 FROM tab0 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8957
SELECT - col0 / - - 51 AS col2 FROM tab0 cor0
----
-1
-1
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN - + col0 AND 33 + - 46
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * - + col0 / - + col2 + - - col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + + 97 * - col0 + ( - - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8960
SELECT ALL - col1 DIV - - col1 col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8960
SELECT ALL - col1 / - - col1 col2 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col2 + - col2 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8962
SELECT ALL COUNT( * ) DIV + ( - COUNT( ALL + col0 ) ) col2 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8962
SELECT ALL COUNT ( * ) / + ( - COUNT ( ALL + col0 ) ) col2 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8963
SELECT 87 AS col0, - MIN( DISTINCT + 17 ) FROM tab0
----
87
-17

skipif mysql # not compatible
query II rowsort label-8963
SELECT 87 AS col0, - MIN ( DISTINCT + 17 ) FROM tab0
----
87
-17

query I rowsort
SELECT - ( + 76 ) AS col1 FROM tab0 AS cor0
----
-76
-76
-76

query II rowsort
SELECT + 95 AS col2, + col1 AS col1 FROM tab2 AS cor0
----
95
51
95
67
95
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT + + SUM( DISTINCT col1 ) * + - SUM( DISTINCT + col2 ) FROM tab0 cor0
----
-16068

skipif mysql # not compatible
query I rowsort label-8966
SELECT + + SUM ( DISTINCT col1 ) * + - SUM ( DISTINCT + col2 ) FROM tab0 cor0
----
-16068

query II rowsort
SELECT - + col1 AS col0, + ( - + col1 ) FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

query II rowsort
SELECT ALL + 21 AS col1, col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col0 )
----

query I rowsort
SELECT ALL 33 * + - ( 20 ) * col1 AS col1 FROM tab0 AS cor0
----
-13860
-53460
-660

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 56 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 1 * - + col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT ALL + COUNT( ALL - ( + col1 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8972
SELECT ALL + COUNT ( ALL - ( + col1 ) ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( NULL NOT BETWEEN NULL AND col2 ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 54 * - - ( 24 ) + + + col1 + col1 / + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT - ( col1 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 87 * col1 - col1 / col2 * - col1 col0 FROM tab0 WHERE NOT ( ( NOT NULL IS NOT NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 > NULL
----

query I rowsort
SELECT + col0 * 21 AS col0 FROM tab2
----
1344
1575
966

query I rowsort
SELECT - ( 40 ) FROM tab1
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT + ( 3 ) * COUNT( * ) * - + COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-27

skipif mysql # not compatible
query I rowsort label-8980
SELECT + ( 3 ) * COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-27

query II rowsort
SELECT DISTINCT 75, 48 AS col1 FROM tab0 AS cor0
----
75
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT DISTINCT + 16 + + 35 + - - COUNT( ALL + col1 ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-8982
SELECT DISTINCT + 16 + + 35 + - - COUNT ( ALL + col1 ) FROM tab1
----
54

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 87 <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 / - - 92 < 88
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 > 86
----
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT DISTINCT + - SUM( ALL col2 ) FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-8986
SELECT DISTINCT + - SUM ( ALL col2 ) FROM tab1 cor0
----
-223

query II rowsort
SELECT ALL - col1 * - + col1 + - 95 AS col1, col1 * - col0 * + col2 FROM tab2
----
2506
-53958
4394
-291450
5834
-197120

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8988
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 WHERE NULL > NULL
----
0

query I rowsort
SELECT ALL - col1 - - + col1 * col1 * + + 6 * 21 AS col2 FROM tab0
----
125
55545
826605

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT DISTINCT MAX( + col1 ) + SUM( + + 81 ) AS col0 FROM tab1
----
290

skipif mysql # not compatible
query I rowsort label-8990
SELECT DISTINCT MAX ( + col1 ) + SUM ( + + 81 ) AS col0 FROM tab1
----
290

onlyif mysql # DIV for integer division: 
query I rowsort label-8991
SELECT + col1 - - - col2 * 96 DIV + + col0 AS col1 FROM tab2
----
-7
17
3

skipif mysql # not compatible
query I rowsort label-8991
SELECT + col1 - - - col2 * 96 / + + col0 AS col1 FROM tab2
----
-7
17
3

query I rowsort
SELECT - col0 * - + 95 - 85 + + col1 - - col0 FROM tab0
----
1436
8288
9228

query I rowsort
SELECT ALL ( - - col0 ) + - col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - + 97 FROM tab2 AS cor0 WHERE NOT col0 + + 90 <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT ALL COUNT( DISTINCT - - 27 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8995
SELECT ALL COUNT ( DISTINCT - - 27 ) AS col2 FROM tab1
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < + ( 17 )
----

query I rowsort
SELECT DISTINCT col2 * + 79 AS col1 FROM tab2 AS cor0
----
1817
3160
4582

onlyif mysql # DIV for integer division: 
query I rowsort label-8998
SELECT DISTINCT + + col0 DIV ( col2 ) AS col0 FROM tab0 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-8998
SELECT DISTINCT + + col0 / ( col2 ) AS col0 FROM tab0 AS cor0
----
0
8

query II rowsort
SELECT - 85 * + - 94, col0 * 11 * col2 * col0 * + 69 + - col1 AS col0 FROM tab0 AS cor0
----
7990
57448689
7990
707001668
7990
8026344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9000
SELECT CAST( NULL AS DECIMAL ) * + COUNT( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9000
SELECT CAST ( NULL AS REAL ) * + COUNT ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL - col0 * + + col2 + + col2 AS col0 FROM tab2
----
-1035
-2520
-4292

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT MAX( - + col0 ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9002
SELECT MAX ( - + col0 ) AS col1 FROM tab2
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 51 col2 FROM tab0
----
-51

query I rowsort
SELECT + col1 * - + 57 * - col1 FROM tab0
----
25137
373977
57

query I rowsort
SELECT col1 FROM tab2 WHERE NOT NULL <= + 47
----

query I rowsort
SELECT ALL col0 * + col0 * + col0 + + + col0 + + col2 * + 65 FROM tab1 WHERE 90 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9007
SELECT + CAST( - 7 AS SIGNED ) * + col0 + 7 * 76 FROM tab2 AS cor0 WHERE + col1 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-9007
SELECT + CAST ( - 7 AS INTEGER ) * + col0 + 7 * 76 FROM tab2 AS cor0 WHERE + col1 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9008
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE + 0 NOT BETWEEN - CAST( NULL AS SIGNED ) + - - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9008
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE + 0 NOT BETWEEN - CAST ( NULL AS INTEGER ) + - - col0 AND NULL
----
0

query I rowsort
SELECT ALL + - 40 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT DISTINCT - 26 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-9012
SELECT DISTINCT 19, - COUNT( * ) col1 FROM tab1 AS cor0
----
19
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9012
SELECT DISTINCT 19, - COUNT ( * ) col1 FROM tab1 AS cor0
----
19
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9013
SELECT - MIN( ALL + - 26 ) + + COUNT( * ) + + + SUM( - col1 ) + - CAST( - 64 AS SIGNED ) FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9013
SELECT - MIN ( ALL + - 26 ) + + COUNT ( * ) + + + SUM ( - col1 ) + - CAST ( - 64 AS INTEGER ) FROM tab0 cor0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + col2 + col0 + - col2 - + + col2 col1 FROM tab0 AS cor0
----
-784
-803
-9704

query I rowsort
SELECT - - ( - + col1 ) + + - 3 FROM tab1 AS cor0
----
-17
-50
-8

query I rowsort
SELECT - - ( col1 ) + + 96 AS col2 FROM tab0 AS cor0
----
117
177
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT DISTINCT + MIN( ALL col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9017
SELECT DISTINCT + MIN ( ALL col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 + + - 78 col2 FROM tab1
----
16
16
16

query I rowsort
SELECT ALL + 21 + - + col2 * + col0 FROM tab0
----
-684
-849
-9582

query I rowsort
SELECT DISTINCT + 71 + + col0 * - - col2 FROM tab2
----
1129
2631
4421

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL < 48
----

query I rowsort
SELECT DISTINCT - ( - col2 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 88 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT 64 * + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-9024
SELECT 64 * + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-192

query I rowsort
SELECT + col2 * ( - col1 ) * + 87 FROM tab2 AS cor0
----
-102051
-267960
-338082

query I rowsort
SELECT DISTINCT - - 77 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT + MAX( DISTINCT 47 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
47

skipif mysql # not compatible
query I rowsort label-9027
SELECT + MAX ( DISTINCT 47 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9028
SELECT - - col0 DIV - 30 AS col0 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-9028
SELECT - - col0 / - 30 AS col0 FROM tab0 AS cor0
----
-2
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT ALL - 76 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-9029
SELECT ALL - 76 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-228

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9030
SELECT ALL - ( + COUNT( * ) ) DIV + MAX( + - col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9030
SELECT ALL - ( + COUNT ( * ) ) / + MAX ( + - col0 ) FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - ( 35 ) ) + - + 73 col0 FROM tab2 cor0
----
-108
-108
-108

query I rowsort
SELECT - 22 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9033
SELECT ALL + 46 DIV COUNT( * ) AS col0 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL + 46 / COUNT ( * ) AS col0 FROM tab2 AS cor0
----
15

query I rowsort
SELECT + - col2 + - 69 + 62 AS col2 FROM tab1 AS cor0
----
-103
-66
-75

query II rowsort
SELECT + 89 * - col2 + ( - col0 ), col1 AS col1 FROM tab0 AS cor0
----
-4198
81
-8908
1
-977
21

query I rowsort
SELECT DISTINCT + col2 * + 53 * col1 AS col1 FROM tab2 AS cor0
----
163240
205958
62169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9037
SELECT COUNT( CAST( - col2 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9037
SELECT COUNT ( CAST ( - col2 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + 38 * + 35 AS col0 FROM tab2
----
1330
1330
1330

query I rowsort
SELECT ALL 91 + - ( + 22 ) AS col1 FROM tab2
----
69
69
69

query II rowsort
SELECT DISTINCT - col0 * 36, col0 FROM tab1
----
-1836
51
-3060
85
-3276
91

query I rowsort
SELECT 53 * 54 * - col1 FROM tab1
----
-134514
-14310
-40068

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT COUNT( DISTINCT col0 ) * 57 FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-9042
SELECT COUNT ( DISTINCT col0 ) * 57 FROM tab2
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT + 24 * + 8 * - COUNT( + col1 ) AS col1 FROM tab1
----
-576

skipif mysql # not compatible
query I rowsort label-9043
SELECT + 24 * + 8 * - COUNT ( + col1 ) AS col1 FROM tab1
----
-576

query II rowsort
SELECT 2 * + + col1 AS col2, - 7 * col2 AS col0 FROM tab2
----
102
-161
134
-406
154
-280

query I rowsort
SELECT ALL - 52 * + - col0 FROM tab1 AS cor0
----
2652
4420
4732

query I rowsort
SELECT 99 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - - 2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT ALL 92 + - col1 * 81 FROM tab2
----
-4039
-5335
-6145

query I rowsort
SELECT DISTINCT - ( + - 97 ) AS col2 FROM tab0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 73, - col0 - 89 * 66 col0 FROM tab2 AS cor0
----
-73
-5920
-73
-5938
-73
-5949

query II rowsort
SELECT 56 AS col2, 81 AS col0 FROM tab0 cor0 WHERE - col0 IS NOT NULL
----
56
81
56
81
56
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT DISTINCT COUNT( * ) + + 33 AS col0 FROM tab0 AS cor0 WHERE NOT 58 - + col1 NOT BETWEEN - col1 AND ( - 22 )
----
34

skipif mysql # not compatible
query I rowsort label-9052
SELECT DISTINCT COUNT ( * ) + + 33 AS col0 FROM tab0 AS cor0 WHERE NOT 58 - + col1 NOT BETWEEN - col1 AND ( - 22 )
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-9053
SELECT ALL + col0 DIV col2 + + col0 FROM tab0 AS cor0
----
15
95
97

skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL + col0 / col2 + + col0 FROM tab0 AS cor0
----
15
95
97

query II rowsort
SELECT 98 AS col0, + col1 + + col0 AS col1 FROM tab0
----
98
108
98
96
98
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 col1 FROM tab1
----
3

query II rowsort
SELECT + col0, + 85 FROM tab1
----
51
85
85
85
91
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9057
SELECT SUM( DISTINCT 61 ) DIV COUNT( * ) AS col2 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-9057
SELECT SUM ( DISTINCT 61 ) / COUNT ( * ) AS col2 FROM tab0
----
20

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + ( col1 ) * - + col0 AND NULL
----

query II rowsort
SELECT ALL col2, 23 FROM tab0
----
10
23
47
23
99
23

query II rowsort
SELECT DISTINCT - 83 AS col2, col1 * + - col0 AS col0 FROM tab0
----
-83
-1215
-83
-1827
-83
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT DISTINCT 64 * COUNT( * ) AS col1 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-9061
SELECT DISTINCT 64 * COUNT ( * ) AS col1 FROM tab1
----
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, - 70 + + ( + col1 ) col0 FROM tab2
----
-46
-19
-64
7
-75
-3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 - - - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 58 ) col1 FROM tab0 AS cor0
----
-58

query I rowsort
SELECT - ( + ( 24 ) ) FROM tab1 AS cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT DISTINCT MIN( DISTINCT 15 ) * + 84 AS col0 FROM tab2 AS cor0
----
1260

skipif mysql # not compatible
query I rowsort label-9066
SELECT DISTINCT MIN ( DISTINCT 15 ) * + 84 AS col0 FROM tab2 AS cor0
----
1260

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * - 84 + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 84 <> - col2
----

query I rowsort
SELECT - ( ( - - col0 ) ) FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 41 / + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col0, col1 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 78 + + col2 AS col1 FROM tab1
----
-10
-19
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 col2 FROM tab2, tab1 cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9074
SELECT ALL - COUNT( ALL ( CAST( + col1 AS SIGNED ) ) ) + - + SUM( - + col1 ) col0 FROM tab0
----
100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9074
SELECT ALL - COUNT ( ALL ( CAST ( + col1 AS INTEGER ) ) ) + - + SUM ( - + col1 ) col0 FROM tab0
----
100

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE NOT ( NOT col2 IS NOT NULL )
----
14
47
5

query I rowsort
SELECT col0 + ( col2 ) FROM tab1 WHERE - 86 + - 79 <> NULL
----

query I rowsort
SELECT + 32 + - + 62 AS col0 FROM tab0 cor0
----
-30
-30
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col0 col1 FROM tab0 cor0
----
-1215
-1827
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9079
SELECT - 92 DIV - - col2 FROM tab0 AS cor0
----
-1
-9
0

skipif mysql # not compatible
query I rowsort label-9079
SELECT - 92 / - - col2 FROM tab0 AS cor0
----
-1
-9
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9080
SELECT + col0 col2, + col2 * CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9080
SELECT + col0 col2, + col2 * CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT - 32 + - COUNT( * ) AS col0 FROM tab1
----
-35

skipif mysql # not compatible
query I rowsort label-9081
SELECT - 32 + - COUNT ( * ) AS col0 FROM tab1
----
-35

query I rowsort
SELECT DISTINCT + col2 + + 21 FROM tab1 WHERE NOT - 17 * col2 IS NULL
----
117
80
89

query I rowsort
SELECT DISTINCT - col2 * 29 FROM tab1
----
-1711
-1972
-2784

onlyif mysql # DIV for integer division: 
query I rowsort label-9084
SELECT - 56 DIV 82 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9084
SELECT - 56 / 82 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - 35 + col1 * - col1 FROM tab0
----
-36
-476
-6596

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col2 col1 FROM tab0 WHERE NOT ( + 93 ) NOT IN ( + col0 )
----

query I rowsort
SELECT - 1 + ( + 90 + col0 ) FROM tab0
----
104
176
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9088
SELECT ALL CAST( col2 AS SIGNED ) AS col0 FROM tab2 WHERE - col0 * 76 < - col2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9088
SELECT ALL CAST ( col2 AS INTEGER ) AS col0 FROM tab2 WHERE - col0 * 76 < - col2
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9089
SELECT - col1 DIV col1 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9089
SELECT - col1 / col1 AS col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT + 25 * - col1 AS col1 FROM tab1
----
-1175
-125
-350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9091
SELECT AVG ( CAST( NULL AS SIGNED ) ) * - 77 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9091
SELECT AVG ( CAST ( NULL AS INTEGER ) ) * - 77 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9092
SELECT ALL 26 DIV + COUNT( * ) AS col2 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-9092
SELECT ALL 26 / + COUNT ( * ) AS col2 FROM tab0
----
8

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 - - 70 BETWEEN + col0 AND 42 + - col2 * ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + ( - 72 ) AS col1 FROM tab0
----
-72
-72
-72

query I rowsort
SELECT 65 * col1 + col2 FROM tab0
----
1375
164
5312

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 32 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT ( NULL ) <> col1
----
0

skipif mysql # not compatible
query I rowsort label-9098
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT ( NULL ) <> col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9099
SELECT ALL col2 AS col1 FROM tab0 WHERE NOT NULL <> + CAST( + CAST( - ( 55 ) AS SIGNED ) AS SIGNED ) * + 2
----

skipif mysql # not compatible
query I rowsort label-9099
SELECT ALL col2 AS col1 FROM tab0 WHERE NOT NULL <> + CAST ( + CAST ( - ( 55 ) AS INTEGER ) AS INTEGER ) * + 2
----

query I rowsort
SELECT ALL + 43 FROM tab0 WHERE NOT + ( col2 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND - 61
----

query I rowsort
SELECT col0 + - ( col2 + ( - col1 ) ) AS col1 FROM tab1
----
-31
31
70

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) BETWEEN ( - col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9104
SELECT * FROM tab1 WHERE NULL BETWEEN col0 AND ( - CAST( - 9 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9104
SELECT * FROM tab1 WHERE NULL BETWEEN col0 AND ( - CAST ( - 9 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9105
SELECT ALL 81 DIV 23 + + ( col0 ) FROM tab1
----
54
88
94

skipif mysql # not compatible
query I rowsort label-9105
SELECT ALL 81 / 23 + + ( col0 ) FROM tab1
----
54
88
94

onlyif mysql # DIV for integer division: 
query I rowsort label-9106
SELECT DISTINCT col0 - - 4 DIV 72 AS col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9106
SELECT DISTINCT col0 - - 4 / 72 AS col2 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT MIN( 75 ) FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-9107
SELECT MIN ( 75 ) FROM tab1
----
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col0 * 52 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT MIN( DISTINCT + col1 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9109
SELECT MIN ( DISTINCT + col1 ) AS col2 FROM tab0
----
1

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT - COUNT( ALL + 35 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9111
SELECT - COUNT ( ALL + 35 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col0 / - 70 FROM tab2 AS cor0 WHERE NULL <> + col1
----

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT - col1 + - col2 * 10 NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-9114
SELECT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2
----
9

query I rowsort
SELECT + 69 * - ( - col0 - col1 ) + + col2 FROM tab2 AS cor0
----
6716
9769
9856

query I rowsort
SELECT - - 53 * + col2 + col0 * 32 FROM tab1 AS cor0
----
5847
6516
6720

query I rowsort
SELECT + 34 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9118
SELECT 57 DIV col2 + col2 FROM tab0 AS cor0
----
15
48
99

skipif mysql # not compatible
query I rowsort label-9118
SELECT 57 / col2 + col2 FROM tab0 AS cor0
----
15
48
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9119
SELECT + col2 + - col1 DIV - col2 FROM tab0 AS cor0
----
12
48
99

skipif mysql # not compatible
query I rowsort label-9119
SELECT + col2 + - col1 / - col2 FROM tab0 AS cor0
----
12
48
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT + 34 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-9120
SELECT + 34 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
31

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col2 + - 1 ) NOT BETWEEN col1 * col0 AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9122
SELECT - col1 * col0 - 62 * CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE ( - col0 ) <= ( + col2 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9122
SELECT - col1 * col0 - 62 * CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE ( - col0 ) <= ( + col2 )
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 69 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9124
SELECT ALL - + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9124
SELECT ALL - + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT ALL - COUNT( * ) * COUNT( * ) + 79 FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-9125
SELECT ALL - COUNT ( * ) * COUNT ( * ) + 79 FROM tab0 AS cor0
----
70

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * + col1 + 17 > 35 + 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT ALL MAX( - col2 ) FROM tab0 AS cor0 WHERE ( - 84 / 96 ) NOT BETWEEN ( col1 * col1 ) AND ( 67 )
----
-10

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL MAX ( - col2 ) FROM tab0 AS cor0 WHERE ( - 84 / 96 ) NOT BETWEEN ( col1 * col1 ) AND ( 67 )
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-9128
SELECT DISTINCT 44 DIV 78 + + col0 AS col1 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9128
SELECT DISTINCT 44 / 78 + + col0 AS col1 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT ALL ( - - 35 ) + + COUNT( * ) * - MIN( DISTINCT - 59 ) FROM tab0
----
212

skipif mysql # not compatible
query I rowsort label-9129
SELECT ALL ( - - 35 ) + + COUNT ( * ) * - MIN ( DISTINCT - 59 ) FROM tab0
----
212

query I rowsort
SELECT DISTINCT 65 * + ( ( - 6 ) ) FROM tab1
----
-390

query I rowsort
SELECT ALL 13 + + col1 FROM tab2
----
64
80
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 35 + - col2 col2 FROM tab1
----
-109
-112
-124

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9133
SELECT ALL * FROM tab1 WHERE ( col1 * + CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9133
SELECT ALL * FROM tab1 WHERE ( col1 * + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT ALL 8 * 80 + col1 FROM tab1
----
645
654
687

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9136
SELECT DISTINCT + col0 DIV - - 63 + + col2 AS col2 FROM tab1
----
60
69
96

skipif mysql # not compatible
query I rowsort label-9136
SELECT DISTINCT + col0 / - - 63 + + col2 AS col2 FROM tab1
----
60
69
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9137
SELECT ALL 11 + - - CAST( col2 AS SIGNED ) AS col1 FROM tab0
----
110
21
58

skipif mysql # not compatible
query I rowsort label-9137
SELECT ALL 11 + - - CAST ( col2 AS INTEGER ) AS col1 FROM tab0
----
110
21
58

query I rowsort
SELECT - col0 * + + col2 AS col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT + COUNT( - col0 ) + - ( - 44 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-9139
SELECT + COUNT ( - col0 ) + - ( - 44 ) FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT ALL + COUNT( * ) - + COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9140
SELECT ALL + COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab2
----
0

query I rowsort
SELECT ( 59 ) AS col2 FROM tab2
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT DISTINCT 31 - - COUNT( * ) * + COUNT( * ) FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-9142
SELECT DISTINCT 31 - - COUNT ( * ) * + COUNT ( * ) FROM tab1
----
40

query I rowsort
SELECT 37 * - 67 FROM tab1
----
-2479
-2479
-2479

query I rowsort
SELECT DISTINCT + 78 FROM tab1 AS cor0 WHERE - 40 BETWEEN + col2 / col0 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9145
SELECT ALL 57 DIV + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9145
SELECT ALL 57 / + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

query I rowsort
SELECT + col1 * + + 48 FROM tab2 AS cor0
----
2448
3216
3696

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 79 IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT COUNT( + + ( - 29 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9148
SELECT COUNT ( + + ( - 29 ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT DISTINCT - ( + - MIN( ALL + col2 ) ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9149
SELECT DISTINCT - ( + - MIN ( ALL + col2 ) ) AS col0 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-9150
SELECT DISTINCT - MAX( + + col2 ), 35 AS col1 FROM tab0
----
-99
35

skipif mysql # not compatible
query II rowsort label-9150
SELECT DISTINCT - MAX ( + + col2 ), 35 AS col1 FROM tab0
----
-99
35

query I rowsort
SELECT ALL col2 * + + ( - + col2 ) * 23 FROM tab0
----
-225423
-2300
-50807

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 24 col2 FROM tab2
----
-24
-24
-24

query III rowsort
SELECT * FROM tab1 WHERE NOT - 97 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9154
SELECT DISTINCT COUNT( * ) DIV + 99 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9154
SELECT DISTINCT COUNT ( * ) / + 99 AS col2 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9155
SELECT - CAST( + COUNT( * ) AS SIGNED ) DIV 14 * - 76 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9155
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) / 14 * - 76 FROM tab0
----
0

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 WHERE - - 15 IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9157
SELECT - 17 DIV + - COUNT( * ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-9157
SELECT - 17 / + - COUNT ( * ) FROM tab2
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9158
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) DIV 94 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9158
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) / 94 AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT DISTINCT COUNT( - - 15 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9159
SELECT DISTINCT COUNT ( - - 15 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9160
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) = + col2
----

skipif mysql # not compatible
query III rowsort label-9160
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) = + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - col2 ) col1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + - col1 + - col2 + - 98 + col2 FROM tab0 AS cor0
----
-119
-179
-99

query I rowsort
SELECT ALL col0 * + col0 + - col0 FROM tab0 WHERE NULL IN ( - ( col2 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 + - - 91 NOT BETWEEN - 85 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 + + + col0 = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9167
SELECT * FROM tab0 AS cor0 WHERE - 12 * + CAST( NULL AS SIGNED ) + col0 <> NULL
----

skipif mysql # not compatible
query III rowsort label-9167
SELECT * FROM tab0 AS cor0 WHERE - 12 * + CAST ( NULL AS INTEGER ) + col0 <> NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL > ( col0 * - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9169
SELECT + 98 DIV - + col0 FROM tab0 AS cor0
----
-1
-1
-6

skipif mysql # not compatible
query I rowsort label-9169
SELECT + 98 / - + col0 FROM tab0 AS cor0
----
-1
-1
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9170
SELECT ALL - COUNT( * ) + + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9170
SELECT ALL - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9171
SELECT ( MAX( ALL + 26 ) ) DIV 18 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9171
SELECT ( MAX ( ALL + 26 ) ) / 18 FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col0, - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9173
SELECT - col1 + + ( + col0 ) + col0 - - + ( - col1 ) + col2 DIV col1 * + col2 AS col0 FROM tab2 AS cor0
----
-10
-26
16

skipif mysql # not compatible
query I rowsort label-9173
SELECT - col1 + + ( + col0 ) + col0 - - + ( - col1 ) + col2 / col1 * + col2 AS col0 FROM tab2 AS cor0
----
-10
-26
16

query I rowsort
SELECT 3 + - + col0 + + col2 * - 34 * - + col0 * + 89 AS col2 FROM tab0 cor0
----
2133318
2632536
29058584

query I rowsort
SELECT ALL - + 69 + 54 FROM tab0 AS cor0
----
-15
-15
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col1 * + col2 col0 FROM tab1 AS cor0
----
1248
236
3128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 + + 78 col0 FROM tab0
----
147
147
147

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT ALL + 15 + + COUNT( * ) AS col2 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-9178
SELECT ALL + 15 + + COUNT ( * ) AS col2 FROM tab1
----
18

query I rowsort
SELECT ALL col0 + - + col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - 82 + - + ( + col1 ) AS col2 FROM tab0
----
-103
-163
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - 15 ) col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT DISTINCT 18 * + 53 AS col1 FROM tab2, tab0 AS cor0
----
954

query II rowsort
SELECT DISTINCT + 48, + col1 + + 7 AS col1 FROM tab1
----
48
12
48
21
48
54

query III rowsort
SELECT * FROM tab0 WHERE ( NOT + col0 - ( col1 ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( col2 ) * - col1 AS col2 FROM tab0
----
-210
-3807
-99

query II rowsort
SELECT DISTINCT 75 AS col1, + 85 FROM tab2 AS cor0
----
75
85

query I rowsort
SELECT - 72 * + ( col2 ) AS col0 FROM tab1 AS cor0
----
-4248
-4896
-6912

query I rowsort
SELECT - - 42 AS col2 FROM tab0 cor0
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9189
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = CAST( + + 40 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9189
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = CAST ( + + 40 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col1 * - col1 + col0 - col0 AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + + 91 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9192
SELECT ALL + col0 DIV + 60 AS col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL + col0 / + 60 AS col1 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT - ( + col0 ) * + + col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT ( NULL ) IS NULL )
----

query I rowsort
SELECT ALL 80 * - - 96 * + - col1 - - ( - col1 ) * col0 AS col0 FROM tab1 AS cor0
----
-108234
-365237
-38825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - col1 ) col2, + 91 FROM tab0 AS cor0
----
-1
91
-21
91
-81
91

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 WHERE NOT - + 52 + + col2 + + 26 BETWEEN - + 0 AND - + 57
----
15
87
97

query II rowsort
SELECT ALL col2, col0 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
46
40
64
58
75

query I rowsort
SELECT ALL 31 FROM tab1 WHERE NOT NULL >= ( col0 * + - col0 - + 32 + + 58 - - - col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 39 / - + 85 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 2 / + col1 IS NOT NULL
----

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE NOT + + col0 < + - 57
----
-59
-68
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9203
SELECT + MAX( + 59 ) DIV - + 51 AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9203
SELECT + MAX ( + 59 ) / - + 51 AS col2 FROM tab0
----
-1

query I rowsort
SELECT + col1 AS col0 FROM tab0 cor0 WHERE NOT - 0 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9205
SELECT DISTINCT - + col2 * + col1 * col0 DIV + col1 + + col1 AS col2 FROM tab1 AS cor0
----
-4882
-5010
-6141

skipif mysql # not compatible
query I rowsort label-9205
SELECT DISTINCT - + col2 * + col1 * col0 / + col1 + + col1 AS col2 FROM tab1 AS cor0
----
-4882
-5010
-6141

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 AS cor0 WHERE ( - - col1 ) IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9207
SELECT ALL 62 / CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9207
SELECT ALL 62 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - 98 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col0 / + col1 + + 25 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT ALL + MIN( DISTINCT + col0 ) * + + COUNT( + - col1 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
153

skipif mysql # not compatible
query I rowsort label-9210
SELECT ALL + MIN ( DISTINCT + col0 ) * + + COUNT ( + - col1 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - - 38 col0 FROM tab1
----
106
134
97

query I rowsort
SELECT 57 + - - 28 AS col2 FROM tab1 AS cor0
----
85
85
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9213
SELECT - CAST( NULL AS SIGNED ) + - 52 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9213
SELECT - CAST ( NULL AS INTEGER ) + - 52 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT + MIN( ALL 52 ) + 13 AS col0 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-9214
SELECT + MIN ( ALL 52 ) + 13 AS col0 FROM tab1 AS cor0
----
65

query I rowsort
SELECT 35 AS col2 FROM tab2 AS cor0 WHERE col1 + - - col1 * col1 <= ( + 77 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9216
SELECT ALL - CAST( NULL AS SIGNED ) + col1 - - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9216
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 - - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9217
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + col1, - 97 FROM tab0 AS cor0 WHERE 63 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query II rowsort label-9217
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + col1, - 97 FROM tab0 AS cor0 WHERE 63 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 2 - - col2 + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( + ( - 56 ) ) * 89 * + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE 2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 6 + + + 6 AS col0 FROM tab1
----
12
12
12

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9223
SELECT * FROM tab0 WHERE - col0 / - - col2 - 98 * - col1 * + 95 + - CAST( + + ( + col0 ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9223
SELECT * FROM tab0 WHERE - col0 / - - col2 - 98 * - col1 * + 95 + - CAST ( + + ( + col0 ) AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT ALL 33 + + - COUNT( * ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-9224
SELECT ALL 33 + + - COUNT ( * ) FROM tab0
----
30

query II rowsort
SELECT + 80, 90 AS col2 FROM tab2
----
80
90
80
90
80
90

query I rowsort
SELECT ALL + col1 + col0 + - 86 * ( col2 ) * + col2 + - - col0 * - ( col1 ) FROM tab0
----
-10319
-191093
-842885

query I rowsort
SELECT + 52 - - + 53 * - col1 FROM tab2
----
-2651
-3499
-4029

query II rowsort
SELECT ALL 5 * + + ( + - col0 ) AS col0, col2 + - col1 AS col2 FROM tab0
----
-435
-11
-485
98
-75
-34

query I rowsort
SELECT - 93 * - col0 - - 73 AS col1 FROM tab2
----
4351
6025
7048

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( ( ( NULL ) > - col0 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = + 4 / + col1
----

query II rowsort
SELECT ALL - col0 AS col0, - 86 * - col2 FROM tab0 AS cor0
----
-15
4042
-87
860
-97
8514

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 3 * - col0 IN ( + col0 * + - 67 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT COUNT( + ( - col2 ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9235
SELECT COUNT ( + ( - col2 ) ) AS col0 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-9236
SELECT - col0, + col1 + + - 78 DIV col1 AS col1 FROM tab1
----
-51
9
-85
-10
-91
46

skipif mysql # not compatible
query II rowsort label-9236
SELECT - col0, + col1 + + - 78 / col1 AS col1 FROM tab1
----
-51
9
-85
-10
-91
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT ALL - - COUNT( * ) * + COUNT( * ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL - - COUNT ( * ) * + COUNT ( * ) FROM tab1 cor0
----
9

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( + ( + 30 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 95 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col0, - col0 + 36 AS col1 FROM tab2 AS cor0
----
46
-10
64
-28
75
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-9241
SELECT - + COUNT( * ) AS col1, COUNT( * ) * + MAX( DISTINCT + ( + col0 ) ) FROM tab0 AS cor0
----
-3
291

skipif mysql # not compatible
query II rowsort label-9241
SELECT - + COUNT ( * ) AS col1, COUNT ( * ) * + MAX ( DISTINCT + ( + col0 ) ) FROM tab0 AS cor0
----
-3
291

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT DISTINCT - - COUNT( * ) * - ( + 53 ) AS col2 FROM tab2 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-9242
SELECT DISTINCT - - COUNT ( * ) * - ( + 53 ) AS col2 FROM tab2 AS cor0
----
-159

query II rowsort
SELECT ALL col1, - col2 - - col1 + 12 AS col1 FROM tab2 WHERE NOT + + col1 / + col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9244
SELECT ALL MAX( ALL CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col0 * 94 AS col2 FROM tab1
----
4794
7990
8554

onlyif mysql # aggregate syntax: 
query II rowsort label-9246
SELECT - MIN( 36 ) AS col2, + 51 FROM tab2 WHERE NOT ( NOT ( col2 * - 62 - col2 IS NOT NULL ) )
----
-36
51

skipif mysql # not compatible
query II rowsort label-9246
SELECT - MIN ( 36 ) AS col2, + 51 FROM tab2 WHERE NOT ( NOT ( col2 * - 62 - col2 IS NOT NULL ) )
----
-36
51

query I rowsort
SELECT ALL - 44 + + - 69 * + + 65 AS col2 FROM tab1 cor0
----
-4529
-4529
-4529

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT COUNT( * ) + COUNT( * ) + - + COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 cor0
----
15

skipif mysql # not compatible
query I rowsort label-9248
SELECT COUNT ( * ) + COUNT ( * ) + - + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT + + SUM( DISTINCT - - col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9249
SELECT + + SUM ( DISTINCT - - col1 ) FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT + + SUM( + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9250
SELECT + + SUM ( + col2 ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT ALL - + 11 + - 92 FROM tab2 AS cor0
----
-103
-103
-103

query I rowsort
SELECT ALL + 77 * - col0 * - - col1 * - col1 * - - col0 AS col1 FROM tab2
----
1869959168
1944298125
423786132

onlyif mysql # DIV for integer division: 
query II rowsort label-9253
SELECT DISTINCT - + 57 AS col2, + 73 DIV - - col0 AS col2 FROM tab0 cor0
----
-57
0
-57
4

skipif mysql # not compatible
query II rowsort label-9253
SELECT DISTINCT - + 57 AS col2, + 73 / - - col0 AS col2 FROM tab0 cor0
----
-57
0
-57
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9254
SELECT - - col0 - + col2 DIV + 41 col2 FROM tab0 cor0
----
14
87
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9254
SELECT - - col0 - + col2 / + 41 col2 FROM tab0 cor0
----
14
87
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT - MAX( ALL - - col0 ) * 23 + COUNT( * ) - + 44 - MAX( DISTINCT - 18 ) AS col0 FROM tab0 AS cor0
----
-2254

skipif mysql # not compatible
query I rowsort label-9255
SELECT - MAX ( ALL - - col0 ) * 23 + COUNT ( * ) - + 44 - MAX ( DISTINCT - 18 ) AS col0 FROM tab0 AS cor0
----
-2254

query I rowsort
SELECT col2 + + + col1 + col1 FROM tab1 AS cor0 WHERE ( NOT - - col1 IS NOT NULL )
----

query I rowsort
SELECT + + 76 + - 53 FROM tab2 AS cor0
----
23
23
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9258
SELECT DISTINCT + col2 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9258
SELECT DISTINCT + col2 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9259
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9259
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 * + 64 + + - col0 FROM tab0 AS cor0
----
-33
1257
5169

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9261
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 - - CAST( NULL AS SIGNED ) >= + 77 * + + col0 + - + col1
----

skipif mysql # not compatible
query III rowsort label-9261
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 - - CAST ( NULL AS INTEGER ) >= + 77 * + + col0 + - + col1
----

query I rowsort
SELECT - + 22 + col0 + + col0 + - 95 - - 63 FROM tab2 cor0
----
38
74
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT + ( - COUNT( * ) ) + COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9263
SELECT + ( - COUNT ( * ) ) + COUNT ( * ) FROM tab0 cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 * col0 IS NULL
----

query I rowsort
SELECT 56 + - col0 + - col0 FROM tab2
----
-36
-72
-94

query I rowsort
SELECT ALL + col0 * + 96 + - 62 FROM tab2
----
4354
6082
7138

query III rowsort
SELECT * FROM tab1 WHERE + col1 * + col2 > - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( col2 ) + col1 AS col0 FROM tab2
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9269
SELECT * FROM tab2 WHERE + - CAST( NULL AS SIGNED ) * col0 NOT BETWEEN + col0 AND col2
----

skipif mysql # not compatible
query III rowsort label-9269
SELECT * FROM tab2 WHERE + - CAST ( NULL AS INTEGER ) * col0 NOT BETWEEN + col0 AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9270
SELECT ALL col2 DIV - col2 - - col1 AS col1 FROM tab0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-9270
SELECT ALL col2 / - col2 - - col1 AS col1 FROM tab0
----
0
20
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9271
SELECT + 18 * col2 DIV + - col1 AS col1 FROM tab0 cor0
----
-10
-1782
-8

skipif mysql # not compatible
query I rowsort label-9271
SELECT + 18 * col2 / + - col1 AS col1 FROM tab0 cor0
----
-10
-1782
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-9272
SELECT - col1 DIV - - 57 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9272
SELECT - col1 / - - 57 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - col1 * - + 6 AS col1 FROM tab2 AS cor0
----
306
402
462

query I rowsort
SELECT + - col2 * - + 44 AS col1 FROM tab0 AS cor0
----
2068
4356
440

query I rowsort
SELECT ALL - 98 + - col0 + + col1 AS col0 FROM tab2 AS cor0
----
-106
-85
-93

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 65 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 70, - 58 col0 FROM tab2
----
70
-58
70
-58
70
-58

query I rowsort
SELECT 52 * + + col1 AS col1 FROM tab1
----
2444
260
728

onlyif mysql # DIV for integer division: 
query I rowsort label-9279
SELECT col0 DIV 70 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9279
SELECT col0 / 70 FROM tab0
----
0
1
1

query I rowsort
SELECT - 76 FROM tab2 WHERE NOT col2 IS NULL
----
-76
-76
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9281
SELECT + CAST( - + 55 AS SIGNED ) FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9281
SELECT + CAST ( - + 55 AS INTEGER ) FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL col0 AS col0, - col2 + col0 FROM tab0 AS cor0
----
15
-32
87
77
97
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9283
SELECT ALL - col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) = col0 * CAST( NULL AS SIGNED ) / col0
----

skipif mysql # not compatible
query I rowsort label-9283
SELECT ALL - col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) = col0 * CAST ( NULL AS INTEGER ) / col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 20 >= NULL
----

query I rowsort
SELECT ALL + + 18 * - ( col0 ) FROM tab0 AS cor0
----
-1566
-1746
-270

query I rowsort
SELECT DISTINCT + col2 + - 84 FROM tab2 AS cor0
----
-26
-44
-61

query I rowsort
SELECT - col2 + + + 35 + - col1 AS col2 FROM tab1
----
-29
-75
-80

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE ( 55 * + + 71 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9289
SELECT ALL + COUNT( * ) DIV + + 54 * + + 43 + - + COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9289
SELECT ALL + COUNT ( * ) / + + 54 * + + 43 + - + COUNT ( * ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = + 84
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9291
SELECT + 12 DIV + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-9291
SELECT + 12 / + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT SUM( DISTINCT + col1 ) - - COUNT( ALL - col0 ) FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-9292
SELECT SUM ( DISTINCT + col1 ) - - COUNT ( ALL - col0 ) FROM tab0
----
106

query I rowsort
SELECT ALL - 46 * - col2 + - ( + col2 ) AS col0 FROM tab0
----
2115
4455
450

query I rowsort
SELECT + 47 - col1 FROM tab1
----
0
33
42

query I rowsort
SELECT DISTINCT 25 + - col1 FROM tab2
----
-26
-42
-52

query II rowsort
SELECT DISTINCT ( col2 ) - 71 AS col1, col1 FROM tab1
----
-12
5
-3
47
25
14

query I rowsort
SELECT 73 * + 44 FROM tab1
----
3212
3212
3212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9298
SELECT DISTINCT - col2 / + col0 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9298
SELECT DISTINCT - col2 / + col0 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9299
SELECT ALL + col1 DIV + + 48 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL + col1 / + + 48 AS col0 FROM tab0 AS cor0
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = col0 + - + col0 + - + 25 * col0 / ( - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9301
SELECT - col2 * + CAST( + 41 AS SIGNED ) FROM tab2
----
-1640
-2378
-943

skipif mysql # not compatible
query I rowsort label-9301
SELECT - col2 * + CAST ( + 41 AS INTEGER ) FROM tab2
----
-1640
-2378
-943

onlyif mysql # DIV for integer division: 
query I rowsort label-9302
SELECT + 65 DIV 21 AS col0 FROM tab0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-9302
SELECT + 65 / 21 AS col0 FROM tab0
----
3
3
3

query I rowsort
SELECT - - 79 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT + 45 * + MAX( + col1 ) FROM tab0
----
3645

skipif mysql # not compatible
query I rowsort label-9304
SELECT + 45 * + MAX ( + col1 ) FROM tab0
----
3645

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 62 / + 77 - + ( - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT + - ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9306
SELECT + - ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <= - col2 / + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 + col2 >= NULL
----

query II rowsort
SELECT 43 AS col0, + 82 FROM tab1
----
43
82
43
82
43
82

query I rowsort
SELECT DISTINCT + col0 * + 28 AS col0 FROM tab2
----
1288
1792
2100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9311
SELECT ALL CAST( + col1 AS SIGNED ) + + 93 FROM tab2
----
144
160
170

skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL CAST ( + col1 AS INTEGER ) + + 93 FROM tab2
----
144
160
170

query I rowsort
SELECT 64 + - - col2 AS col0 FROM tab1
----
123
132
160

query I rowsort
SELECT 82 + 97 FROM tab2
----
179
179
179

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 + + col0 col0 FROM tab1
----
134
168
174

query I rowsort
SELECT - - col0 + - + 52 + + - 88 AS col1 FROM tab2 cor0
----
-65
-76
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-9316
SELECT - 47 DIV - + col0 + - col2 * + - col2 AS col1 FROM tab0 AS cor0
----
100
2212
9801

skipif mysql # not compatible
query I rowsort label-9316
SELECT - 47 / - + col0 + - col2 * + - col2 AS col1 FROM tab0 AS cor0
----
100
2212
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9317
SELECT - CAST( - AVG ( DISTINCT + col1 ) AS SIGNED ) FROM tab2 cor0
----
65

skipif mysql # not compatible
query I rowsort label-9317
SELECT - CAST ( - AVG ( DISTINCT + col1 ) AS INTEGER ) FROM tab2 cor0
----
65

query I rowsort
SELECT DISTINCT + ( + col0 ) + + col2 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT + COUNT( * ) * - COUNT( * ) - MIN( ALL + 85 ) FROM tab0, tab1 AS cor0
----
-166

skipif mysql # not compatible
query I rowsort label-9319
SELECT + COUNT ( * ) * - COUNT ( * ) - MIN ( ALL + 85 ) FROM tab0, tab1 AS cor0
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT DISTINCT + COUNT( * ) * - 28 + - + 21 FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-9320
SELECT DISTINCT + COUNT ( * ) * - 28 + - + 21 FROM tab0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT DISTINCT - 97 * + + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-873

skipif mysql # not compatible
query I rowsort label-9321
SELECT DISTINCT - 97 * + + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-873

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9322
SELECT - - 57 + + 25 + CAST( NULL AS SIGNED ) col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9322
SELECT - - 57 + + 25 + CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col0 AS col1 FROM tab0 cor0 WHERE NOT col0 < NULL
----

query II rowsort
SELECT + col2 + - 5 AS col0, col2 AS col0 FROM tab1 AS cor0
----
54
59
63
68
91
96

query II rowsort
SELECT DISTINCT - + 15 * - + col1 * + col2 * col0 AS col0, col2 FROM tab0 cor0
----
144045
99
274050
10
856575
47

query I rowsort
SELECT DISTINCT 21 + 2 AS col1 FROM tab2 AS cor0
----
23

query III rowsort
SELECT ALL * FROM tab1 WHERE + 40 - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 = ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT + SUM( + + 22 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-9329
SELECT + SUM ( + + 22 ) FROM tab1 cor0
----
66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9330
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9330
SELECT DISTINCT + CAST ( NULL AS REAL ) * - col0 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT DISTINCT + 19 * COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
57

skipif mysql # not compatible
query I rowsort label-9331
SELECT DISTINCT + 19 * COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT DISTINCT ( + + MAX( - 77 ) ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-77

skipif mysql # not compatible
query I rowsort label-9332
SELECT DISTINCT ( + + MAX ( - 77 ) ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT 23 * + COUNT( DISTINCT + ( 44 ) ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
23

skipif mysql # not compatible
query I rowsort label-9333
SELECT 23 * + COUNT ( DISTINCT + ( 44 ) ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-9334
SELECT DISTINCT + COUNT( * ) AS col2, 61 AS col1 FROM tab1
----
3
61

skipif mysql # not compatible
query II rowsort label-9334
SELECT DISTINCT + COUNT ( * ) AS col2, 61 AS col1 FROM tab1
----
3
61

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 77 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT ALL - SUM( + - col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL - SUM ( + - col1 ) AS col2 FROM tab0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9337
SELECT DISTINCT - 82 * - CAST( NULL AS SIGNED ) / + COUNT( * ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9337
SELECT DISTINCT - 82 * - CAST ( NULL AS INTEGER ) / + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9338
SELECT DISTINCT + SUM( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9338
SELECT DISTINCT + SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9339
SELECT ALL CAST( + col1 AS SIGNED ) AS col0 FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9339
SELECT ALL CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT ALL - ( + col0 ) + + 39 AS col1 FROM tab2 AS cor0
----
-25
-36
-7

query II rowsort
SELECT DISTINCT - - col2 + - - 71 + + ( + col0 ) * + 13 * - 3, col1 FROM tab2 AS cor0
----
-1700
51
-2385
77
-2796
67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 58 - - ( + + 31 ) * - + 23 * + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT DISTINCT - SUM( DISTINCT + col2 ) + 3 AS col2 FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-9343
SELECT DISTINCT - SUM ( DISTINCT + col2 ) + 3 AS col2 FROM tab0
----
-153

query I rowsort
SELECT - 27 * + 88 AS col0 FROM tab1
----
-2376
-2376
-2376

query I rowsort
SELECT ALL - 40 + + 59 * - col0 * 2 FROM tab1
----
-10070
-10778
-6058

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9346
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9346
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9347
SELECT * FROM tab1 AS cor0 WHERE + col2 > - + CAST( - 18 AS DECIMAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9347
SELECT * FROM tab1 AS cor0 WHERE + col2 > - + CAST ( - 18 AS REAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9348
SELECT ALL col0 * col1 + col2 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL col0 * col1 + col2 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9349
SELECT DISTINCT - 69 * CAST( + 20 AS SIGNED ) + + COUNT( * ) FROM tab0 cor0
----
-1377

skipif mysql # not compatible
query I rowsort label-9349
SELECT DISTINCT - 69 * CAST ( + 20 AS INTEGER ) + + COUNT ( * ) FROM tab0 cor0
----
-1377

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9350
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 76 + - CAST( - col2 AS SIGNED ) - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9350
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 76 + - CAST ( - col2 AS INTEGER ) - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col0 * + col1 IS NOT NULL
----

query II rowsort
SELECT ALL - col1 AS col0, col0 * + 4 FROM tab2
----
-51
184
-67
300
-77
256

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9354
SELECT ALL col0 * - col0 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL col0 * - col0 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + + col1 ) AS col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT + 5 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9358
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < - CAST( NULL AS DECIMAL ) + - col2 * + col0 * + col0
----

skipif mysql # not compatible
query III rowsort label-9358
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < - CAST ( NULL AS REAL ) + - col2 * + col0 * + col0
----

query II rowsort
SELECT 18 * + 46, col0 AS col2 FROM tab0 AS cor0
----
828
15
828
87
828
97

query I rowsort
SELECT - - col0 + + - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 6 * - col1 + col0 FROM tab2
----
352
477
526

query I rowsort
SELECT + ( + 91 ) FROM tab2 WHERE + ( - - col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT 78 + - col0 * + - col0 AS col2 FROM tab2
----
2194
4174
5703

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT - COUNT( * ) + MIN( DISTINCT - col1 ) FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-9364
SELECT - COUNT ( * ) + MIN ( DISTINCT - col1 ) FROM tab1
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-9365
SELECT DISTINCT - SUM( - + ( - col0 ) ), + 43 AS col0 FROM tab0
----
-199
43

skipif mysql # not compatible
query II rowsort label-9365
SELECT DISTINCT - SUM ( - + ( - col0 ) ), + 43 AS col0 FROM tab0
----
-199
43

query I rowsort
SELECT + - col0 FROM tab1 WHERE ( col2 * + col0 + + - col2 ) BETWEEN NULL AND - col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= - + col1 * col1 + - 92
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * + col0 - + col1 col2, + 98 FROM tab2
----
2065
98
4019
98
5558
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( NOT NULL NOT BETWEEN ( NULL ) AND NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT - MIN( DISTINCT col2 ) * MAX( ALL - 60 ) FROM tab1 AS cor0
----
3540

skipif mysql # not compatible
query I rowsort label-9370
SELECT - MIN ( DISTINCT col2 ) * MAX ( ALL - 60 ) FROM tab1 AS cor0
----
3540

query II rowsort
SELECT - col2, 62 + + - col2 AS col1 FROM tab1 AS cor0
----
-59
3
-68
-6
-96
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-9372
SELECT 2 * + COUNT( * ) AS col1, - 32 AS col2 FROM tab2
----
6
-32

skipif mysql # not compatible
query II rowsort label-9372
SELECT 2 * + COUNT ( * ) AS col1, - 32 AS col2 FROM tab2
----
6
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT DISTINCT SUM( - + col1 ) col0 FROM tab0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9373
SELECT DISTINCT SUM ( - + col1 ) col0 FROM tab0
----
-103

query I rowsort
SELECT ALL - - 47 * 26 FROM tab1 cor0
----
1222
1222
1222

query II rowsort
SELECT - ( + 29 ), + col0 FROM tab1 AS cor0
----
-29
51
-29
85
-29
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9376
SELECT ALL - + CAST( ( 41 ) AS SIGNED ) FROM tab0 AS cor0
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL - + CAST ( ( 41 ) AS INTEGER ) FROM tab0 AS cor0
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT + 69 * - COUNT( * ) * - COUNT( * ) FROM tab0 cor0
----
621

skipif mysql # not compatible
query I rowsort label-9377
SELECT + 69 * - COUNT ( * ) * - COUNT ( * ) FROM tab0 cor0
----
621

query I rowsort
SELECT + col2 * + col0 * - col2 * col0 + 70 FROM tab1 AS cor0
----
-23970746
-25150155
-38291274

query I rowsort
SELECT + 76 * + + col2 FROM tab1
----
4484
5168
7296

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9380
SELECT * FROM tab1 WHERE NOT - + CAST( NULL AS SIGNED ) * col2 + + + col2 >= + col0
----

skipif mysql # not compatible
query III rowsort label-9380
SELECT * FROM tab1 WHERE NOT - + CAST ( NULL AS INTEGER ) * col2 + + + col2 >= + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT DISTINCT + 41 * - + ( - - COUNT( * ) ) FROM tab2
----
-123

skipif mysql # not compatible
query I rowsort label-9382
SELECT DISTINCT + 41 * - + ( - - COUNT ( * ) ) FROM tab2
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT ALL + 18 * COUNT( * ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-9383
SELECT ALL + 18 * COUNT ( * ) FROM tab2 AS cor0
----
54

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 - - col0 * - col2 * 3 BETWEEN - 41 * + col2 - 91 AND - 43
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( + 37 ) IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON NULL IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT COUNT( ALL 25 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9387
SELECT COUNT ( ALL 25 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT ALL 14 * col0 FROM tab2
----
1050
644
896

query I rowsort
SELECT - 60 * 61 + - 50 FROM tab2 AS cor0
----
-3710
-3710
-3710

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT DISTINCT - COUNT( * ) + 31 AS col2 FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-9390
SELECT DISTINCT - COUNT ( * ) + 31 AS col2 FROM tab2 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT ALL + COUNT( * ) * + COUNT( * ) AS col2 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9391
SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 cor0
----
9

query I rowsort
SELECT ALL - + col2 + 49 AS col2 FROM tab1 AS cor0
----
-10
-19
-47

query II rowsort
SELECT + + col0 AS col2, col1 AS col0 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT ALL + ( 69 ) + + COUNT( * ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL + ( 69 ) + + COUNT ( * ) FROM tab0
----
72

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 21 / + col1 * - ( + col2 ) IS NULL
----

query II rowsort
SELECT ALL - 47 + - 10 AS col2, col1 FROM tab2
----
-57
51
-57
67
-57
77

query I rowsort
SELECT DISTINCT col0 - + + 67 AS col2 FROM tab1
----
-16
18
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT DISTINCT - ( + COUNT( DISTINCT + col2 ) ) + - 20 FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-9398
SELECT DISTINCT - ( + COUNT ( DISTINCT + col2 ) ) + - 20 FROM tab1
----
-23

query I rowsort
SELECT ALL - col1 * + col0 * + 49 FROM tab0
----
-4753
-59535
-89523

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9400
SELECT + COUNT( * ) DIV 89 - - - MAX( - - col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-9400
SELECT + COUNT ( * ) / 89 - - - MAX ( - - col1 ) FROM tab1
----
-47

query I rowsort
SELECT DISTINCT + - col2 FROM tab0 WHERE col2 IS NOT NULL
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 - + col2 col2, + 29 FROM tab1
----
-21
29
-54
29
-82
29

query I rowsort
SELECT col0 - + + col1 + + + col0 AS col1 FROM tab1
----
135
165
88

onlyif mysql # DIV for integer division: 
query II rowsort label-9404
SELECT DISTINCT 21 DIV + col2, - col1 DIV - - 65 AS col1 FROM tab2
----
0
-1
0
0

skipif mysql # not compatible
query II rowsort label-9404
SELECT DISTINCT 21 / + col2, - col1 / - - 65 AS col1 FROM tab2
----
0
-1
0
0

query I rowsort
SELECT ALL + + 60 - - + 81 FROM tab0 AS cor0
----
141
141
141

query I rowsort
SELECT ALL - - 87 AS col0 FROM tab0 AS cor0
----
87
87
87

query I rowsort
SELECT - 72 + + col0 FROM tab2 AS cor0
----
-26
-8
3

query II rowsort
SELECT col1 AS col2, - col0 AS col0 FROM tab2
----
51
-46
67
-75
77
-64

query I rowsort
SELECT + 73 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9410
SELECT CAST( NULL AS SIGNED ) * - - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9410
SELECT CAST ( NULL AS INTEGER ) * - - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9411
SELECT - COUNT( DISTINCT CAST( - 99 AS DECIMAL ) ) FROM tab2, tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9411
SELECT - COUNT ( DISTINCT CAST ( - 99 AS REAL ) ) FROM tab2, tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9412
SELECT DISTINCT col1 DIV - - col1 + - 16 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9412
SELECT DISTINCT col1 / - - col1 + - 16 FROM tab0 AS cor0
----
-15

query II rowsort
SELECT ALL + col2 AS col1, - ( - - ( + ( + col1 ) ) ) - + + 12 FROM tab2 AS cor0
----
23
-63
40
-89
58
-79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 79 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * - 51 AS col0 FROM tab0 AS cor0 WHERE NOT - 47 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9416
SELECT ALL CAST( - MIN( col1 ) AS SIGNED ) FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9416
SELECT ALL CAST ( - MIN ( col1 ) AS INTEGER ) FROM tab1 cor0
----
-5

query I rowsort
SELECT - col1 + col2 * + 12 FROM tab0 AS cor0 WHERE NOT + col0 - + + col0 IS NULL
----
1187
483
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9418
SELECT - col1 DIV + + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9418
SELECT - col1 / + + col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9419
SELECT CAST( NULL AS SIGNED ) * + + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9419
SELECT CAST ( NULL AS INTEGER ) * + + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 99 / + col2 * col1 - col2 + 50 NOT BETWEEN NULL AND + 76 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9421
SELECT - CAST( NULL AS SIGNED ) * + + 21 + - col2 col1 FROM tab0 WHERE NOT NULL NOT IN ( - 11, col2 * + 17 + - 86 * - col2, + - col0, - ( col0 ), + 35 + + col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9421
SELECT - CAST ( NULL AS INTEGER ) * + + 21 + - col2 col1 FROM tab0 WHERE NOT NULL NOT IN ( - 11, col2 * + 17 + - 86 * - col2, + - col0, - ( col0 ), + 35 + + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9422
SELECT DISTINCT - MIN( DISTINCT - col1 ) AS col2, 83 col1 FROM tab1 AS cor0
----
47
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9422
SELECT DISTINCT - MIN ( DISTINCT - col1 ) AS col2, 83 col1 FROM tab1 AS cor0
----
47
83

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( ( col2 ) - + - ( col0 ) + + col2 ) OR 96 IS NULL
----

query I rowsort
SELECT ( + + 66 ) FROM tab2
----
66
66
66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT ALL + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9426
SELECT ALL + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, 98 + - + col2 FROM tab1 cor0
----
-59
39
-68
30
-96
2

query II rowsort
SELECT DISTINCT - + col2, + col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query I rowsort
SELECT + - col2 + 11 * + col1 FROM tab0 AS cor0
----
-88
221
844

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9430
SELECT col2 + + CAST( + ( - 6 ) AS SIGNED ) FROM tab2 AS cor0
----
17
34
52

skipif mysql # not compatible
query I rowsort label-9430
SELECT col2 + + CAST ( + ( - 6 ) AS INTEGER ) FROM tab2 AS cor0
----
17
34
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9431
SELECT DISTINCT - col1 * col2 * 73 + + col1 - + ( - CAST( + col2 AS SIGNED ) ) FROM tab0
----
-15299
-277783
-7127

skipif mysql # not compatible
query I rowsort label-9431
SELECT DISTINCT - col1 * col2 * 73 + + col1 - + ( - CAST ( + col2 AS INTEGER ) ) FROM tab0
----
-15299
-277783
-7127

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT MIN( ALL + 6 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9432
SELECT MIN ( ALL + 6 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9433
SELECT DISTINCT + col1 - 14 + ( + + CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9433
SELECT DISTINCT + col1 - 14 + ( + + CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 25 AND col0
----

query I rowsort
SELECT ALL + col1 - + col2 AS col0 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9436
SELECT + - col2 AS col0, CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-9436
SELECT + - col2 AS col0, CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

query I rowsort
SELECT + 92 - col2 FROM tab2 AS cor0
----
34
52
69

query I rowsort
SELECT DISTINCT + 83 * + - col0 * - + col0 FROM tab1 AS cor0
----
215883
599675
687323

query I rowsort
SELECT ALL - - 69 + col1 + + 73 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col0 * 15 + 56 AS col2 FROM tab0 AS cor0
----
1361
1511
281

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9441
SELECT DISTINCT + COUNT( * ) DIV + + 30 * 12 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9441
SELECT DISTINCT + COUNT ( * ) / + + 30 * 12 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9443
SELECT ALL + 52 + - CAST( NULL AS DECIMAL ) / - - col1 * col2 FROM tab2 WHERE col0 BETWEEN + - 19 AND + + 95
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9443
SELECT ALL + 52 + - CAST ( NULL AS REAL ) / - - col1 * col2 FROM tab2 WHERE col0 BETWEEN + - 19 AND + + 95
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE + 58 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9445
SELECT ALL 18 DIV - - col2 col1, col1 AS col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9445
SELECT ALL 18 / - - col2 col1, col1 AS col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 36 col1 FROM tab0 AS cor0
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT + + ( - COUNT( + - col1 ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9447
SELECT + + ( - COUNT ( + - col1 ) ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT ( + - 46 ) AS col2 FROM tab2 AS cor0 WHERE NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9449
SELECT ALL - 73 DIV + + 69 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9449
SELECT ALL - 73 / + + 69 AS col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - ( - - 79 ) * + col1 FROM tab0
----
-1659
-6399
-79

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 WHERE NOT - col0 + - col0 IS NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 59 ) * + - ( + col0 ) col2 FROM tab0
----
-5133
-5723
-885

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT + col0 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT + MAX( DISTINCT col2 ) AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-9454
SELECT + MAX ( DISTINCT col2 ) AS col2 FROM tab2
----
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9455
SELECT ALL CAST( NULL AS SIGNED ) AS col2, col2 DIV 47 FROM tab0
----
NULL
0
NULL
1
NULL
2

skipif mysql # not compatible
query II rowsort label-9455
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, col2 / 47 FROM tab0
----
NULL
0
NULL
1
NULL
2

onlyif mysql # aggregate syntax: 
query II rowsort label-9456
SELECT + 42, + COUNT( * ) AS col2 FROM tab0 AS cor0
----
42
3

skipif mysql # not compatible
query II rowsort label-9456
SELECT + 42, + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
42
3

query I rowsort
SELECT - 23 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + + 4 col0, + 86 FROM tab1
----
55
86
89
86
95
86

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 78 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NULL <> 84 OR NOT ( NULL >= NULL )
----

query I rowsort
SELECT 72 + - - col0 AS col0 FROM tab1
----
123
157
163

query I rowsort
SELECT DISTINCT + + 8 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
8

query I rowsort
SELECT ALL 29 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT - SUM( col2 ) * COUNT( * ) FROM tab2 AS cor0
----
-363

skipif mysql # not compatible
query I rowsort label-9464
SELECT - SUM ( col2 ) * COUNT ( * ) FROM tab2 AS cor0
----
-363

query I rowsort
SELECT DISTINCT - 92 FROM tab1 AS cor0 WHERE NOT ( 95 * + - 93 * - + 24 IS NULL ) OR col1 <= + col0
----
-92

query I rowsort
SELECT DISTINCT col0 + + + col2 + - - col1 AS col0 FROM tab0 AS cor0
----
118
143
197

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT DISTINCT + 60 * + COUNT( * ) FROM tab1 cor0
----
180

skipif mysql # not compatible
query I rowsort label-9467
SELECT DISTINCT + 60 * + COUNT ( * ) FROM tab1 cor0
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9468
SELECT ALL - 45 + + - CAST( + col1 AS SIGNED ) + + - col2 FROM tab0
----
-145
-173
-76

skipif mysql # not compatible
query I rowsort label-9468
SELECT ALL - 45 + + - CAST ( + col1 AS INTEGER ) + + - col2 FROM tab0
----
-145
-173
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT DISTINCT + ( - COUNT( * ) ) + 69 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-9469
SELECT DISTINCT + ( - COUNT ( * ) ) + 69 FROM tab2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9470
SELECT - col0 DIV 54 * + col0 - - - 80 FROM tab0
----
-167
-177
-80

skipif mysql # not compatible
query I rowsort label-9470
SELECT - col0 / 54 * + col0 - - - 80 FROM tab0
----
-167
-177
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-9471
SELECT DISTINCT col0 - + col0 - 39 DIV col2 * + 43 * - col2 FROM tab0
----
0
1290

skipif mysql # not compatible
query I rowsort label-9471
SELECT DISTINCT col0 - + col0 - 39 / col2 * + 43 * - col2 FROM tab0
----
0
1290

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT ALL SUM( 67 ) FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-9472
SELECT ALL SUM ( 67 ) FROM tab2
----
201

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9473
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT CAST( NULL AS SIGNED ) * + col0 IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-9473
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT CAST ( NULL AS INTEGER ) * + col0 IS NOT NULL )
----

query II rowsort
SELECT + col2 * - 83 * col0 * - 41 + 76 - 92 AS col2, + col1 AS col2 FROM tab1 AS cor0
----
16661072
14
17066029
5
21057748
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT + MAX( ALL + col0 ) FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9475
SELECT + MAX ( ALL + col0 ) FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT ALL col0 * + 27 * - col1 FROM tab1
----
-11475
-115479
-19278

query II rowsort
SELECT ALL + col2, - col2 * + col0 + col1 FROM tab1
----
59
-5010
68
-6141
96
-4882

onlyif mysql # aggregate syntax: 
query II rowsort label-9478
SELECT DISTINCT - COUNT( * ) col0, COUNT( * ) * - COUNT( * ) AS col1 FROM tab0 cor0
----
-3
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9478
SELECT DISTINCT - COUNT ( * ) col0, COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0 cor0
----
-3
-9

query I rowsort
SELECT ALL col2 * + - 15 FROM tab1 cor0
----
-1020
-1440
-885

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 67 AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9481
SELECT DISTINCT + col2 DIV + ( - 71 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT + col2 / + ( - 71 ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT ALL + 32 * 23 * - SUM( ( + col1 ) ) FROM tab2 AS cor0
----
-143520

skipif mysql # not compatible
query I rowsort label-9482
SELECT ALL + 32 * 23 * - SUM ( ( + col1 ) ) FROM tab2 AS cor0
----
-143520

query I rowsort
SELECT ALL - 33 FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN + 83 - - ( col1 ) AND 0
----
-33
-33
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9484
SELECT col2 * CAST( + - col1 AS SIGNED ) * - col2 FROM tab2
----
123200
225388
26979

skipif mysql # not compatible
query I rowsort label-9484
SELECT col2 * CAST ( + - col1 AS INTEGER ) * - col2 FROM tab2
----
123200
225388
26979

onlyif mysql # DIV for integer division: 
query I rowsort label-9485
SELECT col0 DIV 60 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9485
SELECT col0 / 60 FROM tab0
----
0
1
1

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT NULL <= col2 + - 67
----

query I rowsort
SELECT ALL + 26 AS col1 FROM tab1 WHERE NOT NULL BETWEEN + 7 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9488
SELECT ALL MIN( ALL - col1 ) AS col2, COUNT( DISTINCT - + col0 ) * + 20 AS col2 FROM tab2
----
-77
60

skipif mysql # not compatible
query II rowsort label-9488
SELECT ALL MIN ( ALL - col1 ) AS col2, COUNT ( DISTINCT - + col0 ) * + 20 AS col2 FROM tab2
----
-77
60

query I rowsort
SELECT - 47 + - ( - col1 ) AS col2 FROM tab0
----
-26
-46
34

query I rowsort
SELECT + - col2 FROM tab2 WHERE NOT ( + col2 IS NULL )
----
-23
-40
-58

query I rowsort
SELECT ALL - col0 * col2 + - col1 AS col0 FROM tab0 AS cor0
----
-786
-891
-9604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9492
SELECT DISTINCT + - CAST( - 4 AS SIGNED ) FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-9492
SELECT DISTINCT + - CAST ( - 4 AS INTEGER ) FROM tab1 AS cor0
----
4

query I rowsort
SELECT ALL + 47 AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query II rowsort
SELECT DISTINCT - col1 * + col1 - - col2 AS col1, ( col1 ) AS col2 FROM tab0
----
-431
21
-6514
81
98
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 51 - 33 col1 FROM tab2 AS cor0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT DISTINCT - MIN( - col2 ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9496
SELECT DISTINCT - MIN ( - col2 ) AS col0 FROM tab1 AS cor0
----
96

query I rowsort
SELECT - 98 + - 53 AS col0 FROM tab2 AS cor0
----
-151
-151
-151

query I rowsort
SELECT ALL + col2 * ( - + 85 ) FROM tab0 AS cor0
----
-3995
-8415
-850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9499
SELECT ALL + + CAST( NULL AS SIGNED ), - COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-9499
SELECT ALL + + CAST ( NULL AS INTEGER ), - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9500
SELECT ALL - 96 AS col2, COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
-96
0

skipif mysql # not compatible
query II rowsort label-9500
SELECT ALL - 96 AS col2, COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
-96
0

query I rowsort
SELECT DISTINCT col1 * - 66 + col0 - + 97 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9502
SELECT - 94 col0, MIN( - col0 ) * COUNT( * ) AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----
-94
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9502
SELECT - 94 col0, MIN ( - col0 ) * COUNT ( * ) AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----
-94
NULL

query I rowsort
SELECT DISTINCT 92 * col2 * + col2 FROM tab1
----
320252
425408
847872

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9505
SELECT ALL + col2 - CAST( NULL AS DECIMAL ) / + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL + col2 - CAST ( NULL AS REAL ) / + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT + SUM( 45 ) col1 FROM tab0
----
135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9506
SELECT + SUM ( 45 ) col1 FROM tab0
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9507
SELECT - col2 * - col0 AS col2, CAST( NULL AS SIGNED ) * ( + + col0 ) AS col1 FROM tab2 AS cor0
----
1058
NULL
2560
NULL
4350
NULL

skipif mysql # not compatible
query II rowsort label-9507
SELECT - col2 * - col0 AS col2, CAST ( NULL AS INTEGER ) * ( + + col0 ) AS col1 FROM tab2 AS cor0
----
1058
NULL
2560
NULL
4350
NULL

query I rowsort
SELECT + - 54 AS col2 FROM tab0 WHERE NOT ( - col0 IS NULL )
----
-54
-54
-54

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE 14 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col2 + - col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9511
SELECT 15 / - + ( + - CAST( NULL AS SIGNED ) ), col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-9511
SELECT 15 / - + ( + - CAST ( NULL AS INTEGER ) ), col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE + 32 * + 82 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT 77 + + - 90 AS col2 FROM tab2 cor0 WHERE NOT NULL > col1
----

query I rowsort
SELECT ALL - + 93 * col0 + - + col2 * + 38 FROM tab0 AS cor0
----
-12783
-3181
-8471

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( + col2 ) + 19 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9516
SELECT - CAST( + col0 AS SIGNED ) + - 64 * + - ( + - 31 ) * + 64 FROM tab0 AS cor0
----
-126991
-127063
-127073

skipif mysql # not compatible
query I rowsort label-9516
SELECT - CAST ( + col0 AS INTEGER ) + - 64 * + - ( + - 31 ) * + 64 FROM tab0 AS cor0
----
-126991
-127063
-127073

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9517
SELECT col2 + - col1 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) BETWEEN CAST( + + col2 AS SIGNED ) AND + 92
----

skipif mysql # not compatible
query I rowsort label-9517
SELECT col2 + - col1 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) BETWEEN CAST ( + + col2 AS INTEGER ) AND + 92
----

query I rowsort
SELECT ALL + 9 * - - col0 FROM tab0 AS cor0
----
135
783
873

query I rowsort
SELECT + col0 + - col1 + + ( col0 ) AS col1 FROM tab1 AS cor0
----
135
165
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9520
SELECT + 33 * + CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE NOT - 67 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9520
SELECT + 33 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE NOT - 67 IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9521
SELECT DISTINCT 75 * + - col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9521
SELECT DISTINCT 75 * + - col0 / + col0 AS col2 FROM tab1 AS cor0
----
-75

query I rowsort
SELECT DISTINCT 82 + + - 56 FROM tab0 AS cor0
----
26

query I rowsort
SELECT DISTINCT - col2 * + 54 AS col2 FROM tab1 cor0
----
-3186
-3672
-5184

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9524
SELECT + CAST( NULL AS DECIMAL ) * col2 AS col2, - 46 FROM tab2
----
NULL
-46
NULL
-46
NULL
-46

skipif mysql # not compatible
query II rowsort label-9524
SELECT + CAST ( NULL AS REAL ) * col2 AS col2, - 46 FROM tab2
----
NULL
-46
NULL
-46
NULL
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9525
SELECT ALL + col1 * col1 + + col2 + CAST( NULL AS SIGNED ) / + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL + col1 * col1 + + col2 + CAST ( NULL AS INTEGER ) / + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 34 AS col2 FROM tab0
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT DISTINCT COUNT( * ) * - MAX( + col1 ) * MIN( ALL - col1 ) FROM tab0
----
19683

skipif mysql # not compatible
query I rowsort label-9527
SELECT DISTINCT COUNT ( * ) * - MAX ( + col1 ) * MIN ( ALL - col1 ) FROM tab0
----
19683

query I rowsort
SELECT - 96 * col1 AS col2 FROM tab1
----
-1344
-4512
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT SUM( 15 ) * + + 87 FROM tab0
----
3915

skipif mysql # not compatible
query I rowsort label-9529
SELECT SUM ( 15 ) * + + 87 FROM tab0
----
3915

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9530
SELECT ALL - 1 * + 79 DIV + COUNT( * ) col1 FROM tab2
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9530
SELECT ALL - 1 * + 79 / + COUNT ( * ) col1 FROM tab2
----
-26

query I rowsort
SELECT + col2 * - + col0 AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT ALL + + col2 - + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( - - col0 * + col0 IS NULL )
----
21
54
82

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9534
SELECT ALL - CAST( col1 AS SIGNED ) AS col0, col0 DIV - col2 + - 41 FROM tab0 cor0
----
-1
-41
-21
-49
-81
-41

skipif mysql # not compatible
query II rowsort label-9534
SELECT ALL - CAST ( col1 AS INTEGER ) AS col0, col0 / - col2 + - 41 FROM tab0 cor0
----
-1
-41
-21
-49
-81
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT + - COUNT( * ) - COUNT( * ) FROM tab1 AS cor0 WHERE ( NOT + + col1 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9535
SELECT + - COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NOT + + col1 IS NOT NULL )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9536
SELECT DISTINCT ( - col1 ) DIV - + col1 + 70 col0, ( - + col2 ) AS col1 FROM tab0 cor0
----
71
-10
71
-47
71
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9536
SELECT DISTINCT ( - col1 ) / - + col1 + 70 col0, ( - + col2 ) AS col1 FROM tab0 cor0
----
71
-10
71
-47
71
-99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2, col1, - col1, ( col1 ) + - ( + 43 ) * + col1 + + + col2 + - col2 + - - col2 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT + MIN( + 60 ) * + 86 * + 66 FROM tab1 AS cor0
----
340560

skipif mysql # not compatible
query I rowsort label-9538
SELECT + MIN ( + 60 ) * + 86 * + 66 FROM tab1 AS cor0
----
340560

query I rowsort
SELECT ALL + ( - - col0 ) FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9540
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 * + + CAST( NULL AS SIGNED ) IS NOT NULL AND NOT col0 + + col1 + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9540
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 * + + CAST ( NULL AS INTEGER ) IS NOT NULL AND NOT col0 + + col1 + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9541
SELECT DISTINCT + 27 * + 61 + + + CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9541
SELECT DISTINCT + 27 * + 61 + + + CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9542
SELECT - MIN( ALL ( CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9542
SELECT - MIN ( ALL ( CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ( + 22 ) AS col1 FROM tab0
----
22
22
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9544
SELECT DISTINCT + CAST( - 59 AS SIGNED ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-9544
SELECT DISTINCT + CAST ( - 59 AS INTEGER ) FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT ALL MIN( ALL + col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-9545
SELECT ALL MIN ( ALL + col0 ) FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT ALL COUNT( 16 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL COUNT ( 16 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 59 + - - col2 + - col1 - - 36 + col0 - + col0 * + 99 <= + 11 * + col1 * + + 3 + - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT ALL + + 25 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL + + 25 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9550
SELECT - CAST( NULL AS SIGNED ) / col1 + 75 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9550
SELECT - CAST ( NULL AS INTEGER ) / col1 + 75 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * 69 AS col1 FROM tab2 WHERE NULL IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT - 73 * + COUNT( * ) + COUNT( * ) * 95 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9552
SELECT - 73 * + COUNT ( * ) + COUNT ( * ) * 95 FROM tab1
----
66

query I rowsort
SELECT + col2 * - col1 + ( - col1 ) FROM tab2
----
-1224
-3157
-3953

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT - ( MIN( DISTINCT col0 ) ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9554
SELECT - ( MIN ( DISTINCT col0 ) ) AS col1 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT ALL - 35 + COUNT( * ) AS col2 FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL - 35 + COUNT ( * ) AS col2 FROM tab1
----
-32

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < ( col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + col0 * col1 + col1 AND + col1
----

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT ( col1 ) <> ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT DISTINCT + MIN( col1 ) * + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9559
SELECT DISTINCT + MIN ( col1 ) * + COUNT ( * ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9560
SELECT + CAST( ( col2 ) AS SIGNED ) + - 30 FROM tab1
----
29
38
66

skipif mysql # not compatible
query I rowsort label-9560
SELECT + CAST ( ( col2 ) AS INTEGER ) + - 30 FROM tab1
----
29
38
66

query I rowsort
SELECT - 91 + - col0 FROM tab1
----
-142
-176
-182

query III rowsort
SELECT * FROM tab0 WHERE NOT + 48 / + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT DISTINCT - SUM( DISTINCT - col1 ) AS col0 FROM tab2 WHERE NULL IN ( col0 + 92 * - 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9563
SELECT DISTINCT - SUM ( DISTINCT - col1 ) AS col0 FROM tab2 WHERE NULL IN ( col0 + 92 * - 82 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9564
SELECT CAST( NULL AS SIGNED ) * - ( + CAST( 32 AS DECIMAL ) ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9564
SELECT CAST ( NULL AS INTEGER ) * - ( + CAST ( 32 AS REAL ) ) col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - col0 ) * col2 + + col2 FROM tab2
----
-1035
-2520
-4292

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT - COUNT( * ) * - 14 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-9566
SELECT - COUNT ( * ) * - 14 FROM tab1
----
42

query I rowsort
SELECT col1 * - ( col1 * 30 ) FROM tab2
----
-134670
-177870
-78030

query I rowsort
SELECT DISTINCT - col2 + - 90 FROM tab2
----
-113
-130
-148

query I rowsort
SELECT DISTINCT + 14 + - 75 AS col0 FROM tab2
----
-61

query I rowsort
SELECT DISTINCT + col1 * - col0 + col0 FROM tab1
----
-340
-4186
-663

query I rowsort
SELECT ALL 68 AS col2 FROM tab0 WHERE 1 = 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT DISTINCT COUNT( * ) + + 24 AS col2 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-9572
SELECT DISTINCT COUNT ( * ) + + 24 AS col2 FROM tab0
----
27

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 16 ) NOT BETWEEN + col1 * - col0 AND ( 28 )
----

query I rowsort
SELECT - 68 AS col2 FROM tab2 AS cor0 WHERE 12 + col1 IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9575
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 > - CAST( NULL AS SIGNED ) * + col2
----

skipif mysql # not compatible
query III rowsort label-9575
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 > - CAST ( NULL AS INTEGER ) * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT ALL - 40 + - COUNT( * ) FROM tab0 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-9576
SELECT ALL - 40 + - COUNT ( * ) FROM tab0 AS cor0
----
-43

query I rowsort
SELECT DISTINCT + 6 + 41 AS col1 FROM tab0 AS cor0
----
47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 5 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT ALL - COUNT( * ) - - 61 AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL - COUNT ( * ) - - 61 AS col1 FROM tab2
----
58

query I rowsort
SELECT DISTINCT col0 * - col2 - 32 FROM tab1
----
-4928
-5047
-6220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9581
SELECT + CAST( NULL AS SIGNED ) + MAX( + col2 + + col2 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9581
SELECT + CAST ( NULL AS INTEGER ) + MAX ( + col2 + + col2 ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + ( + col0 ) ) = - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 42 - - col2 AS col2 FROM tab1 AS cor0
----
17
26
54

query I rowsort
SELECT ALL - 13 - - col0 AS col0 FROM tab0 cor0
----
2
74
84

onlyif mysql # DIV for integer division: 
query I rowsort label-9585
SELECT - 35 DIV - 58 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9585
SELECT - 35 / - 58 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + 5 AS col2 FROM tab2 AS cor0
----
5
5
5

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT col2 * 50 + + 33 * col0 IS NULL
----
1
21
81

query I rowsort
SELECT + col1 * ( - ( col2 ) ) AS col2 FROM tab2 cor0
----
-1173
-3080
-3886

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= + col2 * + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 col1 FROM tab1 AS cor0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT ALL - ( + - MIN( DISTINCT col2 ) ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-9591
SELECT ALL - ( + - MIN ( DISTINCT col2 ) ) FROM tab2
----
23

query I rowsort
SELECT DISTINCT - 34 * col1 AS col2 FROM tab2
----
-1734
-2278
-2618

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * + 32 > NULL
----

query I rowsort
SELECT DISTINCT 12 * + 46 FROM tab2
----
552

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9595
SELECT ALL SUM( col2 ) DIV SUM( DISTINCT + col0 + 0 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9595
SELECT ALL SUM ( col2 ) / SUM ( DISTINCT + col0 + 0 ) AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9596
SELECT ALL - ( - 22 ) * + 92 + + COUNT( * ) AS col2 FROM tab0 WHERE CAST( + col2 AS DECIMAL ) IS NOT NULL
----
2027

skipif mysql # not compatible
query I rowsort label-9596
SELECT ALL - ( - 22 ) * + 92 + + COUNT ( * ) AS col2 FROM tab0 WHERE CAST ( + col2 AS REAL ) IS NOT NULL
----
2027

query I rowsort
SELECT + 43 * col2 + + 38 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL NOT IN ( - col1 * + 86 )
----
0

skipif mysql # not compatible
query I rowsort label-9598
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL NOT IN ( - col1 * + 86 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT + COUNT( DISTINCT - - col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9599
SELECT + COUNT ( DISTINCT - - col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT + + ( COUNT( ALL + col2 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9600
SELECT + + ( COUNT ( ALL + col2 ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col0 * + 64 - + col1 * - col2 AS col1 FROM tab2 cor0
----
-1016
-1771
-914

query I rowsort
SELECT - col1 + - col1 * col1 AS col0 FROM tab0 cor0 WHERE NOT col2 * ( 45 * col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL - - 83 AS col1 FROM tab0 AS cor0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT ALL COUNT( ALL col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL COUNT ( ALL col1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - 25 AS col0 FROM tab2 cor0 WHERE NULL >= ( 57 + col0 * col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 7 * col0 IN ( - 69 )
----

query I rowsort
SELECT col0 * - - col2 AS col0 FROM tab0 cor0
----
705
870
9603

query I rowsort
SELECT + 90 + col1 * + ( + col0 + - col2 * col0 ) AS col2 FROM tab2 WHERE NOT ( col1 / + ( + col0 ) NOT BETWEEN NULL AND col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT - + COUNT( * ) * COUNT( * ) + 78 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-3

skipif mysql # not compatible
query I rowsort label-9609
SELECT - + COUNT ( * ) * COUNT ( * ) + 78 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-3

query I rowsort
SELECT - ( 25 ) - - 13 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9611
SELECT DISTINCT + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9611
SELECT DISTINCT + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + ( col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9612
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + ( col0 ) IS NOT NULL
----
0

query I rowsort
SELECT - col0 + + + 45 FROM tab1 AS cor0
----
-40
-46
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9614
SELECT CAST( NULL AS SIGNED ) * - - ( - col0 ) + + ( col0 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9614
SELECT CAST ( NULL AS INTEGER ) * - - ( - col0 ) + + ( col0 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT + COUNT( * ) * - ( 79 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-237

skipif mysql # not compatible
query I rowsort label-9615
SELECT + COUNT ( * ) * - ( 79 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-237

query I rowsort
SELECT + col1 + + ( - 35 ) AS col0 FROM tab0 AS cor0
----
-14
-34
46

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 IN ( + col2 - - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 NOT IN ( col2 * - 76 + 30 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 ) <> ( col1 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 + + - ( - col0 ) + + col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE ( NULL ) IN ( col2 )
----

query I rowsort
SELECT col0 FROM tab2 WHERE NULL NOT BETWEEN ( ( + col1 ) + + col2 ) AND - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9623
SELECT DISTINCT + CAST( + CAST( SUM( ALL + col2 ) AS SIGNED ) AS SIGNED ) FROM tab1 WHERE NULL <> + col1 * - col1 + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-9623
SELECT DISTINCT + CAST ( + CAST ( SUM ( ALL + col2 ) AS INTEGER ) AS INTEGER ) FROM tab1 WHERE NULL <> + col1 * - col1 + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT ALL - 6 + 31 + - COUNT( * ) + + 74 + - COUNT( * ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-9624
SELECT ALL - 6 + 31 + - COUNT ( * ) + + 74 + - COUNT ( * ) FROM tab2
----
93

query I rowsort
SELECT ALL - 1 + + 38 - 32 * ( col0 ) FROM tab1
----
-1595
-2683
-2875

query II rowsort
SELECT DISTINCT - ( col2 ), + ( ( - col2 ) ) * col1 - col1 AS col2 FROM tab0
----
-10
-231
-47
-3888
-99
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT ALL 3 + COUNT( * ) + + 75 AS col1 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-9627
SELECT ALL 3 + COUNT ( * ) + + 75 AS col1 FROM tab1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT ALL COUNT( ALL - - col1 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9628
SELECT ALL COUNT ( ALL - - col1 ) col2 FROM tab0
----
3

query I rowsort
SELECT - 11 * - col2 AS col2 FROM tab1 WHERE - 7 NOT IN ( + - col0 * 94 + + col0 )
----
1056
649
748

query I rowsort
SELECT + 4 AS col1 FROM tab0 WHERE NULL IS NULL
----
4
4
4

query II rowsort
SELECT 91 * - col2 AS col2, - col2 FROM tab0
----
-4277
-47
-9009
-99
-910
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9632
SELECT DISTINCT MAX( ALL + ( CAST( NULL AS SIGNED ) ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9632
SELECT DISTINCT MAX ( ALL + ( CAST ( NULL AS INTEGER ) ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9633
SELECT col1 * + CAST( NULL AS SIGNED ) * col2 - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9633
SELECT col1 * + CAST ( NULL AS INTEGER ) * col2 - col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9634
SELECT DISTINCT - MAX( DISTINCT - col2 ), 44 AS col2 FROM tab1 AS cor0
----
59
44

skipif mysql # not compatible
query II rowsort label-9634
SELECT DISTINCT - MAX ( DISTINCT - col2 ), 44 AS col2 FROM tab1 AS cor0
----
59
44

query I rowsort
SELECT col2 + + + 90 FROM tab2 AS cor0
----
113
130
148

query I rowsort
SELECT ALL ( + + 7 ) * - 90 FROM tab2 AS cor0 WHERE NOT col0 > NULL
----

query I rowsort
SELECT ALL 55 + + - 81 * + col0 * 54 AS col2 FROM tab1 AS cor0
----
-223019
-371735
-397979

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9638
SELECT ALL ( - + 47 ) DIV + + COUNT( * ) + - + MIN( DISTINCT + col1 ) * 3 AS col0 FROM tab2
----
-168

skipif mysql # not compatible
query I rowsort label-9638
SELECT ALL ( - + 47 ) / + + COUNT ( * ) + - + MIN ( DISTINCT + col1 ) * 3 AS col0 FROM tab2
----
-168

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + ( - 81 ) ) IN ( col0 * + col0 )
----

query I rowsort
SELECT + ( + + col2 ) * - 85 - + col1 AS col2 FROM tab1 AS cor0
----
-5020
-5827
-8174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col0 * - - 62 * - + 54 ) AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 82 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 66 * - 19 AS col2 FROM tab2 AS cor0
----
1254

query I rowsort
SELECT - 7 * - + col2 FROM tab1 AS cor0
----
413
476
672

query I rowsort
SELECT DISTINCT + col2 + - + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----

query II rowsort
SELECT 11 AS col1, 1 FROM tab2 cor0
----
11
1
11
1
11
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 73 * - col1 col1 FROM tab1
----
1022
3431
365

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9648
SELECT ALL - 68 DIV + - MIN( + 17 ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL - 68 / + - MIN ( + 17 ) FROM tab0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT DISTINCT MIN( ALL col1 ) AS col1 FROM tab1 WHERE NOT NULL NOT IN ( + col2 - - + col0 + - col0 + - + 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9649
SELECT DISTINCT MIN ( ALL col1 ) AS col1 FROM tab1 WHERE NOT NULL NOT IN ( + col2 - - + col0 + - col0 + - + 23 )
----
NULL

query I rowsort
SELECT DISTINCT + col1 * ( - + col1 ) AS col0 FROM tab1
----
-196
-2209
-25

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 2 < - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9652
SELECT ALL - col2 DIV col1 AS col1, CAST( NULL AS SIGNED ) col2 FROM tab2
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9652
SELECT ALL - col2 / col1 AS col1, CAST ( NULL AS INTEGER ) col2 FROM tab2
----
0
NULL
0
NULL
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT + MAX( ALL - - 58 ) AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-9653
SELECT + MAX ( ALL - - 58 ) AS col2 FROM tab2
----
58

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT col0 * col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT + - COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9655
SELECT + - COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9656
SELECT ALL 82 col2, SUM( ALL - col1 ) AS col1 FROM tab1
----
82
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9656
SELECT ALL 82 col2, SUM ( ALL - col1 ) AS col1 FROM tab1
----
82
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9657
SELECT col1, - CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-9657
SELECT col1, - CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

query II rowsort
SELECT - col0, 96 AS col2 FROM tab1
----
-51
96
-85
96
-91
96

query II rowsort
SELECT ALL + col0, + 16 * + - col1 + + col0 FROM tab2 cor0
----
46
-770
64
-1168
75
-997

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 + + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9661
SELECT 67, - 95 DIV + col0 + - col2 AS col0 FROM tab0 AS cor0
----
67
-11
67
-53
67
-99

skipif mysql # not compatible
query II rowsort label-9661
SELECT 67, - 95 / + col0 + - col2 AS col0 FROM tab0 AS cor0
----
67
-11
67
-53
67
-99

query I rowsort
SELECT DISTINCT - 23 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 + + col1 col2 FROM tab2 AS cor0
----
109
83
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT DISTINCT + + MAX( col1 ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT + + MAX ( col1 ) AS col1 FROM tab2 AS cor0
----
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 89 BETWEEN NULL AND ( col0 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 36 NOT BETWEEN + - col2 AND - 27
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9667
SELECT col2 * - - col0 + + ( CAST( NULL AS DECIMAL ) ) - + - 93 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9667
SELECT col2 * - - col0 + + ( CAST ( NULL AS REAL ) ) - + - 93 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 19 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9669
SELECT col1 + + col2 * - CAST( - + 79 AS SIGNED ) FROM tab2
----
1868
3237
4649

skipif mysql # not compatible
query I rowsort label-9669
SELECT col1 + + col2 * - CAST ( - + 79 AS INTEGER ) FROM tab2
----
1868
3237
4649

query I rowsort
SELECT 84 * + col1 + 27 + - - col0 AS col2 FROM tab2
----
4357
5730
6559

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9671
SELECT + - 33 DIV + 99 * + SUM( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9671
SELECT + - 33 / + 99 * + SUM ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT 5 - - COUNT( * ) FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-9672
SELECT 5 - - COUNT ( * ) FROM tab0 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT ALL - + MAX( DISTINCT + - ( + + col0 ) ) + - 4 AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL - + MAX ( DISTINCT + - ( + + col0 ) ) + - 4 AS col2 FROM tab1 AS cor0
----
47

query I rowsort
SELECT DISTINCT + 53 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT 76 * - MIN( DISTINCT - - col2 ) FROM tab2 AS cor0
----
-1748

skipif mysql # not compatible
query I rowsort label-9675
SELECT 76 * - MIN ( DISTINCT - - col2 ) FROM tab2 AS cor0
----
-1748

query I rowsort
SELECT ALL 90 * + 37 AS col0 FROM tab2 AS cor0
----
3330
3330
3330

query I rowsort
SELECT DISTINCT ( - 78 ) FROM tab1 AS cor0
----
-78

query I rowsort
SELECT DISTINCT - col2 * + 44 AS col0 FROM tab0 cor0
----
-2068
-4356
-440

onlyif mysql # DIV for integer division: 
query I rowsort label-9679
SELECT ALL + col0 DIV 41 * - col2 DIV + 45 AS col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL + col0 / 41 * - col2 / + 45 AS col0 FROM tab2
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9680
SELECT col2 DIV + + col1 col1 FROM tab1
----
1
11
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9680
SELECT col2 / + + col1 col1 FROM tab1
----
1
11
6

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 20 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 col1 FROM tab2
----
-40
-40
-40

query I rowsort
SELECT DISTINCT 19 * - 11 FROM tab1
----
-209

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 57 col0, col2 AS col1 FROM tab0
----
-57
10
-57
47
-57
99

query I rowsort
SELECT - col1 * + 21 AS col0 FROM tab1
----
-105
-294
-987

onlyif mysql # DIV for integer division: 
query I rowsort label-9686
SELECT + 40 DIV - col0 + + ( + col1 ) FROM tab0 AS cor0
----
1
21
79

skipif mysql # not compatible
query I rowsort label-9686
SELECT + 40 / - col0 + + ( + col1 ) FROM tab0 AS cor0
----
1
21
79

query I rowsort
SELECT ALL ( - 45 ) / - ( - col2 ) AS col1 FROM tab0 AS cor0 WHERE + col2 * col0 BETWEEN NULL AND ( + col2 * + + col0 + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 + col1 >= - + 51
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 10 + - 54 AS col0 FROM tab0
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT + MIN( DISTINCT 51 ) * - - MAX( DISTINCT - - 25 ) + 56 col2 FROM tab1 WHERE + col1 IS NOT NULL
----
1331

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9691
SELECT + MIN ( DISTINCT 51 ) * - - MAX ( DISTINCT - - 25 ) + 56 col2 FROM tab1 WHERE + col1 IS NOT NULL
----
1331

query I rowsort
SELECT - 96 + + + col1 FROM tab2
----
-19
-29
-45

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND 78
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9694
SELECT + 85 + + + col1 DIV - col0 - - ( col0 ) AS col1 FROM tab0 AS cor0
----
172
182
95

skipif mysql # not compatible
query I rowsort label-9694
SELECT + 85 + + + col1 / - col0 - - ( col0 ) AS col1 FROM tab0 AS cor0
----
172
182
95

query II rowsort
SELECT DISTINCT + col2 AS col2, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT COUNT( * ) + + - 99 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9696
SELECT COUNT ( * ) + + - 99 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT ( + 78 ) FROM tab2 AS cor0
----
78
78
78

query I rowsort
SELECT ALL + + 91 AS col0 FROM tab2 cor0
----
91
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9699
SELECT DISTINCT col0 * 67 * + CAST( NULL AS SIGNED ) - + 64 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9699
SELECT DISTINCT col0 * 67 * + CAST ( NULL AS INTEGER ) - + 64 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + col0 * - + col1 * col2 * - - 36 * + 51 FROM tab0 AS cor0 WHERE + ( - + 35 ) > 35
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col1 ) <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9702
SELECT 52 DIV - ( - + 13 ) AS col2, COUNT( * ) AS col2 FROM tab0
----
4
3

skipif mysql # not compatible
query II rowsort label-9702
SELECT 52 / - ( - + 13 ) AS col2, COUNT ( * ) AS col2 FROM tab0
----
4
3

query I rowsort
SELECT ALL + - 88 AS col0 FROM tab1 WHERE + + 28 IS NOT NULL
----
-88
-88
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-9704
SELECT - 21 DIV - - col0 - - col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9704
SELECT - 21 / - - col0 - - col1 FROM tab1
----
14
47
5

query I rowsort
SELECT 91 - + col2 * - col1 + + col1 AS col1 FROM tab2
----
1315
3248
4044

query I rowsort
SELECT + col0 + - 72 AS col0 FROM tab0 WHERE NULL <> + - col0 / 16 * + 3 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9707
SELECT + + col1 + - + col2, ( - col2 ) + - CAST( NULL AS SIGNED ) * - - 53 * 62 AS col0 FROM tab1 AS cor0
----
-21
NULL
-54
NULL
-82
NULL

skipif mysql # not compatible
query II rowsort label-9707
SELECT + + col1 + - + col2, ( - col2 ) + - CAST ( NULL AS INTEGER ) * - - 53 * 62 AS col0 FROM tab1 AS cor0
----
-21
NULL
-54
NULL
-82
NULL

query I rowsort
SELECT - ( - + col0 ) AS col0 FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT + - 40 * 29 + + 80 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1080

query I rowsort
SELECT - col2 * 50 AS col1 FROM tab0 cor0 WHERE NOT - 43 <> ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 75 col1, + 23 AS col0 FROM tab0 AS cor0
----
-75
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 col0 FROM tab0 AS cor0
----
17
17
17

query I rowsort
SELECT - 53 * col1 + - col1 FROM tab0 AS cor0
----
-1134
-4374
-54

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 75 * 19 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT DISTINCT MAX( col2 ) AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-9715
SELECT DISTINCT MAX ( col2 ) AS col2 FROM tab2
----
58

query I rowsort
SELECT col2 * - col1 * 39 * + col2 FROM tab0
----
-382239
-6978231
-81900

onlyif mysql # DIV for integer division: 
query II rowsort label-9717
SELECT + 48 DIV 41 col1, 92 AS col1 FROM tab0
----
1
92
1
92
1
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9717
SELECT + 48 / 41 col1, 92 AS col1 FROM tab0
----
1
92
1
92
1
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT MAX( DISTINCT + - col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-9718
SELECT MAX ( DISTINCT + - col0 ) FROM tab0
----
-15

query III rowsort
SELECT * FROM tab0 WHERE NOT - 30 < - + ( + col2 ) + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 41 + + col0 AS col0 FROM tab1
----
10
44
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 11 + + 95 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
84

query I rowsort
SELECT - 2 - - ( - 21 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT - ( + col0 ) FROM tab1 AS cor0 WHERE + col0 NOT IN ( + col1 - col0 + + + col2, col1 )
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + col0 * + col0 * + col2 FROM tab0 AS cor0
----
10575
75690
931491

query I rowsort
SELECT ALL 64 * - col0 * - col1 FROM tab2 AS cor0
----
150144
315392
321600

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 * 14 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 + + - 70 col2 FROM tab2 AS cor0
----
-109
-109
-109

query I rowsort
SELECT - + col0 + + - 62 AS col2 FROM tab0 cor0
----
-149
-159
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * - 49 IN ( 15 )
----

query I rowsort
SELECT + - col0 + - ( + 49 ) FROM tab1 AS cor0
----
-100
-134
-140

query I rowsort
SELECT ALL + - 33 + - + ( 60 ) FROM tab0 AS cor0
----
-93
-93
-93

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 AS cor0 WHERE col0 * 48 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT - SUM( DISTINCT 36 ) FROM tab2 cor0 WHERE + 79 IS NOT NULL
----
-36

skipif mysql # not compatible
query I rowsort label-9734
SELECT - SUM ( DISTINCT 36 ) FROM tab2 cor0 WHERE + 79 IS NOT NULL
----
-36

query I rowsort
SELECT 30 * - col2 - - col0 + + 15 AS col0 FROM tab2 AS cor0
----
-1121
-1650
-629

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT ALL + COUNT( * ) FROM tab2 WHERE col2 + 47 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9736
SELECT ALL + COUNT ( * ) FROM tab2 WHERE col2 + 47 IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 < col1 + - col2
----
15
81
47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 56 / col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE - 8 - - col0 * + + col0 >= NULL
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE NULL >= 73
----

query III rowsort
SELECT * FROM tab1 WHERE - + 89 NOT IN ( ( + - 57 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9742
SELECT DISTINCT col0 - - col2 - + - col0 + col0 DIV + col2 FROM tab2
----
117
169
209

skipif mysql # not compatible
query I rowsort label-9742
SELECT DISTINCT col0 - - col2 - + - col0 + col0 / + col2 FROM tab2
----
117
169
209

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9743
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - - + COUNT( * ) * ( - - AVG ( CAST( NULL AS DECIMAL ) ) ) FROM tab1 AS cor0 WHERE NULL NOT IN ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9743
SELECT DISTINCT - CAST ( NULL AS REAL ) - - + COUNT ( * ) * ( - - AVG ( CAST ( NULL AS REAL ) ) ) FROM tab1 AS cor0 WHERE NULL NOT IN ( - col1 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9744
SELECT - 88 DIV col2 + + + col2 AS col0 FROM tab1 AS cor0
----
58
67
96

skipif mysql # not compatible
query I rowsort label-9744
SELECT - 88 / col2 + + + col2 AS col0 FROM tab1 AS cor0
----
58
67
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9745
SELECT - 90 * CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
-2070
-3600
-5220

skipif mysql # not compatible
query I rowsort label-9745
SELECT - 90 * CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
-2070
-3600
-5220

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 51 AS col2, - col2 * - - col1 col0 FROM tab2 AS cor0 WHERE NOT - 77 NOT IN ( + 70 * - col1 + + - 78 + col0, col2 * col0, + - ( - 40 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 3 col2 FROM tab1 AS cor0
----
3
3
3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = - ( + col2 ) + - ( + 30 ) + - + 78 + - - col1 / + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT - + COUNT( * ) col2 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-9749
SELECT - + COUNT ( * ) col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( col0 ), - 19 col0 FROM tab2 AS cor0
----
46
-19
64
-19
75
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9751
SELECT - CAST( ( + - 36 ) AS SIGNED ) col0 FROM tab1 AS cor0
----
36
36
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9751
SELECT - CAST ( ( + - 36 ) AS INTEGER ) col0 FROM tab1 AS cor0
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT + COUNT( DISTINCT - col0 ) FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9752
SELECT + COUNT ( DISTINCT - col0 ) FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 <> NULL
----

query I rowsort
SELECT col2 * + col0 * - col2 FROM tab1 AS cor0
----
-295885
-420784
-470016

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 86 * - + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE - col0 + col1 >= + 51
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 31 col1 FROM tab0 AS cor0
----
-31

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 75 / + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9759
SELECT DISTINCT - col0 + - col2 DIV - col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9759
SELECT DISTINCT - col0 + - col2 / - col1 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT DISTINCT - COUNT( * ) * + ( SUM( + - col2 ) ) FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-9760
SELECT DISTINCT - COUNT ( * ) * + ( SUM ( + - col2 ) ) FROM tab1
----
669

onlyif mysql # aggregate syntax: 
query II rowsort label-9761
SELECT ALL 26 + - + ( - + SUM( DISTINCT col1 ) ), MIN( + col2 ) + - 27 + + 22 AS col0 FROM tab1
----
92
54

skipif mysql # not compatible
query II rowsort label-9761
SELECT ALL 26 + - + ( - + SUM ( DISTINCT col1 ) ), MIN ( + col2 ) + - 27 + + 22 AS col0 FROM tab1
----
92
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT ( + col1 = 95 )
----
-3

skipif mysql # not compatible
query I rowsort label-9762
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT ( + col1 = 95 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT MIN( DISTINCT + - col2 ) AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-9763
SELECT MIN ( DISTINCT + - col2 ) AS col2 FROM tab0
----
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 74 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col2 BETWEEN - col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 * 79 > + 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9767
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT DISTINCT - + COUNT( - - col1 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9768
SELECT DISTINCT - + COUNT ( - - col1 ) AS col0 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * + + 76 <> + col2 * - col1 * + col0 + + + col0
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 81 BETWEEN NULL AND + + 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT DISTINCT ( + + 45 ) + + COUNT( * ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-9771
SELECT DISTINCT ( + + 45 ) + + COUNT ( * ) FROM tab0
----
48

query II rowsort
SELECT ( - - 96 ) - + col0, + col0 AS col2 FROM tab0
----
-1
97
81
15
9
87

query I rowsort
SELECT ALL 17 + - 80 AS col0 FROM tab0
----
-63
-63
-63

query I rowsort
SELECT DISTINCT - col1 + - - col2 FROM tab2
----
-28
-37
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9775
SELECT ALL + COUNT( * ) DIV 80 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9775
SELECT ALL + COUNT ( * ) / 80 AS col0 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> + 20 + - 84 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT DISTINCT 2 * + 25 * ( - COUNT( * ) ) FROM tab2
----
-150

skipif mysql # not compatible
query I rowsort label-9777
SELECT DISTINCT 2 * + 25 * ( - COUNT ( * ) ) FROM tab2
----
-150

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9778
SELECT DISTINCT 71 DIV + MIN( - col0 ) AS col1, 42 FROM tab1
----
0
42

skipif mysql # not compatible
query II rowsort label-9778
SELECT DISTINCT 71 / + MIN ( - col0 ) AS col1, 42 FROM tab1
----
0
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9779
SELECT ALL COUNT( * ) / + CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9779
SELECT ALL COUNT ( * ) / + CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - col1 / 44 - - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - ( + - 54 ) FROM tab1 AS cor0
----
-54
-54
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, - col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT - SUM( + 58 ) FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-9783
SELECT - SUM ( + 58 ) FROM tab2 AS cor0
----
-174

query I rowsort
SELECT 42 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query II rowsort
SELECT + col0, + col2 * + - 83 AS col1 FROM tab0 AS cor0
----
15
-3901
87
-830
97
-8217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9786
SELECT + CAST( NULL AS SIGNED ) col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9786
SELECT + CAST ( NULL AS INTEGER ) col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 < + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * + col1 * + 63 AS col1 FROM tab2 AS cor0
----
163863
282807
373527

query I rowsort
SELECT ALL - col1 * + - col2 + - + 81 FROM tab0 AS cor0
----
129
18
3726

query II rowsort
SELECT - + 85 AS col0, + ( - + col2 ) FROM tab2 AS cor0
----
-85
-23
-85
-40
-85
-58

query II rowsort
SELECT DISTINCT + 74 AS col1, col2 AS col2 FROM tab1 AS cor0
----
74
59
74
68
74
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT COUNT( * ) + - 97 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-9792
SELECT COUNT ( * ) + - 97 FROM tab1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT 5 + - + COUNT( * ) AS col0 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-9793
SELECT 5 + - + COUNT ( * ) AS col0 FROM tab0
----
2

query I rowsort
SELECT - col0 + + 48 FROM tab2
----
-16
-27
2

query I rowsort
SELECT ALL - - 58 AS col2 FROM tab0 WHERE NOT + - col1 * col1 + - - col2 + - col2 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9796
SELECT ALL - SUM( + 47 ) AS col2, 69 FROM tab2
----
-141
69

skipif mysql # not compatible
query II rowsort label-9796
SELECT ALL - SUM ( + 47 ) AS col2, 69 FROM tab2
----
-141
69

query I rowsort
SELECT DISTINCT ( - col2 ) * + col0 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT 53 + + 97 - - + 82 AS col2 FROM tab1
----
232
232
232

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 col1 FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT DISTINCT - 29 + 83 AS col2 FROM tab2 cor0
----
54

query II rowsort
SELECT col1, 1 AS col1 FROM tab0
----
1
1
21
1
81
1

query I rowsort
SELECT + col2 - + + col2 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 NOT IN ( - col0, ( + col1 ) + + + col2 + 27 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9804
SELECT + CAST( NULL AS DECIMAL ) + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9804
SELECT + CAST ( NULL AS REAL ) + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9805
SELECT DISTINCT + - col1, col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-9805
SELECT DISTINCT + - col1, col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT ALL + COUNT( * ) * - - 23 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL + COUNT ( * ) * - - 23 FROM tab1 AS cor0
----
69

query I rowsort
SELECT DISTINCT 4 - col1 + + 57 * + 31 * ( + - 72 ) - 94 AS col1 FROM tab1 AS cor0
----
-127319
-127328
-127361

query I rowsort
SELECT - 68 - - + 21 AS col1 FROM tab1 WHERE NOT + col0 + + col0 * + col2 BETWEEN - - col2 AND + col0 + + col0
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT DISTINCT - COUNT( * ) * + MAX( ALL 61 ) AS col2 FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-9809
SELECT DISTINCT - COUNT ( * ) * + MAX ( ALL 61 ) AS col2 FROM tab1
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9810
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2, tab2 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9811
SELECT DISTINCT col2 DIV 28 AS col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-9811
SELECT DISTINCT col2 / 28 AS col2 FROM tab2
----
0
1
2

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( 95 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9813
SELECT + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9813
SELECT + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT ALL + - ( - + COUNT( ALL - + 11 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9814
SELECT ALL + - ( - + COUNT ( ALL - + 11 ) ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 90 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT DISTINCT + COUNT( * ) * 58 - - - COUNT( * ) AS col0 FROM tab0 WHERE NOT - col2 + - col0 <> col1
----
0

skipif mysql # not compatible
query I rowsort label-9816
SELECT DISTINCT + COUNT ( * ) * 58 - - - COUNT ( * ) AS col0 FROM tab0 WHERE NOT - col2 + - col0 <> col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT DISTINCT + MIN( ALL col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT + MIN ( ALL col0 ) FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9818
SELECT DISTINCT + 76 + + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9818
SELECT DISTINCT + 76 + + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT ALL MAX( ALL - 71 ) AS col1 FROM tab0 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-9819
SELECT ALL MAX ( ALL - 71 ) AS col1 FROM tab0 AS cor0
----
-71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 AND - col2
----

query II rowsort
SELECT col0 AS col0, - col1 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

query I rowsort
SELECT DISTINCT - + col0 + col0 AS col2 FROM tab1 cor0
----
0

query II rowsort
SELECT ALL + 28 AS col1, + col1 AS col2 FROM tab0
----
28
1
28
21
28
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col1, - 13 col2 FROM tab1
----
-51
-13
-85
-13
-91
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 91, + 10 col0 FROM tab0
----
-91
10
-91
10
-91
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT + COUNT( * ) * - 72 FROM tab2
----
-216

skipif mysql # not compatible
query I rowsort label-9826
SELECT + COUNT ( * ) * - 72 FROM tab2
----
-216

onlyif mysql # aggregate syntax: 
query II rowsort label-9827
SELECT + + COUNT( * ) + AVG ( ALL + 7 ), COUNT( * ) AS col1 FROM tab2 WHERE col2 IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9827
SELECT + + COUNT ( * ) + AVG ( ALL + 7 ), COUNT ( * ) AS col1 FROM tab2 WHERE col2 IS NULL
----
NULL
0

query II rowsort
SELECT DISTINCT 56 AS col2, + col0 AS col0 FROM tab1 AS cor0
----
56
51
56
85
56
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT ALL - COUNT( 58 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9829
SELECT ALL - COUNT ( 58 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL col0 * - ( - - 81 ) * - col2 FROM tab0 AS cor0
----
57105
70470
777843

query I rowsort
SELECT 55 AS col0 FROM tab0 WHERE NULL IS NULL
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT + - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9832
SELECT + - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT ALL + col0 - ( + col0 ) FROM tab1 WHERE NOT ( NULL <> NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 - - + 67 col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to fffa05abe62cb539edc957636b354583

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT - COUNT( - - col1 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9835
SELECT - COUNT ( - - col1 ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT + - MIN( - - col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9836
SELECT + - MIN ( - - col1 ) AS col0 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT ALL + + col2 - + col0 FROM tab1 AS cor0
----
-23
-26
45

query II rowsort
SELECT DISTINCT col0 - col1 AS col2, + col1 AS col2 FROM tab0 cor0
----
-66
81
66
21
96
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT + MIN( ALL - + col2 ) FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9839
SELECT + MIN ( ALL - + col2 ) FROM tab0 cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9840
SELECT DISTINCT + col2 * - col1 + - col1 + - + 17 * + col1 / - - col1 * - CAST( NULL AS SIGNED ) + - col2 FROM tab1 WHERE - col0 IN ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-9840
SELECT DISTINCT + col2 * - col1 + - col1 + - + 17 * + col1 / - - col1 * - CAST ( NULL AS INTEGER ) + - col2 FROM tab1 WHERE - col0 IN ( - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9841
SELECT + col1 DIV col1 * - 23 * - col2 AS col1 FROM tab0
----
1081
2277
230

skipif mysql # not compatible
query I rowsort label-9841
SELECT + col1 / col1 * - 23 * - col2 AS col1 FROM tab0
----
1081
2277
230

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 * - col2 <= + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT ALL SUM( col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL SUM ( col1 ) AS col0 FROM tab1
----
66

onlyif mysql # DIV for integer division: 
query II rowsort label-9844
SELECT + 10, col2 DIV - col1 AS col1 FROM tab0
----
10
-99
10
0
10
0

skipif mysql # not compatible
query II rowsort label-9844
SELECT + 10, col2 / - col1 AS col1 FROM tab0
----
10
-99
10
0
10
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9845
SELECT ALL - - col1 DIV + col2 + + - col1 * + - 8 AS col1 FROM tab2 AS cor0
----
410
537
617

skipif mysql # not compatible
query I rowsort label-9845
SELECT ALL - - col1 / + col2 + + - col1 * + - 8 AS col1 FROM tab2 AS cor0
----
410
537
617

onlyif mysql # DIV for integer division: 
query I rowsort label-9846
SELECT DISTINCT - + 67 + + col0 DIV col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9846
SELECT DISTINCT - + 67 + + col0 / col0 FROM tab1 AS cor0
----
-66

query II rowsort
SELECT + ( + + col2 ) AS col2, 75 * + + 72 FROM tab2
----
23
5400
40
5400
58
5400

query I rowsort
SELECT - 42 * + col1 FROM tab1
----
-1974
-210
-588

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 col1 FROM tab0
----
-31
-31
-31

query I rowsort
SELECT DISTINCT col2 * - + col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col1 * - 20 + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 46 + + 50 col1 FROM tab0 AS cor0
----
4052
4512
740

query I rowsort
SELECT ALL + - 19 + + col0 + 44 - ( + 11 ) AS col0 FROM tab0 AS cor0
----
101
111
29

query I rowsort
SELECT col1 + - 8 AS col0 FROM tab1 AS cor0
----
-3
39
6

query I rowsort
SELECT + - 95 + - - ( + 68 ) AS col2 FROM tab2 AS cor0
----
-27
-27
-27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9856
SELECT - + 56 * - CAST( NULL AS DECIMAL ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9856
SELECT - + 56 * - CAST ( NULL AS REAL ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col0 * col0 + col2 AS col0 FROM tab2
----
2139
4136
5683

query II rowsort
SELECT ALL + 97 AS col2, col2 AS col1 FROM tab0
----
97
10
97
47
97
99

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 + ( + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 5 * + 74 + + - col0 + 90 AS col2 FROM tab1 AS cor0
----
-331
-365
-371

query I rowsort
SELECT DISTINCT - 4 + + col2 AS col2 FROM tab2 AS cor0
----
19
36
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9862
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + MAX( DISTINCT + col2 ) + - 56 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9862
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + MAX ( DISTINCT + col2 ) + - 56 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT - 94, col0 AS col1 FROM tab2 AS cor0
----
-94
46
-94
64
-94
75

query I rowsort
SELECT DISTINCT col0 + - 10 + + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-4855
-4940
-6107

query I rowsort
SELECT + 9 AS col0 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query II rowsort
SELECT - col2 AS col0, col2 * - - 48 FROM tab2 AS cor0
----
-23
1104
-40
1920
-58
2784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9867
SELECT DISTINCT + CAST( - + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9867
SELECT DISTINCT + CAST ( - + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT + MAX( - + 74 ) col1 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9868
SELECT + MAX ( - + 74 ) col1 FROM tab0 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-9869
SELECT ALL COUNT( * ), + 68 AS col2 FROM tab1 AS cor0
----
3
68

skipif mysql # not compatible
query II rowsort label-9869
SELECT ALL COUNT ( * ), + 68 AS col2 FROM tab1 AS cor0
----
3
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 83 * + col0 + + ( + + col1 ) NOT IN ( 49 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( NOT col2 * - col0 + col0 IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 * + 41 + col2 FROM tab0 AS cor0
----
3577
4076
662

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT ALL + 21 * - COUNT( * ) + 19 * - + 45 FROM tab2 AS cor0
----
-918

skipif mysql # not compatible
query I rowsort label-9873
SELECT ALL + 21 * - COUNT ( * ) + 19 * - + 45 FROM tab2 AS cor0
----
-918

query I rowsort
SELECT - + 28 AS col1 FROM tab1 WHERE NOT - - col0 IS NULL
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT ALL - MIN( 11 ) FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-9875
SELECT ALL - MIN ( 11 ) FROM tab0
----
-11

query III rowsort
SELECT ALL * FROM tab0 WHERE + 21 <> + col1
----
15
81
47
97
1
99

query I rowsort
SELECT DISTINCT + 98 * + 79 FROM tab0
----
7742

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 col1 FROM tab1 WHERE NOT + 62 NOT IN ( + + 16 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9879
SELECT DISTINCT - ( ( + col2 ) ) DIV + + col2 + - + 30 AS col2 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-9879
SELECT DISTINCT - ( ( + col2 ) ) / + + col2 + - + 30 AS col2 FROM tab1 AS cor0
----
-31

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 cor0 WHERE + col0 / + 45 + + + 6 IS NOT NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND + 46
----

query I rowsort
SELECT ALL - 48 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT col0 + + 6 AS col1 FROM tab2
----
52
70
81

query I rowsort
SELECT ALL - 75 * col1 AS col2 FROM tab0 AS cor0
----
-1575
-6075
-75

query I rowsort
SELECT ( + ( - col1 ) ) + ( - col2 ) AS col2 FROM tab0 cor0
----
-100
-128
-31

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 + - col2 + - 65 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 col2, - col0 AS col2 FROM tab1 AS cor0
----
-51
-51
-85
-85
-91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT - ( + - ( + - COUNT( * ) ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9888
SELECT - ( + - ( + - COUNT ( * ) ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col0 * col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col2 * + 22 col0 FROM tab2 cor0 WHERE NOT NULL = NULL
----

query II rowsort
SELECT ALL + 58 + - 57 * - + col1 AS col1, 2 FROM tab0 AS cor0
----
115
2
1255
2
4675
2

query I rowsort
SELECT DISTINCT 79 + - col1 AS col0 FROM tab2
----
12
2
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT COUNT( * ) FROM tab0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9893
SELECT COUNT ( * ) FROM tab0 WHERE NULL > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT + ( + - MAX( ALL col2 ) ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-9894
SELECT + ( + - MAX ( ALL col2 ) ) FROM tab0
----
-99

query I rowsort
SELECT ALL col0 * - 15 + + col0 * + col0 AS col1 FROM tab1
----
1836
5950
6916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9896
SELECT ALL CAST( NULL AS SIGNED ) / + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9896
SELECT ALL CAST ( NULL AS INTEGER ) / + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT + 94 + 55 + - - COUNT( * ) FROM tab2 WHERE + col0 <> 78
----
152

skipif mysql # not compatible
query I rowsort label-9897
SELECT + 94 + 55 + - - COUNT ( * ) FROM tab2 WHERE + col0 <> 78
----
152

query II rowsort
SELECT ALL col2 - + col1 AS col2, col1 AS col1 FROM tab2
----
-28
51
-37
77
-9
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT ALL 82 - - MAX( DISTINCT + col2 ) FROM tab1 AS cor0
----
178

skipif mysql # not compatible
query I rowsort label-9899
SELECT ALL 82 - - MAX ( DISTINCT + col2 ) FROM tab1 AS cor0
----
178

query II rowsort
SELECT DISTINCT 80 AS col0, - col1 FROM tab2
----
80
-51
80
-67
80
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT + COUNT( * ) * - - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-9901
SELECT + COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT 59 col2, - col1 * - 0 AS col2, - + col1 AS col2 FROM tab2
----
9 values hashing to faa460adad4d9b997facd24ee4fccdd9

query II rowsort
SELECT - col2 AS col1, + col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9904
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( col2, + CAST( NULL AS SIGNED ), - + ( col1 ), + - col2, + + col1, + col1 )
----

skipif mysql # not compatible
query III rowsort label-9904
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( col2, + CAST ( NULL AS INTEGER ), - + ( col1 ), + - col2, + + col1, + col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + + col1 IS NULL AND NOT ( NULL ) > - + 68 - + col0 - col0
----

query I rowsort
SELECT + - col0 FROM tab1 AS cor0 WHERE NOT + col2 / + 74 IS NULL
----
-51
-85
-91

query II rowsort
SELECT ALL 51 AS col2, + col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9908
SELECT DISTINCT + - MAX( - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9908
SELECT DISTINCT + - MAX ( - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col1 * + col0 * - 69 FROM tab0 AS cor0
----
126063
6693
83835

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT + COUNT( ALL col1 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9910
SELECT + COUNT ( ALL col1 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT + COUNT( * ) * - COUNT( - col2 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9911
SELECT + COUNT ( * ) * - COUNT ( - col2 ) FROM tab1
----
-9

query II rowsort
SELECT ALL col0 AS col0, col0 AS col0 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT DISTINCT + ( + ( - + col0 ) ) FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9914
SELECT * FROM tab1 WHERE NOT NULL <> + 18 / - col1 - - CAST( NULL AS SIGNED ) * col2 + + col0
----

skipif mysql # not compatible
query III rowsort label-9914
SELECT * FROM tab1 WHERE NOT NULL <> + 18 / - col1 - - CAST ( NULL AS INTEGER ) * col2 + + col0
----

query I rowsort
SELECT col2 * + 13 AS col1 FROM tab0
----
1287
130
611

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT SUM( - 9 ) col0 FROM tab2
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9916
SELECT SUM ( - 9 ) col0 FROM tab2
----
-27

query I rowsort
SELECT + 82 * + col2 FROM tab2
----
1886
3280
4756

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT + - COUNT( * ) - + 7 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-16

skipif mysql # not compatible
query I rowsort label-9918
SELECT + - COUNT ( * ) - + 7 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-16

query III rowsort
SELECT * FROM tab1 WHERE - + 1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT ALL + COUNT( + 57 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9920
SELECT ALL + COUNT ( + 57 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT + SUM( DISTINCT + 48 ) AS col0 FROM tab1 WHERE NULL IN ( - - 69, 46 + + col0 + - col0 * + - 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9921
SELECT + SUM ( DISTINCT + 48 ) AS col0 FROM tab1 WHERE NULL IN ( - - 69, 46 + + col0 + - col0 * + - 19 )
----
NULL

query I rowsort
SELECT ALL - - 51 * 95 AS col0 FROM tab2 AS cor0
----
4845
4845
4845

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9923
SELECT COUNT( DISTINCT col0 ) + + 71 + CAST( - COUNT( - col1 ) AS SIGNED ) FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-9923
SELECT COUNT ( DISTINCT col0 ) + + 71 + CAST ( - COUNT ( - col1 ) AS INTEGER ) FROM tab1 AS cor0
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-9924
SELECT - col2 DIV col1 + + col0 AS col2 FROM tab1 AS cor0
----
45
74
90

skipif mysql # not compatible
query I rowsort label-9924
SELECT - col2 / col1 + + col0 AS col2 FROM tab1 AS cor0
----
45
74
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT ALL + + MAX( - col0 ) + 63 + + + COUNT( * ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9925
SELECT ALL + + MAX ( - col0 ) + 63 + + + COUNT ( * ) FROM tab1 AS cor0
----
15

query I rowsort
SELECT - - col2 + + + col0 * + col2 FROM tab0 AS cor0
----
752
880
9702

query I rowsort
SELECT - - 76 + 75 AS col2 FROM tab2 cor0
----
151
151
151

query I rowsort
SELECT ALL + col0 * + + 78 * col1 AS col0 FROM tab1 cor0 WHERE ( NULL ) = ( - col2 )
----

query I rowsort
SELECT + col1 + - + 95 AS col2 FROM tab2
----
-18
-28
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 + - + col1 * + + col2 * - 43 + + col0 col0 FROM tab0
----
163747
4385
9148

query I rowsort
SELECT DISTINCT + col2 * - + col2 + - - 48 FROM tab0
----
-2161
-52
-9753

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN 51 + - 36 + + - col2 AND NULL
----

query I rowsort
SELECT DISTINCT + 72 - 43 AS col1 FROM tab0 WHERE NULL >= - 6
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9934
SELECT ALL col2 - col2 * + col2 * - ( + + col1 ) * - 73 + - CAST( NULL AS SIGNED ) + + 64 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL col2 - col2 * + col2 * - ( + + col1 ) * - 73 + - CAST ( NULL AS INTEGER ) + + 64 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + + 23 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9936
SELECT ALL col2 DIV + col1 - col1 AS col2, col1 AS col0 FROM tab1
----
-46
47
-8
14
6
5

skipif mysql # not compatible
query II rowsort label-9936
SELECT ALL col2 / + col1 - col1 AS col2, col1 AS col0 FROM tab1
----
-46
47
-8
14
6
5

query I rowsort
SELECT + col2 + + 40 * - col0 AS col2 FROM tab0 WHERE + col0 IS NOT NULL
----
-3470
-3781
-553

query I rowsort
SELECT + col1 - 13 AS col1 FROM tab0 cor0
----
-12
68
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT DISTINCT - MAX( ALL - - col1 ) AS col0 FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9939
SELECT DISTINCT - MAX ( ALL - - col1 ) AS col0 FROM tab1 cor0
----
-47

query I rowsort
SELECT + 35 * col2 FROM tab1 cor0
----
2065
2380
3360

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT ALL - 29 + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-20

skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL - 29 + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT ALL + 52 * - COUNT( * ) FROM tab2 AS cor0 WHERE NULL > - col2
----
0

skipif mysql # not compatible
query I rowsort label-9942
SELECT ALL + 52 * - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL > - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT - COUNT( - 58 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9943
SELECT - COUNT ( - 58 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9944
SELECT * FROM tab2 cor0 WHERE NOT + 74 = CAST( col0 AS SIGNED ) + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9944
SELECT * FROM tab2 cor0 WHERE NOT + 74 = CAST ( col0 AS INTEGER ) + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT MIN( DISTINCT + 49 ) AS col2 FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-9946
SELECT MIN ( DISTINCT + 49 ) AS col2 FROM tab1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9947
SELECT ALL - COUNT( * ) AS col1, - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0 FROM tab0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-9947
SELECT ALL - COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab0
----
-3
NULL

query I rowsort
SELECT DISTINCT + ( - + col1 ) AS col0 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-9949
SELECT + COUNT( * ), - 65 AS col2 FROM tab2
----
3
-65

skipif mysql # not compatible
query II rowsort label-9949
SELECT + COUNT ( * ), - 65 AS col2 FROM tab2
----
3
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9950
SELECT + COUNT( * ) * + COUNT( * ) DIV - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9950
SELECT + COUNT ( * ) * + COUNT ( * ) / - COUNT ( * ) FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9951
SELECT - col2 DIV + 19 AS col2 FROM tab0 AS cor0
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-9951
SELECT - col2 / + 19 AS col2 FROM tab0 AS cor0
----
-2
-5
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 84 BETWEEN + 86 AND - col1
----

query I rowsort
SELECT ALL - col0 * ( + col1 ) + col2 FROM tab1 cor0
----
-366
-4209
-618

query I rowsort
SELECT ALL 70 * - col2 + - col2 FROM tab0
----
-3337
-7029
-710

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE col0 / - + 18 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT - 19 * 31 FROM tab1 AS cor0
----
-589
-589
-589

query I rowsort
SELECT ALL 87 - - 94 FROM tab0 AS cor0
----
181
181
181

query I rowsort
SELECT 95 * - col0 + - col0 AS col2 FROM tab0 AS cor0
----
-1440
-8352
-9312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9959
SELECT - + 12 * + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9959
SELECT - + 12 * + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * + - 48 FROM tab1 AS cor0
----
-2256
-240
-672

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9961
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) + 51 NOT BETWEEN NULL AND ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-9961
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) + 51 NOT BETWEEN NULL AND ( - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9962
SELECT DISTINCT - COUNT( * ), CAST( NULL AS SIGNED ) * - 10 AS col0 FROM tab1 cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-9962
SELECT DISTINCT - COUNT ( * ), CAST ( NULL AS INTEGER ) * - 10 AS col0 FROM tab1 cor0
----
-3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT ALL - ( ( - SUM( col0 ) ) ) AS col2 FROM tab2 AS cor0 WHERE col2 IN ( + 94, + col1, - - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9963
SELECT ALL - ( ( - SUM ( col0 ) ) ) AS col2 FROM tab2 AS cor0 WHERE col2 IN ( + 94, + col1, - - col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT DISTINCT - - COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) >= 92
----
0

skipif mysql # not compatible
query I rowsort label-9964
SELECT DISTINCT - - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) >= 92
----
0

query II rowsort
SELECT ALL col2, - col2 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

query II rowsort
SELECT ALL - + 34 AS col1, col0 + - 99 * + - 42 + + col0 FROM tab2 WHERE NOT - - 41 <= + + col2
----
-34
4250
-34
4286

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT ALL + 3 * + 70 + 53 - - ( + - COUNT( DISTINCT - col1 ) ) AS col2 FROM tab2
----
260

skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL + 3 * + 70 + 53 - - ( + - COUNT ( DISTINCT - col1 ) ) AS col2 FROM tab2
----
260

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( - ( - col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9969
SELECT ( CAST( NULL AS SIGNED ) ) * - 39 - + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9969
SELECT ( CAST ( NULL AS INTEGER ) ) * - 39 - + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9970
SELECT 41 * - COUNT( - col1 ) + + COUNT( * ) DIV + MIN( DISTINCT + col2 ) * - + MAX( col1 ) AS col0 FROM tab1
----
-123

skipif mysql # not compatible
query I rowsort label-9970
SELECT 41 * - COUNT ( - col1 ) + + COUNT ( * ) / + MIN ( DISTINCT + col2 ) * - + MAX ( col1 ) AS col0 FROM tab1
----
-123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9971
SELECT col2 * CAST( NULL AS SIGNED ) * + - 68 + - 24 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9971
SELECT col2 * CAST ( NULL AS INTEGER ) * + - 68 + - 24 col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col0 ) + 52 FROM tab2
----
116
127
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT + COUNT( * ) + - + ( + - 19 ) FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-9973
SELECT + COUNT ( * ) + - + ( + - 19 ) FROM tab0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9974
SELECT COUNT( * ) / + 52 + + - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9974
SELECT COUNT ( * ) / + 52 + + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 * col0 AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
1215
1827
97

query II rowsort
SELECT col1 * - + 85 AS col2, col1 FROM tab0 AS cor0
----
-1785
21
-6885
81
-85
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT 63 * - - COUNT( * ) FROM tab0
----
189

skipif mysql # not compatible
query I rowsort label-9977
SELECT 63 * - - COUNT ( * ) FROM tab0
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT + MIN( - col0 ) col1 FROM tab0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9978
SELECT + MIN ( - col0 ) col1 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-9979
SELECT + COUNT( * ) AS col1, 5 FROM tab2
----
3
5

skipif mysql # not compatible
query II rowsort label-9979
SELECT + COUNT ( * ) AS col1, 5 FROM tab2
----
3
5

query I rowsort
SELECT DISTINCT + 65 * + + 31 FROM tab2
----
2015

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT + COUNT( * ) FROM tab1 cor0 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9981
SELECT + COUNT ( * ) FROM tab1 cor0 WHERE NOT NULL <= NULL
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 19 * + col1 * + 92 BETWEEN - - col1 AND NULL
----

query II rowsort
SELECT DISTINCT + col1, 98 FROM tab1 AS cor0
----
14
98
47
98
5
98

query I rowsort
SELECT ALL 74 * - - col0 AS col1 FROM tab2 AS cor0
----
3404
4736
5550

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN 27 AND + - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN - - col2 AND NULL
----

query I rowsort
SELECT ALL + col0 + - 10 + + 89 AS col0 FROM tab2 AS cor0
----
125
143
154

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9988
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST( col0 AS SIGNED ) * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9988
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( col0 AS INTEGER ) * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 54 * - col2 FROM tab2 cor0
----
1242
2160
3132

query II rowsort
SELECT col2, - 19 + + 64 FROM tab0 AS cor0
----
10
45
47
45
99
45

query I rowsort
SELECT DISTINCT + col2 + + + col0 AS col0 FROM tab1
----
144
147
159

query I rowsort
SELECT DISTINCT - 9 FROM tab0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT ALL - MIN( DISTINCT - 73 ) FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-9993
SELECT ALL - MIN ( DISTINCT - 73 ) FROM tab2
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9994
SELECT + col0 + - col1 DIV 54 + - + col1 + - + col1 AS col0 FROM tab2
----
-56
-60
-91

skipif mysql # not compatible
query I rowsort label-9994
SELECT + col0 + - col1 / 54 + - + col1 + - + col1 AS col0 FROM tab2
----
-56
-60
-91

query I rowsort
SELECT 13 * - + col0 + col2 AS col0 FROM tab1
----
-1046
-1115
-567

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9996
SELECT DISTINCT + 75 DIV + COUNT( * ) AS col1 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-9996
SELECT DISTINCT + 75 / + COUNT ( * ) AS col1 FROM tab2
----
25

query I rowsort
SELECT ALL col0 * - - 37 FROM tab1
----
1887
3145
3367

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 BETWEEN - col2 AND col2 + - col2
----

query I rowsort
SELECT ALL - col2 + 71 FROM tab1 AS cor0 WHERE NOT NULL >= col2
----

