spider_version int64 1 2 | db_id stringclasses 204
values | schema stringclasses 187
values | question stringlengths 3 328 | query stringlengths 20 3.81k |
|---|---|---|---|---|
2 | f1 | CREATE TABLE circuits (circuit_id INT(11),
circuit_ref VARCHAR(255),
name VARCHAR(255),
LOCATION VARCHAR(255),
country VARCHAR(25... | For each year, which driver and which constructor scored the most points? I want the full name of each driver. | WITH year_points AS (
SELECT races.year,
drivers.forename || ' ' || drivers.surname AS driver,
constructors.name AS CONSTRUCTOR,
sum(results.points) AS points
FROM results
LEFT JOIN races ON results.race_id = races.race_id -- Ensure these columns exist in your schema
LE... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.