output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "champion" FROM "division_ii" WHERE "location"='morrisville, nc' AND "semi_finalist_num2"='clemson';
## Task Generate a SQL query to answer the following question: `Which champion was from the location of Morrisville, NC, and whose SemiFinalist #2 of Clemson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_ii" ( "year" real, "champion" text, "score" text, "runner_up" text, "location" text, "semi_finalist_num1" text, "semi_finalist_num2" text ); ### SQL Given the database schema, here is the SQL query that answers `Which champion was from the location of Morrisville, NC, and whose SemiFinalist #2 of Clemson?`: ```sql
SELECT "champion" FROM "division_ii" WHERE "score"='12-1';
## Task Generate a SQL query to answer the following question: `Which champion got a score of 12-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_ii" ( "year" real, "champion" text, "score" text, "runner_up" text, "location" text, "semi_finalist_num1" text, "semi_finalist_num2" text ); ### SQL Given the database schema, here is the SQL query that answers `Which champion got a score of 12-1?`: ```sql
SELECT "champion" FROM "division_ii" WHERE "year"=2005 AND "semi_finalist_num1"='western carolina';
## Task Generate a SQL query to answer the following question: `Who was champion in 2005 where the semi-finalist was #1 in western Carolina?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_ii" ( "year" real, "champion" text, "score" text, "runner_up" text, "location" text, "semi_finalist_num1" text, "semi_finalist_num2" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was champion in 2005 where the semi-finalist was #1 in western Carolina?`: ```sql
SELECT "runner_up" FROM "division_ii" WHERE "year"<2006 AND "champion"='elon';
## Task Generate a SQL query to answer the following question: `Which runner-up placed in a year prior to 2006 and whose Champion was Elon?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_ii" ( "year" real, "champion" text, "score" text, "runner_up" text, "location" text, "semi_finalist_num1" text, "semi_finalist_num2" text ); ### SQL Given the database schema, here is the SQL query that answers `Which runner-up placed in a year prior to 2006 and whose Champion was Elon?`: ```sql
SELECT "wheel_arrangement" FROM "fairbanks_morse" WHERE "builder_s_model"='cf-16-4' AND "total_produced"=16;
## Task Generate a SQL query to answer the following question: `What is the wheel arrangement of cf-16-4, and 16 produced?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fairbanks_morse" ( "prr_class" text, "builder_s_model" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "service" text, "power_output" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the wheel arrangement of cf-16-4, and 16 produced?`: ```sql
SELECT "power_output" FROM "fairbanks_morse" WHERE "wheel_arrangement"='b-b' AND "build_date"='1952';
## Task Generate a SQL query to answer the following question: `What is the power of b-b wheel arrangement, built in 1952?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fairbanks_morse" ( "prr_class" text, "builder_s_model" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "service" text, "power_output" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the power of b-b wheel arrangement, built in 1952?`: ```sql
SELECT "build_date" FROM "fairbanks_morse" WHERE "service"='freight' AND "wheel_arrangement"='c-c';
## Task Generate a SQL query to answer the following question: `When was the build date for c-c wheel arrangement and freight service?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fairbanks_morse" ( "prr_class" text, "builder_s_model" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "service" text, "power_output" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the build date for c-c wheel arrangement and freight service?`: ```sql
SELECT "build_date" FROM "fairbanks_morse" WHERE "prr_class"='ff20' AND "builder_s_model"='erie built';
## Task Generate a SQL query to answer the following question: `When was the build date for ff20 PRR class and erie built builder's model?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fairbanks_morse" ( "prr_class" text, "builder_s_model" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "service" text, "power_output" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the build date for ff20 PRR class and erie built builder's model?`: ```sql
SELECT AVG("debut") FROM "team_representatives" WHERE "player"='radoslava topalova' AND "years_played"<2;
## Task Generate a SQL query to answer the following question: `what is the debut when the play er is radoslava topalova and the years played is less than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "team_representatives" ( "player" text, "w_l_total" text, "w_l_singles" text, "w_l_doubles" text, "ties" real, "debut" real, "years_played" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the debut when the play er is radoslava topalova and the years played is less than 2?`: ```sql
SELECT "average_attendance" FROM "outdoor_sports" WHERE "season"='2011' AND "games"<519 AND "num_of_teams">14 AND "sport"='association football';
## Task Generate a SQL query to answer the following question: `What was the average attendance of the 2011 season that had games smaller than 519 with several teams bigger than 14 that were also part of the sport of association football?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "outdoor_sports" ( "league" text, "sport" text, "season" text, "num_of_teams" real, "games" real, "total_attendance" text, "average_attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the average attendance of the 2011 season that had games smaller than 519 with several teams bigger than 14 that were also part of the sport of association football?`: ```sql
SELECT SUM("average_attendance") FROM "outdoor_sports" WHERE "games"=1311;
## Task Generate a SQL query to answer the following question: `What was the total number of average attendance for games of 1311?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "outdoor_sports" ( "league" text, "sport" text, "season" text, "num_of_teams" real, "games" real, "total_attendance" text, "average_attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the total number of average attendance for games of 1311?`: ```sql
SELECT "season" FROM "outdoor_sports" WHERE "num_of_teams">14 AND "league"='super rugby';
## Task Generate a SQL query to answer the following question: `When was the season that had more teams larger than 14 in the super rugby league?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "outdoor_sports" ( "league" text, "sport" text, "season" text, "num_of_teams" real, "games" real, "total_attendance" text, "average_attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `When was the season that had more teams larger than 14 in the super rugby league?`: ```sql
SELECT "label" FROM "release_history" WHERE "catalog_num"='83061-2';
## Task Generate a SQL query to answer the following question: `What is the label for the album with a catalog number of 83061-2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog_num" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the label for the album with a catalog number of 83061-2?`: ```sql
SELECT "catalog_num" FROM "release_history" WHERE "region"='united kingdom';
## Task Generate a SQL query to answer the following question: `What is the catalog number of the album whose region is the United Kingdom?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog_num" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the catalog number of the album whose region is the United Kingdom?`: ```sql
SELECT "region" FROM "release_history" WHERE "catalog_num"='7567-83061-2';
## Task Generate a SQL query to answer the following question: `What is the region for the album with a catalog number of 7567-83061-2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog_num" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the region for the album with a catalog number of 7567-83061-2?`: ```sql
SELECT "label" FROM "release_history" WHERE "catalog_num"='83061-4';
## Task Generate a SQL query to answer the following question: `What is the label for the album with a catalog number of 83061-4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog_num" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the label for the album with a catalog number of 83061-4?`: ```sql
SELECT "catalog_num" FROM "release_history" WHERE "label"='atlantic records' AND "region"='united states';
## Task Generate a SQL query to answer the following question: `What is the catalog number of the album whose label is Atlantic Records and region is the United States?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog_num" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the catalog number of the album whose label is Atlantic Records and region is the United States?`: ```sql
SELECT "school_club_team" FROM "a" WHERE "position"='center' AND "player"='rafael araújo';
## Task Generate a SQL query to answer the following question: `What school/club team did the center Rafael Araújo play for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "a" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What school/club team did the center Rafael Araújo play for?`: ```sql
SELECT "nationality" FROM "a" WHERE "position"='guard' AND "school_club_team"='florida international';
## Task Generate a SQL query to answer the following question: `What is the nationality of the guard who played for Florida International?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "a" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the nationality of the guard who played for Florida International?`: ```sql
SELECT "player" FROM "a" WHERE "position"='guard/forward';
## Task Generate a SQL query to answer the following question: `What player had the position guard/forward?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "a" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What player had the position guard/forward?`: ```sql
SELECT "driver" FROM "race" WHERE "laps"=45;
## Task Generate a SQL query to answer the following question: `Who is the driver for laps of 45` ### 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 is the driver for laps of 45`: ```sql
SELECT "visitor" FROM "december" WHERE "date"='december 17';
## Task Generate a SQL query to answer the following question: `Who was the visiting team on December 17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the visiting team on December 17?`: ```sql
SELECT COUNT("attendance") FROM "december" WHERE "visitor"='miami' AND "home"='washington';
## Task Generate a SQL query to answer the following question: `How many people were at Washington's home game against Miami?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `How many people were at Washington's home game against Miami?`: ```sql
SELECT "home" FROM "december" WHERE "visitor"='minnesota';
## Task Generate a SQL query to answer the following question: `Who was the home team that played against the visiting team Minnesota?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the home team that played against the visiting team Minnesota?`: ```sql
SELECT COUNT("attendance") FROM "game_log" WHERE "record"='17-7';
## Task Generate a SQL query to answer the following question: `What was total attendance on the day they went 17-7?` ### 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, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was total attendance on the day they went 17-7?`: ```sql
SELECT "score" FROM "game_log" WHERE "date"='april 22';
## Task Generate a SQL query to answer the following question: `What was the score on April 22?` ### 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, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score on April 22?`: ```sql
SELECT "event" FROM "wushu" WHERE "quarterfinal"='zhamash l 1–2';
## Task Generate a SQL query to answer the following question: `What event had zhamash l 1–2 in the quarterfinal?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wushu" ( "athlete" text, "event" text, "round_of_16" text, "quarterfinal" text, "semifinal" text, "final" text ); ### SQL Given the database schema, here is the SQL query that answers `What event had zhamash l 1–2 in the quarterfinal?`: ```sql
SELECT "semifinal" FROM "wushu" WHERE "athlete"='hossein ojaghi';
## Task Generate a SQL query to answer the following question: `Hossein Ojaghi participated in what semifinal.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wushu" ( "athlete" text, "event" text, "round_of_16" text, "quarterfinal" text, "semifinal" text, "final" text ); ### SQL Given the database schema, here is the SQL query that answers `Hossein Ojaghi participated in what semifinal.`: ```sql
SELECT "event" FROM "wushu" WHERE "quarterfinal"='did not advance' AND "athlete"='alireza rouzbahani';
## Task Generate a SQL query to answer the following question: `Alireza Rouzbahani did not advance to the quarterfinal in what event?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wushu" ( "athlete" text, "event" text, "round_of_16" text, "quarterfinal" text, "semifinal" text, "final" text ); ### SQL Given the database schema, here is the SQL query that answers `Alireza Rouzbahani did not advance to the quarterfinal in what event?`: ```sql
SELECT COUNT("games") FROM "regular_season" WHERE "goals_against">288 AND "lost"<34;
## Task Generate a SQL query to answer the following question: `How many games have more than 288 goals and less than 34 losses?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "season" text, "games" real, "lost" real, "tied" real, "points" real, "goals_for" real, "goals_against" real, "standing" text ); ### SQL Given the database schema, here is the SQL query that answers `How many games have more than 288 goals and less than 34 losses?`: ```sql
SELECT MIN("tied") FROM "regular_season" WHERE "points"<100 AND "goals_for"=277;
## Task Generate a SQL query to answer the following question: `What is the lowest tie with less than 100 points and 277 goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "season" text, "games" real, "lost" real, "tied" real, "points" real, "goals_for" real, "goals_against" real, "standing" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest tie with less than 100 points and 277 goals?`: ```sql
SELECT "team" FROM "draft" WHERE "position"='g';
## Task Generate a SQL query to answer the following question: `What is the team with position G?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft" ( "round" real, "pick" real, "player" text, "position" text, "nationality" text, "team" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the team with position G?`: ```sql
SELECT "player" FROM "draft" WHERE "college"='illinois';
## Task Generate a SQL query to answer the following question: `What is the player from Illinois?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft" ( "round" real, "pick" real, "player" text, "position" text, "nationality" text, "team" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the player from Illinois?`: ```sql
SELECT "phone" FROM "fire_station_locations_and_apparatus" WHERE "address"='53 dayton road';
## Task Generate a SQL query to answer the following question: `What is the phone number of the station located at 53 Dayton Road?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fire_station_locations_and_apparatus" ( "station" text, "engine_company" text, "ambulance" text, "address" text, "phone" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the phone number of the station located at 53 Dayton Road?`: ```sql
SELECT "engine_company" FROM "fire_station_locations_and_apparatus" WHERE "address"='89 rope ferry road';
## Task Generate a SQL query to answer the following question: `What is the name of the engine company that is located at 89 Rope Ferry Road?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fire_station_locations_and_apparatus" ( "station" text, "engine_company" text, "ambulance" text, "address" text, "phone" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the engine company that is located at 89 Rope Ferry Road?`: ```sql
SELECT "record" FROM "november" WHERE "visitor"='trail blazers';
## Task Generate a SQL query to answer the following question: `What was the Record of the game in which the Trail Blazers was the visiting team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "november" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Record of the game in which the Trail Blazers was the visiting team?`: ```sql
SELECT "date" FROM "international_goals" WHERE "competition"='friendly match' AND "result"='1-1';
## Task Generate a SQL query to answer the following question: `What was the date of the friendly match, ending in a result of 1-1?` ### 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 `What was the date of the friendly match, ending in a result of 1-1?`: ```sql
SELECT "result" FROM "international_goals" WHERE "venue"='as-salt';
## Task Generate a SQL query to answer the following question: `What was the result of the game held at the As-Salt venue?` ### 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 `What was the result of the game held at the As-Salt venue?`: ```sql
SELECT "record" FROM "game_log" WHERE "date"='may 17';
## Task Generate a SQL query to answer the following question: `What was the team's record on May 17?` ### 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, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the team's record on May 17?`: ```sql
SELECT "zone" FROM "fed_cup_doubles_performances_10" WHERE "opponents"='mădălina gojnea monica niculescu';
## Task Generate a SQL query to answer the following question: `Which zone had mădălina gojnea monica niculescu as the opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fed_cup_doubles_performances_10" ( "edition" real, "zone" text, "round" text, "date" text, "against" text, "surface" text, "partner" text, "opponents" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Which zone had mădălina gojnea monica niculescu as the opponent?`: ```sql
SELECT "against" FROM "fed_cup_doubles_performances_10" WHERE "opponents"='mădălina gojnea monica niculescu';
## Task Generate a SQL query to answer the following question: `Who was against the opponents, mădălina gojnea monica niculescu?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fed_cup_doubles_performances_10" ( "edition" real, "zone" text, "round" text, "date" text, "against" text, "surface" text, "partner" text, "opponents" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was against the opponents, mădălina gojnea monica niculescu?`: ```sql
SELECT "surface" FROM "fed_cup_doubles_performances_10" WHERE "opponents"='margit rüütel anett schutting';
## Task Generate a SQL query to answer the following question: `What was the surface on the game with margit rüütel anett schutting as the opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fed_cup_doubles_performances_10" ( "edition" real, "zone" text, "round" text, "date" text, "against" text, "surface" text, "partner" text, "opponents" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the surface on the game with margit rüütel anett schutting as the opponent?`: ```sql
SELECT "zone" FROM "fed_cup_doubles_performances_10" WHERE "against"='estonia';
## Task Generate a SQL query to answer the following question: `What is the zone of the game played against Estonia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fed_cup_doubles_performances_10" ( "edition" real, "zone" text, "round" text, "date" text, "against" text, "surface" text, "partner" text, "opponents" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the zone of the game played against Estonia?`: ```sql
SELECT "high_rebounds" FROM "game_log" WHERE "date"='february 24';
## Task Generate a SQL query to answer the following question: `Who had the high rebounds on February 24?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had the high rebounds on February 24?`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "date"='february 10';
## Task Generate a SQL query to answer the following question: `On February 10, what was the location attendance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `On February 10, what was the location attendance?`: ```sql
SELECT "player" FROM "most_wickets_in_the_tournament" WHERE "econ"='4.23';
## Task Generate a SQL query to answer the following question: `Tell me the player with econ of 4.23` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_wickets_in_the_tournament" ( "player" text, "overs" text, "runs" text, "wkts" text, "mdns" text, "econ" text ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the player with econ of 4.23`: ```sql
SELECT "runs" FROM "most_wickets_in_the_tournament" WHERE "player"='b lee';
## Task Generate a SQL query to answer the following question: `Tell me the runs for b lee` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_wickets_in_the_tournament" ( "player" text, "overs" text, "runs" text, "wkts" text, "mdns" text, "econ" text ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the runs for b lee`: ```sql
SELECT "player" FROM "most_wickets_in_the_tournament" WHERE "overs"='87.4';
## Task Generate a SQL query to answer the following question: `Tell me the player with overs of 87.4` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_wickets_in_the_tournament" ( "player" text, "overs" text, "runs" text, "wkts" text, "mdns" text, "econ" text ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the player with overs of 87.4`: ```sql
SELECT "runs" FROM "most_wickets_in_the_tournament" WHERE "econ"='3.63';
## Task Generate a SQL query to answer the following question: `Tell me the runs for econ of 3.63` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_wickets_in_the_tournament" ( "player" text, "overs" text, "runs" text, "wkts" text, "mdns" text, "econ" text ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the runs for econ of 3.63`: ```sql
SELECT "wkts" FROM "most_wickets_in_the_tournament" WHERE "econ"='4.23';
## Task Generate a SQL query to answer the following question: `Tell me the wkts for econ of 4.23` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_wickets_in_the_tournament" ( "player" text, "overs" text, "runs" text, "wkts" text, "mdns" text, "econ" text ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the wkts for econ of 4.23`: ```sql
SELECT "overs" FROM "most_wickets_in_the_tournament" WHERE "mdns"='4';
## Task Generate a SQL query to answer the following question: `Tell me the overs for mdns of 4` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_wickets_in_the_tournament" ( "player" text, "overs" text, "runs" text, "wkts" text, "mdns" text, "econ" text ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the overs for mdns of 4`: ```sql
SELECT "home_team" FROM "round_1" WHERE "away_team"='collingwood';
## Task Generate a SQL query to answer the following question: `If collingwood is playing away, who played as the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "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 `If collingwood is playing away, who played as the home team?`: ```sql
SELECT "away_team_score" FROM "round_1" WHERE "venue"='kardinia park';
## Task Generate a SQL query to answer the following question: `What was the away teams score when they played at kardinia park?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "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 away teams score when they played at kardinia park?`: ```sql
SELECT MAX("crowd") FROM "round_1" WHERE "away_team"='carlton';
## Task Generate a SQL query to answer the following question: `What's the highest turnout when carlton was playing as the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "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's the highest turnout when carlton was playing as the away team?`: ```sql
SELECT "home_team" FROM "round_1" WHERE "home_team_score"='15.11 (101)';
## Task Generate a SQL query to answer the following question: `Which home team scored 15.11 (101)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "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 home team scored 15.11 (101)?`: ```sql
SELECT "away_team" FROM "round_1" WHERE "crowd">'27,463';
## Task Generate a SQL query to answer the following question: `What away team played when the crowd was over 27,463 people?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "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 away team played when the crowd was over 27,463 people?`: ```sql
SELECT "away_team" FROM "round_1" WHERE "away_team_score"='23.11 (149)';
## Task Generate a SQL query to answer the following question: `Which away team scored 23.11 (149)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "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 away team scored 23.11 (149)?`: ```sql
SELECT "marriage" FROM "house_of_rohan_chabot" WHERE "spouse"='antoinette jeanne yvonne boegner';
## Task Generate a SQL query to answer the following question: `On waht date did Antoinette Jeanne Yvonne Boegner get married?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "house_of_rohan_chabot" ( "name" text, "birth" text, "marriage" text, "became_duke" text, "ceased_to_be_duke" text, "death" text, "spouse" text ); ### SQL Given the database schema, here is the SQL query that answers `On waht date did Antoinette Jeanne Yvonne Boegner get married?`: ```sql
SELECT "crowd" FROM "round_6" WHERE "home_team_score"='18.16 (124)';
## Task Generate a SQL query to answer the following question: `What is the Crowd number for the team that has a Home team score of 18.16 (124)?` ### 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 `What is the Crowd number for the team that has a Home team score of 18.16 (124)?`: ```sql
SELECT MAX("crowd") FROM "round_6" WHERE "home_team"='north melbourne';
## Task Generate a SQL query to answer the following question: `What is the largest Crowd number for the Home team of North Melbourne?` ### 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 `What is the largest Crowd number for the Home team of North Melbourne?`: ```sql
SELECT SUM("crowd") FROM "round_6" WHERE "home_team_score"='13.9 (87)';
## Task Generate a SQL query to answer the following question: `What is the total Crowd number for the team that has a Home team score of 13.9 (87)?` ### 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 `What is the total Crowd number for the team that has a Home team score of 13.9 (87)?`: ```sql
SELECT "home_team" FROM "round_10" WHERE "away_team"='south melbourne';
## Task Generate a SQL query to answer the following question: `What home team did South Melbourne play as the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_10" ( "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 home team did South Melbourne play as the away team?`: ```sql
SELECT "home_team_score" FROM "round_10" WHERE "away_team"='hawthorn';
## Task Generate a SQL query to answer the following question: `What did the home team score against the away team Hawthorn?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_10" ( "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 did the home team score against the away team Hawthorn?`: ```sql
SELECT AVG("crowd") FROM "round_10" WHERE "venue"='western oval';
## Task Generate a SQL query to answer the following question: `In the Western Oval venue, what is the average crowd?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_10" ( "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 `In the Western Oval venue, what is the average crowd?`: ```sql
SELECT "crowd" FROM "round_10" WHERE "away_team"='richmond';
## Task Generate a SQL query to answer the following question: `When Richmond is the away team, what is the crowd size?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_10" ( "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 `When Richmond is the away team, what is the crowd size?`: ```sql
SELECT "name" FROM "1986_nfl_draft" WHERE "round"=8;
## Task Generate a SQL query to answer the following question: `Who is the person from round 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1986_nfl_draft" ( "round" real, "pick" real, "name" text, "position" text, "school" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the person from round 8?`: ```sql
SELECT AVG("round") FROM "1986_nfl_draft" WHERE "school"='arizona' AND "pick">100;
## Task Generate a SQL query to answer the following question: `What is the round for Arizona with a pick over 100?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1986_nfl_draft" ( "round" real, "pick" real, "name" text, "position" text, "school" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the round for Arizona with a pick over 100?`: ```sql
SELECT "pick" FROM "1986_nfl_draft" WHERE "position"='wide receiver' AND "name"='johnny holloway';
## Task Generate a SQL query to answer the following question: `What pick had a wide receiver named johnny holloway?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1986_nfl_draft" ( "round" real, "pick" real, "name" text, "position" text, "school" text ); ### SQL Given the database schema, here is the SQL query that answers `What pick had a wide receiver named johnny holloway?`: ```sql
SELECT "score" FROM "regular_season_schedule" WHERE "home_team"='saskatoon accelerators';
## Task Generate a SQL query to answer the following question: `Which score has a Home Team of saskatoon accelerators?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season_schedule" ( "date" text, "home_team" text, "score" text, "visiting_team" text, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `Which score has a Home Team of saskatoon accelerators?`: ```sql
SELECT "visiting_team" FROM "regular_season_schedule" WHERE "stadium"='servus centre' AND "date"='march 7';
## Task Generate a SQL query to answer the following question: `Which Visiting Team has a Stadium of servus centre on march 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season_schedule" ( "date" text, "home_team" text, "score" text, "visiting_team" text, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Visiting Team has a Stadium of servus centre on march 7?`: ```sql
SELECT "visiting_team" FROM "regular_season_schedule" WHERE "stadium"='servus centre';
## Task Generate a SQL query to answer the following question: `Which Visiting Team has a Stadium of servus centre?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season_schedule" ( "date" text, "home_team" text, "score" text, "visiting_team" text, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Visiting Team has a Stadium of servus centre?`: ```sql
SELECT COUNT("heavy_attacks") FROM "the_blitz_estimated_luftwaffe_sorties" WHERE "luftflotte_2_sorties"=450;
## Task Generate a SQL query to answer the following question: `How many heavy attacks did the 450 Luftflotte 2 conduct?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_blitz_estimated_luftwaffe_sorties" ( "month_year" text, "day_sorties_losses" text, "night_sorties_losses" text, "luftflotte_2_sorties" real, "luftflotte_3_sorties" real, "major_attacks" text, "heavy_attacks" real ); ### SQL Given the database schema, here is the SQL query that answers `How many heavy attacks did the 450 Luftflotte 2 conduct?`: ```sql
SELECT "time_retired" FROM "classification" WHERE "grid"=19;
## Task Generate a SQL query to answer the following question: `What is the time/retired for grid 19?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "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 time/retired for grid 19?`: ```sql
SELECT SUM("grid") FROM "classification" WHERE "laps">73 AND "driver"='bruce mclaren';
## Task Generate a SQL query to answer the following question: `What is the grid total for bruce mclaren with over 73 laps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "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 total for bruce mclaren with over 73 laps?`: ```sql
SELECT "film" FROM "filmography" WHERE "year"=1971;
## Task Generate a SQL query to answer the following question: `What film was released in 1971?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "filmography" ( "year" real, "film" text, "director" text, "producer" text, "cinematographer" text ); ### SQL Given the database schema, here is the SQL query that answers `What film was released in 1971?`: ```sql
SELECT "grade" FROM "ippt_standards" WHERE "2_4km_run_min_sec"='13:01-13:40';
## Task Generate a SQL query to answer the following question: `What grade was the 2.4km Run (min:sec) of 13:01-13:40?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ippt_standards" ( "grade" text, "points" real, "sit_up_reps" text, "standing_broad_jump_cm" text, "chin_up_reps" text, "shuttle_run_sec" text, "2_4km_run_min_sec" text ); ### SQL Given the database schema, here is the SQL query that answers `What grade was the 2.4km Run (min:sec) of 13:01-13:40?`: ```sql
SELECT "shuttle_run_sec" FROM "ippt_standards" WHERE "2_4km_run_min_sec"='12:21-13:00';
## Task Generate a SQL query to answer the following question: `What shuttle Run (sec) time has a 2.4km Run (min:sec) of 12:21-13:00?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ippt_standards" ( "grade" text, "points" real, "sit_up_reps" text, "standing_broad_jump_cm" text, "chin_up_reps" text, "shuttle_run_sec" text, "2_4km_run_min_sec" text ); ### SQL Given the database schema, here is the SQL query that answers `What shuttle Run (sec) time has a 2.4km Run (min:sec) of 12:21-13:00?`: ```sql
SELECT MAX("pick") FROM "nfl_draft" WHERE "player"='steve bartalo';
## Task Generate a SQL query to answer the following question: `When was steve bartalo picked?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "pick" real, "round" text, "player" text, "position" text, "school" text ); ### SQL Given the database schema, here is the SQL query that answers `When was steve bartalo picked?`: ```sql
SELECT "player" FROM "nfl_draft" WHERE "position"='cornerback';
## Task Generate a SQL query to answer the following question: `What player is a cornerback?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "pick" real, "round" text, "player" text, "position" text, "school" text ); ### SQL Given the database schema, here is the SQL query that answers `What player is a cornerback?`: ```sql
SELECT MAX("crowd") FROM "round_6" WHERE "away_team_score"='12.13 (85)';
## Task Generate a SQL query to answer the following question: `What was the highest crowd turnout when the away team scored 12.13 (85)?` ### 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 `What was the highest crowd turnout when the away team scored 12.13 (85)?`: ```sql
SELECT "venue" FROM "round_6" WHERE "home_team_score"='22.23 (155)';
## Task Generate a SQL query to answer the following question: `Which venue did the home team score 22.23 (155) at?` ### 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 venue did the home team score 22.23 (155) at?`: ```sql
SELECT "home_team" FROM "round_6" WHERE "venue"='windy hill';
## Task Generate a SQL query to answer the following question: `Windy hill is the home to what team?` ### 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 `Windy hill is the home to what team?`: ```sql
SELECT "competition" FROM "results" WHERE "score"='1-5';
## Task Generate a SQL query to answer the following question: `What is the name of the competition with a score of 1-5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "date" text, "opponents" text, "score" text, "competition" text, "match_report" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the competition with a score of 1-5?`: ```sql
SELECT "competition" FROM "results" WHERE "opponents"='sv werder bremen' AND "score"='1-2';
## Task Generate a SQL query to answer the following question: `What is the name of the competition with opponents of Sv Werder Bremen and a score of 1-2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "date" text, "opponents" text, "score" text, "competition" text, "match_report" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the competition with opponents of Sv Werder Bremen and a score of 1-2?`: ```sql
SELECT "reg_season" FROM "year_by_year" WHERE "avg_attendance"<942;
## Task Generate a SQL query to answer the following question: `What regular season result had an average attendance less than 942?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "year" text, "league" text, "reg_season" text, "playoffs" text, "avg_attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What regular season result had an average attendance less than 942?`: ```sql
SELECT "league" FROM "year_by_year" WHERE "playoffs"='lost semifinal';
## Task Generate a SQL query to answer the following question: `Which league had a playoffs result of a lost semifinal?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "year" text, "league" text, "reg_season" text, "playoffs" text, "avg_attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Which league had a playoffs result of a lost semifinal?`: ```sql
SELECT "reg_season" FROM "year_by_year" WHERE "avg_attendance">'3,170';
## Task Generate a SQL query to answer the following question: `What regular season result had an average attendance bigger than 3,170?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "year" text, "league" text, "reg_season" text, "playoffs" text, "avg_attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What regular season result had an average attendance bigger than 3,170?`: ```sql
SELECT COUNT("length_miles") FROM "connecting_links" WHERE "east_or_north_terminus"='ne 2 in lincoln';
## Task Generate a SQL query to answer the following question: `what is the length (miles) when the east or north terminus is ne 2 in lincoln?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "connecting_links" ( "county" text, "name" text, "length_miles" real, "west_or_south_terminus" text, "east_or_north_terminus" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the length (miles) when the east or north terminus is ne 2 in lincoln?`: ```sql
SELECT MAX("length_miles") FROM "connecting_links" WHERE "name"='l-56g';
## Task Generate a SQL query to answer the following question: `what is the length (miles) when the name is l-56g?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "connecting_links" ( "county" text, "name" text, "length_miles" real, "west_or_south_terminus" text, "east_or_north_terminus" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the length (miles) when the name is l-56g?`: ```sql
SELECT "name" FROM "connecting_links" WHERE "west_or_south_terminus"='ne 112 west of blue springs';
## Task Generate a SQL query to answer the following question: `what is the name when the west or south terminus is ne 112 west of blue springs?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "connecting_links" ( "county" text, "name" text, "length_miles" real, "west_or_south_terminus" text, "east_or_north_terminus" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the name when the west or south terminus is ne 112 west of blue springs?`: ```sql
SELECT "time_retired" FROM "race" WHERE "constructor"='benetton - renault' AND "driver"='johnny herbert';
## Task Generate a SQL query to answer the following question: `What is the Time/Retired value for Driver Johnny Herbert with Constructor Benetton - Renault` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Time/Retired value for Driver Johnny Herbert with Constructor Benetton - Renault`: ```sql
SELECT "time_retired" FROM "race" WHERE "laps"='66' AND "constructor"='jordan - peugeot' AND "grid"='5';
## Task Generate a SQL query to answer the following question: `What is the Time/Retired value for constructor Jordan - Peugeot with 66 laps and grid value 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Time/Retired value for constructor Jordan - Peugeot with 66 laps and grid value 5?`: ```sql
SELECT "time_retired" FROM "race" WHERE "driver"='pedro diniz';
## Task Generate a SQL query to answer the following question: `What is the Time/Retired value of driver Pedro Diniz?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Time/Retired value of driver Pedro Diniz?`: ```sql
SELECT "driver" FROM "race" WHERE "grid"='18';
## Task Generate a SQL query to answer the following question: `Which driver has grid value of 18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text ); ### SQL Given the database schema, here is the SQL query that answers `Which driver has grid value of 18?`: ```sql
SELECT "constructor" FROM "race" WHERE "grid"='5';
## Task Generate a SQL query to answer the following question: `What is the constructor with grid value 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the constructor with grid value 5?`: ```sql
SELECT "grid" FROM "race" WHERE "time_retired"='accident';
## Task Generate a SQL query to answer the following question: `What is the grid value which has Time/Retired value of accident?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the grid value which has Time/Retired value of accident?`: ```sql
SELECT "leading_scorer" FROM "january" WHERE "visitor"='trail blazers';
## Task Generate a SQL query to answer the following question: `Who was the leading scorer that was a visitor of the Trail Blazers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the leading scorer that was a visitor of the Trail Blazers?`: ```sql
SELECT "leading_scorer" FROM "january" WHERE "home"='clippers';
## Task Generate a SQL query to answer the following question: `Who is the leading scorer when they were at home of the Clippers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the leading scorer when they were at home of the Clippers?`: ```sql
SELECT "visitor" FROM "january" WHERE "date"='january 19, 2008';
## Task Generate a SQL query to answer the following question: `Who was the visitor on January 19, 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the visitor on January 19, 2008?`: ```sql
SELECT "score" FROM "january" WHERE "visitor"='magic' AND "home"='clippers';
## Task Generate a SQL query to answer the following question: `What was the score when there was a visitor of Magic and at home with the Clippers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score when there was a visitor of Magic and at home with the Clippers?`: ```sql