output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "rd" FROM "grands_prix" WHERE "grand_prix"='Canadian Grand Prix';
## Task Generate a SQL query to answer the following question: `What is the rd for the canadian grand prix?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grands_prix" ( "rd" real, "grand_prix" text, "pole_position" text, "fastest_lap" text, ...
SELECT "fastest_lap" FROM "grands_prix" WHERE "grand_prix"='European Grand Prix';
## Task Generate a SQL query to answer the following question: `What is the fastest lap for the european grand prix?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grands_prix" ( "rd" real, "grand_prix" text, "pole_position" text, "fastest_lap...
SELECT "pole_position" FROM "grands_prix" WHERE "constructor"='Ferrari' AND "grand_prix"='Austrian Grand Prix';
## Task Generate a SQL query to answer the following question: `What is the pole position for the ferrari at the austrian grand prix?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grands_prix" ( "rd" real, "grand_prix" text, "pole_position" tex...
SELECT "outcome" FROM "fed_cup_singles_performances_9" WHERE "round"='2R';
## Task Generate a SQL query to answer the following question: `What was the result of round 2r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fed_cup_singles_performances_9" ( "edition" real, "zone" text, "round" text, "date" text, "agains...
SELECT "against" FROM "fed_cup_singles_performances_9" WHERE "opponent"='Tina Pisnik';
## Task Generate a SQL query to answer the following question: `Who did Tina Pisnik verse?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fed_cup_singles_performances_9" ( "edition" real, "zone" text, "round" text, "date" text, "against" tex...
SELECT COUNT("result") FROM "fed_cup_singles_performances_9" WHERE "round"='2R';
## Task Generate a SQL query to answer the following question: `How many rounds were 2r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fed_cup_singles_performances_9" ( "edition" real, "zone" text, "round" text, "date" text, "against" text,...
SELECT "outcome" FROM "fed_cup_singles_performances_9" WHERE "round"='2R';
## Task Generate a SQL query to answer the following question: `Name the outcome for round 2r` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fed_cup_singles_performances_9" ( "edition" real, "zone" text, "round" text, "date" text, "against" ...
SELECT "night_rank" FROM "weekly_ratings" WHERE "viewers_m"='6.63';
## Task Generate a SQL query to answer the following question: `what's the night rank with viewers (m) of 6.63` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "weekly_ratings" ( "num" real, "episode" text, "air_date" text, "rating" text, "shar...
SELECT "overall_rank" FROM "weekly_ratings" WHERE "viewers_m"='7.44';
## Task Generate a SQL query to answer the following question: `what's the overall rank with viewers (m) of 7.44` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "weekly_ratings" ( "num" real, "episode" text, "air_date" text, "rating" text, "sh...
SELECT COUNT("overall_rank") FROM "weekly_ratings" WHERE "rating_share_18_49"='2.1/5';
## Task Generate a SQL query to answer the following question: `what's the overall rank with rating/share 18–49 of 2.1/5` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "weekly_ratings" ( "num" real, "episode" text, "air_date" text, "rating" tex...
SELECT "night_rank" FROM "weekly_ratings" WHERE "rating"='6.2';
## Task Generate a SQL query to answer the following question: `what's the night rank with rating of 6.2` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "weekly_ratings" ( "num" real, "episode" text, "air_date" text, "rating" text, "share" rea...
SELECT "viewers_m" FROM "weekly_ratings" WHERE "episode"='\"Legacy\"';
## Task Generate a SQL query to answer the following question: `what's the viewers (m) with episode of "legacy"` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "weekly_ratings" ( "num" real, "episode" text, "air_date" text, "rating" text, "sha...
SELECT COUNT("group_b_winner") FROM "table1_1137142_1" WHERE "group_c_winner"='Francavilla';
## Task Generate a SQL query to answer the following question: `What is the number of group b winner for francavilla?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1137142_1" ( "season" text, "group_a_winner" text, "group_b_winner" text,...
SELECT "group_a_winner" FROM "table1_1137142_1" WHERE "group_b_winner"='Modena';
## Task Generate a SQL query to answer the following question: `What is the group a winner for modena?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1137142_1" ( "season" text, "group_a_winner" text, "group_b_winner" text, "group_c_win...
SELECT "group_a_winner" FROM "table1_1137142_1" WHERE "group_c_winner"='Vis Pesaro';
## Task Generate a SQL query to answer the following question: `What is the group a winner for vis pesaro?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1137142_1" ( "season" text, "group_a_winner" text, "group_b_winner" text, "group_c...
SELECT "group_a_winner" FROM "table1_1137142_1" WHERE "group_d_winner"='Nocerina';
## Task Generate a SQL query to answer the following question: `What group a winner was for nocerina?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1137142_1" ( "season" text, "group_a_winner" text, "group_b_winner" text, "group_c_winn...
SELECT "group_d_winner" FROM "table1_1137142_1" WHERE "group_b_winner"='Modena';
## Task Generate a SQL query to answer the following question: `What was the group d winner for modena?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1137142_1" ( "season" text, "group_a_winner" text, "group_b_winner" text, "group_c_wi...
SELECT "fastest_lap" FROM "grands_prix" WHERE "grand_prix"='Brazilian Grand Prix';
## Task Generate a SQL query to answer the following question: `Who had the fastest lap at the brazilian grand prix?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grands_prix" ( "round" real, "grand_prix" text, "pole_position" text, "fastest_...
SELECT "pole_position" FROM "grands_prix" WHERE "grand_prix"='Monaco Grand Prix';
## Task Generate a SQL query to answer the following question: `Who was on the pole position at the monaco grand prix?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grands_prix" ( "round" real, "grand_prix" text, "pole_position" text, "fastes...
SELECT "winning_driver" FROM "grands_prix" WHERE "fastest_lap"='Michael Schumacher' AND "pole_position"='Michael Schumacher';
## Task Generate a SQL query to answer the following question: `Who was the winning driver when Michael Schumacher had the pole and the fastest lap?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grands_prix" ( "round" real, "grand_prix" text, "...
SELECT "location" FROM "grands_prix" WHERE "date"='5 April';
## Task Generate a SQL query to answer the following question: `what are all the location where date is 5 april` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grands_prix" ( "round" real, "grand_prix" text, "date" text, "location" text, "pol...
SELECT "pole_position" FROM "grands_prix" WHERE "date"='26 July';
## Task Generate a SQL query to answer the following question: `what are all the pole position where date is 26 july` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grands_prix" ( "round" real, "grand_prix" text, "date" text, "location" text, ...
SELECT "winning_constructor" FROM "grands_prix" WHERE "fastest_lap"='Riccardo Patrese' AND "location"='Interlagos';
## Task Generate a SQL query to answer the following question: `who are all the winning constructors where fastest lap is riccardo patrese and location is interlagos` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grands_prix" ( "round" real, "gran...
SELECT "report" FROM "grands_prix" WHERE "winning_constructor"='Williams - Renault' AND "grand_prix"='South African Grand Prix';
## Task Generate a SQL query to answer the following question: `what are all the report where winning constructor is williams - renault and grand prix is south african grand prix` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grands_prix" ( "round" ...
SELECT MIN("round") FROM "grands_prix" WHERE "grand_prix"='German Grand Prix';
## Task Generate a SQL query to answer the following question: `whatthe minimum round where grand prix is german grand prix` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grands_prix" ( "round" real, "grand_prix" text, "date" text, "location" ...
SELECT COUNT("date") FROM "grands_prix" WHERE "grand_prix"='Portuguese Grand Prix';
## Task Generate a SQL query to answer the following question: `what of the total number of date where grand prix is portuguese grand prix` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grands_prix" ( "round" real, "grand_prix" text, "date" text...
SELECT COUNT("pole_position") FROM "season_review" WHERE "round"=15;
## Task Generate a SQL query to answer the following question: `What is the number of pole position with a round of 15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "round" real, "grand_prix" text, "date" text, "location" te...
SELECT "date" FROM "season_review" WHERE "location"='Circuit Gilles Villeneuve';
## Task Generate a SQL query to answer the following question: `What is the date of the circuit gilles villeneuve?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "round" real, "grand_prix" text, "date" text, "location" text, ...
SELECT "location" FROM "season_review" WHERE "fastest_lap"='Thierry Boutsen';
## Task Generate a SQL query to answer the following question: `What is the location of thierry boutsen?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "round" real, "grand_prix" text, "date" text, "location" text, "pole_pos...
SELECT "pole_position" FROM "season_review" WHERE "grand_prix"='German Grand Prix';
## Task Generate a SQL query to answer the following question: `Who had the pole position at the German Grand Prix?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rd" real, "grand_prix" text, "date" text, "location" text, "...
SELECT MIN("rd") FROM "season_review" WHERE "date"='22 October';
## Task Generate a SQL query to answer the following question: `Which rd. occurred on 22 October?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rd" real, "grand_prix" text, "date" text, "location" text, "pole_position" tex...
SELECT "winning_driver" FROM "season_review" WHERE "date"='13 August';
## Task Generate a SQL query to answer the following question: `Who was the winning driver on 13 August?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rd" real, "grand_prix" text, "date" text, "location" text, "pole_positi...
SELECT "fastest_lap" FROM "season_review" WHERE "grand_prix"='Mexican Grand Prix';
## Task Generate a SQL query to answer the following question: `What was the fastest lap at the Mexican Grand Prix?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rd" real, "grand_prix" text, "date" text, "location" text, "...
SELECT MIN("rd") FROM "season_review" WHERE "location"='Hockenheimring';
## Task Generate a SQL query to answer the following question: `Which rd. took place at Hockenheimring?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rd" real, "grand_prix" text, "date" text, "location" text, "pole_positio...
SELECT COUNT("fastest_lap") FROM "season_review" WHERE "location"='Silverstone';
## Task Generate a SQL query to answer the following question: `How many drivers had the fastest lap at Silverstone?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rd" real, "grand_prix" text, "date" text, "location" text, ...
SELECT "android" FROM "table1_11381701_3" WHERE "windows"='1.15%';
## Task Generate a SQL query to answer the following question: `What is the percentage of Android use when Windows is 1.15%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_11381701_3" ( "source" text, "date" text, "method" text, "i_os" ...
SELECT "date" FROM "table1_11381701_3" WHERE "bada"='0.05%';
## Task Generate a SQL query to answer the following question: `On which dates was the value of Bada 0.05%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_11381701_3" ( "source" text, "date" text, "method" text, "i_os" text, "android"...
SELECT "windows" FROM "table1_11381701_3" WHERE "other"='0.7%';
## Task Generate a SQL query to answer the following question: `When the value of "other" is 0.7%, what is the percentage for Windows?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_11381701_3" ( "source" text, "date" text, "method" text,...
SELECT "other" FROM "table1_11381701_3" WHERE "symbian_series_40"='0.40%';
## Task Generate a SQL query to answer the following question: `When Symbian/Series 40 is 0.40%, what is the percentage of "other"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_11381701_3" ( "source" text, "date" text, "method" text, ...
SELECT "source" FROM "table1_11381701_3" WHERE "black_berry"='2.9%';
## Task Generate a SQL query to answer the following question: `Which source shows Blackberry at 2.9%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_11381701_3" ( "source" text, "date" text, "method" text, "i_os" text, "android" text...
SELECT "english_name" FROM "administered_by_independent_administrati" WHERE "abbreviation"='MTC';
## Task Generate a SQL query to answer the following question: `Which colleges have the english abbreviation MTC?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "administered_by_independent_administrati" ( "english_name" text, "japanese_orthography...
SELECT "japanese_orthography" FROM "administered_by_independent_administrati" WHERE "english_name"='National Farmers Academy';
## Task Generate a SQL query to answer the following question: `What is the Japanese orthography for the English name National Farmers Academy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "administered_by_independent_administrati" ( "english_name"...
SELECT "abbreviation" FROM "administered_by_independent_administrati" WHERE "pronouciation"='Kōkū Daigakkō';
## Task Generate a SQL query to answer the following question: `What is the abbreviation for the college pronounced "kōkū daigakkō"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "administered_by_independent_administrati" ( "english_name" text, "j...
SELECT COUNT("provider_iai") FROM "administered_by_independent_administrati" WHERE "foundation"=1964;
## Task Generate a SQL query to answer the following question: `How many providers were founded in 1964?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "administered_by_independent_administrati" ( "english_name" text, "japanese_orthography" text, ...
SELECT "japanese_orthography" FROM "administered_by_independent_administrati" WHERE "english_name"='National Fisheries University';
## Task Generate a SQL query to answer the following question: `What is the Japanese orthography for National Fisheries University?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "administered_by_independent_administrati" ( "english_name" text, "ja...
SELECT MIN("half_marathon_womens") FROM "winners_by_country";
## Task Generate a SQL query to answer the following question: `What is the minimum number for the half marathon (womens)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_by_country" ( "country" text, "total" real, "marathon_mens" real, ...
SELECT COUNT("half_marathon_mens") FROM "winners_by_country" WHERE "country"='Kazakhstan';
## Task Generate a SQL query to answer the following question: `Whatis the total number of half marathon (mens) that represented kazakhstan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_by_country" ( "country" text, "total" real, "mara...
SELECT COUNT("country") FROM "winners_by_country" WHERE "half_marathon_womens">1.0;
## Task Generate a SQL query to answer the following question: `What is amount of countries where half marathon (women) is larger than 1.0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_by_country" ( "country" text, "total" real, "marat...
SELECT COUNT("half_marathon_womens") FROM "winners_by_country" WHERE "country"='Moldova';
## Task Generate a SQL query to answer the following question: `How many times is Moldova the winner of half marathon (womens)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_by_country" ( "country" text, "total" real, "marathon_mens" re...
SELECT "country" FROM "winners_by_country" WHERE "half_marathon_womens">1.0;
## Task Generate a SQL query to answer the following question: `Which country has half marathon (womens) that is larger than 1.0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_by_country" ( "country" text, "total" real, "marathon_mens" ...
SELECT "constructor" FROM "season_review" WHERE "grand_prix"='Brazilian Grand Prix';
## Task Generate a SQL query to answer the following question: `What is the make of the car that won the brazilian grand prix?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rd" real, "grand_prix" text, "date" text, "location...
SELECT "fastest_lap" FROM "season_review" WHERE "rd"=8;
## Task Generate a SQL query to answer the following question: `Who drove the fastest lap for round 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rd" real, "grand_prix" text, "date" text, "location" text, "pole_position...
SELECT "date" FROM "season_review" WHERE "location"='Jerez';
## Task Generate a SQL query to answer the following question: `What day was the grand prix in jerez?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rd" real, "grand_prix" text, "date" text, "location" text, "pole_position"...
SELECT "grand_prix" FROM "season_review" WHERE "location"='Detroit';
## Task Generate a SQL query to answer the following question: `What event was in detroit?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rd" real, "grand_prix" text, "date" text, "location" text, "pole_position" text, "f...
SELECT COUNT("grand_prix") FROM "season_review" WHERE "constructor"='McLaren - Honda' AND "fastest_lap"='Nigel Mansell';
## Task Generate a SQL query to answer the following question: `How many events did nigel mansell drive the fastest and a mclaren - honda win?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rd" real, "grand_prix" text, "date" t...
SELECT "date" FROM "season_review" WHERE "grand_prix"='French Grand Prix';
## Task Generate a SQL query to answer the following question: `What day is the french grand prix` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rd" real, "grand_prix" text, "date" text, "location" text, "pole_position" tex...
SELECT "winners" FROM "night_series_winners_1977_1987" WHERE "season_result"='7th';
## Task Generate a SQL query to answer the following question: ` who is the winners where season result is 7th` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "night_series_winners_1977_1987" ( "year" real, "winners" text, "grand_finalist" text, ...
SELECT "winners" FROM "night_series_winners_1977_1987" WHERE "season_result"='9th';
## Task Generate a SQL query to answer the following question: ` who is the winners where season result is 9th` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "night_series_winners_1977_1987" ( "year" real, "winners" text, "grand_finalist" text, ...
SELECT "grand_finalist" FROM "night_series_winners_1977_1987" WHERE "winners"='Collingwood';
## Task Generate a SQL query to answer the following question: ` what's the grand finalist where winners is collingwood` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "night_series_winners_1977_1987" ( "year" real, "winners" text, "grand_finalist...
SELECT "season_result" FROM "night_series_winners_1977_1987" WHERE "margin"=51;
## Task Generate a SQL query to answer the following question: ` who is the season result where margin is 51` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "night_series_winners_1977_1987" ( "year" real, "winners" text, "grand_finalist" text, "...
SELECT "grand_finalist" FROM "night_series_winners_1977_1987" WHERE "scores"='11.11 (77) – 10.8 (68)';
## Task Generate a SQL query to answer the following question: ` who is the grand finalist where scores is 11.11 (77) – 10.8 (68)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "night_series_winners_1977_1987" ( "year" real, "winners" text, "gran...
SELECT "grand_finalist" FROM "night_series_winners_1977_1987" WHERE "scores"='8.9 (57) – 7.12 (54)';
## Task Generate a SQL query to answer the following question: ` who is the grand finalist where scores is 8.9 (57) – 7.12 (54)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "night_series_winners_1977_1987" ( "year" real, "winners" text, "grand_...
SELECT MAX("crowd") FROM "consolation_night_series_lake_oval_winne" WHERE "scores"='10.12 (72) – 8.11 (59)';
## Task Generate a SQL query to answer the following question: `what was the crowd when the scores are 10.12 (72) – 8.11 (59)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "consolation_night_series_lake_oval_winne" ( "year" real, "winners" text, ...
SELECT "venue" FROM "consolation_night_series_lake_oval_winne" WHERE "scores"='15.13 (103) – 8.4 (52)';
## Task Generate a SQL query to answer the following question: `what is the venue where the scores are 15.13 (103) – 8.4 (52)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "consolation_night_series_lake_oval_winne" ( "year" real, "winners" text, ...
SELECT "venue" FROM "consolation_night_series_lake_oval_winne" WHERE "margin"=4;
## Task Generate a SQL query to answer the following question: `what is the venue where the margin is 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "consolation_night_series_lake_oval_winne" ( "year" real, "winners" text, "grand_finalist" tex...
SELECT "crowd" FROM "consolation_night_series_lake_oval_winne" WHERE "grand_finalist"='South Melbourne';
## Task Generate a SQL query to answer the following question: `what is the crowd when the grand finalist was south melbourne?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "consolation_night_series_lake_oval_winne" ( "year" real, "winners" text, ...
SELECT "date" FROM "season_review" WHERE "race"='Monaco Grand Prix';
## Task Generate a SQL query to answer the following question: `What was the date for monaco grand prix?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" t...
SELECT "date" FROM "season_review" WHERE "pole_position"='Alain Prost';
## Task Generate a SQL query to answer the following question: `What was the date for the pole position of alain prost?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "p...
SELECT "race_winner" FROM "season_review" WHERE "race"='Portuguese Grand Prix';
## Task Generate a SQL query to answer the following question: `What is the race winer of the portuguese grand prix?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole...
SELECT "race_winner" FROM "season_review" WHERE "date"='12 June';
## Task Generate a SQL query to answer the following question: `what's the race winner with date being 12 june` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_posit...
SELECT "constructor" FROM "season_review" WHERE "location"='Hockenheimring';
## Task Generate a SQL query to answer the following question: `what's the constructor with location being hockenheimring` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, ...
SELECT "race_winner" FROM "season_review" WHERE "location"='Jacarepaguá';
## Task Generate a SQL query to answer the following question: `what's the race winner with location being jacarepaguá` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "po...
SELECT COUNT("race_winner") FROM "season_review" WHERE "rnd"=10;
## Task Generate a SQL query to answer the following question: `what's the total number of race winner with rnd being 10` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "...
SELECT "pole_position" FROM "season_review" WHERE "location"='Hockenheimring';
## Task Generate a SQL query to answer the following question: `what's the pole position with location being hockenheimring` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, ...
SELECT "report" FROM "season_review" WHERE "rnd"=4;
## Task Generate a SQL query to answer the following question: `what's the report with rnd being 4` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, ...
SELECT "venue" FROM "double_premiership_teams" WHERE "premier"='Essendon' AND "attendance"=30824;
## Task Generate a SQL query to answer the following question: `What venue has an attendance of 30824 at Essendon in 1984?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "double_premiership_teams" ( "season" real, "premier" text, "runner_up" text...
SELECT "venue" FROM "double_premiership_teams" WHERE "runner_up"='Hawthorn';
## Task Generate a SQL query to answer the following question: `What other venue was a runner up to Hawthorn?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "double_premiership_teams" ( "season" real, "premier" text, "runner_up" text, "score" t...
SELECT "premiership" FROM "double_premiership_teams" WHERE "runner_up"='Geelong';
## Task Generate a SQL query to answer the following question: `What is the other premiership when the runner up wis Geelong?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "double_premiership_teams" ( "season" real, "premier" text, "runner_up" t...
SELECT "runner_up" FROM "double_premiership_teams" WHERE "score"='9.12 (66) – 5.6 (36)';
## Task Generate a SQL query to answer the following question: `Who are all the runner ups when the score is 9.12 (66) – 5.6 (36)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "double_premiership_teams" ( "season" real, "premier" text, "runner_...
SELECT "fastest_lap" FROM "season_review" WHERE "pole_position"='Patrick Tambay';
## Task Generate a SQL query to answer the following question: `Who had the fastest lap in the race where Patrick Tambay was on the pole?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "lo...
SELECT "race" FROM "season_review" WHERE "pole_position"='Nelson Piquet' AND "location"='Nürburgring';
## Task Generate a SQL query to answer the following question: `What race had Nelson Piquet on the pole and was in Nürburgring?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" te...
SELECT COUNT("rnd") FROM "season_review" WHERE "fastest_lap"='Patrick Tambay';
## Task Generate a SQL query to answer the following question: `How many rounds did Patrick Tambay record the fastest lap?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, ...
SELECT "race" FROM "season_review" WHERE "location"='Kyalami';
## Task Generate a SQL query to answer the following question: `Which race is located in kyalami?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, ...
SELECT "fastest_lap" FROM "season_review" WHERE "pole_position"='Gilles Villeneuve';
## Task Generate a SQL query to answer the following question: `What is the fastest lap with pole position of gilles villeneuve?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" t...
SELECT "fastest_lap" FROM "season_review" WHERE "race"='Dutch Grand Prix';
## Task Generate a SQL query to answer the following question: `Who did the fastest lap in the dutch grand prix?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_pos...
SELECT "fastest_lap" FROM "season_review" WHERE "race_winner"='John Watson';
## Task Generate a SQL query to answer the following question: `Who did the fastest lap with the race winner john watson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, ...
SELECT "constructor" FROM "season_review" WHERE "date"='9 May';
## Task Generate a SQL query to answer the following question: `What is the constructor for 9 May?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, ...
SELECT "pole_position" FROM "season_review" WHERE "fastest_lap"='Nelson Piquet' AND "constructor"='Ferrari';
## Task Generate a SQL query to answer the following question: `What is the pole position for the race with the fastest lap by Nelson Piquet and the constructor is Ferrari?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rnd" real, ...
SELECT "report" FROM "season_review" WHERE "race"='San Marino Grand Prix';
## Task Generate a SQL query to answer the following question: `What is the report listed for the race in San Marino Grand Prix?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" t...
SELECT "constructor" FROM "season_review" WHERE "location"='Monza';
## Task Generate a SQL query to answer the following question: `Who was the constructor in the location Monza?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_posit...
SELECT COUNT("race") FROM "season_review" WHERE "pole_position"='Alain Prost' AND "race_winner"='Keke Rosberg';
## Task Generate a SQL query to answer the following question: `How many races had the pole position Alain Prost and the race winner Keke Rosberg?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" te...
SELECT "report" FROM "season_review" WHERE "location"='Österreichring';
## Task Generate a SQL query to answer the following question: `what's the report with location  österreichring` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_posi...
SELECT "report" FROM "season_review" WHERE "race"='Argentine Grand Prix';
## Task Generate a SQL query to answer the following question: `what's the report with race argentine grand prix` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_pos...
SELECT MIN("rnd") FROM "season_review" WHERE "race"='Italian Grand Prix';
## Task Generate a SQL query to answer the following question: `what's the minimum rnd with race  italian grand prix` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole...
SELECT COUNT("report") FROM "season_review" WHERE "date"='29 April';
## Task Generate a SQL query to answer the following question: `what's the total number of report with date  29 april` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pol...
SELECT "race_winner" FROM "season_review" WHERE "constructor"='Renault';
## Task Generate a SQL query to answer the following question: `what's the race winner with constructor  renault` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_pos...
SELECT "date" FROM "season_review" WHERE "rnd"=1;
## Task Generate a SQL query to answer the following question: `what's the date with rnd  1` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" text, "faste...
SELECT COUNT("date") FROM "season_review" WHERE "race"='Monaco Grand Prix';
## Task Generate a SQL query to answer the following question: `How many days is the Monaco Grand Prix?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_position" te...
SELECT COUNT("rnd") FROM "season_review" WHERE "pole_position"='James Hunt' AND "fastest_lap"='John Watson';
## Task Generate a SQL query to answer the following question: `How many rounds were won with James Hunt as pole position and John Watson as fastest lap?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rnd" real, "race" text, "...
SELECT COUNT("fastest_lap") FROM "season_review" WHERE "location"='Dijon-Prenois';
## Task Generate a SQL query to answer the following question: `The Dijon-prenois had how many fastest laps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "rnd" real, "race" text, "date" text, "location" text, "pole_positio...