output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "competition" FROM "international_goals" WHERE "score"='3-0';
## Task Generate a SQL query to answer the following question: `What was the competition when the score was 3-0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the competition when the score was 3-0?`: ```sql
SELECT "position" FROM "2002_nfl_draft" WHERE "round"<7 AND "name"='akin ayodele';
## Task Generate a SQL query to answer the following question: `Akin Ayodele drafted before round 7 plays what position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2002_nfl_draft" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Akin Ayodele drafted before round 7 plays what position?`: ```sql
SELECT SUM("overall") FROM "2002_nfl_draft" WHERE "round"<4 AND "college"='tennessee' AND "pick_num">9;
## Task Generate a SQL query to answer the following question: `What is the total overall for the pick that went before round 4, who went to Tennessee for college, and was picked at a number bigger than 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2002_nfl_draft" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total overall for the pick that went before round 4, who went to Tennessee for college, and was picked at a number bigger than 9?`: ```sql
SELECT AVG("pick_num") FROM "2002_nfl_draft" WHERE "round"<7 AND "college"='tennessee';
## Task Generate a SQL query to answer the following question: `What is the pick number average for the player who was drafted before round 7, and went to college at Tennessee?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2002_nfl_draft" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the pick number average for the player who was drafted before round 7, and went to college at Tennessee?`: ```sql
SELECT "visitor" FROM "chicago_black_hawks_4_new_york_rangers_3" WHERE "home"='chicago black hawks' AND "record"='1-1';
## Task Generate a SQL query to answer the following question: `What visiting team played at the home of the Chicago Black Hawks with a record of 1-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "chicago_black_hawks_4_new_york_rangers_3" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What visiting team played at the home of the Chicago Black Hawks with a record of 1-1?`: ```sql
SELECT "home" FROM "chicago_black_hawks_4_new_york_rangers_3" WHERE "record"='4-3';
## Task Generate a SQL query to answer the following question: `What home team has a record of 4-3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "chicago_black_hawks_4_new_york_rangers_3" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What home team has a record of 4-3?`: ```sql
SELECT "visitor" FROM "chicago_black_hawks_4_new_york_rangers_3" WHERE "record"='4-3';
## Task Generate a SQL query to answer the following question: `What visiting team has a record of 4-3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "chicago_black_hawks_4_new_york_rangers_3" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What visiting team has a record of 4-3?`: ```sql
SELECT MAX("league_cup") FROM "yellow_cards" WHERE "championship"<3 AND "total"<2 AND "fa_cup">0;
## Task Generate a SQL query to answer the following question: `What is the highest league up with less than 3 championships, a total less than 2, and a FA cup larger than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "yellow_cards" ( "name" text, "championship" real, "league_cup" real, "fa_cup" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest league up with less than 3 championships, a total less than 2, and a FA cup larger than 0?`: ```sql
SELECT AVG("total") FROM "yellow_cards" WHERE "championship"<1;
## Task Generate a SQL query to answer the following question: `What is the average total for less than 1 championship?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "yellow_cards" ( "name" text, "championship" real, "league_cup" real, "fa_cup" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average total for less than 1 championship?`: ```sql
SELECT COUNT("total") FROM "yellow_cards" WHERE "championship"<2 AND "league_cup">1;
## Task Generate a SQL query to answer the following question: `What i the total number of championships less than 2, and a league cup larger than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "yellow_cards" ( "name" text, "championship" real, "league_cup" real, "fa_cup" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What i the total number of championships less than 2, and a league cup larger than 1?`: ```sql
SELECT "home_team" FROM "second_round_proper" WHERE "score"='2–1' AND "away_team"='telford united';
## Task Generate a SQL query to answer the following question: `What home team has a score of 2–1, when the away team was Telford United?` ### 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 home team has a score of 2–1, when the away team was Telford United?`: ```sql
SELECT "score" FROM "second_round_proper" WHERE "away_team"='wrexham';
## Task Generate a SQL query to answer the following question: `What was the score when the way team was Wrexham?` ### 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 way team was Wrexham?`: ```sql
SELECT "home_team" FROM "second_round_proper" WHERE "tie_no"='1';
## Task Generate a SQL query to answer the following question: `What is the home team when the Tie no is 1?` ### 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 is the home team when the Tie no is 1?`: ```sql
SELECT "score" FROM "third_round" WHERE "player"='eduardo romero';
## Task Generate a SQL query to answer the following question: `What was Eduardo Romero's score?` ### 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 Eduardo Romero's score?`: ```sql
SELECT "place" FROM "third_round" WHERE "score"='67-71-70=208';
## Task Generate a SQL query to answer the following question: `Where was the score 67-71-70=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 `Where was the score 67-71-70=208?`: ```sql
SELECT "score" FROM "third_round" WHERE "country"='united states' AND "place"='t9' AND "player"='fred couples';
## Task Generate a SQL query to answer the following question: `What was the score when Fred Couples played in the United States and placed t9?` ### 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 score when Fred Couples played in the United States and placed t9?`: ```sql
SELECT "country" FROM "third_round" WHERE "player"='gary koch';
## Task Generate a SQL query to answer the following question: `What country does Gary Koch play for?` ### 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 country does Gary Koch play for?`: ```sql
SELECT "player" FROM "third_round" WHERE "country"='zimbabwe';
## Task Generate a SQL query to answer the following question: `Who plays for Zimbabwe?` ### 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 `Who plays for Zimbabwe?`: ```sql
SELECT "to_par" FROM "third_round" WHERE "place"='4';
## Task Generate a SQL query to answer the following question: `What was the To par when the place was 4?` ### 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 To par when the place was 4?`: ```sql
SELECT "current_club" FROM "fiba_world_olympic_qualifying_tournament" WHERE "position"='sg/sf' AND "height"<1.96;
## Task Generate a SQL query to answer the following question: `What is the current club with a position of sg/sf and a height less than 1.96?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_world_olympic_qualifying_tournament" ( "player" text, "height" real, "position" text, "year_born_age" text, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the current club with a position of sg/sf and a height less than 1.96?`: ```sql
SELECT "year_born_age" FROM "fiba_world_olympic_qualifying_tournament" WHERE "player"='rowan barrett';
## Task Generate a SQL query to answer the following question: `What year was Rowan Barrett born?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_world_olympic_qualifying_tournament" ( "player" text, "height" real, "position" text, "year_born_age" text, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `What year was Rowan Barrett born?`: ```sql
SELECT MIN("height") FROM "fiba_world_olympic_qualifying_tournament" WHERE "player"='rans brempong';
## Task Generate a SQL query to answer the following question: `What is the lowest height for Rans Brempong?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_world_olympic_qualifying_tournament" ( "player" text, "height" real, "position" text, "year_born_age" text, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest height for Rans Brempong?`: ```sql
SELECT "date" FROM "fa_premier_league" WHERE "result"='0–3';
## Task Generate a SQL query to answer the following question: `When was the result 0–3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fa_premier_league" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `When was the result 0–3?`: ```sql
SELECT "result" FROM "international_goals" WHERE "date"='9 september 2009';
## Task Generate a SQL query to answer the following question: `What is the result of the match on 9 September 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "goal" real, "date" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the result of the match on 9 September 2009?`: ```sql
SELECT "name" FROM "loan_out" WHERE "date_from"='13 august 2008';
## Task Generate a SQL query to answer the following question: `What is the name of the player that was loaned out on 13 August 2008 ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "loan_out" ( "date_from" text, "date_to" text, "pos" text, "name" text, "moving_to" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the player that was loaned out on 13 August 2008 ?`: ```sql
SELECT "date_to" FROM "loan_out" WHERE "name"='febian brandy' AND "date_from"='2 february 2009';
## Task Generate a SQL query to answer the following question: `When was febian brandy loaned out until, when was loaned out on 2 february 2009.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "loan_out" ( "date_from" text, "date_to" text, "pos" text, "name" text, "moving_to" text ); ### SQL Given the database schema, here is the SQL query that answers `When was febian brandy loaned out until, when was loaned out on 2 february 2009.?`: ```sql
SELECT "date_to" FROM "loan_out" WHERE "name"='james chester';
## Task Generate a SQL query to answer the following question: `When was james chester loaned out until ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "loan_out" ( "date_from" text, "date_to" text, "pos" text, "name" text, "moving_to" text ); ### SQL Given the database schema, here is the SQL query that answers `When was james chester loaned out until ?`: ```sql
SELECT "moving_to" FROM "loan_out" WHERE "date_from"='27 november 2008';
## Task Generate a SQL query to answer the following question: `Where did the player loaned out on 27 november 2008 move to ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "loan_out" ( "date_from" text, "date_to" text, "pos" text, "name" text, "moving_to" text ); ### SQL Given the database schema, here is the SQL query that answers `Where did the player loaned out on 27 november 2008 move to ?`: ```sql
SELECT "date_to" FROM "loan_out" WHERE "name"='ron-robert zieler';
## Task Generate a SQL query to answer the following question: `When was ron-robert zieler loaned out until ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "loan_out" ( "date_from" text, "date_to" text, "pos" text, "name" text, "moving_to" text ); ### SQL Given the database schema, here is the SQL query that answers `When was ron-robert zieler loaned out until ?`: ```sql
SELECT "moving_to" FROM "loan_out" WHERE "date_to"='30 june 2009' AND "pos"='mf';
## Task Generate a SQL query to answer the following question: `Where did the player in Pos mf, move to until 30 june 2009 ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "loan_out" ( "date_from" text, "date_to" text, "pos" text, "name" text, "moving_to" text ); ### SQL Given the database schema, here is the SQL query that answers `Where did the player in Pos mf, move to until 30 june 2009 ?`: ```sql
SELECT "name" FROM "managerial_changes" WHERE "replacement"='michael skibbe';
## Task Generate a SQL query to answer the following question: `What is the name of the manager who was replaced by michael skibbe?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "name" text, "club" text, "date_of_departure" text, "replacement" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the manager who was replaced by michael skibbe?`: ```sql
SELECT "club" FROM "managerial_changes" WHERE "replacement"='aykut kocaman';
## Task Generate a SQL query to answer the following question: `What is the club the used aykut kocaman as the replacement?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "name" text, "club" text, "date_of_departure" text, "replacement" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the club the used aykut kocaman as the replacement?`: ```sql
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "name"='nejat biyedić';
## Task Generate a SQL query to answer the following question: `What is the date of appointment of nejat biyedić?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "name" text, "club" text, "date_of_departure" text, "replacement" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date of appointment of nejat biyedić?`: ```sql
SELECT "date" FROM "game_log" WHERE "location_attendance"='wachovia center';
## Task Generate a SQL query to answer the following question: `When did they play at the wachovia center?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text, "streak" text ); ### SQL Given the database schema, here is the SQL query that answers `When did they play at the wachovia center?`: ```sql
SELECT "game" FROM "game_log" WHERE "location_attendance"='amway arena';
## Task Generate a SQL query to answer the following question: `What game number was played at amway arena?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text, "streak" text ); ### SQL Given the database schema, here is the SQL query that answers `What game number was played at amway arena?`: ```sql
SELECT COUNT("total") FROM "medal_table" WHERE "silver"=1 AND "rank"<2;
## Task Generate a SQL query to answer the following question: `How many medals were won total for the country that won 1 silver and was ranked 2 or lower?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many medals were won total for the country that won 1 silver and was ranked 2 or lower?`: ```sql
SELECT COUNT("silver") FROM "medal_table" WHERE "gold">0 AND "rank">1 AND "total"<4;
## Task Generate a SQL query to answer the following question: `How many silvers did the country with more than 0 gold and a rank above 1 win that had a total less than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many silvers did the country with more than 0 gold and a rank above 1 win that had a total less than 4?`: ```sql
SELECT SUM("bronze") FROM "medal_table" WHERE "total">5;
## Task Generate a SQL query to answer the following question: `How many bronzes were won by the country with a total higher than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many bronzes were won by the country with a total higher than 5?`: ```sql
SELECT SUM("bronze") FROM "medal_table" WHERE "rank">3 AND "silver">0;
## Task Generate a SQL query to answer the following question: `How many bronzes were won for the country that had a larger than 3 rank and a silver win count above 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many bronzes were won for the country that had a larger than 3 rank and a silver win count above 0?`: ```sql
SELECT MAX("other") FROM "most_goals" WHERE "u_s_open_cup">0 AND "concacaf"=0;
## Task Generate a SQL query to answer the following question: `What is the highest value for Other that has CONCACAF value of 0 a U.S. Open Cup larger than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_goals" ( "name" text, "years" text, "mls_cup" real, "u_s_open_cup" real, "concacaf" real, "other" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest value for Other that has CONCACAF value of 0 a U.S. Open Cup larger than 0?`: ```sql
SELECT "subregion" FROM "municipalities" WHERE "no_p"=4 AND "pop_area_1_km"=534;
## Task Generate a SQL query to answer the following question: `Which Subregion has a No P. of 4, and a Pop/Area (1/km²) of 534?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "municipalities" ( "name" text, "area_km" real, "pop" real, "pop_area_1_km" real, "no_p" real, "no_c_no_t" text, "subregion" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Subregion has a No P. of 4, and a Pop/Area (1/km²) of 534?`: ```sql
SELECT AVG("pop_area_1_km") FROM "municipalities" WHERE "no_p">1 AND "name"='albergaria-a-velha';
## Task Generate a SQL query to answer the following question: `Which Pop/Area (1/km²) has a No P. larger than 1, and a Name of albergaria-a-velha?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "municipalities" ( "name" text, "area_km" real, "pop" real, "pop_area_1_km" real, "no_p" real, "no_c_no_t" text, "subregion" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Pop/Area (1/km²) has a No P. larger than 1, and a Name of albergaria-a-velha?`: ```sql
SELECT MIN("area_km") FROM "municipalities" WHERE "pop"='17,089';
## Task Generate a SQL query to answer the following question: `Which Area (km²) is the lowest one that has a Population of 17,089?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "municipalities" ( "name" text, "area_km" real, "pop" real, "pop_area_1_km" real, "no_p" real, "no_c_no_t" text, "subregion" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Area (km²) is the lowest one that has a Population of 17,089?`: ```sql
SELECT "home_team" FROM "fourth_round_proper" WHERE "tie_no"='replay' AND "date"='4 february 1987' AND "away_team"='luton town';
## Task Generate a SQL query to answer the following question: `Who was the home team on 4 February 1987 when Luton Town was away team and there was no replay?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_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 `Who was the home team on 4 February 1987 when Luton Town was away team and there was no replay?`: ```sql
SELECT "score" FROM "fourth_round_proper" WHERE "date"='31 january 1987' AND "tie_no"='1';
## Task Generate a SQL query to answer the following question: `What was the score on 31 January 1987 with tie number 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_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 on 31 January 1987 with tie number 1?`: ```sql
SELECT "away_team" FROM "fourth_round_proper" WHERE "date"='31 january 1987' AND "home_team"='wimbledon';
## Task Generate a SQL query to answer the following question: `Who was the away team on 31 January 1987 when the home team was Wimbledon?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_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 `Who was the away team on 31 January 1987 when the home team was Wimbledon?`: ```sql
SELECT "height_ft" FROM "notes" WHERE "country"='macedonia';
## Task Generate a SQL query to answer the following question: `How high is Macedonia's highest point?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notes" ( "rank" text, "country" text, "highest_point" text, "height_m" real, "height_ft" real ); ### SQL Given the database schema, here is the SQL query that answers `How high is Macedonia's highest point?`: ```sql
SELECT "theme" FROM "bush_battles" WHERE "winner"='dani';
## Task Generate a SQL query to answer the following question: `What is the theme with dani as the winner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "bush_battles" ( "battle_no" real, "broadcast_date" text, "name_of_battle" text, "theme" text, "celebrities_taking_part" text, "winner" text, "runner_up" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the theme with dani as the winner?`: ```sql
SELECT "notes" FROM "bush_battles" WHERE "theme"='patience';
## Task Generate a SQL query to answer the following question: `What are the notes of the patience theme?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "bush_battles" ( "battle_no" real, "broadcast_date" text, "name_of_battle" text, "theme" text, "celebrities_taking_part" text, "winner" text, "runner_up" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the notes of the patience theme?`: ```sql
SELECT MAX("round") FROM "draft_picks" WHERE "position"='(c)';
## Task Generate a SQL query to answer the following question: `what is the round when the position is (c)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the round when the position is (c)?`: ```sql
SELECT AVG("round") FROM "draft_picks" WHERE "player"='jake gardiner';
## Task Generate a SQL query to answer the following question: `what is the round for jake gardiner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the round for jake gardiner?`: ```sql
SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "round">1 AND "nationality"='canada' AND "position"='(d)';
## Task Generate a SQL query to answer the following question: `what is the college/junior/club team (league) when the round is higher than 1, the nationality is canada and the position is (d)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the college/junior/club team (league) when the round is higher than 1, the nationality is canada and the position is (d)?`: ```sql
SELECT "position" FROM "draft_picks" WHERE "round">3 AND "nationality"='united states' AND "player"='nick pryor';
## Task Generate a SQL query to answer the following question: `what is the position when the round is higher than 3, the nationality is united states and the player is nick pryor?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the position when the round is higher than 3, the nationality is united states and the player is nick pryor?`: ```sql
SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "position"='(c)' AND "round">2;
## Task Generate a SQL query to answer the following question: `what is the college/junior/club team (league) when the position is (c) and the round is higher than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the college/junior/club team (league) when the position is (c) and the round is higher than 2?`: ```sql
SELECT MAX("byes") FROM "2011_ladder" WHERE "south_west_dfl"='heathmere' AND "wins">11;
## Task Generate a SQL query to answer the following question: `When the team Heathmere of the South West DFL won more than 11 games, what is the maximum byes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2011_ladder" ( "south_west_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `When the team Heathmere of the South West DFL won more than 11 games, what is the maximum byes?`: ```sql
SELECT MAX("losses") FROM "2011_ladder" WHERE "draws">0 AND "against">1401;
## Task Generate a SQL query to answer the following question: `What is the most games lost when the against is greater than 1401, and the draws greater than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2011_ladder" ( "south_west_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the most games lost when the against is greater than 1401, and the draws greater than 0?`: ```sql
SELECT MAX("draws") FROM "2011_ladder" WHERE "against"<2514 AND "byes"<0;
## Task Generate a SQL query to answer the following question: `What is the maximum draws when less than 2514 is the against, and less than 0 byes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2011_ladder" ( "south_west_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the maximum draws when less than 2514 is the against, and less than 0 byes?`: ```sql
SELECT AVG("wins") FROM "2011_ladder" WHERE "losses"=17;
## Task Generate a SQL query to answer the following question: `What is the wins average when 17 games were lost?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2011_ladder" ( "south_west_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the wins average when 17 games were lost?`: ```sql
SELECT "stadium" FROM "stadium_and_locations" WHERE "city"='debrecen';
## Task Generate a SQL query to answer the following question: `What stadium is in the city of Debrecen?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stadium_and_locations" ( "club" text, "short_name" text, "city" text, "stadium" text, "capacity" real ); ### SQL Given the database schema, here is the SQL query that answers `What stadium is in the city of Debrecen?`: ```sql
SELECT SUM("silver") FROM "medal_table" WHERE "rank"='5' AND "bronze"<14;
## Task Generate a SQL query to answer the following question: `What is the number of silver when rank was 5, and a bronze was smaller than 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "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 number of silver when rank was 5, and a bronze was smaller than 14?`: ```sql
SELECT MAX("bronze") FROM "medal_table" WHERE "silver"=0 AND "total"<1;
## Task Generate a SQL query to answer the following question: `What is the highest bronze number when silver is 0, and the total is smaller than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest bronze number when silver is 0, and the total is smaller than 1?`: ```sql
SELECT COUNT("total") FROM "medal_table" WHERE "nation"='argentina' AND "gold"<0;
## Task Generate a SQL query to answer the following question: `What is the total when the nation was Argentina, and a Goldwas smaller than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "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 when the nation was Argentina, and a Goldwas smaller than 0?`: ```sql
SELECT "nation" FROM "medal_table" WHERE "bronze"<7 AND "gold">0 AND "total">7 AND "silver"<3;
## Task Generate a SQL query to answer the following question: `What is the nation when bronze is less than 7, gold is larger than 0, total is larger than 7, and silver is smaller than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "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 nation when bronze is less than 7, gold is larger than 0, total is larger than 7, and silver is smaller than 3?`: ```sql
SELECT "date" FROM "fa_premier_league" WHERE "h_a"='a' AND "league_position"='2nd' AND "opponents"='manchester city';
## Task Generate a SQL query to answer the following question: `What date was the game against manchester city when they had a league position of 2nd?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fa_premier_league" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real, "league_position" text ); ### SQL Given the database schema, here is the SQL query that answers `What date was the game against manchester city when they had a league position of 2nd?`: ```sql
SELECT "result_f_a" FROM "fa_premier_league" WHERE "date"='6 march 1993';
## Task Generate a SQL query to answer the following question: `What is the result F-A of the game on 6 march 1993?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fa_premier_league" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real, "league_position" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the result F-A of the game on 6 march 1993?`: ```sql
SELECT "result_f_a" FROM "fa_premier_league" WHERE "date"='3 may 1993';
## Task Generate a SQL query to answer the following question: `What is the result F-A of the game on 3 may 1993?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fa_premier_league" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real, "league_position" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the result F-A of the game on 3 may 1993?`: ```sql
SELECT "tie_no" FROM "first_round_proper" WHERE "date"='18 nov 1989' AND "home_team"='doncaster rovers';
## Task Generate a SQL query to answer the following question: `What is Tie no, when Date is "18 Nov 1989", and when Home Team is "Doncaster Rovers"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_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 is Tie no, when Date is "18 Nov 1989", and when Home Team is "Doncaster Rovers"?`: ```sql
SELECT "score" FROM "first_round_proper" WHERE "away_team"='yeovil town';
## Task Generate a SQL query to answer the following question: `What is Score, when Away Team is "Yeovil Town"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_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 is Score, when Away Team is "Yeovil Town"?`: ```sql
SELECT "home_team" FROM "first_round_proper" WHERE "tie_no"='27';
## Task Generate a SQL query to answer the following question: `What is Home Team, when Tie no is "27"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_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 is Home Team, when Tie no is "27"?`: ```sql
SELECT "date" FROM "first_round_proper" WHERE "tie_no"='37';
## Task Generate a SQL query to answer the following question: `What is Date, when Tie no is "37"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_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 is Date, when Tie no is "37"?`: ```sql
SELECT "home_team" FROM "first_round_proper" WHERE "date"='22 nov 1989' AND "away_team"='bath city';
## Task Generate a SQL query to answer the following question: `What is Home Team, when Date is "22 Nov 1989", and when Away Team is "Bath City"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_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 is Home Team, when Date is "22 Nov 1989", and when Away Team is "Bath City"?`: ```sql
SELECT "year" FROM "1970s" WHERE "play_by_play"='don earle';
## Task Generate a SQL query to answer the following question: `What year was the play-by-play for Don Earle?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1970s" ( "year" text, "channel" text, "play_by_play" text, "color_commentator_s" text, "studio_host" text ); ### SQL Given the database schema, here is the SQL query that answers `What year was the play-by-play for Don Earle?`: ```sql
SELECT "to_par" FROM "first_round" WHERE "score"=68 AND "player"='tom kite';
## Task Generate a SQL query to answer the following question: `What is Tom Kite with a Score of 68's To Par?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Tom Kite with a Score of 68's To Par?`: ```sql
SELECT "place" FROM "first_round" WHERE "player"='tom kite';
## Task Generate a SQL query to answer the following question: `What is Tom Kite's Place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Tom Kite's Place?`: ```sql
SELECT "televote_points" FROM "televoting_results" WHERE "jury_points"='0' AND "draw"=23;
## Task Generate a SQL query to answer the following question: `What is the televote points for 0 jury points and 23 draws?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "televoting_results" ( "draw" real, "televotes" text, "televote_points" text, "jury_points" text, "total" text, "final_points" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the televote points for 0 jury points and 23 draws?`: ```sql
SELECT "district" FROM "missouri" WHERE "first_elected"=2000 AND "party"='republican';
## Task Generate a SQL query to answer the following question: `What district was a republican first elected in 2000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missouri" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text ); ### SQL Given the database schema, here is the SQL query that answers `What district was a republican first elected in 2000?`: ```sql
SELECT "district" FROM "missouri" WHERE "first_elected">2000 AND "incumbent"='russ carnahan';
## Task Generate a SQL query to answer the following question: `In what district was incumbent Russ Carnahan elected after 2000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missouri" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text ); ### SQL Given the database schema, here is the SQL query that answers `In what district was incumbent Russ Carnahan elected after 2000?`: ```sql
SELECT "venue" FROM "list_of_fa_cup_third_fourth_place_matche" WHERE "loser"='leicester city';
## Task Generate a SQL query to answer the following question: `For which venue did Leicester City lose?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_fa_cup_third_fourth_place_matche" ( "season" text, "date" text, "winner" text, "loser" text, "score" text, "venue" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `For which venue did Leicester City lose?`: ```sql
SELECT "season" FROM "list_of_fa_cup_third_fourth_place_matche" WHERE "winner"='stoke city';
## Task Generate a SQL query to answer the following question: `What season did Stoke City win?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_fa_cup_third_fourth_place_matche" ( "season" text, "date" text, "winner" text, "loser" text, "score" text, "venue" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What season did Stoke City win?`: ```sql
SELECT "attendance" FROM "list_of_fa_cup_third_fourth_place_matche" WHERE "venue"='st andrew''s';
## Task Generate a SQL query to answer the following question: `What was the attendance for St Andrew's?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_fa_cup_third_fourth_place_matche" ( "season" text, "date" text, "winner" text, "loser" text, "score" text, "venue" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the attendance for St Andrew's?`: ```sql
SELECT "season" FROM "list_of_fa_cup_third_fourth_place_matche" WHERE "winner"='wolverhampton wanderers';
## Task Generate a SQL query to answer the following question: `What season did Wolverhampton Wanderers win?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_fa_cup_third_fourth_place_matche" ( "season" text, "date" text, "winner" text, "loser" text, "score" text, "venue" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What season did Wolverhampton Wanderers win?`: ```sql
SELECT "call_sign" FROM "broadcast_translators_of_kjth" WHERE "erp_w"=75;
## Task Generate a SQL query to answer the following question: `Which Call sign has an ERP W of 75?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "broadcast_translators_of_kjth" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "facility_id" real, "erp_w" real, "height_m_ft" text, "class" text, "fcc_info" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Call sign has an ERP W of 75?`: ```sql
SELECT "class" FROM "broadcast_translators_of_kjth" WHERE "facility_id">85076 AND "call_sign"='k289au';
## Task Generate a SQL query to answer the following question: `Which Class has a Facility ID greater than 85076 and a Call Sign of K289au?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "broadcast_translators_of_kjth" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "facility_id" real, "erp_w" real, "height_m_ft" text, "class" text, "fcc_info" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Class has a Facility ID greater than 85076 and a Call Sign of K289au?`: ```sql
SELECT "year" FROM "original_broadway_production" WHERE "nominee"='jack cole';
## Task Generate a SQL query to answer the following question: `What year was jack cole nominated?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "original_broadway_production" ( "year" real, "award_ceremony" text, "category" text, "nominee" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What year was jack cole nominated?`: ```sql
SELECT "award_ceremony" FROM "original_broadway_production" WHERE "nominee"='howard bay and patton campbell';
## Task Generate a SQL query to answer the following question: `What award ceremony was howard bay and patton campbell nominated?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "original_broadway_production" ( "year" real, "award_ceremony" text, "category" text, "nominee" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What award ceremony was howard bay and patton campbell nominated?`: ```sql
SELECT "visitor" FROM "montreal_canadiens_4_chicago_black_hawks" WHERE "date"='may 9';
## Task Generate a SQL query to answer the following question: `What is Visitor, when Date is "May 9"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Visitor, when Date is "May 9"?`: ```sql
SELECT "score" FROM "montreal_canadiens_4_chicago_black_hawks" WHERE "home"='montreal canadiens' AND "date"='may 16';
## Task Generate a SQL query to answer the following question: `What is Score, when Home is "Montreal Canadiens", and when Date is "May 16"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Score, when Home is "Montreal Canadiens", and when Date is "May 16"?`: ```sql
SELECT "score" FROM "montreal_canadiens_4_chicago_black_hawks" WHERE "date"='may 11';
## Task Generate a SQL query to answer the following question: `What is Score, when Date is "May 11"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Score, when Date is "May 11"?`: ```sql
SELECT "visitor" FROM "montreal_canadiens_4_chicago_black_hawks" WHERE "home"='chicago black hawks' AND "date"='may 4';
## Task Generate a SQL query to answer the following question: `What is Visitor, when Home is "Chicago Black Hawks", and when Date is "May 4"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Visitor, when Home is "Chicago Black Hawks", and when Date is "May 4"?`: ```sql
SELECT "score" FROM "montreal_canadiens_4_chicago_black_hawks" WHERE "record"='2-0';
## Task Generate a SQL query to answer the following question: `What is Score, when Record is "2-0"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Score, when Record is "2-0"?`: ```sql
SELECT "tournament" FROM "competitive" WHERE "date"='14 may';
## Task Generate a SQL query to answer the following question: `Which tournament included the round played on 14 May?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "competitive" ( "date" text, "tournament" text, "round" text, "ground" text, "opponent" text, "score_1" text ); ### SQL Given the database schema, here is the SQL query that answers `Which tournament included the round played on 14 May?`: ```sql
SELECT "round" FROM "competitive" WHERE "date"='10 may';
## Task Generate a SQL query to answer the following question: `Which round was played on 10 May?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "competitive" ( "date" text, "tournament" text, "round" text, "ground" text, "opponent" text, "score_1" text ); ### SQL Given the database schema, here is the SQL query that answers `Which round was played on 10 May?`: ```sql
SELECT "language" FROM "participants" WHERE "points">119 AND "place">5;
## Task Generate a SQL query to answer the following question: `what is the language when the points is more than 119 and the place is higher than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "participants" ( "draw" real, "language" text, "artist" text, "song" text, "english_translation" text, "national_final" text, "place" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the language when the points is more than 119 and the place is higher than 5?`: ```sql
SELECT MAX("place") FROM "participants" WHERE "national_final"='4th' AND "points"<139;
## Task Generate a SQL query to answer the following question: `what is the highest place when the national final is 4th and the points is less than 139?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "participants" ( "draw" real, "language" text, "artist" text, "song" text, "english_translation" text, "national_final" text, "place" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the highest place when the national final is 4th and the points is less than 139?`: ```sql
SELECT MIN("place") FROM "participants" WHERE "language"='croatian';
## Task Generate a SQL query to answer the following question: `what is the lowest place when the language is croatian?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "participants" ( "draw" real, "language" text, "artist" text, "song" text, "english_translation" text, "national_final" text, "place" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the lowest place when the language is croatian?`: ```sql
SELECT "language" FROM "participants" WHERE "english_translation"='come to me';
## Task Generate a SQL query to answer the following question: `what is the language when the english translation is come to me?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "participants" ( "draw" real, "language" text, "artist" text, "song" text, "english_translation" text, "national_final" text, "place" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the language when the english translation is come to me?`: ```sql
SELECT "song" FROM "participants" WHERE "points">64 AND "national_final"='4th' AND "draw">3;
## Task Generate a SQL query to answer the following question: `what is the song when the points is more than 64, the national final is 4th and draw is more than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "participants" ( "draw" real, "language" text, "artist" text, "song" text, "english_translation" text, "national_final" text, "place" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the song when the points is more than 64, the national final is 4th and draw is more than 3?`: ```sql
SELECT "category" FROM "original_broadway_production" WHERE "result"='nominated' AND "award"='drama desk award' AND "nominee"='nathan lane';
## Task Generate a SQL query to answer the following question: `What is Category, when Result is "Nominated", when Award is "Drama Desk Award", and when Nominee is "Nathan Lane"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "original_broadway_production" ( "year" real, "award" text, "category" text, "nominee" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Category, when Result is "Nominated", when Award is "Drama Desk Award", and when Nominee is "Nathan Lane"?`: ```sql
SELECT "category" FROM "original_broadway_production" WHERE "result"='won' AND "nominee"='bebe neuwirth';
## Task Generate a SQL query to answer the following question: `What is Category, when Result is "Won", and when Nominee is "Bebe Neuwirth"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "original_broadway_production" ( "year" real, "award" text, "category" text, "nominee" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Category, when Result is "Won", and when Nominee is "Bebe Neuwirth"?`: ```sql
SELECT COUNT("year") FROM "original_broadway_production" WHERE "result"='nominated' AND "category"='outstanding actor in a musical' AND "award"='drama desk award';
## Task Generate a SQL query to answer the following question: `What is the total number of Year, when Result is "Nominated", when Category is "Outstanding Actor in a Musical", and when Award is "Drama Desk Award"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "original_broadway_production" ( "year" real, "award" text, "category" text, "nominee" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of Year, when Result is "Nominated", when Category is "Outstanding Actor in a Musical", and when Award is "Drama Desk Award"?`: ```sql