output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "location" FROM "current" WHERE "years_in_gfl"='1979-' AND "nickname"='saints';
## Task Generate a SQL query to answer the following question: `What is the location of the Saints having 1979- as Years in GFL?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current" ( "club" text, "nickname" text, "location" text, "home_ground" text, "gfl_premierships" text, "years_in_gfl" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the location of the Saints having 1979- as Years in GFL?`: ```sql
SELECT "type" FROM "in" WHERE "ends"=2013 AND "transfer_window"='summer' AND "moving_from"='kalmar ff';
## Task Generate a SQL query to answer the following question: `What is the type of the player who ended in 2013, had a summer transfer window, and moved from kalmar ff?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "nat" text, "name" text, "moving_from" text, "type" text, "transfer_window" text, "ends" real, "transfer_fee" text, "source" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the type of the player who ended in 2013, had a summer transfer window, and moved from kalmar ff?`: ```sql
SELECT "moving_from" FROM "in" WHERE "type"='transfer' AND "transfer_window"='summer' AND "ends"<2013;
## Task Generate a SQL query to answer the following question: `Where did the player with a transfer type, a summer transfer window, and ended before 2013 move from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "nat" text, "name" text, "moving_from" text, "type" text, "transfer_window" text, "ends" real, "transfer_fee" text, "source" text ); ### SQL Given the database schema, here is the SQL query that answers `Where did the player with a transfer type, a summer transfer window, and ended before 2013 move from?`: ```sql
SELECT "transfer_window" FROM "in" WHERE "name"='larsson';
## Task Generate a SQL query to answer the following question: `What is the transfer window for larsson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "nat" text, "name" text, "moving_from" text, "type" text, "transfer_window" text, "ends" real, "transfer_fee" text, "source" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the transfer window for larsson?`: ```sql
SELECT AVG("ends") FROM "in" WHERE "nat"='swe' AND "transfer_window"='summer';
## Task Generate a SQL query to answer the following question: `What is the average end year of the player from swe and a summer transfer window?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "nat" text, "name" text, "moving_from" text, "type" text, "transfer_window" text, "ends" real, "transfer_fee" text, "source" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average end year of the player from swe and a summer transfer window?`: ```sql
SELECT "outcome" FROM "itf_singles_finals_6_1" WHERE "date"='2 december 2012';
## Task Generate a SQL query to answer the following question: `What was the outcome on 2 December 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "itf_singles_finals_6_1" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent_in_final" text, "score_in_final" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the outcome on 2 December 2012?`: ```sql
SELECT "score_in_final" FROM "itf_singles_finals_6_1" WHERE "tournament"='$10,000 – tarakan , indonesia f2';
## Task Generate a SQL query to answer the following question: `What is the score of the final in $10,000 – tarakan , indonesia f2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "itf_singles_finals_6_1" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent_in_final" text, "score_in_final" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score of the final in $10,000 – tarakan , indonesia f2?`: ```sql
SELECT "place" FROM "third_round" WHERE "score"='70-72-69=211';
## Task Generate a SQL query to answer the following question: `What was the place for the score 70-72-69=211?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the place for the score 70-72-69=211?`: ```sql
SELECT "player" FROM "third_round" WHERE "place"='t9' AND "score"='73-69-74=216';
## Task Generate a SQL query to answer the following question: `What was the player for t9 and a score of 73-69-74=216?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the player for t9 and a score of 73-69-74=216?`: ```sql
SELECT "place" FROM "third_round" WHERE "player"='stacy lewis';
## Task Generate a SQL query to answer the following question: `What was Stacy Lewis' place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What was Stacy Lewis' place?`: ```sql
SELECT "score" FROM "second_round_proper" WHERE "tie_no"='13';
## Task Generate a SQL query to answer the following question: `What was the score when the tie no was 13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score when the tie no was 13?`: ```sql
SELECT "score" FROM "second_round_proper" WHERE "away_team"='burnley';
## Task Generate a SQL query to answer the following question: `What was the score when Burnley was the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score when Burnley was the away team?`: ```sql
SELECT "to_par" FROM "made_the_cut" WHERE "finish"='66';
## Task Generate a SQL query to answer the following question: `What is the To par when the finish is 66?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the To par when the finish is 66?`: ```sql
SELECT MIN("total") FROM "made_the_cut" WHERE "finish"='t46' AND "year_s_won"='1981, 1987';
## Task Generate a SQL query to answer the following question: `When the year won is 1981, 1987, and the finish is t46, what is the lowest total?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `When the year won is 1981, 1987, and the finish is t46, what is the lowest total?`: ```sql
SELECT "year_s_won" FROM "made_the_cut" WHERE "finish"='68';
## Task Generate a SQL query to answer the following question: `Which year was won with a finish of 68` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `Which year was won with a finish of 68`: ```sql
SELECT AVG("snatch") FROM "light_heavyweight_85_kg" WHERE "total_kg">318 AND "bodyweight"=84.15;
## Task Generate a SQL query to answer the following question: `WHTA IS THE SNATCH WITH A TOTAL OF LARGER THAN 318 KG AND BODY WEIGHT OF 84.15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "light_heavyweight_85_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" real ); ### SQL Given the database schema, here is the SQL query that answers `WHTA IS THE SNATCH WITH A TOTAL OF LARGER THAN 318 KG AND BODY WEIGHT OF 84.15?`: ```sql
SELECT MIN("snatch") FROM "light_heavyweight_85_kg" WHERE "total_kg"<318 AND "clean_jerk">175;
## Task Generate a SQL query to answer the following question: `WHAT IS THE SNATCH WITH TOTAL KG SMALLER THAN 318, AND CLEAN JERK LARGER THAN 175?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "light_heavyweight_85_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" real ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE SNATCH WITH TOTAL KG SMALLER THAN 318, AND CLEAN JERK LARGER THAN 175?`: ```sql
SELECT "date" FROM "religious_political_or_racial_crimes" WHERE "killed"='2' AND "location"='jaffa';
## Task Generate a SQL query to answer the following question: `What date has 2 for killed, and jaffa as the location?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "religious_political_or_racial_crimes" ( "date" text, "year" real, "location" text, "country" text, "killed" text, "injured" text ); ### SQL Given the database schema, here is the SQL query that answers `What date has 2 for killed, and jaffa as the location?`: ```sql
SELECT "injured" FROM "religious_political_or_racial_crimes" WHERE "location"='skierlik';
## Task Generate a SQL query to answer the following question: `What is the injured that has skierlik as the location?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "religious_political_or_racial_crimes" ( "date" text, "year" real, "location" text, "country" text, "killed" text, "injured" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the injured that has skierlik as the location?`: ```sql
SELECT "1_00_pm" FROM "summer_2001" WHERE "4_00_pm"='local programs' AND "8_00_am"='the early show';
## Task Generate a SQL query to answer the following question: `What shows at 1:00 pm when 4:00 pm shows local programs, and 8:00 am is The Early Show?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summer_2001" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "4_00_pm" text, "4_30_pm" text, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `What shows at 1:00 pm when 4:00 pm shows local programs, and 8:00 am is The Early Show?`: ```sql
SELECT "7_30_am" FROM "summer_2001" WHERE "3_30_pm"='big guy and rusty the boy robot';
## Task Generate a SQL query to answer the following question: `What shows at 7:30 am when 3:30 pm is Big Guy and Rusty the Boy Robot?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summer_2001" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "4_00_pm" text, "4_30_pm" text, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `What shows at 7:30 am when 3:30 pm is Big Guy and Rusty the Boy Robot?`: ```sql
SELECT "9_00_am" FROM "summer_2001" WHERE "3_30_pm"='passions';
## Task Generate a SQL query to answer the following question: `What shows at 9:00 am that has a 3:30 pm of passions?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summer_2001" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "4_00_pm" text, "4_30_pm" text, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `What shows at 9:00 am that has a 3:30 pm of passions?`: ```sql
SELECT "4_30_pm" FROM "summer_2001" WHERE "4_00_pm"='pokémon';
## Task Generate a SQL query to answer the following question: `What shows at 4:30 pm when 4:00 pm is Pokémon?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summer_2001" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "4_00_pm" text, "4_30_pm" text, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `What shows at 4:30 pm when 4:00 pm is Pokémon?`: ```sql
SELECT "12_30_pm" FROM "summer_2001" WHERE "1_30_pm"='all my children';
## Task Generate a SQL query to answer the following question: `What shows at 12:30 pm when 1:30 pm is All My Children?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summer_2001" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "4_00_pm" text, "4_30_pm" text, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `What shows at 12:30 pm when 1:30 pm is All My Children?`: ```sql
SELECT "2nd_leg" FROM "second_round" WHERE "team_1"='union berlin';
## Task Generate a SQL query to answer the following question: `What is the 2nd leg that Team 1 is Union Berlin?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_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 is the 2nd leg that Team 1 is Union Berlin?`: ```sql
SELECT "apps" FROM "top_30_highest_goalscorers_all_time" WHERE "ratio"=0.52 AND "goals"=150;
## Task Generate a SQL query to answer the following question: `What is the Apps for the player with 150 Goals and a Ratio of 0.52?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_30_highest_goalscorers_all_time" ( "name" text, "years" text, "goals" real, "apps" real, "ratio" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Apps for the player with 150 Goals and a Ratio of 0.52?`: ```sql
SELECT "3_00_pm" FROM "winter_1999_2000" WHERE "noon"='local programs';
## Task Generate a SQL query to answer the following question: `What is on at 3pm on the channel that shows Local Programs at non?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winter_1999_2000" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "10_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `What is on at 3pm on the channel that shows Local Programs at non?`: ```sql
SELECT "noon" FROM "winter_1999_2000" WHERE "3_00_pm"='general hospital';
## Task Generate a SQL query to answer the following question: `What is the noon show on the channel that shows General Hospital at 3pm?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winter_1999_2000" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "10_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the noon show on the channel that shows General Hospital at 3pm?`: ```sql
SELECT "5_00_pm" FROM "winter_1999_2000" WHERE "7_00_am"='cbs this morning';
## Task Generate a SQL query to answer the following question: `What is the 5pm show where CBS This Morning is on at 7am?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winter_1999_2000" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "10_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 5pm show where CBS This Morning is on at 7am?`: ```sql
SELECT "12_30_pm" FROM "winter_1999_2000" WHERE "1_30_pm"='local programs' AND "3_30_pm"='power rangers lost galaxy';
## Task Generate a SQL query to answer the following question: `What is on at 12:30pm where Local Programs are on at 1:30pm and Power Rangers Lost Galaxy is on at 3:30pm?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winter_1999_2000" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "10_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `What is on at 12:30pm where Local Programs are on at 1:30pm and Power Rangers Lost Galaxy is on at 3:30pm?`: ```sql
SELECT "5_00_pm" FROM "winter_1999_2000" WHERE "2_00_pm"='as the world turns';
## Task Generate a SQL query to answer the following question: `What is on at 5pm on the channel where As the World Turns is on at 2pm?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winter_1999_2000" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "10_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `What is on at 5pm on the channel where As the World Turns is on at 2pm?`: ```sql
SELECT "team" FROM "race_calendar" WHERE "circuit"='symmons plains raceway';
## Task Generate a SQL query to answer the following question: `Which team won at the symmons plains raceway?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar" ( "date" text, "series" text, "circuit" text, "city_state" text, "winner" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which team won at the symmons plains raceway?`: ```sql
SELECT "team" FROM "race_calendar" WHERE "circuit"='winton motor raceway';
## Task Generate a SQL query to answer the following question: `Which team won at winton motor raceway?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar" ( "date" text, "series" text, "circuit" text, "city_state" text, "winner" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which team won at winton motor raceway?`: ```sql
SELECT "circuit" FROM "race_calendar" WHERE "series"='atcc round 7';
## Task Generate a SQL query to answer the following question: `Which circuit was the atcc round 7 at?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar" ( "date" text, "series" text, "circuit" text, "city_state" text, "winner" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which circuit was the atcc round 7 at?`: ```sql
SELECT "circuit" FROM "race_calendar" WHERE "team"='winfield team nissan' AND "series"='tooheys 1000';
## Task Generate a SQL query to answer the following question: `Which circuit did winfield team nissan win for the tooheys 1000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar" ( "date" text, "series" text, "circuit" text, "city_state" text, "winner" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which circuit did winfield team nissan win for the tooheys 1000?`: ```sql
SELECT "date" FROM "race_calendar" WHERE "series"='tooheys 1000';
## Task Generate a SQL query to answer the following question: `What is the date for the tooheys 1000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar" ( "date" text, "series" text, "circuit" text, "city_state" text, "winner" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date for the tooheys 1000?`: ```sql
SELECT "series" FROM "race_calendar" WHERE "city_state"='sydney, new south wales';
## Task Generate a SQL query to answer the following question: `what series was in sydney, new south wales?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar" ( "date" text, "series" text, "circuit" text, "city_state" text, "winner" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `what series was in sydney, new south wales?`: ```sql
SELECT COUNT("rank") FROM "references" WHERE "pts">1.26 AND "games"=1458;
## Task Generate a SQL query to answer the following question: `What was the rank for 1.26 Ø-Pts in game 1458?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "rank" real, "club" text, "years" real, "games" real, "pts" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the rank for 1.26 Ø-Pts in game 1458?`: ```sql
SELECT "outcome" FROM "doubles_9_3_6" WHERE "partner"='marcella mesker' AND "score"='6–4, 4–6, 4–6';
## Task Generate a SQL query to answer the following question: `What is the Outcome of the match with Partner Marcella Mesker and a Score of 6–4, 4–6, 4–6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_9_3_6" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Outcome of the match with Partner Marcella Mesker and a Score of 6–4, 4–6, 4–6?`: ```sql
SELECT "surface" FROM "doubles_9_3_6" WHERE "score"='2–6, 6–4, 7–6';
## Task Generate a SQL query to answer the following question: `What is the Surface of the match with a Score of 2–6, 6–4, 7–6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_9_3_6" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Surface of the match with a Score of 2–6, 6–4, 7–6?`: ```sql
SELECT "surface" FROM "doubles_9_3_6" WHERE "date"='october 5, 1987';
## Task Generate a SQL query to answer the following question: `What is the Surface of the match played on October 5, 1987?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_9_3_6" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Surface of the match played on October 5, 1987?`: ```sql
SELECT "date" FROM "doubles_9_3_6" WHERE "partner"='marcella mesker' AND "score"='0–6, 2–6';
## Task Generate a SQL query to answer the following question: `What is the Date of the match with a Score of 0–6, 2–6 with Partner Marcella Mesker?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_9_3_6" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Date of the match with a Score of 0–6, 2–6 with Partner Marcella Mesker?`: ```sql
SELECT "opponents" FROM "doubles_9_3_6" WHERE "date"='may 3, 1982';
## Task Generate a SQL query to answer the following question: `Who is the Opponents on May 3, 1982?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_9_3_6" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the Opponents on May 3, 1982?`: ```sql
SELECT "score" FROM "doubles_9_3_6" WHERE "outcome"='runner-up' AND "date"='may 21, 1984';
## Task Generate a SQL query to answer the following question: `What is the Score of the match on May 21, 1984 with Outcome of runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_9_3_6" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Score of the match on May 21, 1984 with Outcome of runner-up?`: ```sql
SELECT "date" FROM "women" WHERE "event"='200m individual medley';
## Task Generate a SQL query to answer the following question: `What is the date of the 200m individual medley?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women" ( "event" text, "time" text, "date" text, "meet" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date of the 200m individual medley?`: ```sql
SELECT "team_1" FROM "round_of_16" WHERE "team_2"='olympique lyonnais (d2)';
## Task Generate a SQL query to answer the following question: `Which team was team 1 in the match where team 2 was olympique lyonnais (d2)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_16" ( "team_1" text, "score" text, "team_2" text, "1st_round" text, "2nd_round" text ); ### SQL Given the database schema, here is the SQL query that answers `Which team was team 1 in the match where team 2 was olympique lyonnais (d2)?`: ```sql
SELECT "score" FROM "round_of_16" WHERE "team_1"='paris sg (d1)';
## Task Generate a SQL query to answer the following question: `What was the score of the match where paris sg (d1) was team 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_16" ( "team_1" text, "score" text, "team_2" text, "1st_round" text, "2nd_round" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score of the match where paris sg (d1) was team 1?`: ```sql
SELECT "week" FROM "schedule" WHERE "result"='w 23–22';
## Task Generate a SQL query to answer the following question: `Which Week has a Result of w 23–22?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Week has a Result of w 23–22?`: ```sql
SELECT "date" FROM "schedule" WHERE "result"='bye';
## Task Generate a SQL query to answer the following question: `When was there a bye result?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `When was there a bye result?`: ```sql
SELECT "date" FROM "schedule" WHERE "attendance"='65,806';
## Task Generate a SQL query to answer the following question: `When was the attendance 65,806?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the attendance 65,806?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "week">16;
## Task Generate a SQL query to answer the following question: `Who was the opponent after week 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent after week 16?`: ```sql
SELECT "commissioned" FROM "ships_in_class" WHERE "laid_down"='6 september 2003';
## Task Generate a SQL query to answer the following question: `What is Commissioned, when Laid Down is "6 September 2003"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ships_in_class" ( "ship" text, "hull_number" text, "laid_down" text, "launched" text, "commissioned" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Commissioned, when Laid Down is "6 September 2003"?`: ```sql
SELECT "launched" FROM "ships_in_class" WHERE "laid_down"='31 october 1981';
## Task Generate a SQL query to answer the following question: `What is Launched, when Laid Down is "31 October 1981"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ships_in_class" ( "ship" text, "hull_number" text, "laid_down" text, "launched" text, "commissioned" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Launched, when Laid Down is "31 October 1981"?`: ```sql
SELECT "ship" FROM "ships_in_class" WHERE "commissioned"='13 march 1982';
## Task Generate a SQL query to answer the following question: `What is Ship, when Commissioned is "13 March 1982"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ships_in_class" ( "ship" text, "hull_number" text, "laid_down" text, "launched" text, "commissioned" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Ship, when Commissioned is "13 March 1982"?`: ```sql
SELECT "launched" FROM "ships_in_class" WHERE "commissioned"='25 july 1998';
## Task Generate a SQL query to answer the following question: `What is Launched, when Commissioned is "25 July 1998"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ships_in_class" ( "ship" text, "hull_number" text, "laid_down" text, "launched" text, "commissioned" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Launched, when Commissioned is "25 July 1998"?`: ```sql
SELECT "laid_down" FROM "ships_in_class" WHERE "hull_number"='cvn-69';
## Task Generate a SQL query to answer the following question: `What is Laid Down, when Hull Number is "CVN-69"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ships_in_class" ( "ship" text, "hull_number" text, "laid_down" text, "launched" text, "commissioned" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Laid Down, when Hull Number is "CVN-69"?`: ```sql
SELECT "laid_down" FROM "ships_in_class" WHERE "commissioned"='11 november 1989';
## Task Generate a SQL query to answer the following question: `What is Laid Down, when Commissioned is "11 November 1989"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ships_in_class" ( "ship" text, "hull_number" text, "laid_down" text, "launched" text, "commissioned" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Laid Down, when Commissioned is "11 November 1989"?`: ```sql
SELECT "position" FROM "results" WHERE "entrant"='j ampt';
## Task Generate a SQL query to answer the following question: `Can you tell me the Position that has the Entrant of j ampt?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "position" text, "driver" text, "entrant" text, "class" text, "laps" real ); ### SQL Given the database schema, here is the SQL query that answers `Can you tell me the Position that has the Entrant of j ampt?`: ```sql
SELECT "entrant" FROM "results" WHERE "laps"=17;
## Task Generate a SQL query to answer the following question: `Can you tell me the Entrant that has the Laps of 17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "position" text, "driver" text, "entrant" text, "class" text, "laps" real ); ### SQL Given the database schema, here is the SQL query that answers `Can you tell me the Entrant that has the Laps of 17?`: ```sql
SELECT "position" FROM "results" WHERE "driver"='bib stillwell';
## Task Generate a SQL query to answer the following question: `Can you tell me the Position that has the Driver of bib stillwell?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "position" text, "driver" text, "entrant" text, "class" text, "laps" real ); ### SQL Given the database schema, here is the SQL query that answers `Can you tell me the Position that has the Driver of bib stillwell?`: ```sql
SELECT "result" FROM "sugar_bowl" WHERE "attendance"='41,429';
## Task Generate a SQL query to answer the following question: `What are the results for a game with an attendance of 41,429?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sugar_bowl" ( "date" text, "opponentnum" text, "site" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the results for a game with an attendance of 41,429?`: ```sql
SELECT "opponentnum" FROM "sugar_bowl" WHERE "attendance"='48,165';
## Task Generate a SQL query to answer the following question: `Who were the opponents when there was an attendance of 48,165?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sugar_bowl" ( "date" text, "opponentnum" text, "site" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were the opponents when there was an attendance of 48,165?`: ```sql
SELECT "result" FROM "sugar_bowl" WHERE "attendance"='82,113';
## Task Generate a SQL query to answer the following question: `What are the results for the game with 82,113 attending?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sugar_bowl" ( "date" text, "opponentnum" text, "site" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the results for the game with 82,113 attending?`: ```sql
SELECT "week_4" FROM "2010" WHERE "week_3"='mikaela james';
## Task Generate a SQL query to answer the following question: `Who was the girl on week 4 after week 3's Mikaela James?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010" ( "week_1" text, "week_2" text, "week_3" text, "week_4" text, "week_5" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the girl on week 4 after week 3's Mikaela James?`: ```sql
SELECT "week_1" FROM "2010" WHERE "week_3"='ava hart';
## Task Generate a SQL query to answer the following question: `Who was the girl on week 1 that was previous to week 3's Ava Hart?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010" ( "week_1" text, "week_2" text, "week_3" text, "week_4" text, "week_5" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the girl on week 1 that was previous to week 3's Ava Hart?`: ```sql
SELECT "week_2" FROM "2010" WHERE "week_4"='chelsie loraine';
## Task Generate a SQL query to answer the following question: `Who was the girl on week 2 that was previous to week 4's Chelsie Loraine?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010" ( "week_1" text, "week_2" text, "week_3" text, "week_4" text, "week_5" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the girl on week 2 that was previous to week 4's Chelsie Loraine?`: ```sql
SELECT "week_5" FROM "2010" WHERE "week_3"='mikaela james';
## Task Generate a SQL query to answer the following question: `Who was the girl on week 5 that came after week 3's Mikaela James?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010" ( "week_1" text, "week_2" text, "week_3" text, "week_4" text, "week_5" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the girl on week 5 that came after week 3's Mikaela James?`: ```sql
SELECT "week_1" FROM "2010" WHERE "week_2"='kamila sulewska';
## Task Generate a SQL query to answer the following question: `Who was the girl on week 1 that preceded week 2's Kamila Sulewska?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010" ( "week_1" text, "week_2" text, "week_3" text, "week_4" text, "week_5" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the girl on week 1 that preceded week 2's Kamila Sulewska?`: ```sql
SELECT "week_5" FROM "2010" WHERE "week_3"='shelly louise';
## Task Generate a SQL query to answer the following question: `Who was the girl on week 5 that came after week 3's Shelly Louise?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010" ( "week_1" text, "week_2" text, "week_3" text, "week_4" text, "week_5" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the girl on week 5 that came after week 3's Shelly Louise?`: ```sql
SELECT MIN("1988_89") FROM "relegation" WHERE "average">0.965 AND "1987_88"='40' AND "1986_87"='49' AND "points">123;
## Task Generate a SQL query to answer the following question: `What is the lowest 1988-89, when Average is greater than 0.965, when 1987-88 is "40", when 1986-87 is "49", and when Points is greater than 123?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation" ( "team" text, "average" real, "points" real, "played" real, "1986_87" text, "1987_88" text, "1988_89" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest 1988-89, when Average is greater than 0.965, when 1987-88 is "40", when 1986-87 is "49", and when Points is greater than 123?`: ```sql
SELECT "played" FROM "relegation" WHERE "points"<107 AND "1987_88"='31';
## Task Generate a SQL query to answer the following question: `What is Played, when Points is less than 107, and when 1987-88 is "31"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation" ( "team" text, "average" real, "points" real, "played" real, "1986_87" text, "1987_88" text, "1988_89" real ); ### SQL Given the database schema, here is the SQL query that answers `What is Played, when Points is less than 107, and when 1987-88 is "31"?`: ```sql
SELECT MIN("1988_89") FROM "relegation" WHERE "points">130 AND "1987_88"='37' AND "played"<114;
## Task Generate a SQL query to answer the following question: `What is the lowest 1988-89, when Points is greater than 130, when 1987-88 is "37", and when Played is less than 114?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation" ( "team" text, "average" real, "points" real, "played" real, "1986_87" text, "1987_88" text, "1988_89" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest 1988-89, when Points is greater than 130, when 1987-88 is "37", and when Played is less than 114?`: ```sql
SELECT "1987_88" FROM "relegation" WHERE "points"=136;
## Task Generate a SQL query to answer the following question: `What is 1987-88, when Points is "136"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation" ( "team" text, "average" real, "points" real, "played" real, "1986_87" text, "1987_88" text, "1988_89" real ); ### SQL Given the database schema, here is the SQL query that answers `What is 1987-88, when Points is "136"?`: ```sql
SELECT MAX("draw") FROM "standings" WHERE "points"='22' AND "goals_conceded"<26;
## Task Generate a SQL query to answer the following question: `Name the the highest Draw which has Points of 22 and Goals Conceded smaller than 26?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the the highest Draw which has Points of 22 and Goals Conceded smaller than 26?`: ```sql
SELECT MAX("played") FROM "standings" WHERE "goals_scored"<18 AND "lost">10;
## Task Generate a SQL query to answer the following question: `Name the highest Played of Goals Scored smaller than 18 and a Lost larger than 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the highest Played of Goals Scored smaller than 18 and a Lost larger than 10?`: ```sql
SELECT AVG("played") FROM "standings" WHERE "points"='0*';
## Task Generate a SQL query to answer the following question: `Name the average Played with a Points of 0*?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the average Played with a Points of 0*?`: ```sql
SELECT SUM("draw") FROM "standings" WHERE "lost"=0 AND "goals_scored">0;
## Task Generate a SQL query to answer the following question: `Count the Draw which has Lost of 0, and a Goals Scored larger than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `Count the Draw which has Lost of 0, and a Goals Scored larger than 0?`: ```sql
SELECT AVG("goals_conceded") FROM "standings" WHERE "draw"=0 AND "played">0;
## Task Generate a SQL query to answer the following question: `Name the Goals Conceded which has a Draw of 0 and a Played larger than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the Goals Conceded which has a Draw of 0 and a Played larger than 0?`: ```sql
SELECT "rank" FROM "medal_count" WHERE "total"<13 AND "nation"='mixed team';
## Task Generate a SQL query to answer the following question: `What is the rank for the Mixed Team nation with a total of less than 13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_count" ( "rank" real, "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 rank for the Mixed Team nation with a total of less than 13?`: ```sql
SELECT COUNT("bronze") FROM "medal_count" WHERE "silver"<0;
## Task Generate a SQL query to answer the following question: `What is the total number of bronze medals for teams with less than 0 silver?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_count" ( "rank" real, "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 bronze medals for teams with less than 0 silver?`: ```sql
SELECT AVG("bronze") FROM "medal_count" WHERE "silver">1 AND "total"<9;
## Task Generate a SQL query to answer the following question: `What is the average number of bronze medals when the team's silver are more than 1 but the total medals are less than 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_count" ( "rank" real, "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 average number of bronze medals when the team's silver are more than 1 but the total medals are less than 9?`: ```sql
SELECT "military_and_or_civilian_wounded" FROM "regular_conflicts" WHERE "civilian_deaths"='unknown' AND "total_deaths_not_including_foreigners"='unknown';
## Task Generate a SQL query to answer the following question: `How many military or civilians were wounded in the conflict that had an unknown number of civilian and total deaths?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_conflicts" ( "military_deaths" text, "civilian_deaths" text, "total_deaths_not_including_foreigners" text, "military_and_or_civilian_wounded" text, "total_casualties" text ); ### SQL Given the database schema, here is the SQL query that answers `How many military or civilians were wounded in the conflict that had an unknown number of civilian and total deaths?`: ```sql
SELECT "civilian_deaths" FROM "regular_conflicts" WHERE "military_deaths"='231';
## Task Generate a SQL query to answer the following question: `How many civilians died in the conflict that left 231 members of the military dead?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_conflicts" ( "military_deaths" text, "civilian_deaths" text, "total_deaths_not_including_foreigners" text, "military_and_or_civilian_wounded" text, "total_casualties" text ); ### SQL Given the database schema, here is the SQL query that answers `How many civilians died in the conflict that left 231 members of the military dead?`: ```sql
SELECT "civilian_deaths" FROM "regular_conflicts" WHERE "total_deaths_not_including_foreigners"='178';
## Task Generate a SQL query to answer the following question: `How many civilians died in the conflict that left 178, excluding foreigners, dead?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_conflicts" ( "military_deaths" text, "civilian_deaths" text, "total_deaths_not_including_foreigners" text, "military_and_or_civilian_wounded" text, "total_casualties" text ); ### SQL Given the database schema, here is the SQL query that answers `How many civilians died in the conflict that left 178, excluding foreigners, dead?`: ```sql
SELECT "military_deaths" FROM "regular_conflicts" WHERE "total_casualties"='531';
## Task Generate a SQL query to answer the following question: `How many members of the military died in the conflict that had a total of 531 casualties?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_conflicts" ( "military_deaths" text, "civilian_deaths" text, "total_deaths_not_including_foreigners" text, "military_and_or_civilian_wounded" text, "total_casualties" text ); ### SQL Given the database schema, here is the SQL query that answers `How many members of the military died in the conflict that had a total of 531 casualties?`: ```sql
SELECT "civilian_deaths" FROM "regular_conflicts" WHERE "total_casualties"='1,130';
## Task Generate a SQL query to answer the following question: `How many civilians died in the conflict that had a total of 1,130 casualties?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_conflicts" ( "military_deaths" text, "civilian_deaths" text, "total_deaths_not_including_foreigners" text, "military_and_or_civilian_wounded" text, "total_casualties" text ); ### SQL Given the database schema, here is the SQL query that answers `How many civilians died in the conflict that had a total of 1,130 casualties?`: ```sql
SELECT "opponent" FROM "regular_season" WHERE "week"=15;
## Task Generate a SQL query to answer the following question: `Which team was the opponent on week 15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Which team was the opponent on week 15?`: ```sql
SELECT AVG("total") FROM "made_the_cut" WHERE "finish"='t47';
## Task Generate a SQL query to answer the following question: `What is the average Total, when Finish is "T47"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average Total, when Finish is "T47"?`: ```sql
SELECT "to_par" FROM "made_the_cut" WHERE "total"<297 AND "finish"='1';
## Task Generate a SQL query to answer the following question: `What is To par, when Total is less than 297, and when Finish is "1"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `What is To par, when Total is less than 297, and when Finish is "1"?`: ```sql
SELECT "official_itv1_rating" FROM "ratings" WHERE "episode"='auditions 4';
## Task Generate a SQL query to answer the following question: `What is the Official ITV1 rating for auditions 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ratings" ( "episode" text, "air_date" text, "official_itv1_rating" real, "weekly_rank" text, "share" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Official ITV1 rating for auditions 4?`: ```sql
SELECT MIN("official_itv1_rating") FROM "ratings" WHERE "share"='45.4%';
## Task Generate a SQL query to answer the following question: `What is the lowest official ITV1 rating with 45.4% share?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ratings" ( "episode" text, "air_date" text, "official_itv1_rating" real, "weekly_rank" text, "share" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest official ITV1 rating with 45.4% share?`: ```sql
SELECT COUNT("goals_against") FROM "group_ii" WHERE "wins">12 AND "club"='ud las palmas' AND "position">5;
## Task Generate a SQL query to answer the following question: `How many Goals against have Wins larger than 12, and a Club of ud las palmas, and a Position larger than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `How many Goals against have Wins larger than 12, and a Club of ud las palmas, and a Position larger than 5?`: ```sql
SELECT MAX("goals_against") FROM "group_ii" WHERE "points"<26 AND "goals_for"<38 AND "position">14 AND "goal_difference"<-32;
## Task Generate a SQL query to answer the following question: `Which Goals against has Points smaller than 26, and Goals for smaller than 38, and a Position larger than 14, and a Goal Difference smaller than -32?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Goals against has Points smaller than 26, and Goals for smaller than 38, and a Position larger than 14, and a Goal Difference smaller than -32?`: ```sql
SELECT AVG("goals_against") FROM "group_ii" WHERE "club"='cd castellón' AND "points"<24;
## Task Generate a SQL query to answer the following question: `Which Goals against have a Club of cd castellón, and Points smaller than 24?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Goals against have a Club of cd castellón, and Points smaller than 24?`: ```sql
SELECT SUM("played") FROM "group_ii" WHERE "goals_against"<34 AND "wins"<13;
## Task Generate a SQL query to answer the following question: `How much Played has Goals against smaller than 34, and Wins smaller than 13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `How much Played has Goals against smaller than 34, and Wins smaller than 13?`: ```sql
SELECT AVG("played") FROM "group_ii" WHERE "position"<4 AND "wins">16 AND "points"=38 AND "goals_against">35;
## Task Generate a SQL query to answer the following question: `Which Played has a Position smaller than 4, and Wins larger than 16, and Points of 38, and Goals against larger than 35?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Played has a Position smaller than 4, and Wins larger than 16, and Points of 38, and Goals against larger than 35?`: ```sql
SELECT "to_par" FROM "third_round" WHERE "country"='france';
## Task Generate a SQL query to answer the following question: `What is the To Par score for the player from France?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the To Par score for the player from France?`: ```sql
SELECT "player" FROM "third_round" WHERE "score"='70-69-69=208';
## Task Generate a SQL query to answer the following question: `What is the name of the player with an overall score of 70-69-69=208?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the player with an overall score of 70-69-69=208?`: ```sql
SELECT "to_par" FROM "third_round" WHERE "score"='71-68-69=208';
## Task Generate a SQL query to answer the following question: `What is the To Par score for the player with an overall score of 71-68-69=208?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the To Par score for the player with an overall score of 71-68-69=208?`: ```sql
SELECT "location" FROM "women_s_singles" WHERE "champion"='anke huber';
## Task Generate a SQL query to answer the following question: `What location did Anke Huber win the championship?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_singles" ( "location" text, "year" real, "champion" text, "runner_up" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What location did Anke Huber win the championship?`: ```sql