output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT SUM("tie_no") FROM "ties" WHERE "away_team"='solihull moors';
## Task Generate a SQL query to answer the following question: `what is the tie no when the away team is solihull moors?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ties" ( "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 `what is the tie no when the away team is solihull moors?`: ```sql
SELECT "away_team" FROM "ties" WHERE "tie_no">13 AND "home_team"='team bath';
## Task Generate a SQL query to answer the following question: `who is the away team when the tie no is more than 13 and the home team is team bath?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ties" ( "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 away team when the tie no is more than 13 and the home team is team bath?`: ```sql
SELECT AVG("pick_num") FROM "round_one" WHERE "college"='simon fraser';
## Task Generate a SQL query to answer the following question: `What is the Pick # of the player from Simon Fraser College?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Pick # of the player from Simon Fraser College?`: ```sql
SELECT "margin_of_victory" FROM "pga_tour_wins_5" WHERE "winning_score"='βˆ’10 (71-65-68-70=274)';
## Task Generate a SQL query to answer the following question: `What is the margin of victory for the winning score of βˆ’10 (71-65-68-70=274)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_5" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the margin of victory for the winning score of βˆ’10 (71-65-68-70=274)?`: ```sql
SELECT "runner_s_up" FROM "pga_tour_wins_5" WHERE "winning_score"='βˆ’3 (71-74-66-66=277)';
## Task Generate a SQL query to answer the following question: `Who is the runner(s)-up for a winning score of βˆ’3 (71-74-66-66=277)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_5" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the runner(s)-up for a winning score of βˆ’3 (71-74-66-66=277)?`: ```sql
SELECT "venue" FROM "achievements" WHERE "extra"<7.4 AND "result"='4th';
## Task Generate a SQL query to answer the following question: `What venue had less than 7.4 extra and the result of 4th?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "meeting" text, "venue" text, "result" text, "event" text, "extra" real ); ### SQL Given the database schema, here is the SQL query that answers `What venue had less than 7.4 extra and the result of 4th?`: ```sql
SELECT MAX("extra") FROM "achievements" WHERE "meeting"='all africa games' AND "year"<2003;
## Task Generate a SQL query to answer the following question: `What is the highest extra total before 2003 at the Meeting of all africa games?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "meeting" text, "venue" text, "result" text, "event" text, "extra" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest extra total before 2003 at the Meeting of all africa games?`: ```sql
SELECT "year" FROM "achievements" WHERE "extra"=8 AND "result"='3rd';
## Task Generate a SQL query to answer the following question: `What year has an extra of 8, and a result of 3rd?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "meeting" text, "venue" text, "result" text, "event" text, "extra" real ); ### SQL Given the database schema, here is the SQL query that answers `What year has an extra of 8, and a result of 3rd?`: ```sql
SELECT "year" FROM "achievements" WHERE "venue"='algiers, algeria' AND "extra"<8.03 AND "meeting"='all africa games';
## Task Generate a SQL query to answer the following question: `What year has a venue of algiers, algeria, extra smaller than 8.03, and a Meeting of all africa games?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "meeting" text, "venue" text, "result" text, "event" text, "extra" real ); ### SQL Given the database schema, here is the SQL query that answers `What year has a venue of algiers, algeria, extra smaller than 8.03, and a Meeting of all africa games?`: ```sql
SELECT "date" FROM "pool_a" WHERE "set_3"='15–6';
## Task Generate a SQL query to answer the following question: `What is the Date with a Set 3 with 15–6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pool_a" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Date with a Set 3 with 15–6?`: ```sql
SELECT "set_3" FROM "pool_a" WHERE "score"='3–1' AND "set_2"='13–15';
## Task Generate a SQL query to answer the following question: `What is the Set 3 with a Score of 3–1, and has a Set 2 of 13–15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pool_a" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Set 3 with a Score of 3–1, and has a Set 2 of 13–15?`: ```sql
SELECT "set_1" FROM "pool_a" WHERE "score"='3–0' AND "set_3"='15–12';
## Task Generate a SQL query to answer the following question: `What is the Set 1 with a Score of 3–0, and has a Set 3 of 15–12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pool_a" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Set 1 with a Score of 3–0, and has a Set 3 of 15–12?`: ```sql
SELECT "set_1" FROM "pool_a" WHERE "score"='3–0' AND "set_3"='15–10';
## Task Generate a SQL query to answer the following question: `What is the Set 1 with a Score of 3–0, and has a Set 3 of 15–10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pool_a" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Set 1 with a Score of 3–0, and has a Set 3 of 15–10?`: ```sql
SELECT "set_2" FROM "pool_a" WHERE "total"='45–12';
## Task Generate a SQL query to answer the following question: `What is the Set 2 with a Total with 45–12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pool_a" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Set 2 with a Total with 45–12?`: ```sql
SELECT "total" FROM "pool_a" WHERE "score"='3–0' AND "date"='14 oct' AND "set_1"='15–12';
## Task Generate a SQL query to answer the following question: `What is the Total with a Score of 3–0, and a Date of 14 oct, and has a Set 1 of 15–12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pool_a" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Total with a Score of 3–0, and a Date of 14 oct, and has a Set 1 of 15–12?`: ```sql
SELECT "date" FROM "round_9" WHERE "home_team"='footscray';
## Task Generate a SQL query to answer the following question: `What was the date of the footscray home game?` ### 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 `What was the date of the footscray home game?`: ```sql
SELECT "time" FROM "mixed_martial_arts_record" WHERE "opponent"='martin kampmann';
## Task Generate a SQL query to answer the following question: `Tell me the time for martin kampmann` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the time for martin kampmann`: ```sql
SELECT SUM("round") FROM "mixed_martial_arts_record" WHERE "record"='6-3';
## Task Generate a SQL query to answer the following question: `Tell me the sum of round for record of 6-3` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the sum of round for record of 6-3`: ```sql
SELECT "location" FROM "mixed_martial_arts_record" WHERE "res"='win' AND "record"='8-5';
## Task Generate a SQL query to answer the following question: `Tell me the location for win with record of 8-5` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the location for win with record of 8-5`: ```sql
SELECT MIN("crowd") FROM "round_13" WHERE "away_team"='north melbourne';
## Task Generate a SQL query to answer the following question: `In which of North Melbourne's away games was there the lowest crowd?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `In which of North Melbourne's away games was there the lowest crowd?`: ```sql
SELECT "build_date" FROM "baldwin_locomotive_works" WHERE "prr_class"='brs24';
## Task Generate a SQL query to answer the following question: `What is the build date of the model with PRR Class brs24?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "baldwin_locomotive_works" ( "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 build date of the model with PRR Class brs24?`: ```sql
SELECT SUM("total_produced") FROM "baldwin_locomotive_works" WHERE "wheel_arrangement"='b-b' AND "prr_class"='bs6' AND "builder_s_model"='ds-4-4-660';
## Task Generate a SQL query to answer the following question: `How many total units were built of Model ds-4-4-660 with a b-b wheel arrangement and a PRR Class of bs6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "baldwin_locomotive_works" ( "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 `How many total units were built of Model ds-4-4-660 with a b-b wheel arrangement and a PRR Class of bs6?`: ```sql
SELECT "build_date" FROM "baldwin_locomotive_works" WHERE "prr_class"='brs24';
## Task Generate a SQL query to answer the following question: `What is the build date of the model with a PRR Class of brs24?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "baldwin_locomotive_works" ( "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 build date of the model with a PRR Class of brs24?`: ```sql
SELECT COUNT("roll") FROM "far_north" WHERE "name"='te hapua school';
## Task Generate a SQL query to answer the following question: `What is the total number of roll for Te Hapua school?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "far_north" ( "name" text, "years" text, "area" text, "authority" text, "decile" real, "roll" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of roll for Te Hapua school?`: ```sql
SELECT "place_of_action" FROM "korean_expedition" WHERE "service"='marine corps' AND "rank"='corporal';
## Task Generate a SQL query to answer the following question: `Name the place of action for the marine corps and corporal rank` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "korean_expedition" ( "name" text, "service" text, "rank" text, "place_of_action" text, "unit" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the place of action for the marine corps and corporal rank`: ```sql
SELECT COUNT("grid") FROM "race" WHERE "laps">60 AND "driver"='heinz-harald frentzen';
## Task Generate a SQL query to answer the following question: `When driver heinz-harald frentzen has a number of laps greater than 60, what is the sum of grid?` ### 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 `When driver heinz-harald frentzen has a number of laps greater than 60, what is the sum of grid?`: ```sql
SELECT SUM("population") FROM "list_of_municipalities_in_quebec" WHERE "name"='saint-wenceslas' AND "region"<17;
## Task Generate a SQL query to answer the following question: `What is the population total for saint-wenceslas with a region number of under 17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_municipalities_in_quebec" ( "code" real, "type" text, "name" text, "area_km_2" real, "population" real, "regional_county_municipality" text, "region" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the population total for saint-wenceslas with a region number of under 17?`: ```sql
SELECT MIN("code") FROM "list_of_municipalities_in_quebec" WHERE "type"='m' AND "name"='saint-sylvère' AND "region"<17;
## Task Generate a SQL query to answer the following question: `What is the smallest code associated with a type of m for a region less than 17 named, named saint-sylvère?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_municipalities_in_quebec" ( "code" real, "type" text, "name" text, "area_km_2" real, "population" real, "regional_county_municipality" text, "region" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest code associated with a type of m for a region less than 17 named, named saint-sylvère?`: ```sql
SELECT "competition" FROM "ireland_international_goals" WHERE "venue"='daugava stadium, riga, latvia';
## Task Generate a SQL query to answer the following question: `What competition was at the Daugava Stadium, Riga, Latvia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ireland_international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What competition was at the Daugava Stadium, Riga, Latvia?`: ```sql
SELECT COUNT("goal") FROM "ireland_international_goals" WHERE "date"='15 november 1989';
## Task Generate a SQL query to answer the following question: `How many total goals were made at the game on 15 November 1989?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ireland_international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `How many total goals were made at the game on 15 November 1989?`: ```sql
SELECT "captain" FROM "personnel_and_kits" WHERE "team"='leeds united';
## Task Generate a SQL query to answer the following question: `What is the captain's name of team Leeds United?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personnel_and_kits" ( "team" text, "manager" text, "captain" text, "kit_manufacturer" text, "shirt_sponsor" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the captain's name of team Leeds United?`: ```sql
SELECT "shirt_sponsor" FROM "personnel_and_kits" WHERE "captain"='geoff thomas';
## Task Generate a SQL query to answer the following question: `Who is the shirt sponsor for Captain Geoff Thomas' team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personnel_and_kits" ( "team" text, "manager" text, "captain" text, "kit_manufacturer" text, "shirt_sponsor" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the shirt sponsor for Captain Geoff Thomas' team?`: ```sql
SELECT "team" FROM "personnel_and_kits" WHERE "shirt_sponsor"='tulip computers nv';
## Task Generate a SQL query to answer the following question: `What is the name of the team that Tulip Computers NV sponsors?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personnel_and_kits" ( "team" text, "manager" text, "captain" text, "kit_manufacturer" text, "shirt_sponsor" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the team that Tulip Computers NV sponsors?`: ```sql
SELECT "captain" FROM "personnel_and_kits" WHERE "team"='norwich city';
## Task Generate a SQL query to answer the following question: `What is the name of the captain for team Norwich City?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personnel_and_kits" ( "team" text, "manager" text, "captain" text, "kit_manufacturer" text, "shirt_sponsor" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the captain for team Norwich City?`: ```sql
SELECT "team" FROM "personnel_and_kits" WHERE "manager"='graeme souness';
## Task Generate a SQL query to answer the following question: `What team does Graeme Souness manage?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personnel_and_kits" ( "team" text, "manager" text, "captain" text, "kit_manufacturer" text, "shirt_sponsor" text ); ### SQL Given the database schema, here is the SQL query that answers `What team does Graeme Souness manage?`: ```sql
SELECT MIN("laps") FROM "classification" WHERE "grid"<5 AND "driver"='juan manuel fangio';
## Task Generate a SQL query to answer the following question: `what is the lowest laps when the grid is smaller than 5 and the driver is juan manuel fangio?` ### 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 lowest laps when the grid is smaller than 5 and the driver is juan manuel fangio?`: ```sql
SELECT COUNT("grid") FROM "classification" WHERE "time_retired"='+9 laps' AND "laps">91;
## Task Generate a SQL query to answer the following question: `what is the grid when the time/retired is +9 laps and the laps is larger than 91?` ### 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 when the time/retired is +9 laps and the laps is larger than 91?`: ```sql
SELECT MIN("grid") FROM "classification" WHERE "time_retired"='clutch' AND "driver"='peter collins' AND "laps"<26;
## Task Generate a SQL query to answer the following question: `what is the lowest grid when the time retired is clutch, the driver is peter collins and the laps is smaller than 26?` ### 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 lowest grid when the time retired is clutch, the driver is peter collins and the laps is smaller than 26?`: ```sql
SELECT "zone" FROM "grand_canyon_zoning_and_use_limits" WHERE "camp_type"='d/s' AND "area"='bl9';
## Task Generate a SQL query to answer the following question: `What zone has camp type D/S in area Bl9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_canyon_zoning_and_use_limits" ( "area" text, "name" text, "zone" text, "group_s" real, "parties" real, "max_people" real, "camp_type" text ); ### SQL Given the database schema, here is the SQL query that answers `What zone has camp type D/S in area Bl9?`: ```sql
SELECT "name" FROM "grand_canyon_zoning_and_use_limits" WHERE "group_s"=0 AND "area"='bl4';
## Task Generate a SQL query to answer the following question: `Which name has group 0 in Bl4 area?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_canyon_zoning_and_use_limits" ( "area" text, "name" text, "zone" text, "group_s" real, "parties" real, "max_people" real, "camp_type" text ); ### SQL Given the database schema, here is the SQL query that answers `Which name has group 0 in Bl4 area?`: ```sql
SELECT "zone" FROM "grand_canyon_zoning_and_use_limits" WHERE "max_people">23 AND "group_s"<2 AND "name"='robbers roost';
## Task Generate a SQL query to answer the following question: `Which zone has max capacity of 23 in a group under 2 at Robbers Roost?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_canyon_zoning_and_use_limits" ( "area" text, "name" text, "zone" text, "group_s" real, "parties" real, "max_people" real, "camp_type" text ); ### SQL Given the database schema, here is the SQL query that answers `Which zone has max capacity of 23 in a group under 2 at Robbers Roost?`: ```sql
SELECT AVG("crowd") FROM "round_11" WHERE "away_team"='melbourne';
## Task Generate a SQL query to answer the following question: `I want to know the average crowd for away team of melbourne` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_11" ( "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 `I want to know the average crowd for away team of melbourne`: ```sql
SELECT "driver" FROM "race" WHERE "time_retired"='off course';
## Task Generate a SQL query to answer the following question: `Which driver had a time off course?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which driver had a time off course?`: ```sql
SELECT MAX("laps") FROM "race" WHERE "grid"='2' AND "points">26;
## Task Generate a SQL query to answer the following question: `What is the top lap that had 2 grids and more than 26 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the top lap that had 2 grids and more than 26 points?`: ```sql
SELECT MAX("laps") FROM "race" WHERE "grid"='6' AND "points">19;
## Task Generate a SQL query to answer the following question: `What is the top lap that had 6 grids and more than 19 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the top lap that had 6 grids and more than 19 points?`: ```sql
SELECT AVG("points") FROM "race" WHERE "driver"='tristan gommendy';
## Task Generate a SQL query to answer the following question: `What is the average point count for tristan gommendy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average point count for tristan gommendy?`: ```sql
SELECT MIN("points") FROM "race" WHERE "grid"='2';
## Task Generate a SQL query to answer the following question: `What is the point low with 2 grids?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the point low with 2 grids?`: ```sql
SELECT "dismissals" FROM "most_dismissals_in_a_match" WHERE "venue"='source: cricinfo.com';
## Task Generate a SQL query to answer the following question: `What is the Dismissals with a Venue with source: cricinfo.com?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_dismissals_in_a_match" ( "dismissals" text, "player" text, "versus" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Dismissals with a Venue with source: cricinfo.com?`: ```sql
SELECT "versus" FROM "most_dismissals_in_a_match" WHERE "player"='ko otieno' AND "venue"='bloemfontein';
## Task Generate a SQL query to answer the following question: `What is the Versus with a Player with ko otieno, with Venue with bloemfontein?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_dismissals_in_a_match" ( "dismissals" text, "player" text, "versus" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Versus with a Player with ko otieno, with Venue with bloemfontein?`: ```sql
SELECT "venue" FROM "most_dismissals_in_a_match" WHERE "date"='27-02-2003';
## Task Generate a SQL query to answer the following question: `What is the Venue with a Date with 27-02-2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_dismissals_in_a_match" ( "dismissals" text, "player" text, "versus" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Venue with a Date with 27-02-2003?`: ```sql
SELECT "player" FROM "most_dismissals_in_a_match" WHERE "versus"='australia';
## Task Generate a SQL query to answer the following question: `What is the Player with Versus with australia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_dismissals_in_a_match" ( "dismissals" text, "player" text, "versus" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Player with Versus with australia?`: ```sql
SELECT "player" FROM "most_dismissals_in_a_match" WHERE "date"='12-03-2003';
## Task Generate a SQL query to answer the following question: `What is the Player with a Date with 12-03-2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_dismissals_in_a_match" ( "dismissals" text, "player" text, "versus" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Player with a Date with 12-03-2003?`: ```sql
SELECT "dismissals" FROM "most_dismissals_in_a_match" WHERE "player"='source: cricinfo.com';
## Task Generate a SQL query to answer the following question: `What is the Dismissals with a Player with source: cricinfo.com?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_dismissals_in_a_match" ( "dismissals" text, "player" text, "versus" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Dismissals with a Player with source: cricinfo.com?`: ```sql
SELECT COUNT("attendance") FROM "november" WHERE "visitor"='charlotte' AND "leading_scorer"='ricky davis (23)';
## Task Generate a SQL query to answer the following question: `What is the sum number of attendance when the visiting team was Charlotte and the leading scorer was Ricky Davis (23)?` ### 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 is the sum number of attendance when the visiting team was Charlotte and the leading scorer was Ricky Davis (23)?`: ```sql
SELECT "visitor" FROM "november" WHERE "home"='miami' AND "date"='november 4';
## Task Generate a SQL query to answer the following question: `Which Visitor was there when the Home game was played in Miami on November 4?` ### 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 `Which Visitor was there when the Home game was played in Miami on November 4?`: ```sql
SELECT "nationality" FROM "draft_picks" WHERE "player"='demetris nichols';
## Task Generate a SQL query to answer the following question: `What nationality is Demetris Nichols?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "position" text, "nationality" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What nationality is Demetris Nichols?`: ```sql
SELECT "school_club_team" FROM "draft_picks" WHERE "round"=2 AND "pick"<42;
## Task Generate a SQL query to answer the following question: `What school or team has round of 2 with less than 42 picks?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "position" text, "nationality" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What school or team has round of 2 with less than 42 picks?`: ```sql
SELECT "position" FROM "draft_picks" WHERE "round"<2;
## Task Generate a SQL query to answer the following question: `What position has round less than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "position" text, "nationality" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What position has round less than 2?`: ```sql
SELECT "venue" FROM "round_12" WHERE "home_team"='essendon';
## Task Generate a SQL query to answer the following question: `In what venue is Essendon the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_12" ( "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 what venue is Essendon the home team?`: ```sql
SELECT "away_team" FROM "round_12" WHERE "venue"='windy hill';
## Task Generate a SQL query to answer the following question: `Who was the away team when the venue was Windy Hill?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_12" ( "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 away team when the venue was Windy Hill?`: ```sql
SELECT "away_team_score" FROM "round_12" WHERE "away_team"='hawthorn';
## Task Generate a SQL query to answer the following question: `What was the score for Hawthorn when they were the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_12" ( "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 score for Hawthorn when they were the away team?`: ```sql
SELECT "method" FROM "mixed_martial_arts_record" WHERE "res"='win' AND "opponent"='natsuko kikukawa';
## Task Generate a SQL query to answer the following question: `What method was used that had a resulting win against opponent, Natsuko Kikukawa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" real, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What method was used that had a resulting win against opponent, Natsuko Kikukawa?`: ```sql
SELECT MAX("round") FROM "mixed_martial_arts_record" WHERE "opponent"='hikaru shinohara' AND "record"='11-7';
## Task Generate a SQL query to answer the following question: `What was the highest number of rounds that had Hikaru Shinohara as an opponent and a record of 11-7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" real, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the highest number of rounds that had Hikaru Shinohara as an opponent and a record of 11-7?`: ```sql
SELECT "method" FROM "mixed_martial_arts_record" WHERE "record"='11-10';
## Task Generate a SQL query to answer the following question: `Which method has a record of 11-10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" real, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `Which method has a record of 11-10?`: ```sql
SELECT "loss" FROM "game_log" WHERE "attendance">'31,409' AND "date"='july 9';
## Task Generate a SQL query to answer the following question: `Who is the loser when the attendance is larger than 31,409 and the date is July 9?` ### 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 `Who is the loser when the attendance is larger than 31,409 and the date is July 9?`: ```sql
SELECT AVG("loans_received") FROM "democrats" WHERE "contributions"<'34,986,088' AND "all_disbursements">'251,093,944' AND "candidate"='dennis kucinich †' AND "operating_expenditures">'3,638,219';
## Task Generate a SQL query to answer the following question: `How much in average Loans Received has Contributions less than 34,986,088, Disbursements more than 251,093,944 for Dennis Kucinich † with Operating Expenditures more than 3,638,219?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "democrats" ( "candidate" text, "contributions" real, "loans_received" real, "all_receipts" real, "operating_expenditures" real, "all_disbursements" real ); ### SQL Given the database schema, here is the SQL query that answers `How much in average Loans Received has Contributions less than 34,986,088, Disbursements more than 251,093,944 for Dennis Kucinich † with Operating Expenditures more than 3,638,219?`: ```sql
SELECT MIN("operating_expenditures") FROM "democrats" WHERE "contributions">'8,245,241';
## Task Generate a SQL query to answer the following question: `How much is the lowest Operating Expenditures when Contributions are more than 8,245,241?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "democrats" ( "candidate" text, "contributions" real, "loans_received" real, "all_receipts" real, "operating_expenditures" real, "all_disbursements" real ); ### SQL Given the database schema, here is the SQL query that answers `How much is the lowest Operating Expenditures when Contributions are more than 8,245,241?`: ```sql
SELECT COUNT("loans_received") FROM "democrats" WHERE "all_disbursements">'21,857,565' AND "contributions">'3,869,613' AND "all_receipts"<'11,405,771';
## Task Generate a SQL query to answer the following question: `How many Loans Received have Disbursements larger than 21,857,565, and Contributions greater than 3,869,613 with Receipts under 11,405,771?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "democrats" ( "candidate" text, "contributions" real, "loans_received" real, "all_receipts" real, "operating_expenditures" real, "all_disbursements" real ); ### SQL Given the database schema, here is the SQL query that answers `How many Loans Received have Disbursements larger than 21,857,565, and Contributions greater than 3,869,613 with Receipts under 11,405,771?`: ```sql
SELECT MAX("all_receipts") FROM "democrats" WHERE "candidate"='barack obama' AND "all_disbursements"<'85,176,289';
## Task Generate a SQL query to answer the following question: `What is the most Receipts for Barack Obama with Disbursements smaller than 85,176,289?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "democrats" ( "candidate" text, "contributions" real, "loans_received" real, "all_receipts" real, "operating_expenditures" real, "all_disbursements" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the most Receipts for Barack Obama with Disbursements smaller than 85,176,289?`: ```sql
SELECT COUNT("operating_expenditures") FROM "democrats" WHERE "all_receipts"='44,259,386';
## Task Generate a SQL query to answer the following question: `How many Operating Expenditures have Receipts of 44,259,386?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "democrats" ( "candidate" text, "contributions" real, "loans_received" real, "all_receipts" real, "operating_expenditures" real, "all_disbursements" real ); ### SQL Given the database schema, here is the SQL query that answers `How many Operating Expenditures have Receipts of 44,259,386?`: ```sql
SELECT "win_num" FROM "most_valuable_player_award_winners" WHERE "season"='2004-05';
## Task Generate a SQL query to answer the following question: `How many wins were there in 2004-05?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_valuable_player_award_winners" ( "season" text, "winner" text, "team" text, "position" text, "win_num" real ); ### SQL Given the database schema, here is the SQL query that answers `How many wins were there in 2004-05?`: ```sql
SELECT COUNT("win_num") FROM "most_valuable_player_award_winners" WHERE "winner"='jim vivona';
## Task Generate a SQL query to answer the following question: `How many times did jim vivona win?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_valuable_player_award_winners" ( "season" text, "winner" text, "team" text, "position" text, "win_num" real ); ### SQL Given the database schema, here is the SQL query that answers `How many times did jim vivona win?`: ```sql
SELECT "position" FROM "most_valuable_player_award_winners" WHERE "team"='morristown minutemen';
## Task Generate a SQL query to answer the following question: `Which position was morristown minutemen in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_valuable_player_award_winners" ( "season" text, "winner" text, "team" text, "position" text, "win_num" real ); ### SQL Given the database schema, here is the SQL query that answers `Which position was morristown minutemen in?`: ```sql
SELECT "season" FROM "most_valuable_player_award_winners" WHERE "team"='harrisburg lunatics';
## Task Generate a SQL query to answer the following question: `Which season was harrisburg lunatics in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_valuable_player_award_winners" ( "season" text, "winner" text, "team" text, "position" text, "win_num" real ); ### SQL Given the database schema, here is the SQL query that answers `Which season was harrisburg lunatics in?`: ```sql
SELECT MIN("rank") FROM "leaders" WHERE "wins"<2 AND "earnings"<'1,831,211' AND "events">26;
## Task Generate a SQL query to answer the following question: `What is the smallest rank with less than 2 wings, more than 26 events, and less than $1,831,211?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "events" real, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest rank with less than 2 wings, more than 26 events, and less than $1,831,211?`: ```sql
SELECT MAX("wins") FROM "leaders" WHERE "rank"=5 AND "earnings">'1,537,571';
## Task Generate a SQL query to answer the following question: `What is the most wins with a rank of 5 and less than $1,537,571 in earnings?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "events" real, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the most wins with a rank of 5 and less than $1,537,571 in earnings?`: ```sql
SELECT "venue" FROM "football_league_cup" WHERE "round"='f';
## Task Generate a SQL query to answer the following question: `What was the venue for Round f?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "football_league_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the venue for Round f?`: ```sql
SELECT "date" FROM "football_league_cup" WHERE "result"='1-0';
## Task Generate a SQL query to answer the following question: `On what date was the Result 1-0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "football_league_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `On what date was the Result 1-0?`: ```sql
SELECT AVG("attendance") FROM "football_league_cup" WHERE "date"='10 november 2004';
## Task Generate a SQL query to answer the following question: `What was the attendance on 10 november 2004?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "football_league_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the attendance on 10 november 2004?`: ```sql
SELECT COUNT("crowd") FROM "round_9" WHERE "home_team"='fitzroy';
## Task Generate a SQL query to answer the following question: `What is the size of the crowd when the home team is Fitzroy?` ### 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 `What is the size of the crowd when the home team is Fitzroy?`: ```sql
SELECT COUNT("laps") FROM "race" WHERE "time_retired"='+ 1 lap' AND "driver"='riccardo patrese';
## Task Generate a SQL query to answer the following question: `How many laps did riccardo patrese do when he had a time/retird of + 1 lap?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `How many laps did riccardo patrese do when he had a time/retird of + 1 lap?`: ```sql
SELECT "episode" FROM "wga" WHERE "year"=2004 AND "nominee_s"='jenny bicks and cindy chupack';
## Task Generate a SQL query to answer the following question: `Name the episode for jenny bicks and cindy chupack nominees in 2004` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wga" ( "year" real, "category" text, "nominee_s" text, "episode" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the episode for jenny bicks and cindy chupack nominees in 2004`: ```sql
SELECT "episode" FROM "wga" WHERE "year">1999;
## Task Generate a SQL query to answer the following question: `Name the episode for year more than 1999` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wga" ( "year" real, "category" text, "nominee_s" text, "episode" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the episode for year more than 1999`: ```sql
SELECT "home_team_score" FROM "round_19" WHERE "venue"='junction oval';
## Task Generate a SQL query to answer the following question: `What was the home team's score at the game held at Junction Oval?` ### 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 home team's score at the game held at Junction Oval?`: ```sql
SELECT "away_team_score" FROM "round_19" WHERE "venue"='mcg';
## Task Generate a SQL query to answer the following question: `What was the away team's score at the game held 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 away team's score at the game held at MCG?`: ```sql
SELECT "away_team" FROM "round_19" WHERE "venue"='arden street oval';
## Task Generate a SQL query to answer the following question: `Who was the away team at the game held at Arden Street Oval?` ### 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 `Who was the away team at the game held at Arden Street Oval?`: ```sql
SELECT "crowd" FROM "round_19" WHERE "home_team"='fitzroy';
## Task Generate a SQL query to answer the following question: `What was the size of the crowd at the game where Fitzroy 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 size of the crowd at the game where Fitzroy was the home team?`: ```sql
SELECT MAX("bronze") FROM "singapore_at_the_2007_southeast_asian_ga" WHERE "silver">6 AND "total"<127 AND "gold"<11;
## Task Generate a SQL query to answer the following question: `Name the most bronze for silver more than 6 and total less than 127 with gold less than 11` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singapore_at_the_2007_southeast_asian_ga" ( "rank" text, "sport" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the most bronze for silver more than 6 and total less than 127 with gold less than 11`: ```sql
SELECT MAX("silver") FROM "singapore_at_the_2007_southeast_asian_ga" WHERE "sport"='table tennis' AND "bronze">0;
## Task Generate a SQL query to answer the following question: `Name the highest silver for table tennis and bronze more than 0` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singapore_at_the_2007_southeast_asian_ga" ( "rank" text, "sport" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the highest silver for table tennis and bronze more than 0`: ```sql
SELECT "kickoff_a" FROM "schedule" WHERE "attendance"='58,120';
## Task Generate a SQL query to answer the following question: `Which kickoff had an attendance of 58,120?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" text, "date" text, "opponent" text, "result" text, "kickoff_a" text, "game_site" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which kickoff had an attendance of 58,120?`: ```sql
SELECT "week" FROM "schedule" WHERE "date"='november 19, 1989';
## Task Generate a SQL query to answer the following question: `What week number did November 19, 1989 games fall on?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" text, "date" text, "opponent" text, "result" text, "kickoff_a" text, "game_site" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What week number did November 19, 1989 games fall on?`: ```sql
SELECT "game_site" FROM "schedule" WHERE "record"='2-2';
## Task Generate a SQL query to answer the following question: `Which game site(s) had record of 2-2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" text, "date" text, "opponent" text, "result" text, "kickoff_a" text, "game_site" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which game site(s) had record of 2-2?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "kickoff_a"='1:00' AND "record"='3-7';
## Task Generate a SQL query to answer the following question: `Which game had a kickoff at 1:00 and a record of 3-7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" text, "date" text, "opponent" text, "result" text, "kickoff_a" text, "game_site" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which game had a kickoff at 1:00 and a record of 3-7?`: ```sql
SELECT "date" FROM "schedule" WHERE "attendance"='56,271';
## Task Generate a SQL query to answer the following question: `Which game had an attendance of 56,271?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" text, "date" text, "opponent" text, "result" text, "kickoff_a" text, "game_site" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which game had an attendance of 56,271?`: ```sql
SELECT "driver" FROM "drivers_and_constructors" WHERE "engine"='ford cosworth dfv 3.0 v8' AND "chassis"='ts19 ts20';
## Task Generate a SQL query to answer the following question: `Tell me the driver for ford cosworth dfv 3.0 v8 and chassis of ts19 ts20` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyres" text, "driver" text, "rounds" text ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the driver for ford cosworth dfv 3.0 v8 and chassis of ts19 ts20`: ```sql
SELECT "constructor" FROM "drivers_and_constructors" WHERE "driver"='alberto colombo' AND "chassis"='a1';
## Task Generate a SQL query to answer the following question: `Tell me the constructor for alberto colombo and chassis of a1` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyres" text, "driver" text, "rounds" text ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the constructor for alberto colombo and chassis of a1`: ```sql
SELECT "constructor" FROM "drivers_and_constructors" WHERE "driver"='clay regazzoni';
## Task Generate a SQL query to answer the following question: `Tell me the constructor for clay regazzoni` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyres" text, "driver" text, "rounds" text ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the constructor for clay regazzoni`: ```sql
SELECT "chassis" FROM "drivers_and_constructors" WHERE "entrant"='team tissot ensign' AND "driver"='brett lunger';
## Task Generate a SQL query to answer the following question: `Tell me the chassis for team tissot ensign and driver of brett lunger` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyres" text, "driver" text, "rounds" text ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the chassis for team tissot ensign and driver of brett lunger`: ```sql
SELECT "tyres" FROM "drivers_and_constructors" WHERE "driver"='hans binder';
## Task Generate a SQL query to answer the following question: `I want the tyres for hans binder` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyres" text, "driver" text, "rounds" text ); ### SQL Given the database schema, here is the SQL query that answers `I want the tyres for hans binder`: ```sql
SELECT "constructor" FROM "drivers_and_constructors" WHERE "rounds"='1-2' AND "driver"='divina galica';
## Task Generate a SQL query to answer the following question: `I want the constructor for divina galica rounds of 1-2` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyres" text, "driver" text, "rounds" text ); ### SQL Given the database schema, here is the SQL query that answers `I want the constructor for divina galica rounds of 1-2`: ```sql