output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT SUM("games") FROM "rebounds" WHERE "name"='curtis borchardt' AND "rebounds">274;
## Task Generate a SQL query to answer the following question: `Which game did Curtis Borchardt play with more than 274 rebounds?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "rebounds" real ); ### SQL Given the database schema, here is the SQL query that answers `Which game did Curtis Borchardt play with more than 274 rebounds?`: ```sql
SELECT "team" FROM "rebounds" WHERE "rebounds"<275 AND "games"<34 AND "name"='curtis borchardt';
## Task Generate a SQL query to answer the following question: `In game 34 Curtis Borchardt played on which team with less than 275 rebounds?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "rebounds" real ); ### SQL Given the database schema, here is the SQL query that answers `In game 34 Curtis Borchardt played on which team with less than 275 rebounds?`: ```sql
SELECT "rebounds" FROM "rebounds" WHERE "rank"=4;
## Task Generate a SQL query to answer the following question: `How many rebounds occurred in a rank 4 game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "rebounds" real ); ### SQL Given the database schema, here is the SQL query that answers `How many rebounds occurred in a rank 4 game?`: ```sql
SELECT "games" FROM "rebounds" WHERE "name"='bud eley';
## Task Generate a SQL query to answer the following question: `Which game did was Bud Eley a player in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "rebounds" real ); ### SQL Given the database schema, here is the SQL query that answers `Which game did was Bud Eley a player in?`: ```sql
SELECT SUM("games") FROM "rebounds" WHERE "rank"<4 AND "rebounds"<275 AND "team"='bruesa gbc';
## Task Generate a SQL query to answer the following question: `Which game did Bruesa GBC play in with fewer than 275 rebounds that is ranked less than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "rebounds" real ); ### SQL Given the database schema, here is the SQL query that answers `Which game did Bruesa GBC play in with fewer than 275 rebounds that is ranked less than 4?`: ```sql
SELECT "grid" FROM "race" WHERE "driver"='johnny herbert';
## Task Generate a SQL query to answer the following question: `What is the grid for johnny herbert?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the grid for johnny herbert?`: ```sql
SELECT AVG("rank") FROM "biggest_third_week_domestic_nett_gross_e" WHERE "studio_s"='dharma productions' AND "year"<2013;
## Task Generate a SQL query to answer the following question: `Tell me the average rank for dharma productions before 2013` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "biggest_third_week_domestic_nett_gross_e" ( "rank" real, "movie" text, "year" real, "studio_s" text, "third_week_nett_gross" real ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the average rank for dharma productions before 2013`: ```sql
SELECT AVG("year") FROM "biggest_third_week_domestic_nett_gross_e" WHERE "rank"=4;
## Task Generate a SQL query to answer the following question: `Name the average year for 4 rank` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "biggest_third_week_domestic_nett_gross_e" ( "rank" real, "movie" text, "year" real, "studio_s" text, "third_week_nett_gross" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the average year for 4 rank`: ```sql
SELECT MIN("rank") FROM "biggest_third_week_domestic_nett_gross_e" WHERE "year"=2013 AND "studio_s"='red chillies entertainment';
## Task Generate a SQL query to answer the following question: `Name the lowest rank for red chillies entertainment for 2013` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "biggest_third_week_domestic_nett_gross_e" ( "rank" real, "movie" text, "year" real, "studio_s" text, "third_week_nett_gross" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the lowest rank for red chillies entertainment for 2013`: ```sql
SELECT "date" FROM "round_6" WHERE "away_team"='richmond';
## Task Generate a SQL query to answer the following question: `Which date did richmond play as away?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which date did richmond play as away?`: ```sql
SELECT SUM("rank") FROM "leaders" WHERE "wins"=5 AND "events"<32;
## Task Generate a SQL query to answer the following question: `What is the rank for the player with 5 wins and under 32 events?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "events" real, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the rank for the player with 5 wins and under 32 events?`: ```sql
SELECT COUNT("rank") FROM "leaders" WHERE "earnings">'1,627,890';
## Task Generate a SQL query to answer the following question: `What is the rank for the player with over $1,627,890?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "events" real, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the rank for the player with over $1,627,890?`: ```sql
SELECT SUM("rank") FROM "leaders" WHERE "earnings"<'1,162,581' AND "wins">2;
## Task Generate a SQL query to answer the following question: `What is the rank for the player with over 2 wins and under $1,162,581 in earnings?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "events" real, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the rank for the player with over 2 wins and under $1,162,581 in earnings?`: ```sql
SELECT "issue_price" FROM "land_sea_and_rail_transportation_series" WHERE "artist"='john mardon' AND "year"=2000 AND "mintage"='included in steam buggy';
## Task Generate a SQL query to answer the following question: `What is the issue price of a Year 2000 coin by artist John Mardon of the Included in Steam Buggy mintage.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "land_sea_and_rail_transportation_series" ( "year" real, "theme" text, "artist" text, "mintage" text, "issue_price" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the issue price of a Year 2000 coin by artist John Mardon of the Included in Steam Buggy mintage.`: ```sql
SELECT "theme" FROM "land_sea_and_rail_transportation_series" WHERE "year"=2002 AND "artist"='dan fell';
## Task Generate a SQL query to answer the following question: `What is the theme of the Year 2002 which was created by Artist Dan Fell?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "land_sea_and_rail_transportation_series" ( "year" real, "theme" text, "artist" text, "mintage" text, "issue_price" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the theme of the Year 2002 which was created by Artist Dan Fell?`: ```sql
SELECT "artist" FROM "land_sea_and_rail_transportation_series" WHERE "year"<2002 AND "mintage"='41,828';
## Task Generate a SQL query to answer the following question: `What artist had a mintage of 41,828 before year 2002?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "land_sea_and_rail_transportation_series" ( "year" real, "theme" text, "artist" text, "mintage" text, "issue_price" text ); ### SQL Given the database schema, here is the SQL query that answers `What artist had a mintage of 41,828 before year 2002?`: ```sql
SELECT "issue_price" FROM "land_sea_and_rail_transportation_series" WHERE "mintage"='31,997';
## Task Generate a SQL query to answer the following question: `A mintage of 31,997 has what issue price?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "land_sea_and_rail_transportation_series" ( "year" real, "theme" text, "artist" text, "mintage" text, "issue_price" text ); ### SQL Given the database schema, here is the SQL query that answers `A mintage of 31,997 has what issue price?`: ```sql
SELECT "control_trailers" FROM "manufacturers" WHERE "motors"='52';
## Task Generate a SQL query to answer the following question: `Tell me the control trailers for 52 motors` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "manufacturers" ( "year" text, "builder" text, "motors" text, "trailers" text, "control_trailers" text ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the control trailers for 52 motors`: ```sql
SELECT "year" FROM "manufacturers" WHERE "builder"='mcwf' AND "control_trailers"='35';
## Task Generate a SQL query to answer the following question: `Name the year for mcwf and control trailers of 35` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "manufacturers" ( "year" text, "builder" text, "motors" text, "trailers" text, "control_trailers" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the year for mcwf and control trailers of 35`: ```sql
SELECT "trailers" FROM "manufacturers" WHERE "year"='1931' AND "builder"='mccw';
## Task Generate a SQL query to answer the following question: `I want the trailers for 1931 and builder of mccw` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "manufacturers" ( "year" text, "builder" text, "motors" text, "trailers" text, "control_trailers" text ); ### SQL Given the database schema, here is the SQL query that answers `I want the trailers for 1931 and builder of mccw`: ```sql
SELECT "control_trailers" FROM "manufacturers" WHERE "year"='1931' AND "builder"='grcw';
## Task Generate a SQL query to answer the following question: `I want the control trailers for 1931 with builder of grcw` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "manufacturers" ( "year" text, "builder" text, "motors" text, "trailers" text, "control_trailers" text ); ### SQL Given the database schema, here is the SQL query that answers `I want the control trailers for 1931 with builder of grcw`: ```sql
SELECT "trailers" FROM "manufacturers" WHERE "motors"='145';
## Task Generate a SQL query to answer the following question: `I want the trailers for motors of 145` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "manufacturers" ( "year" text, "builder" text, "motors" text, "trailers" text, "control_trailers" text ); ### SQL Given the database schema, here is the SQL query that answers `I want the trailers for motors of 145`: ```sql
SELECT SUM("1930") FROM "core_county_population_statistics" WHERE "2006_est"<'44,726' AND "county"='frio';
## Task Generate a SQL query to answer the following question: `What is the 1930 population when the 2006 est. is less than 44,726 in the county of frio?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "core_county_population_statistics" ( "county" text, "1900" real, "1930" real, "1950" real, "2000" real, "2006_est" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the 1930 population when the 2006 est. is less than 44,726 in the county of frio?`: ```sql
SELECT MAX("1930") FROM "core_county_population_statistics" WHERE "2000"='43,966' AND "1900"<'8,401';
## Task Generate a SQL query to answer the following question: `What is the highest 1930 population when the 2000 population is 43,966 and the 1900 population is less than 8,401?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "core_county_population_statistics" ( "county" text, "1900" real, "1930" real, "1950" real, "2000" real, "2006_est" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest 1930 population when the 2000 population is 43,966 and the 1900 population is less than 8,401?`: ```sql
SELECT SUM("wins") FROM "summary" WHERE "top_5"<1;
## Task Generate a SQL query to answer the following question: `Tell me the sum of wins for top 5 less than 1` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the sum of wins for top 5 less than 1`: ```sql
SELECT AVG("events") FROM "summary" WHERE "top_10"<4;
## Task Generate a SQL query to answer the following question: `I want the average events for top 10 less than 4` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); ### SQL Given the database schema, here is the SQL query that answers `I want the average events for top 10 less than 4`: ```sql
SELECT MAX("cuts_made") FROM "summary" WHERE "top_5"<3 AND "top_10">4;
## Task Generate a SQL query to answer the following question: `Name the highest cuts made when top 5 is less than 3 and top ten is more than 4` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the highest cuts made when top 5 is less than 3 and top ten is more than 4`: ```sql
SELECT MAX("top_25") FROM "summary" WHERE "events">20 AND "top_10">21;
## Task Generate a SQL query to answer the following question: `I want the most top 25 when events are more than 20 and top 10 is more than 21` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); ### SQL Given the database schema, here is the SQL query that answers `I want the most top 25 when events are more than 20 and top 10 is more than 21`: ```sql
SELECT SUM("attendance") FROM "game_log" WHERE "date"='april 28';
## Task Generate a SQL query to answer the following question: `What was the Attendance on April 28?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "save" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Attendance on April 28?`: ```sql
SELECT "released" FROM "dvd_releases" WHERE "dvd_name"='escape to river cottage';
## Task Generate a SQL query to answer the following question: `What was escape to river cottage released?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "dvd_releases" ( "dvd_name" text, "released" text, "audio" text, "aspect_ratio" text, "duration" text, "number_of_episodes" real, "num_of_discs" real ); ### SQL Given the database schema, here is the SQL query that answers `What was escape to river cottage released?`: ```sql
SELECT "dvd_name" FROM "dvd_releases" WHERE "duration"='2 hours 22 minutes';
## Task Generate a SQL query to answer the following question: `What DVD has a time of 2 hours 22 minutes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "dvd_releases" ( "dvd_name" text, "released" text, "audio" text, "aspect_ratio" text, "duration" text, "number_of_episodes" real, "num_of_discs" real ); ### SQL Given the database schema, here is the SQL query that answers `What DVD has a time of 2 hours 22 minutes?`: ```sql
SELECT "date" FROM "schedule" WHERE "week"=7;
## Task Generate a SQL query to answer the following question: `What was the date for the game in week 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date for the game in week 7?`: ```sql
SELECT "date" FROM "schedule" WHERE "attendance"='78,431';
## Task Generate a SQL query to answer the following question: `On what date was the attendance of the crowd 78,431?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `On what date was the attendance of the crowd 78,431?`: ```sql
SELECT "date" FROM "february" WHERE "home"='columbus';
## Task Generate a SQL query to answer the following question: `What was the date of the Capitals game when Columbus was the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date of the Capitals game when Columbus was the home team?`: ```sql
SELECT "date" FROM "international_goals" WHERE "competition"='2002 african cup of nations';
## Task Generate a SQL query to answer the following question: `The 2002 African Cup of Nations was held on what date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `The 2002 African Cup of Nations was held on what date?`: ```sql
SELECT "competition" FROM "international_goals" WHERE "venue"='stade fernand fournier, arles';
## Task Generate a SQL query to answer the following question: `Which competition took place at Stade Fernand Fournier, Arles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `Which competition took place at Stade Fernand Fournier, Arles?`: ```sql
SELECT COUNT("crowd") FROM "round_2" WHERE "away_team"='fitzroy';
## Task Generate a SQL query to answer the following question: `What was the attendance of the game where fitzroy was the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the attendance of the game where fitzroy was the away team?`: ```sql
SELECT "artist" FROM "gold_plated_proof_silver_dollars" WHERE "theme"='400th anniversary of quebec';
## Task Generate a SQL query to answer the following question: `Which artist created the silver dollar for the 400th anniversary of Quebec?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "gold_plated_proof_silver_dollars" ( "year" real, "theme" text, "artist" text, "mintage" text, "issue_price" text ); ### SQL Given the database schema, here is the SQL query that answers `Which artist created the silver dollar for the 400th anniversary of Quebec?`: ```sql
SELECT "year" FROM "gold_plated_proof_silver_dollars" WHERE "artist"='royal canadian mint staff';
## Task Generate a SQL query to answer the following question: `Which year did the Royal Canadian Mint Staff create a silver dollar?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "gold_plated_proof_silver_dollars" ( "year" real, "theme" text, "artist" text, "mintage" text, "issue_price" text ); ### SQL Given the database schema, here is the SQL query that answers `Which year did the Royal Canadian Mint Staff create a silver dollar?`: ```sql
SELECT "mintage" FROM "gold_plated_proof_silver_dollars" WHERE "artist"='suzanne duranceau';
## Task Generate a SQL query to answer the following question: `How many coins by Suzanne Duranceau were minted?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "gold_plated_proof_silver_dollars" ( "year" real, "theme" text, "artist" text, "mintage" text, "issue_price" text ); ### SQL Given the database schema, here is the SQL query that answers `How many coins by Suzanne Duranceau were minted?`: ```sql
SELECT "method" FROM "mixed_martial_arts_record" WHERE "round"<3 AND "res"='nc';
## Task Generate a SQL query to answer the following question: `What was the method for the resolution of nc where the fight lasted less than 3 rounds?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the method for the resolution of nc where the fight lasted less than 3 rounds?`: ```sql
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "round"<4 AND "event"='ufc 90';
## Task Generate a SQL query to answer the following question: `Who was the opponent during the UFC 90 event with a fight that lasted less than 4 rounds?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent during the UFC 90 event with a fight that lasted less than 4 rounds?`: ```sql
SELECT "method" FROM "mixed_martial_arts_record" WHERE "event"='ufc 160';
## Task Generate a SQL query to answer the following question: `What was the method for the resolution of the fight at UFC 160?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the method for the resolution of the fight at UFC 160?`: ```sql
SELECT "league" FROM "list_of_derby_del_sole_results" WHERE "date"='5 october 1997';
## Task Generate a SQL query to answer the following question: `What is the league on 5 October 1997?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_derby_del_sole_results" ( "season" text, "match" text, "result" text, "league" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the league on 5 October 1997?`: ```sql
SELECT "season" FROM "list_of_derby_del_sole_results" WHERE "date"='30 october 1977';
## Task Generate a SQL query to answer the following question: `Which season was on 30 October 1977?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_derby_del_sole_results" ( "season" text, "match" text, "result" text, "league" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which season was on 30 October 1977?`: ```sql
SELECT "season" FROM "list_of_derby_del_sole_results" WHERE "match"='roma-napoli' AND "date"='12 september 1993';
## Task Generate a SQL query to answer the following question: `What season had the Roma-Napoli match on 12 September 1993?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_derby_del_sole_results" ( "season" text, "match" text, "result" text, "league" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What season had the Roma-Napoli match on 12 September 1993?`: ```sql
SELECT "club_province" FROM "2007_rugby_world_cup_squads" WHERE "caps">18 AND "position"='fly-half';
## Task Generate a SQL query to answer the following question: `What club/province for the player with over 18 caps and plays the fly-half?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text ); ### SQL Given the database schema, here is the SQL query that answers `What club/province for the player with over 18 caps and plays the fly-half?`: ```sql
SELECT "driver" FROM "race" WHERE "laps"<18 AND "grid"<16;
## Task Generate a SQL query to answer the following question: `What driver has less than 18 laps and a grid number under 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What driver has less than 18 laps and a grid number under 16?`: ```sql
SELECT "constructor" FROM "race" WHERE "laps">70 AND "time_retired"='+12.535';
## Task Generate a SQL query to answer the following question: `Who constructed the car with laps more than 70 and a time/retired of +12.535?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `Who constructed the car with laps more than 70 and a time/retired of +12.535?`: ```sql
SELECT MAX("laps") FROM "race" WHERE "time_retired"='+1 lap' AND "driver"='alexander wurz' AND "grid"<14;
## Task Generate a SQL query to answer the following question: `What was Alexander Wurz's highest laps when he has a grid less than 14 and a time/retired of +1 lap.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What was Alexander Wurz's highest laps when he has a grid less than 14 and a time/retired of +1 lap.`: ```sql
SELECT "home_team" FROM "round_9" WHERE "away_team"='footscray';
## Task Generate a SQL query to answer the following question: `Who was Footscray's opponent on June 15th of 1968?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was Footscray's opponent on June 15th of 1968?`: ```sql
SELECT "team" FROM "kensington_lakes_activities_association" WHERE "previous_conference"='western lakes activities association' AND "location"='westland';
## Task Generate a SQL query to answer the following question: `Which team is located in Westland and was previously in the Western Lakes Activities Association?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kensington_lakes_activities_association" ( "team" text, "location" text, "joined" real, "conference" text, "division" text, "previous_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `Which team is located in Westland and was previously in the Western Lakes Activities Association?`: ```sql
SELECT MAX("joined") FROM "kensington_lakes_activities_association" WHERE "division"='west' AND "location"='highland township';
## Task Generate a SQL query to answer the following question: `What was the most recent year that a team located in Highland Township and a member of the West Division joined the Kensington Lakes Activities Association?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kensington_lakes_activities_association" ( "team" text, "location" text, "joined" real, "conference" text, "division" text, "previous_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the most recent year that a team located in Highland Township and a member of the West Division joined the Kensington Lakes Activities Association?`: ```sql
SELECT "race" FROM "season_review" WHERE "race_winner"='nigel mansell' AND "location"='estoril';
## Task Generate a SQL query to answer the following question: `What was the race with nigel mansell winning in estoril?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the race with nigel mansell winning in estoril?`: ```sql
SELECT "pole_position" FROM "season_review" WHERE "race"='belgian grand prix';
## Task Generate a SQL query to answer the following question: `What was the pole position for the belgian grand prix?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the pole position for the belgian grand prix?`: ```sql
SELECT "race_winner" FROM "season_review" WHERE "race"='australian grand prix';
## Task Generate a SQL query to answer the following question: `Who won the australian grand prix?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won the australian grand prix?`: ```sql
SELECT "pole_position" FROM "season_review" WHERE "location"='jerez';
## Task Generate a SQL query to answer the following question: `What was the pole position for jerez?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the pole position for jerez?`: ```sql
SELECT "enzyme" FROM "the_six_urea_cycle_disorders" WHERE "disorder"='ornithine transcarbamylase deficiency';
## Task Generate a SQL query to answer the following question: `What is the enzyme involved in the disorder of Ornithine Transcarbamylase deficiency?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_six_urea_cycle_disorders" ( "location" text, "abb" text, "enzyme" text, "disorder" text, "measurements" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the enzyme involved in the disorder of Ornithine Transcarbamylase deficiency?`: ```sql
SELECT "measurements" FROM "the_six_urea_cycle_disorders" WHERE "disorder"='ornithine transcarbamylase deficiency';
## Task Generate a SQL query to answer the following question: `What lab measurements can help diagnosie ornithine transcarbamylase deficiency?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_six_urea_cycle_disorders" ( "location" text, "abb" text, "enzyme" text, "disorder" text, "measurements" text ); ### SQL Given the database schema, here is the SQL query that answers `What lab measurements can help diagnosie ornithine transcarbamylase deficiency?`: ```sql
SELECT "abb" FROM "the_six_urea_cycle_disorders" WHERE "disorder"='carbamoyl phosphate synthetase i deficiency';
## Task Generate a SQL query to answer the following question: `What is the abbreviation of the enzyme involved in carbamoyl phosphate synthetase i deficiency?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_six_urea_cycle_disorders" ( "location" text, "abb" text, "enzyme" text, "disorder" text, "measurements" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the abbreviation of the enzyme involved in carbamoyl phosphate synthetase i deficiency?`: ```sql
SELECT "venue" FROM "round_7" WHERE "home_team"='melbourne';
## Task Generate a SQL query to answer the following question: `what is the venue when the home team is melbourne?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the venue when the home team is melbourne?`: ```sql
SELECT "away_team" FROM "round_7" WHERE "away_team_score"='10.12 (72)';
## Task Generate a SQL query to answer the following question: `who is the away team when the away team score is 10.12 (72)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `who is the away team when the away team score is 10.12 (72)?`: ```sql
SELECT "date" FROM "round_7" WHERE "home_team"='st kilda';
## Task Generate a SQL query to answer the following question: `what is the date when the home team is st kilda?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the date when the home team is st kilda?`: ```sql
SELECT "date" FROM "round_7" WHERE "venue"='junction oval';
## Task Generate a SQL query to answer the following question: `what is the date when the venue is junction oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the date when the venue is junction oval?`: ```sql
SELECT "home_team_score" FROM "round_7" WHERE "venue"='mcg';
## Task Generate a SQL query to answer the following question: `What is the home team score when played at mcg?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the home team score when played at mcg?`: ```sql
SELECT "away_team" FROM "round_7" WHERE "venue"='junction oval';
## Task Generate a SQL query to answer the following question: `who is the away team when played at junction oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `who is the away team when played at junction oval?`: ```sql
SELECT SUM("top_speed_km_h") FROM "petrol_engines" WHERE "model"='1.8 20v t';
## Task Generate a SQL query to answer the following question: `What is the top speed of the model 1.8 20v t?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "petrol_engines" ( "model" text, "cylinders_valves" text, "displacement_cc" real, "max_power_k_w_ps_at_rpm" text, "max_torque_nm_at_rpm" text, "engine_code" text, "top_speed_km_h" real, "production_period" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the top speed of the model 1.8 20v t?`: ```sql
SELECT "max_torque_nm_at_rpm" FROM "petrol_engines" WHERE "model"='1.4 16v';
## Task Generate a SQL query to answer the following question: `What is the max torque of model 1.4 16v?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "petrol_engines" ( "model" text, "cylinders_valves" text, "displacement_cc" real, "max_power_k_w_ps_at_rpm" text, "max_torque_nm_at_rpm" text, "engine_code" text, "top_speed_km_h" real, "production_period" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the max torque of model 1.4 16v?`: ```sql
SELECT "rounds" FROM "teams_and_drivers" WHERE "driver"='ken wharton';
## Task Generate a SQL query to answer the following question: `How many rounds did Ken Wharton go?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams_and_drivers" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text ); ### SQL Given the database schema, here is the SQL query that answers `How many rounds did Ken Wharton go?`: ```sql
SELECT "driver" FROM "teams_and_drivers" WHERE "chassis"='166 c 500';
## Task Generate a SQL query to answer the following question: `What driver has a 166 c 500 chassis?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams_and_drivers" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text ); ### SQL Given the database schema, here is the SQL query that answers `What driver has a 166 c 500 chassis?`: ```sql
SELECT "name" FROM "maungakiekie_tamaki_local_board" WHERE "decile"='3' AND "roll"<310 AND "area"='onehunga';
## Task Generate a SQL query to answer the following question: `What is the Onehunga school with a decile 3 and smaller than 310 rolls?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "maungakiekie_tamaki_local_board" ( "name" text, "years" text, "area" text, "authority" text, "decile" text, "roll" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Onehunga school with a decile 3 and smaller than 310 rolls?`: ```sql
SELECT "authority" FROM "maungakiekie_tamaki_local_board" WHERE "area"='ellerslie' AND "decile"='7';
## Task Generate a SQL query to answer the following question: `What is the authority status of the school in Ellerslie with a decile of 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "maungakiekie_tamaki_local_board" ( "name" text, "years" text, "area" text, "authority" text, "decile" text, "roll" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the authority status of the school in Ellerslie with a decile of 7?`: ```sql
SELECT MAX("roll") FROM "maungakiekie_tamaki_local_board" WHERE "authority"='state' AND "name"='sylvia park school';
## Task Generate a SQL query to answer the following question: `What is the biggest roll number of Sylvia Park School, which has a state authority?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "maungakiekie_tamaki_local_board" ( "name" text, "years" text, "area" text, "authority" text, "decile" text, "roll" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the biggest roll number of Sylvia Park School, which has a state authority?`: ```sql
SELECT "name" FROM "maungakiekie_tamaki_local_board" WHERE "decile"='1' AND "authority"='state' AND "area"='otahuhu';
## Task Generate a SQL query to answer the following question: `What is the name of the school with a decile of 1, a state authority, and located in Otahuhu?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "maungakiekie_tamaki_local_board" ( "name" text, "years" text, "area" text, "authority" text, "decile" text, "roll" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the school with a decile of 1, a state authority, and located in Otahuhu?`: ```sql
SELECT "special_notes" FROM "nhl_coins" WHERE "year"<2009;
## Task Generate a SQL query to answer the following question: `What is the special notes value for years under 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nhl_coins" ( "year" real, "theme" text, "artist" text, "issue_price" real, "special_notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the special notes value for years under 2009?`: ```sql
SELECT COUNT("year") FROM "nhl_coins" WHERE "theme"='toronto maple leafs' AND "issue_price"=24.95;
## Task Generate a SQL query to answer the following question: `How many years have a theme of Toronto Maple Leafs and an Issue Price of 24.95?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nhl_coins" ( "year" real, "theme" text, "artist" text, "issue_price" real, "special_notes" text ); ### SQL Given the database schema, here is the SQL query that answers `How many years have a theme of Toronto Maple Leafs and an Issue Price of 24.95?`: ```sql
SELECT "winner" FROM "race_calendar" WHERE "circuit"='winton motor raceway';
## Task Generate a SQL query to answer the following question: `Who was the winner for the Winton Motor Raceway circuit?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar" ( "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the winner for the Winton Motor Raceway circuit?`: ```sql
SELECT "team" FROM "race_calendar" WHERE "race_title"='mallala';
## Task Generate a SQL query to answer the following question: `What was the team that held the race title of Mallala?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar" ( "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the team that held the race title of Mallala?`: ```sql
SELECT "driver" FROM "race" WHERE "laps"<9 AND "grid"=13;
## Task Generate a SQL query to answer the following question: `Name the driver for Laps less than 9 and a grid of 13` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the driver for Laps less than 9 and a grid of 13`: ```sql
SELECT "winners" FROM "winners" WHERE "runners_up"='rosenborg';
## Task Generate a SQL query to answer the following question: `Who was the winner in the competition in which the runner-up was Rosenborg?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "years" text, "winners" text, "runners_up" text, "score" text, "third" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the winner in the competition in which the runner-up was Rosenborg?`: ```sql
SELECT "years" FROM "winners" WHERE "runners_up"='odd grenland';
## Task Generate a SQL query to answer the following question: `What was the year of the competition in which Odd Grenland was the runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "years" text, "winners" text, "runners_up" text, "score" text, "third" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the year of the competition in which Odd Grenland was the runner-up?`: ```sql
SELECT "winners" FROM "winners" WHERE "runners_up"='lillestrøm' AND "third"='lyn';
## Task Generate a SQL query to answer the following question: `Who was the winner in the competition in which Lyn took third place and Lillestrøm was the runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "years" text, "winners" text, "runners_up" text, "score" text, "third" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the winner in the competition in which Lyn took third place and Lillestrøm was the runner-up?`: ```sql
SELECT "report" FROM "season_review" WHERE "location"='buenos aires';
## Task Generate a SQL query to answer the following question: `What was the report in Buenos Aires?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the report in Buenos Aires?`: ```sql
SELECT "date" FROM "season_review" WHERE "race"='italian grand prix';
## Task Generate a SQL query to answer the following question: `What date was the Italian Grand Prix?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What date was the Italian Grand Prix?`: ```sql
SELECT "report" FROM "season_review" WHERE "pole_position"='mario andretti' AND "fastest_lap"='jean-pierre jarier';
## Task Generate a SQL query to answer the following question: `What was the report when Mario Andretti held pole position and Jean-Pierre Jarier had the fastest lap?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the report when Mario Andretti held pole position and Jean-Pierre Jarier had the fastest lap?`: ```sql
SELECT "report" FROM "season_review" WHERE "race"='belgian grand prix';
## Task Generate a SQL query to answer the following question: `What was the report in the Belgian Grand Prix?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the report in the Belgian Grand Prix?`: ```sql
SELECT "race_winner" FROM "season_review" WHERE "pole_position"='niki lauda';
## Task Generate a SQL query to answer the following question: `Who was the winner when Niki Lauda held pole position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the winner when Niki Lauda held pole position?`: ```sql
SELECT "fastest_lap" FROM "season_review" WHERE "race"='monaco grand prix';
## Task Generate a SQL query to answer the following question: `Who had the fastest lap in the Monaco Grand Prix?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_review" ( "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had the fastest lap in the Monaco Grand Prix?`: ```sql
SELECT "object_type" FROM "2701_2800" WHERE "constellation"='cancer';
## Task Generate a SQL query to answer the following question: `Which Object type has a Constellation of cancer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2701_2800" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Object type has a Constellation of cancer?`: ```sql
SELECT MAX("ngc_number") FROM "2701_2800" WHERE "constellation"='ursa major';
## Task Generate a SQL query to answer the following question: `Which NGC number has a Constellation of ursa major?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2701_2800" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text ); ### SQL Given the database schema, here is the SQL query that answers `Which NGC number has a Constellation of ursa major?`: ```sql
SELECT "constellation" FROM "2701_2800" WHERE "ngc_number"<2775 AND "declination_j2000"='°05′07″';
## Task Generate a SQL query to answer the following question: `Which Constellation has a NGC number smaller than 2775, and a Declination (J2000) of °05′07″?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2701_2800" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Constellation has a NGC number smaller than 2775, and a Declination (J2000) of °05′07″?`: ```sql
SELECT "object_type" FROM "2701_2800" WHERE "ngc_number"=2787;
## Task Generate a SQL query to answer the following question: `Which Object type has a NGC number of 2787?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2701_2800" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Object type has a NGC number of 2787?`: ```sql
SELECT SUM("crowd") FROM "round_13" WHERE "away_team_score"='14.2 (86)';
## Task Generate a SQL query to answer the following question: `What is the average crowd size for an away team with a score of 14.2 (86)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average crowd size for an away team with a score of 14.2 (86)?`: ```sql
SELECT "venue" FROM "round_13" WHERE "away_team"='st kilda';
## Task Generate a SQL query to answer the following question: `Where did St KIlda play their away game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Where did St KIlda play their away game?`: ```sql
SELECT "away_team" FROM "round_13" WHERE "away_team_score"='14.14 (98)';
## Task Generate a SQL query to answer the following question: `Which team scored 14.14 (98) at an away game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which team scored 14.14 (98) at an away game?`: ```sql
SELECT "country" FROM "production_history" WHERE "2009_capacity"='1228 mw';
## Task Generate a SQL query to answer the following question: `What country had a production capacity in 2009 of 1228 mw?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "production_history" ( "country" text, "2005_capacity" text, "2006_capacity" text, "2007_capacity" text, "2008_capacity" text, "2009_capacity" text, "2010_capacity" text, "2011_capacity" text, "2012_capacity" text ); ### SQL Given the database schema, here is the SQL query that answers `What country had a production capacity in 2009 of 1228 mw?`: ```sql
SELECT "score" FROM "regular_season" WHERE "visitor"='philadelphia' AND "record"='7–4–0';
## Task Generate a SQL query to answer the following question: `What is the score when Philadelphia was the visitor with a Record of 7–4–0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score when Philadelphia was the visitor with a Record of 7–4–0?`: ```sql
SELECT "nominee" FROM "original_broadway_production" WHERE "category"='outstanding featured actor in a musical' AND "result"='nominated';
## Task Generate a SQL query to answer the following question: `What was nominee nominated for outstanding featured actor in a musical?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "original_broadway_production" ( "year" real, "award" text, "category" text, "nominee" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was nominee nominated for outstanding featured actor in a musical?`: ```sql
SELECT "result" FROM "original_broadway_production" WHERE "award"='drama desk award' AND "nominee"='patricia mcgourty';
## Task Generate a SQL query to answer the following question: `What is the result of nominee, Patricia McGourty, for the drama desk award?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "original_broadway_production" ( "year" real, "award" text, "category" text, "nominee" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the result of nominee, Patricia McGourty, for the drama desk award?`: ```sql
SELECT "year" FROM "original_broadway_production" WHERE "nominee"='patricia mcgourty' AND "award"='tony award';
## Task Generate a SQL query to answer the following question: `What year was Patricia Mcgourty nominated for a Tony award?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "original_broadway_production" ( "year" real, "award" text, "category" text, "nominee" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What year was Patricia Mcgourty nominated for a Tony award?`: ```sql