output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "date" FROM "round_9" WHERE "home_team_score"='20.16 (136)';
## Task Generate a SQL query to answer the following question: `When did the home team score 20.16 (136)?` ### 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 `When did the home team score 20.16 (136)?`: ```sql
SELECT "grid" FROM "classification" WHERE "driver"='johnny dumfries';
## Task Generate a SQL query to answer the following question: `Which Grid has a Driver of johnny dumfries?` ### 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 `Which Grid has a Driver of johnny dumfries?`: ```sql
SELECT "score" FROM "international_goals" WHERE "date"='22 september 1972';
## Task Generate a SQL query to answer the following question: `What is the score on 22 September 1972?` ### 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 is the score on 22 September 1972?`: ```sql
SELECT "venue" FROM "international_goals" WHERE "date"='3 september 1972';
## Task Generate a SQL query to answer the following question: `What is the venue on 3 September 1972?` ### 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 is the venue on 3 September 1972?`: ```sql
SELECT "series" FROM "playoffs" WHERE "date"='april 30';
## Task Generate a SQL query to answer the following question: `Name the series for april 30` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the series for april 30`: ```sql
SELECT MAX("game") FROM "playoffs" WHERE "high_assists"='west (8)';
## Task Generate a SQL query to answer the following question: `Name the highest game for west (8) high assists` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the highest game for west (8) high assists`: ```sql
SELECT MIN("year") FROM "singles" WHERE "date"='14 february';
## Task Generate a SQL query to answer the following question: `Which Year has a Date of 14 February?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "year" real, "date" text, "album" text, "label" text, "format_s" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Year has a Date of 14 February?`: ```sql
SELECT "label" FROM "singles" WHERE "date"='20 july';
## Task Generate a SQL query to answer the following question: `Which Label has a Date of 20 July?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "year" real, "date" text, "album" text, "label" text, "format_s" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Label has a Date of 20 July?`: ```sql
SELECT "label" FROM "singles" WHERE "date"='14 february';
## Task Generate a SQL query to answer the following question: `Which Label has a Date of 14 February?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "year" real, "date" text, "album" text, "label" text, "format_s" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Label has a Date of 14 February?`: ```sql
SELECT "choreographer_s" FROM "season_3" WHERE "style"='smooth waltz' AND "partner"='lacey schwimmer';
## Task Generate a SQL query to answer the following question: `Who choreographed the smooth waltz with lacey schwimmer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_3" ( "week" real, "partner" text, "style" text, "choreographer_s" text, "results" text ); ### SQL Given the database schema, here is the SQL query that answers `Who choreographed the smooth waltz with lacey schwimmer?`: ```sql
SELECT "partner" FROM "season_3" WHERE "style"='jazz' AND "results"='bottom three';
## Task Generate a SQL query to answer the following question: `Who was the partner for the jazz piece in the bottom three?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_3" ( "week" real, "partner" text, "style" text, "choreographer_s" text, "results" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the partner for the jazz piece in the bottom three?`: ```sql
SELECT "venue" FROM "round_14" WHERE "home_team_score"='15.5 (95)';
## Task Generate a SQL query to answer the following question: `In which venue did a home team score 15.5 (95)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_14" ( "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 which venue did a home team score 15.5 (95)?`: ```sql
SELECT "home_team_score" FROM "round_14" WHERE "venue"='vfl park';
## Task Generate a SQL query to answer the following question: `For Venue vfl park, what was the home team score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_14" ( "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 `For Venue vfl park, what was the home team score?`: ```sql
SELECT "date" FROM "round_14" WHERE "venue"='vfl park';
## Task Generate a SQL query to answer the following question: `On which date was the venue of vfl park used?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_14" ( "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 `On which date was the venue of vfl park used?`: ```sql
SELECT AVG("crowd") FROM "round_14" WHERE "away_team"='north melbourne';
## Task Generate a SQL query to answer the following question: `What was the Average crowd when the away team was north melbourne?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_14" ( "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 Average crowd when the away team was north melbourne?`: ```sql
SELECT "max_torque_at_rpm" FROM "engine_specifications" WHERE "engine_code_s"='bjb/bkc/bxe/bls';
## Task Generate a SQL query to answer the following question: `What is the maximum torque at rpm for the engine coded BJB/BKC/BXE/BLS?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engine_specifications" ( "engine_name" text, "engine_code_s" text, "valvetrain" text, "displacement" text, "max_power_at_rpm" text, "max_torque_at_rpm" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the maximum torque at rpm for the engine coded BJB/BKC/BXE/BLS?`: ```sql
SELECT "max_power_at_rpm" FROM "engine_specifications" WHERE "displacement"='1968cc' AND "engine_name"='2.0 tdi';
## Task Generate a SQL query to answer the following question: `What is the maximum power at rpm for the engine named 2.0 TDI that has a 1968cc displacement?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engine_specifications" ( "engine_name" text, "engine_code_s" text, "valvetrain" text, "displacement" text, "max_power_at_rpm" text, "max_torque_at_rpm" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the maximum power at rpm for the engine named 2.0 TDI that has a 1968cc displacement?`: ```sql
SELECT "max_torque_at_rpm" FROM "engine_specifications" WHERE "engine_code_s"='bmm';
## Task Generate a SQL query to answer the following question: `What is the maximum torque at rpm for the engine with code BMM?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engine_specifications" ( "engine_name" text, "engine_code_s" text, "valvetrain" text, "displacement" text, "max_power_at_rpm" text, "max_torque_at_rpm" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the maximum torque at rpm for the engine with code BMM?`: ```sql
SELECT "max_torque_at_rpm" FROM "engine_specifications" WHERE "engine_code_s"='bmm';
## Task Generate a SQL query to answer the following question: `What is the maximum torque at rpm for the engine with code BMM?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engine_specifications" ( "engine_name" text, "engine_code_s" text, "valvetrain" text, "displacement" text, "max_power_at_rpm" text, "max_torque_at_rpm" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the maximum torque at rpm for the engine with code BMM?`: ```sql
SELECT "engine_name" FROM "engine_specifications" WHERE "max_torque_at_rpm"='n·m ( lbf·ft ) @ 3,800';
## Task Generate a SQL query to answer the following question: `What is the engine name that has a maximum torque at rpm of n·m ( lbf·ft ) @ 3,800?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engine_specifications" ( "engine_name" text, "engine_code_s" text, "valvetrain" text, "displacement" text, "max_power_at_rpm" text, "max_torque_at_rpm" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the engine name that has a maximum torque at rpm of n·m ( lbf·ft ) @ 3,800?`: ```sql
SELECT "result" FROM "awards_and_nominations" WHERE "work"='t.u.f.f. puppy';
## Task Generate a SQL query to answer the following question: `What was the result of t.u.f.f. puppy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "work" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result of t.u.f.f. puppy?`: ```sql
SELECT "score" FROM "international_goals" WHERE "competition"='2010 world cup qualifying';
## Task Generate a SQL query to answer the following question: `what is the score for the 2010 world cup qualifying?` ### 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 is the score for the 2010 world cup qualifying?`: ```sql
SELECT "home" FROM "november" WHERE "date"='november 7';
## Task Generate a SQL query to answer the following question: `Which home has a Date of november 7?` ### 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, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which home has a Date of november 7?`: ```sql
SELECT MIN("attendance") FROM "november" WHERE "date"='november 18';
## Task Generate a SQL query to answer the following question: `What is the lowest attendance on November 18?` ### 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, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest attendance on November 18?`: ```sql
SELECT "date" FROM "october" WHERE "decision"='dipietro' AND "visitor"='carolina';
## Task Generate a SQL query to answer the following question: `What is the date of the game where Dipietro earned a decision and Carolina was the visiting team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "october" ( "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 date of the game where Dipietro earned a decision and Carolina was the visiting team?`: ```sql
SELECT "visitor" FROM "october" WHERE "decision"='dipietro' AND "date"='october 27';
## Task Generate a SQL query to answer the following question: `Who is the visiting team when Dipietro received a decision on October 27?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "october" ( "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 `Who is the visiting team when Dipietro received a decision on October 27?`: ```sql
SELECT "record" FROM "october" WHERE "home"='washington';
## Task Generate a SQL query to answer the following question: `What was the record when the home team is Washington?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "october" ( "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 record when the home team is Washington?`: ```sql
SELECT "score" FROM "october" WHERE "home"='ny islanders' AND "date"='october 20';
## Task Generate a SQL query to answer the following question: `What was the score of the game on October 20 when the home team is the NY Islanders?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "october" ( "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 score of the game on October 20 when the home team is the NY Islanders?`: ```sql
SELECT "theme" FROM "endangered_wildlife_series" WHERE "mintage"=700;
## Task Generate a SQL query to answer the following question: `In the Endangered Wildlife Series from the Royal Canadian Mint numismatic coins printed in the 2000s, what theme had a mintage of 700?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "endangered_wildlife_series" ( "year" real, "theme" text, "face_values" text, "artist" text, "issue_price" text, "mintage" real, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `In the Endangered Wildlife Series from the Royal Canadian Mint numismatic coins printed in the 2000s, what theme had a mintage of 700?`: ```sql
SELECT MAX("year") FROM "endangered_wildlife_series" WHERE "issue_price"='$2,995.95' AND "theme"='grizzly bear';
## Task Generate a SQL query to answer the following question: `What year had an issue price of $2,995.95, and a theme of grizzly bear?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "endangered_wildlife_series" ( "year" real, "theme" text, "face_values" text, "artist" text, "issue_price" text, "mintage" real, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `What year had an issue price of $2,995.95, and a theme of grizzly bear?`: ```sql
SELECT MIN("total") FROM "medal_table" WHERE "silver">0 AND "nation"='italy' AND "gold"<29;
## Task Generate a SQL query to answer the following question: `Tell me the total for silver more than 0 for italy with gold less than 29` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the total for silver more than 0 for italy with gold less than 29`: ```sql
SELECT AVG("bronze") FROM "medal_table" WHERE "total"<4 AND "silver">0;
## Task Generate a SQL query to answer the following question: `Tell me the average bronze for total less than 4 and silver more than 0` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the average bronze for total less than 4 and silver more than 0`: ```sql
SELECT COUNT("total") FROM "medal_table" WHERE "silver">0 AND "bronze">21 AND "gold">29;
## Task Generate a SQL query to answer the following question: `I want to know the total for silver more than 0 with bronze more than 21 and gold more than 29` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `I want to know the total for silver more than 0 with bronze more than 21 and gold more than 29`: ```sql
SELECT SUM("car") FROM "running_backs" WHERE "player"='jeff smoker';
## Task Generate a SQL query to answer the following question: `How many carries for jeff smoker?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "running_backs" ( "player" text, "car" real, "yards" text, "avg" text, "td_s" real, "long" text ); ### SQL Given the database schema, here is the SQL query that answers `How many carries for jeff smoker?`: ```sql
SELECT AVG("car") FROM "running_backs" WHERE "long"='3';
## Task Generate a SQL query to answer the following question: `How many average carries for the player with 3 as a long?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "running_backs" ( "player" text, "car" real, "yards" text, "avg" text, "td_s" real, "long" text ); ### SQL Given the database schema, here is the SQL query that answers `How many average carries for the player with 3 as a long?`: ```sql
SELECT "home_team" FROM "fourth_round_proper" WHERE "tie_no"<7 AND "away_team"='havant & waterlooville';
## Task Generate a SQL query to answer the following question: `who is the home team when tie no is less than 7 and the away team is havant & waterlooville?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_round_proper" ( "tie_no" real, "home_team" text, "score" text, "away_team" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `who is the home team when tie no is less than 7 and the away team is havant & waterlooville?`: ```sql
SELECT "score_in_the_final" FROM "doubles_titles_12" WHERE "outcome"='runner-up' AND "date"=1970;
## Task Generate a SQL query to answer the following question: `What is the Score in the final with an Outcome with runner-up, and a Date with 1970?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_titles_12" ( "outcome" text, "date" real, "tournament" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Score in the final with an Outcome with runner-up, and a Date with 1970?`: ```sql
SELECT "tournament" FROM "doubles_titles_12" WHERE "opponents_in_the_final"='rod laver fred stolle';
## Task Generate a SQL query to answer the following question: `What is the Tournament with a Opponents in the final with rod laver fred stolle?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_titles_12" ( "outcome" text, "date" real, "tournament" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Tournament with a Opponents in the final with rod laver fred stolle?`: ```sql
SELECT "tournament" FROM "doubles_titles_12" WHERE "date">1973 AND "opponents_in_the_final"='hank pfister sherwood stewart';
## Task Generate a SQL query to answer the following question: `What is the Tournament with a Date larger than 1973, with Opponents in the final with hank pfister sherwood stewart?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_titles_12" ( "outcome" text, "date" real, "tournament" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Tournament with a Date larger than 1973, with Opponents in the final with hank pfister sherwood stewart?`: ```sql
SELECT "partner" FROM "doubles_titles_12" WHERE "opponents_in_the_final"='roy emerson rod laver' AND "date"<1975;
## Task Generate a SQL query to answer the following question: `What is the Partner with Opponents in the final with roy emerson rod laver, with Date smaller than 1975?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_titles_12" ( "outcome" text, "date" real, "tournament" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Partner with Opponents in the final with roy emerson rod laver, with Date smaller than 1975?`: ```sql
SELECT "driver" FROM "race" WHERE "laps"=45;
## Task Generate a SQL query to answer the following question: `Which driver has 45 laps?` ### 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 `Which driver has 45 laps?`: ```sql
SELECT "time_retired" FROM "race" WHERE "grid"<9 AND "constructor"='ferrari' AND "driver"='rubens barrichello';
## Task Generate a SQL query to answer the following question: `Which Time/Retired has a grid smaller than 9, a Ferrari construct, and is driven by Rubens Barrichello?` ### 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 `Which Time/Retired has a grid smaller than 9, a Ferrari construct, and is driven by Rubens Barrichello?`: ```sql
SELECT "away_team_score" FROM "round_14" WHERE "home_team_score"='11.9 (75)';
## Task Generate a SQL query to answer the following question: `What was the away team's score when the home team scored 11.9 (75)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_14" ( "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 team's score when the home team scored 11.9 (75)?`: ```sql
SELECT "home_team" FROM "round_14" WHERE "away_team"='footscray';
## Task Generate a SQL query to answer the following question: `Who was the home team when the away team was Footscray?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_14" ( "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 the home team when the away team was Footscray?`: ```sql
SELECT "date" FROM "round_14" WHERE "home_team_score"='7.13 (55)';
## Task Generate a SQL query to answer the following question: `What was the date of the game when the home team scored 7.13 (55)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_14" ( "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 date of the game when the home team scored 7.13 (55)?`: ```sql
SELECT "home_team" FROM "round_14" WHERE "crowd">'10,000' AND "home_team_score"='7.13 (55)';
## Task Generate a SQL query to answer the following question: `Who was the home team at the game where the crowd was larger than 10,000 and the home team scored 7.13 (55)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_14" ( "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 the home team at the game where the crowd was larger than 10,000 and the home team scored 7.13 (55)?`: ```sql
SELECT "date" FROM "round_14" WHERE "home_team"='north melbourne';
## Task Generate a SQL query to answer the following question: `What was the date of the game where North Melbourne was the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_14" ( "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 date of the game where North Melbourne was the home team?`: ```sql
SELECT "away_team" FROM "round_6" WHERE "venue"='kardinia park';
## Task Generate a SQL query to answer the following question: `Which away team played at Kardinia Park?` ### 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 away team played at Kardinia Park?`: ```sql
SELECT "no_of_cities" FROM "polish_voivodeships_and_separate_cities_" WHERE "voivodeship"='elbląg voivodeship';
## Task Generate a SQL query to answer the following question: `Namem the number of cities that contains Voivodeship of elbląg voivodeship` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "polish_voivodeships_and_separate_cities_" ( "abbreviation" text, "voivodeship" text, "capital" text, "area_km_1998" text, "population_1980" text, "no_of_cities" real, "no_of_communes" real ); ### SQL Given the database schema, here is the SQL query that answers `Namem the number of cities that contains Voivodeship of elbląg voivodeship`: ```sql
SELECT COUNT("number_of_people_1991") FROM "references" WHERE "village_german"='rupertiberg';
## Task Generate a SQL query to answer the following question: `How many people in 1991 have a Village (German) of rupertiberg?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "village_german" text, "village_slovene" text, "number_of_people_1991" real, "percent_of_slovenes_1991" text, "percent_of_slovenes_1951" text ); ### SQL Given the database schema, here is the SQL query that answers `How many people in 1991 have a Village (German) of rupertiberg?`: ```sql
SELECT "score" FROM "game_log" WHERE "date"='october 30';
## Task Generate a SQL query to answer the following question: `What was the score on October 30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "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 score on October 30?`: ```sql
SELECT "attendance" FROM "game_log" WHERE "date"='october 6';
## Task Generate a SQL query to answer the following question: `What was the attendance on October 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "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 attendance on October 6?`: ```sql
SELECT "record" FROM "game_log" WHERE "date"='october 24';
## Task Generate a SQL query to answer the following question: `What was the record on October 24?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "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 record on October 24?`: ```sql
SELECT "visitor" FROM "game_log" WHERE "date"='october 20';
## Task Generate a SQL query to answer the following question: `Who was the visitor on October 20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "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 `Who was the visitor on October 20?`: ```sql
SELECT "smoke_point" FROM "comparative_properties_of_common_cooking" WHERE "monounsaturated_fat"='30g';
## Task Generate a SQL query to answer the following question: `Name the smoke point for monosaturated fat of 30g` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparative_properties_of_common_cooking" ( "total_fat" text, "saturated_fat" text, "monounsaturated_fat" text, "polyunsaturated_fat" text, "smoke_point" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the smoke point for monosaturated fat of 30g`: ```sql
SELECT "polyunsaturated_fat" FROM "comparative_properties_of_common_cooking" WHERE "total_fat"='100g' AND "monounsaturated_fat"='20g (84g in high oleic variety)';
## Task Generate a SQL query to answer the following question: `Name the polyunsaturated fat with total fat of 100g and monounsaturated fat of 20g (84g in high oleic variety)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparative_properties_of_common_cooking" ( "total_fat" text, "saturated_fat" text, "monounsaturated_fat" text, "polyunsaturated_fat" text, "smoke_point" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the polyunsaturated fat with total fat of 100g and monounsaturated fat of 20g (84g in high oleic variety)`: ```sql
SELECT "polyunsaturated_fat" FROM "comparative_properties_of_common_cooking" WHERE "total_fat"='100g' AND "saturated_fat"='7g';
## Task Generate a SQL query to answer the following question: `Name the polyunsaturated fat with total fat of 100g and saturated fat of 7g` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparative_properties_of_common_cooking" ( "total_fat" text, "saturated_fat" text, "monounsaturated_fat" text, "polyunsaturated_fat" text, "smoke_point" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the polyunsaturated fat with total fat of 100g and saturated fat of 7g`: ```sql
SELECT "polyunsaturated_fat" FROM "comparative_properties_of_common_cooking" WHERE "saturated_fat"='25g';
## Task Generate a SQL query to answer the following question: `Name the polyunsaturated fat with a saturated fat of 25g` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparative_properties_of_common_cooking" ( "total_fat" text, "saturated_fat" text, "monounsaturated_fat" text, "polyunsaturated_fat" text, "smoke_point" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the polyunsaturated fat with a saturated fat of 25g`: ```sql
SELECT "total_fat" FROM "comparative_properties_of_common_cooking" WHERE "polyunsaturated_fat"='11g' AND "monounsaturated_fat"='45g';
## Task Generate a SQL query to answer the following question: `Name the total fat which has a polyunsaturated fat of 11g and monounsaturated fat of 45g` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparative_properties_of_common_cooking" ( "total_fat" text, "saturated_fat" text, "monounsaturated_fat" text, "polyunsaturated_fat" text, "smoke_point" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total fat which has a polyunsaturated fat of 11g and monounsaturated fat of 45g`: ```sql
SELECT "result" FROM "walter_pery_martinez_international_goals" WHERE "competition"='friendly' AND "date"='9 october 2010';
## Task Generate a SQL query to answer the following question: `Name the result for friendly competition on 9 october 2010` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "walter_pery_martinez_international_goals" ( "goal" real, "date" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the result for friendly competition on 9 october 2010`: ```sql
SELECT "result" FROM "walter_pery_martinez_international_goals" WHERE "competition"='uncaf nations cup 2009' AND "goal"=6;
## Task Generate a SQL query to answer the following question: `Name the result for uncaf nations cup 2009 and 6 goal` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "walter_pery_martinez_international_goals" ( "goal" real, "date" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the result for uncaf nations cup 2009 and 6 goal`: ```sql
SELECT "team_1" FROM "first_round" WHERE "team_2"='la nuova piovese (veneto a)';
## Task Generate a SQL query to answer the following question: `Which team was team 1 that had a team 2 that was la nuova piovese (veneto a)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `Which team was team 1 that had a team 2 that was la nuova piovese (veneto a)?`: ```sql
SELECT "2nd_leg" FROM "first_round" WHERE "team_2"='budoni (sardinia)';
## Task Generate a SQL query to answer the following question: `What was the 2nd leg where the team 2 was budoni (sardinia)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the 2nd leg where the team 2 was budoni (sardinia)?`: ```sql
SELECT "team_1" FROM "first_round" WHERE "team_2"='avigliano (basilicata)';
## Task Generate a SQL query to answer the following question: `Which was the team 1 that had a team 2 which was avigliano (basilicata)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `Which was the team 1 that had a team 2 which was avigliano (basilicata)?`: ```sql
SELECT "cash_on_hand" FROM "republicans" WHERE "after_debt"='$82,741';
## Task Generate a SQL query to answer the following question: `How much cash was on hand after debt of $82,741?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "republicans" ( "candidate" text, "money_raised_3_q" text, "loans_received_3_q" text, "money_spent_3_q" text, "total_receipts" text, "cash_on_hand" text, "total_debt" text, "after_debt" text ); ### SQL Given the database schema, here is the SQL query that answers `How much cash was on hand after debt of $82,741?`: ```sql
SELECT "loans_received_3_q" FROM "republicans" WHERE "total_debt"='$169,256';
## Task Generate a SQL query to answer the following question: `What was the amount of loans received with a total debt of $169,256?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "republicans" ( "candidate" text, "money_raised_3_q" text, "loans_received_3_q" text, "money_spent_3_q" text, "total_receipts" text, "cash_on_hand" text, "total_debt" text, "after_debt" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the amount of loans received with a total debt of $169,256?`: ```sql
SELECT "total_receipts" FROM "republicans" WHERE "money_raised_3_q"='$925,745';
## Task Generate a SQL query to answer the following question: `What was the amount of total receipts when $925,745 was raised?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "republicans" ( "candidate" text, "money_raised_3_q" text, "loans_received_3_q" text, "money_spent_3_q" text, "total_receipts" text, "cash_on_hand" text, "total_debt" text, "after_debt" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the amount of total receipts when $925,745 was raised?`: ```sql
SELECT "money_spent_3_q" FROM "republicans" WHERE "after_debt"='$1,757,936';
## Task Generate a SQL query to answer the following question: `How much money was spent when the amount after debt was $1,757,936?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "republicans" ( "candidate" text, "money_raised_3_q" text, "loans_received_3_q" text, "money_spent_3_q" text, "total_receipts" text, "cash_on_hand" text, "total_debt" text, "after_debt" text ); ### SQL Given the database schema, here is the SQL query that answers `How much money was spent when the amount after debt was $1,757,936?`: ```sql
SELECT "after_debt" FROM "republicans" WHERE "cash_on_hand"='$651,300';
## Task Generate a SQL query to answer the following question: `How much is after debt when cash on hand is $651,300?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "republicans" ( "candidate" text, "money_raised_3_q" text, "loans_received_3_q" text, "money_spent_3_q" text, "total_receipts" text, "cash_on_hand" text, "total_debt" text, "after_debt" text ); ### SQL Given the database schema, here is the SQL query that answers `How much is after debt when cash on hand is $651,300?`: ```sql
SELECT MIN("total") FROM "medal_table" WHERE "bronze">0 AND "nation"='france (fra)';
## Task Generate a SQL query to answer the following question: `What is the lowest total when the Bronze metals are larger than 0 and the nation is France (fra)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest total when the Bronze metals are larger than 0 and the nation is France (fra)?`: ```sql
SELECT MAX("silver") FROM "medal_table" WHERE "bronze"=1 AND "gold"=1;
## Task Generate a SQL query to answer the following question: `What is the highest silver medal count when there is 1 Bronze medal and 1 Gold medal?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest silver medal count when there is 1 Bronze medal and 1 Gold medal?`: ```sql
SELECT COUNT("total") FROM "medal_table" WHERE "bronze"<1 AND "silver"<1 AND "gold"<1;
## Task Generate a SQL query to answer the following question: `What is the total number of medals when the Bronze, Silver, and Gold medals are smaller than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of medals when the Bronze, Silver, and Gold medals are smaller than 1?`: ```sql
SELECT SUM("bronze") FROM "medal_table" WHERE "gold">0 AND "silver"<1 AND "total"<1;
## Task Generate a SQL query to answer the following question: `What is the sum of the Bronze medals when the Gold medals are larger than 0, Silver medals are smaller than 1, and the total is smaller than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of the Bronze medals when the Gold medals are larger than 0, Silver medals are smaller than 1, and the total is smaller than 1?`: ```sql
SELECT "result" FROM "international_goals" WHERE "date"='11 august 2010';
## Task Generate a SQL query to answer the following question: `what is the result for 11 august 2010?` ### 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 is the result for 11 august 2010?`: ```sql
SELECT "result" FROM "international_goals" WHERE "competition"='friendly' AND "date"='8 october 2009';
## Task Generate a SQL query to answer the following question: `what is the result when the competition is friendly on 8 october 2009?` ### 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 is the result when the competition is friendly on 8 october 2009?`: ```sql
SELECT "english_abbr" FROM "national_conservatives" WHERE "from"='20 july 1999';
## Task Generate a SQL query to answer the following question: `On the date of 20 July 1999 what is the English abbr.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "national_conservatives" ( "group_name" text, "english_abbr" text, "french_abbr" text, "formal_european_parliament_name" text, "from" text ); ### SQL Given the database schema, here is the SQL query that answers `On the date of 20 July 1999 what is the English abbr.?`: ```sql
SELECT "from" FROM "national_conservatives" WHERE "group_name"='group union for europe';
## Task Generate a SQL query to answer the following question: `What is the date for the group union for Europe?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "national_conservatives" ( "group_name" text, "english_abbr" text, "french_abbr" text, "formal_european_parliament_name" text, "from" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date for the group union for Europe?`: ```sql
SELECT "group_name" FROM "national_conservatives" WHERE "from"='20 july 1999';
## Task Generate a SQL query to answer the following question: `What is the group name on the date of 20 July 1999?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "national_conservatives" ( "group_name" text, "english_abbr" text, "french_abbr" text, "formal_european_parliament_name" text, "from" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the group name on the date of 20 July 1999?`: ```sql
SELECT "french_abbr" FROM "national_conservatives" WHERE "group_name"='european progressive democrats';
## Task Generate a SQL query to answer the following question: `For the group name European Progressive Democrats what is the French abbr?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "national_conservatives" ( "group_name" text, "english_abbr" text, "french_abbr" text, "formal_european_parliament_name" text, "from" text ); ### SQL Given the database schema, here is the SQL query that answers `For the group name European Progressive Democrats what is the French abbr?`: ```sql
SELECT "livery" FROM "tanker_wagons" WHERE "description"='20t tanker' AND "date">1941;
## Task Generate a SQL query to answer the following question: `Which Livery has a Description of 20t tanker, with a date later than 1941?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tanker_wagons" ( "number_name" text, "description" text, "current_status" text, "livery" text, "date" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Livery has a Description of 20t tanker, with a date later than 1941?`: ```sql
SELECT "description" FROM "tanker_wagons" WHERE "livery"='black' AND "date"<1897 AND "number_name"='scottish tar distillers no. 78';
## Task Generate a SQL query to answer the following question: `What's the Description for Scottish Tar Distillers No. 78, that's Livery is black, and a date prior to 1897?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tanker_wagons" ( "number_name" text, "description" text, "current_status" text, "livery" text, "date" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the Description for Scottish Tar Distillers No. 78, that's Livery is black, and a date prior to 1897?`: ```sql
SELECT "score" FROM "january" WHERE "home"='washington' AND "visitor"='florida';
## Task Generate a SQL query to answer the following question: `What was the score of the game that Washington played at home against Florida?` ### 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, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score of the game that Washington played at home against Florida?`: ```sql
SELECT "driver" FROM "classification" WHERE "constructor"='brm' AND "laps">30;
## Task Generate a SQL query to answer the following question: `What driver has BRM as a constructor and had more than 30 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 driver has BRM as a constructor and had more than 30 laps?`: ```sql
SELECT COUNT("lost") FROM "club_official" WHERE "period"='12 november 2012 – 27 november 2012' AND "managed">2;
## Task Generate a SQL query to answer the following question: `How many lost when the number managed is over 2 and the period is from 12 november 2012 – 27 november 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "club_official" ( "name" text, "period" text, "managed" real, "drawn" real, "lost" real, "win_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `How many lost when the number managed is over 2 and the period is from 12 november 2012 – 27 november 2012?`: ```sql
SELECT AVG("attendance") FROM "back_to_back_night_pre_season_winners" WHERE "season"<1986 AND "margin"=6 AND "score"='13.16 (94) – 13.10 (88)';
## Task Generate a SQL query to answer the following question: `What is the average attendnace for seasons before 1986, a margin of 6, and a Score of 13.16 (94) – 13.10 (88)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "back_to_back_night_pre_season_winners" ( "season" real, "premier" text, "runner_up" text, "score" text, "venue" text, "attendance" real, "margin" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average attendnace for seasons before 1986, a margin of 6, and a Score of 13.16 (94) – 13.10 (88)?`: ```sql
SELECT MIN("season") FROM "back_to_back_night_pre_season_winners" WHERE "venue"='waverley park' AND "score"='15.12 (102) – 9.14 (68)' AND "margin">34;
## Task Generate a SQL query to answer the following question: `When is the earliest season at waverley park, a Score of 15.12 (102) – 9.14 (68), and a Margin larger than 34?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "back_to_back_night_pre_season_winners" ( "season" real, "premier" text, "runner_up" text, "score" text, "venue" text, "attendance" real, "margin" real ); ### SQL Given the database schema, here is the SQL query that answers `When is the earliest season at waverley park, a Score of 15.12 (102) – 9.14 (68), and a Margin larger than 34?`: ```sql
SELECT COUNT("season") FROM "back_to_back_night_pre_season_winners" WHERE "premier"='essendon' AND "score"='15.12 (102) – 9.14 (68)';
## Task Generate a SQL query to answer the following question: `How many seasons feature essendon, and a Score of 15.12 (102) – 9.14 (68)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "back_to_back_night_pre_season_winners" ( "season" real, "premier" text, "runner_up" text, "score" text, "venue" text, "attendance" real, "margin" real ); ### SQL Given the database schema, here is the SQL query that answers `How many seasons feature essendon, and a Score of 15.12 (102) – 9.14 (68)?`: ```sql
SELECT MIN("crowd") FROM "round_14" WHERE "home_team_score"='16.13 (109)';
## Task Generate a SQL query to answer the following question: `How low was the attendance at the game that ended with a home team score of 16.13 (109)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_14" ( "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 `How low was the attendance at the game that ended with a home team score of 16.13 (109)?`: ```sql
SELECT "date" FROM "round_19" WHERE "venue"='mcg';
## Task Generate a SQL query to answer the following question: `What was the date of the game at MCG?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_19" ( "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 date of the game at MCG?`: ```sql
SELECT "date" FROM "round_19" WHERE "home_team"='geelong';
## Task Generate a SQL query to answer the following question: `What was the date of the game where Geelong was the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_19" ( "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 date of the game where Geelong was the home team?`: ```sql
SELECT COUNT("crowd") FROM "round_19" WHERE "away_team"='footscray';
## Task Generate a SQL query to answer the following question: `What was the crowd size for the game where Footscray was the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_19" ( "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 crowd size for the game where Footscray was the away team?`: ```sql
SELECT MAX("total") FROM "membership" WHERE "team"='texas tech red raiders' AND "regular_season">7;
## Task Generate a SQL query to answer the following question: `How many total wins do the Texas Tech Red Raiders have including the 7 regular season wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "membership" ( "team" text, "season" text, "regular_season" real, "postseason" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many total wins do the Texas Tech Red Raiders have including the 7 regular season wins?`: ```sql
SELECT SUM("round") FROM "2008_draft_picks" WHERE "nationality"='sweden' AND "overall"=199;
## Task Generate a SQL query to answer the following question: `What is the total round with an overall of 199 with sweden?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_draft_picks" ( "round" real, "overall" real, "player" text, "position" text, "nationality" text, "club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total round with an overall of 199 with sweden?`: ```sql
SELECT "overall" FROM "2008_draft_picks" WHERE "nationality"='canada' AND "round"=2;
## Task Generate a SQL query to answer the following question: `What is the total for Canada during round 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_draft_picks" ( "round" real, "overall" real, "player" text, "position" text, "nationality" text, "club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total for Canada during round 2?`: ```sql
SELECT "club_team" FROM "2008_draft_picks" WHERE "round"=4 AND "overall"=119;
## Task Generate a SQL query to answer the following question: `Which team scores 119 in round 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_draft_picks" ( "round" real, "overall" real, "player" text, "position" text, "nationality" text, "club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which team scores 119 in round 4?`: ```sql
SELECT "attendance" FROM "november" WHERE "visitor"='anaheim';
## Task Generate a SQL query to answer the following question: `What was the attendance at the Kings game when Anaheim 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, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the attendance at the Kings game when Anaheim was the visiting team?`: ```sql
SELECT "score" FROM "november" WHERE "record"='8–11–1';
## Task Generate a SQL query to answer the following question: `What was the score of the Kings game when they had a record of 8–11–1?` ### 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, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score of the Kings game when they had a record of 8–11–1?`: ```sql
SELECT "high_points" FROM "game_log" WHERE "team"='charlotte';
## Task Generate a SQL query to answer the following question: `Name the high points for charlotte` ### 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 `Name the high points for charlotte`: ```sql
SELECT "team" FROM "game_log" WHERE "date"='february 12';
## Task Generate a SQL query to answer the following question: `Name the team on february 12` ### 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 `Name the team on february 12`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "game">54 AND "date"='february 25';
## Task Generate a SQL query to answer the following question: `Name the location attendance for game more than 54 on february 25` ### 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 `Name the location attendance for game more than 54 on february 25`: ```sql