World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
SELECT
n.name,
sum(l.extendedprice * (1 - l.discount)) AS revenue
FROM
customer AS c,
orders AS o,
lineitem AS l,
supplier AS s,
nation AS n,
region AS r
WHERE
c.custkey = o.custkey
AND l.orderkey = o.orderkey
AND l.suppkey = s.suppkey
AND c.nationkey = s.nationkey
AND s.nationkey = n.nationkey
AND n.regionkey = r.regionkey
AND r.name = 'ASIA'
AND o.orderdate >= DATE '1994-01-01'
AND o.orderdate < DATE '1994-01-01' + INTERVAL '1' YEAR
GROUP BY
n.name
ORDER BY
revenue DESC
LIMIT 20
;