query_id string | variant int64 | sql string | query_hash string | sqlite_time_sec float64 | duckdb_time_sec float64 | speedup_ratio float64 | faster_engine string | num_joins int64 | has_subquery int64 | num_conditions int64 | has_groupby int64 | has_orderby int64 | has_having int64 | has_limit int64 | has_distinct int64 | has_like int64 | has_exists int64 | has_case int64 | num_aggregations int64 | num_tables int64 | query_length int64 | num_select_cols int64 | has_between int64 | has_in int64 | has_left_join int64 | join_complexity int64 | num_tokens int64 | num_string_literals int64 | num_numeric_literals int64 | nesting_depth int64 | has_string_func int64 | has_arithmetic int64 | label int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Q5 | 134 | SELECT n_name, SUM(l_extendedprice * (1 - l_discount)) AS revenue
FROM customer
JOIN orders ON c_custkey = o_custkey
JOIN lineitem ON l_orderkey = o_orderkey
JOIN supplier ON l_suppkey = s_suppkey
JOIN nation ON s_nationkey = n_nationkey
JOIN region ON n_regionkey = r_reg... | 1c53eb408820 | 0.977377 | 0.103198 | 9.4709 | duckdb | 5 | 0 | 3 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 6 | 494 | 2 | 0 | 0 | 0 | 15 | 60 | 3 | 7 | 0 | 0 | 1 | 0 |
Q12 | 72 | SELECT l_shipmode,
SUM(CASE WHEN o_orderpriority = '1-URGENT' OR o_orderpriority = '2-HIGH'
THEN 1 ELSE 0 END) AS high_line_count,
SUM(CASE WHEN o_orderpriority <> '1-URGENT' AND o_orderpriority <> '2-HIGH'
THEN 1 ELSE 0 END) AS low_line_coun... | 1ba924a983a8 | 0.294614 | 0.037155 | 7.9292 | duckdb | 1 | 0 | 5 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 2 | 2 | 663 | 3 | 0 | 1 | 0 | 5 | 69 | 8 | 14 | 0 | 0 | 1 | 0 |
Q7 | 5 | SELECT n1.n_name AS supp_nation, n2.n_name AS cust_nation,
SUM(l_extendedprice * (1 - l_discount)) AS revenue
FROM supplier
JOIN lineitem ON s_suppkey = l_suppkey
JOIN orders ON l_orderkey = o_orderkey
JOIN customer ON o_custkey = c_custkey
JOIN nation n1 ON s_nati... | a8cc0af67dc1 | 0.179665 | 0.037705 | 4.765 | duckdb | 5 | 0 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 6 | 568 | 3 | 1 | 0 | 0 | 20 | 66 | 4 | 7 | 0 | 0 | 1 | 0 |
Q21 | 131 | SELECT s_name, COUNT(*) AS numwait
FROM supplier
JOIN lineitem l1 ON s_suppkey = l1.l_suppkey
JOIN orders ON l1.l_orderkey = o_orderkey
JOIN nation ON s_nationkey = n_nationkey
WHERE o_orderstatus = 'F'
AND n_name = 'ETHIOPIA'
AND l1.l_receiptdate > l1.l_commi... | 2d184a53309d | 0.789064 | 0.046341 | 17.0275 | duckdb | 3 | 0 | 3 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 4 | 405 | 2 | 0 | 0 | 0 | 9 | 48 | 2 | 1 | 0 | 0 | 1 | 0 |
Q3 | 2 | SELECT o_orderkey, SUM(l_extendedprice * (1 - l_discount)) AS revenue,
o_orderdate, o_shippriority
FROM customer
JOIN orders ON c_custkey = o_custkey
JOIN lineitem ON l_orderkey = o_orderkey
WHERE c_mktsegment = 'BUILDING'
AND o_orderdate < '1996-11-24'
... | d663a6ad0ae1 | 1.050961 | 0.057968 | 18.1299 | duckdb | 2 | 0 | 3 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 3 | 468 | 4 | 0 | 0 | 0 | 6 | 49 | 3 | 8 | 0 | 0 | 1 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.