Chinastark/bird_dataset huggingface dataset:
Database: formula_1
Note: average points = AVG(points where year = 2000);
Question: What is Eddie Irvine's average points scored in year 2000?
SQL: SELECT avg(driverstandings.points) FROM drivers INNER JOIN driverstandings ON driverstandings.driverid = drivers.driverid INNER JOIN races ON races.raceid = driverstandings.raceid WHERE drivers.forename = 'Eddie' AND drivers.surname = 'Irvine' AND races.year = 2000
Database: formula_1
Note: first race refers to min(year); Lewis Hamiltonrefers to the full name of the driver; Full name of the driver refers to drivers.forename and drivers.surname;
Question: Which was Lewis Hamilton first race? What was his points recorded for his first race event?
SQL: SELECT races.name, driverstandings.points FROM races INNER JOIN driverstandings ON driverstandings.raceid = races.raceid INNER JOIN drivers ON drivers.driverid = driverstandings.driverid WHERE drivers.forename = 'Lewis' AND drivers.surname = 'Hamilton' ORDER BY races.year ASC LIMIT 1
Database: formula_1
Question: List all races in 2017 and the hosting country order by date of the event.
SQL: SELECT DISTINCT races.name, circuits.country FROM circuits INNER JOIN races ON races.circuitid = circuits.circuitid WHERE races.year = 2017 ORDER BY races.date ASC
Database: formula_1
Question: What is the most laps f1 races had? Name the race, year and circuit location where the races with most laps was hosted.
SQL: SELECT laptimes.lap, races.name, races.year, circuits.location FROM circuits INNER JOIN races ON circuits.circuitid = races.circuitid INNER JOIN laptimes ON laptimes.raceid = races.raceid ORDER BY laptimes.lap DESC LIMIT 1
Database: formula_1
Note: European Grand Prix races refers to races.name = 'European Grand Prix';percentage = divide(COUNT(races where country = Germany and name = 'Europearn Grand Prix'),COUNT(races where name = 'Europearn Grand Prix'))*100;
Question: Among all European Grand Prix races, what is the percentage of the races were hosted in Germany?
SQL: SELECT cast(count(CASE WHEN circuits.country = 'Germany' THEN races.circuitid END) AS REAL) * 100 / count(races.circuitid) FROM circuits INNER JOIN races ON races.circuitid = circuits.circuitid WHERE races.name = 'European Grand Prix'
Database: formula_1
Note: location coordinates refers to (lat, lng); Silverstone Circuit refers to circuits.name = 'Silverstone Circuit';
Question: What's the location coordinates of Silverstone Circuit?
SQL: SELECT lat, lng FROM circuits WHERE name = 'Silverstone Circuit'
Database: formula_1
Note: higher latitude refers to max(lat);
Question: Which of these circuits is located at a higher latitude, Silverstone Circuit, Hockenheimring or Hungaroring?
SQL: SELECT name FROM circuits WHERE name IN ('Silverstone Circuit', 'Hockenheimring', 'Hungaroring') ORDER BY lat DESC LIMIT 1
Database: formula_1
Note: reference name refers to circuitref; Marina Bay Street Circuit refers to circuits.name = 'Marina Bay Street Circuit';
Question: What's the reference name of Marina Bay Street Circuit?
SQL: SELECT circuitref FROM circuits WHERE name = 'Marina Bay Street Circuit'
Database: formula_1
Note: highest altitude refers to max(alt);
Question: In which country can I find the circuit with the highest altitude?
SQL: SELECT country FROM circuits ORDER BY alt DESC LIMIT 1
Database: formula_1
Note: don't have a code refers to code is null;
Question: How many drivers don't have a code?
SQL: SELECT count(driverid) - count(CASE WHEN code IS NOT NULL THEN code END) FROM drivers
Database: formula_1
Note: date of birth refers to drivers.dob; The larger the birthday value, the younger the person is, and vice versa;
Question: Which country is the oldest driver from?
SQL: SELECT nationality FROM drivers WHERE dob IS NOT NULL ORDER BY dob ASC LIMIT 1
Database: formula_1
Note: Italian refers to nationality = 'italian';
Question: Please list the surnames of all the Italian drivers.
SQL: SELECT surname FROM drivers WHERE nationality = 'Italian'
Database: formula_1
Note: website refers to url;
Question: Which website should I go to if I want to know more about Anthony Davidson?
SQL: SELECT url FROM drivers WHERE forename = 'Anthony' AND surname = 'Davidson'
Database: formula_1
Note: reference name refers to driverref;
Question: What's Lewis Hamilton's reference name?
SQL: SELECT driverref FROM drivers WHERE forename = 'Lewis' AND surname = 'Hamilton'
Database: formula_1
Question: Which circuit did the 2009 Spanish Grand Prix use?
SQL: SELECT circuits.name FROM circuits INNER JOIN races ON races.circuitid = circuits.circuitid WHERE races.year = 2009 AND races.name = 'Spanish Grand Prix'
Database: formula_1
Question: Please list all the years that Silverstone Circuit was used in a Formula_1 race.
SQL: SELECT DISTINCT races.year FROM circuits INNER JOIN races ON races.circuitid = circuits.circuitid WHERE circuits.name = 'Silverstone Circuit'
Database: formula_1
Note: more information refers to url;
Question: Please give more information about the Formula_1 races that used the Silverstone Circuit.
SQL: SELECT DISTINCT circuits.url FROM circuits INNER JOIN races ON races.circuitid = circuits.circuitid WHERE circuits.name = 'Silverstone Circuit'
Database: formula_1
Question: What time did the the 2010's Formula_1 race took place on the Abu Dhabi Circuit?
SQL: SELECT races.date, races.time FROM circuits INNER JOIN races ON races.circuitid = circuits.circuitid WHERE races.year = 2010 AND races.name = 'Abu Dhabi Grand Prix'
Database: formula_1
Question: How many Formula_1 races took place on the circuits in Italy?
SQL: SELECT count(races.circuitid) FROM circuits INNER JOIN races ON races.circuitid = circuits.circuitid WHERE circuits.country = 'Italy'
Database: formula_1
Question: Please list the exact dates on which a Formula_1 race took place on the Barcelona-Catalunya circuit.
SQL: SELECT races.date FROM circuits INNER JOIN races ON races.circuitid = circuits.circuitid WHERE circuits.name = 'Circuit de Barcelona-Catalunya'
Database: formula_1
Note: link of the website refers to url;
Question: Please give the link of the website that shows more information about the circuits the Spanish Grand Prix used in 2009.
SQL: SELECT circuits.url FROM circuits INNER JOIN races ON races.circuitid = circuits.circuitid WHERE races.year = 2009 AND races.name = 'Spanish Grand Prix'
Database: formula_1
Note: fastest lap time ever refers to min(fastestlaptime);
Question: What's the fastest lap time ever in a race for Lewis Hamilton?
SQL: SELECT results.fastestlaptime FROM drivers INNER JOIN results ON results.driverid = drivers.driverid WHERE drivers.forename = 'Lewis' AND drivers.surname = 'Hamilton' AND results.fastestlaptime IS NOT NULL ORDER BY results.fastestlaptime ASC LIMIT 1
Database: formula_1
Question: Which driver created the fastest lap speed in a Formula_1 race? Please give both his forename and surname.
SQL: SELECT drivers.forename, drivers.surname FROM drivers INNER JOIN results ON results.driverid = drivers.driverid WHERE results.fastestlaptime IS NOT NULL ORDER BY results.fastestlapspeed DESC LIMIT 1
Database: formula_1
Note: reference name refers to driverref; Canadian Grand Prix refers to races.name = 'Canadian Grand Prix';
Question: Which driver ranked the first in the Canadian Grand Prix in 2007? Please give his reference name.
SQL: SELECT drivers.forename, drivers.surname, drivers.driverref FROM races INNER JOIN results ON results.raceid = races.raceid INNER JOIN drivers ON drivers.driverid = results.driverid WHERE races.name = 'Canadian Grand Prix' AND results.rank = 1 AND races.year = 2007
Database: formula_1
Question: Please list the Formula_1 races that Lewis Hamilton participated.
SQL: SELECT races.name FROM races INNER JOIN results ON results.raceid = races.raceid INNER JOIN drivers ON drivers.driverid = results.driverid WHERE drivers.forename = 'Lewis' AND drivers.surname = 'Hamilton'
Database: formula_1
Note: rank the highest refers to min(rank); Lewis Hamilton refers to the full name of the driver; Full name of the driver refers to drivers.forename and drivers.surname;
Question: In which Formula_1 race did Lewis Hamilton rank the highest?
SQL: SELECT name FROM races WHERE raceid IN ( SELECT raceid FROM results WHERE rank = 1 AND driverid = ( SELECT driverid FROM drivers WHERE forename = 'Lewis' AND surname = 'Hamilton' ) )
Database: formula_1
Note: the fastest lap speed among all refers to max(fastestlapspeed); Spanish Grand Prix refers to races.name = 'Spanish Grand Prix';
Question: What was the fastest lap speed among all drivers in the 2009 Spanish Grand Prix?
SQL: SELECT results.fastestlapspeed FROM races INNER JOIN results ON results.raceid = races.raceid WHERE races.name = 'Spanish Grand Prix' AND races.year = 2009 AND results.fastestlapspeed IS NOT NULL ORDER BY results.fastestlapspeed DESC LIMIT 1
Database: formula_1
Question: In which years did Lewis Hamilton participate in a Formula_1 race?
SQL: SELECT DISTINCT races.year FROM races INNER JOIN results ON results.raceid = races.raceid INNER JOIN drivers ON drivers.driverid = results.driverid WHERE drivers.forename = 'Lewis' AND drivers.surname = 'Hamilton'
Database: formula_1
Note: Lewis Hamilton refers to the full name of the driver; Full name of the driver refers to drivers.forename and drivers.surname; final rank refers to positionorder; Chinese Grand Prix refers to races.name = 'Chinese Grand Prix';
Question: What was Lewis Hamilton's final rank in the 2008 Chinese Grand Prix?
SQL: SELECT results.positionorder FROM races INNER JOIN results ON results.raceid = races.raceid INNER JOIN drivers ON drivers.driverid = results.driverid WHERE drivers.forename = 'Lewis' AND drivers.surname = 'Hamilton' AND races.name = 'Chinese Grand Prix' AND races.year = 2008
Database: formula_1
Note: the no. 4 grid formation refers to grid = 4;
Question: Which driver was in the no. 4 grid formation when starting the race in 1989's Australian Grand Prix? Please give his forename and surname.
SQL: SELECT drivers.forename, drivers.surname FROM races INNER JOIN results ON results.raceid = races.raceid INNER JOIN drivers ON drivers.driverid = results.driverid WHERE results.grid = 4 AND races.name = 'Australian Grand Prix' AND races.year = 1989
Database: formula_1
Note: managed to finish the race refers to time is not null;
Question: How many drivers managed to finish the race in the 2008 Australian Grand Prix?
SQL: SELECT count(results.driverid) FROM races INNER JOIN results ON results.raceid = races.raceid WHERE races.name = 'Australian Grand Prix' AND races.year = 2008 AND results.time IS NOT NULL
Database: formula_1
Question: Which was the fastest lap for Lewis Hamilton in the 2008 Australian Grand Prix?
SQL: SELECT results.fastestlap FROM results INNER JOIN races ON results.raceid = races.raceid INNER JOIN drivers ON results.driverid = drivers.driverid WHERE races.name = 'Australian Grand Prix' AND races.year = 2008 AND drivers.forename = 'Lewis' AND drivers.surname = 'Hamilton'
Database: formula_1
Note: finish time refers to time; Chinese Grand Prix refers to races.name = 'Chinese Grand Prix';
Question: What's the finish time for the driver who ranked second in 2008's AustChineseralian Grand Prix?
SQL: SELECT results.time FROM results INNER JOIN races ON results.raceid = races.raceid WHERE results.rank = 2 AND races.name = 'Chinese Grand Prix' AND races.year = 2008
Database: formula_1
Note: only champion's finished time is represented by 'HH:MM:SS.mmm'; where can I know more refers to url;
Question: Who was the champion of 2008's Australian Grand Prix and where can I know more about him?
SQL: SELECT drivers.forename, drivers.surname, drivers.url FROM drivers INNER JOIN results ON drivers.driverid = results.driverid INNER JOIN races ON races.raceid = results.raceid WHERE races.name = 'Australian Grand Prix' AND results.time LIKE '_:%:__.___' AND races.year = 2008
Database: formula_1
Note: from the UN refers to nationality = 'British';
Question: How many drivers from the UN participated in the 2008 Australian Grand Prix?
SQL: SELECT count(*) FROM drivers INNER JOIN results ON drivers.driverid = results.driverid INNER JOIN races ON races.raceid = results.raceid WHERE races.name = 'Australian Grand Prix' AND drivers.nationality = 'British' AND races.year = 2008
Database: formula_1
Note: COUNT(raceid) > 0 reveals that this driver participated in races; drivers who finished the race refers to time has value.;
Question: Among the drivers that finished the race in the 2008 Chinese Grand Prix, how many of them have participated in Formula_1 races?
SQL: SELECT count(*) FROM ( SELECT results.driverid FROM results INNER JOIN races ON results.raceid = races.raceid WHERE races.name = 'Chinese Grand Prix' AND races.year = 2008 AND results.time IS NOT NULL GROUP BY results.driverid HAVING count(races.raceid) > 0 )
Database: formula_1
Question: How many points did Lewis Hamilton get in total in all the Formula_1 races he participated?
SQL: SELECT sum(results.points) FROM drivers INNER JOIN results ON drivers.driverid = results.driverid WHERE drivers.forename = 'Lewis' AND drivers.surname = 'Hamilton'
Database: formula_1
Note: average fastest lap time = avg(fastestlaptime); The time is recorded on 'MM:SS.mmm';
Question: What is the average fastest lap time in seconds for Lewis Hamilton in all the Formula_1 races?
SQL: SELECT avg(cast(substr(results.fastestlaptime, 1, instr(results.fastestlaptime, ':') - 1) AS INTEGER) * 60 + cast(substr(results.fastestlaptime, instr(results.fastestlaptime, ':') + 1) AS REAL)) FROM drivers INNER JOIN results ON drivers.driverid = results.driverid WHERE drivers.surname = 'Hamilton' AND drivers.forename = 'Lewis'
Database: formula_1
Note: completing all the laps refers to time is not null; rate = divide(COUNT(raceid where time is not null), COUNT(raceid));
Question: What is the rate of drivers completing all the laps in the 2008 Australian Grand Prix?
SQL: SELECT cast(sum(iif(results.time IS NOT NULL, 1, 0)) AS REAL) * 100 / count(results.resultid) FROM results INNER JOIN races ON results.raceid = races.raceid WHERE races.name = 'Australian Grand Prix' AND races.year = 2008
Database: formula_1
Note: how much faster in percentage = divide(subtract(incremental time, champion time), last_driver time) * 100; last driver finished time = incremental time + champion time; only champion's finished time is represented by 'HH:MM:SS.mmm'; finished the game refers to time is not null;
Question: How much faster in percentage is the champion than the driver who finished the race last in the 2008 Australian Grand Prix?
SQL: WITH time_in_seconds AS ( SELECT results.positionorder, CASE WHEN results.positionorder = 1 THEN (cast(substr(results.time, 1, 1) AS REAL) * 3600) + (cast(substr(results.time, 3, 2) AS REAL) * 60) + cast(substr(results.time, 6) AS REAL) ELSE cast(substr(results.time, 2) AS REAL) END AS time_seconds FROM results INNER JOIN races ON results.raceid = races.raceid WHERE races.name = 'Australian Grand Prix' AND results.time IS NOT NULL AND races.year = 2008 ), champion_time AS ( SELECT time_seconds FROM time_in_seconds WHERE positionorder = 1), last_driver_incremental AS ( SELECT time_seconds FROM time_in_seconds WHERE positionorder = (SELECT max(positionorder) FROM time_in_seconds) ) SELECT (cast((SELECT time_seconds FROM last_driver_incremental) AS REAL) * 100) / (SELECT time_seconds + (SELECT time_seconds FROM last_driver_incremental) FROM champion_time)
Database: formula_1
Note: Australia is the country; Melbourne is the location of circuit;
Question: How many circuits are there in Adelaide, Australia?
SQL: SELECT count(circuitid) FROM circuits WHERE LOCATION = 'Adelaide' AND country = 'Australia'
Database: formula_1
Note: location coordinates refers to (lat, lng); the US refers to country = 'USA';
Question: Please list the location coordinates of the US circuits.
SQL: SELECT lat, lng FROM circuits WHERE country = 'USA'
Database: formula_1
Note: born after 1980 refers to year (dob) >1980;
Question: How many British drivers were born after 1980?
SQL: SELECT count(driverid) FROM drivers WHERE nationality = 'British' AND strftime('%Y', dob) > '1980'
Database: formula_1
Note: maximum points = MAX(points); British is a nationality;
Question: What are the maximum points of British constructors?
SQL: SELECT max(constructorstandings.points) FROM constructorstandings INNER JOIN constructors ON constructorstandings.constructorid = constructors.constructorid WHERE constructors.nationality = 'British'
Database: formula_1
Question: Which constructor has the highest point?
SQL: SELECT constructors.name FROM constructorstandings INNER JOIN constructors ON constructorstandings.constructorid = constructors.constructorid ORDER BY constructorstandings.points DESC LIMIT 1
Database: formula_1
Note: race at 291 refers to raceid = 291;
Question: Please list the constructor names with 0 points at race 291.
SQL: SELECT constructors.name FROM constructorstandings INNER JOIN constructors ON constructorstandings.constructorid = constructors.constructorid WHERE constructorstandings.points = 0 AND constructorstandings.raceid = 291
Database: formula_1
Note: 2 races refers to COUNT(raceid) = 2; Japanese refers to constructors.nationality = 'Japanese';
Question: How many Japanese constructors have 0 points in 2 races?
SQL: SELECT count(constructorstandings.raceid) FROM constructorstandings INNER JOIN constructors ON constructorstandings.constructorid = constructors.constructorid WHERE constructorstandings.points = 0 AND constructors.nationality = 'Japanese' GROUP BY constructorstandings.constructorid HAVING count(raceid) = 2
Database: formula_1
Question: Which constructors have been ranked 1?
SQL: SELECT DISTINCT constructors.name FROM results INNER JOIN constructors ON results.constructorid = constructors.constructorid WHERE results.rank = 1
Database: formula_1
Note: lap numbers of over 50 refers to laps > 50;
Question: How many French constructors have a lap number of over 50?
SQL: SELECT count(DISTINCT constructors.constructorid) FROM results INNER JOIN constructors ON results.constructorid = constructors.constructorid WHERE results.laps > 50 AND constructors.nationality = 'French'
Database: formula_1
Note: from 2007 to 2009 refers to year between 2007 and 2009; race completion refers to time is not null; percentage = Divide(COUNT(driverid where time is not null and year between 2007 and 2009),Count (driverid where year between 2007 and 2009))*100;
Question: Please calculate the race completion percentage of Japanese drivers from 2007 to 2009.
SQL: SELECT cast(sum(iif(results.time IS NOT NULL, 1, 0)) AS REAL) * 100 / count(results.raceid) FROM results INNER JOIN races ON results.raceid = races.raceid INNER JOIN drivers ON results.driverid = drivers.driverid WHERE drivers.nationality = 'Japanese' AND races.year BETWEEN 2007 AND 2009
Database: formula_1
Note: only champion's finished time is represented by 'HH:MM:SS.mmm'; finished the game refers to time is not null; before year 1975 refers to year < 1975;
Question: What is the average time in seconds of champion for each year, before year 1975?
SQL: WITH time_in_seconds AS ( SELECT races.year, races.raceid, results.positionorder, CASE WHEN results.positionorder = 1 THEN (cast(substr(results.time, 1, 1) AS REAL) * 3600) + (cast(substr(results.time, 3, 2) AS REAL) * 60) + cast(substr(results.time, 6,2) AS REAL )   + cast(substr(results.time, 9) AS REAL)/1000 ELSE 0 END AS time_seconds FROM results INNER JOIN races ON results.raceid = races.raceid WHERE results.time IS NOT NULL ), champion_time AS ( SELECT YEAR, raceid, time_seconds FROM time_in_seconds WHERE positionorder = 1 ) SELECT YEAR, avg(time_seconds) FROM champion_time WHERE YEAR < 1975 GROUP BY YEAR HAVING avg(time_seconds) IS NOT NULL
Database: formula_1
Note: born after 1975 refers to year(dob) >1975;
Question: Which drivers born after 1975 have been ranked 2? Please give their forenames and surnames.
SQL: SELECT drivers.forename, drivers.surname FROM results INNER JOIN drivers ON results.driverid = drivers.driverid WHERE strftime('%Y', drivers.dob) > '1975' AND results.rank = 2
Database: formula_1
Note: haven't finished the race refers to time is null;
Question: How many Italian drivers haven't finished the race?
SQL: SELECT count(results.driverid) FROM results INNER JOIN drivers ON results.driverid = drivers.driverid WHERE drivers.nationality = 'Italian' AND results.time IS NULL
Database: formula_1
Question: Which driver has the fastest lap time? Please give their forenames and surnames.
SQL: SELECT drivers.forename, drivers.surname, results.fastestlaptime FROM results INNER JOIN drivers ON results.driverid = drivers.driverid WHERE results.fastestlaptime IS NOT NULL ORDER BY results.fastestlaptime ASC LIMIT 1
Database: formula_1
Note: in 2009 refers to year = 2009; Only the time of the champion shows in the format of "hour: minutes: seconds.millionsecond";
Question: What is the fastest lap number of the champion in 2009?
SQL: SELECT results.fastestlap FROM results INNER JOIN races ON results.raceid = races.raceid WHERE races.year = 2009 AND results.time LIKE '_:%:__.___'
Database: formula_1
Note: Spanish Grand Prix is the name of race refers to name = 'Spanish Grand Prix'; average fastest lap speed refers to avg(fastestlapspeed);
Question: What is the average of fastest lap speed in the 2009 Spanish Grand Prix race?
SQL: SELECT avg(results.fastestlapspeed) FROM results INNER JOIN races ON results.raceid = races.raceid WHERE races.year = 2009 AND races.name = 'Spanish Grand Prix'
Database: formula_1
Note: shortest actual finishing time refers to Min(milliseconds) except milliseconds = null;
Question: Which race has the shortest actual finishing time? Please give the name and year.
SQL: SELECT races.name, races.year FROM races INNER JOIN results ON races.raceid = results.raceid WHERE results.milliseconds IS NOT NULL ORDER BY results.milliseconds LIMIT 1
Database: formula_1
Note: born before 1985 refers to year(dob)<1985; in 2000 to 2005 refers to year between 2000 and 2005; percentage = Divide(COUNT(driverid where year (dob) <1985 and laps >50),COUNT(driverid where year between 2000 and 2005) *100;
Question: From 2000 to 2005, what percentage of drivers who were born before 1985 and the lap numbers were over 50?
SQL: SELECT cast(sum(iif(strftime('%Y', drivers.dob) < '1985' AND results.laps > 50, 1, 0)) AS REAL) * 100 / count(*) FROM results INNER JOIN races ON results.raceid = races.raceid INNER JOIN drivers ON results.driverid = drivers.driverid WHERE races.year BETWEEN 2000 AND 2005
Database: formula_1
Note: lap time less than 02:00.00 refers to seconds < 120;
Question: How many French drivers who obtain the laptime less than 02:00.00?
SQL: SELECT count(drivers.driverid) FROM drivers INNER JOIN laptimes ON drivers.driverid = laptimes.driverid WHERE drivers.nationality = 'French' AND (cast(substr(laptimes.time, 1, 2) AS INTEGER) * 60 + cast(substr(laptimes.time, 4, 2) AS INTEGER) + cast(substr(laptimes.time, 7, 2) AS REAL) / 1000) < 120
Database: formula_1
Note: nationality = 'America';
Question: List out the code for drivers who have nationality in America.
SQL: SELECT code FROM drivers WHERE nationality = 'American'
Database: formula_1
Question: List out the Id number of races which were hold in 2009.
SQL: SELECT raceid FROM races WHERE YEAR = 2009
Database: formula_1
Question: How many driver participated in race ID number 18?
SQL: SELECT count(driverid) FROM driverstandings WHERE raceid = 18
Database: formula_1
Note: youngest driver refers to Max (year(dob)); Netherlandic and Dutch refer to the same country;
Question: State code numbers of top 3 yougest drivers. How many Netherlandic drivers among them?
SQL: SELECT count(*) FROM ( SELECT drivers.nationality FROM drivers ORDER BY julianday(drivers.dob) DESC LIMIT 3) AS t3 WHERE t3.nationality = 'Dutch'
Database: formula_1
Note: reference name refers to driverref;
Question: What is reference name of Robert Kubica?
SQL: SELECT driverref FROM drivers WHERE forename = 'Robert' AND surname = 'Kubica'
Database: formula_1
Note: born in 1980 refers to year(dob) = 1980;
Question: How many British drivers who were born in 1980?
SQL: SELECT count(driverid) FROM drivers WHERE nationality = 'British' AND strftime('%Y', dob) = '1980'