--- Test query with window functions in window specifications as follows:
--- window specification A
--- window specification B, window function has constant parameters
--- window specification A
-- database: presto; groups: window;
select
suppkey, orderkey, partkey,
round(sum(quantity) over (partition by suppkey order by orderkey rows between unbounded preceding and current row), 3) sum_quantity_A,
lag(quantity, 1, 0.0) over (partition by partkey order by orderkey) lag_quantity_B,
round(sum(discount) over (partition by suppkey order by orderkey rows between unbounded preceding and current row), 3) sum_discount_A

from tpch.tiny.lineitem where (partkey = 272 or partkey = 273) and suppkey > 50
