output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "worldwide_gross" FROM "highest_grossing_films_of_1996" WHERE "director"='joe pytka';
## Task Generate a SQL query to answer the following question: `What was the worldwide gross for the film directed by joe pytka?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_grossing_films_of_1996" ( "rank" real, "title" text, "studio" text, "director" text, "worldwide_gross" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the worldwide gross for the film directed by joe pytka?`: ```sql
SELECT AVG("rank") FROM "highest_grossing_films_of_1996" WHERE "studio"='20th century fox' AND "director"='roland emmerich';
## Task Generate a SQL query to answer the following question: `What was the average rank for the film directed by roland emmerich under the studio of 20th century fox?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_grossing_films_of_1996" ( "rank" real, "title" text, "studio" text, "director" text, "worldwide_gross" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the average rank for the film directed by roland emmerich under the studio of 20th century fox?`: ```sql
SELECT AVG("rank") FROM "highest_grossing_films_of_1996" WHERE "director"='michael bay';
## Task Generate a SQL query to answer the following question: `What is the average rank for the film directed by michael bay?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_grossing_films_of_1996" ( "rank" real, "title" text, "studio" text, "director" text, "worldwide_gross" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average rank for the film directed by michael bay?`: ```sql
SELECT "3rd_largest" FROM "largest_cities_in_the_provinces" WHERE "largest_city"='ardabil';
## Task Generate a SQL query to answer the following question: `What is the 3rd largest where the largest city is Ardabil?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "largest_cities_in_the_provinces" ( "province" text, "largest_city" text, "2nd_largest" text, "3rd_largest" text, "4th_largest" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 3rd largest where the largest city is Ardabil?`: ```sql
SELECT "province" FROM "largest_cities_in_the_provinces" WHERE "3rd_largest"='savojbolagh';
## Task Generate a SQL query to answer the following question: `What is the province where the 3rd largest is Savojbolagh?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "largest_cities_in_the_provinces" ( "province" text, "largest_city" text, "2nd_largest" text, "3rd_largest" text, "4th_largest" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the province where the 3rd largest is Savojbolagh?`: ```sql
SELECT "4th_largest" FROM "largest_cities_in_the_provinces" WHERE "2nd_largest"='minab';
## Task Generate a SQL query to answer the following question: `What is the 4th largest where the 2nd largest is Minab?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "largest_cities_in_the_provinces" ( "province" text, "largest_city" text, "2nd_largest" text, "3rd_largest" text, "4th_largest" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 4th largest where the 2nd largest is Minab?`: ```sql
SELECT "province" FROM "largest_cities_in_the_provinces" WHERE "3rd_largest"='dehbarez';
## Task Generate a SQL query to answer the following question: `In which province is the 3rd largest Dehbarez?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "largest_cities_in_the_provinces" ( "province" text, "largest_city" text, "2nd_largest" text, "3rd_largest" text, "4th_largest" text ); ### SQL Given the database schema, here is the SQL query that answers `In which province is the 3rd largest Dehbarez?`: ```sql
SELECT "3rd_largest" FROM "largest_cities_in_the_provinces" WHERE "2nd_largest"='minab';
## Task Generate a SQL query to answer the following question: `What is the 3rd largest when 2nd largest in Minab?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "largest_cities_in_the_provinces" ( "province" text, "largest_city" text, "2nd_largest" text, "3rd_largest" text, "4th_largest" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 3rd largest when 2nd largest in Minab?`: ```sql
SELECT "province" FROM "largest_cities_in_the_provinces" WHERE "largest_city"='birjand';
## Task Generate a SQL query to answer the following question: `What province has the largest city of Birjand?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "largest_cities_in_the_provinces" ( "province" text, "largest_city" text, "2nd_largest" text, "3rd_largest" text, "4th_largest" text ); ### SQL Given the database schema, here is the SQL query that answers `What province has the largest city of Birjand?`: ```sql
SELECT "score" FROM "season_schedule" WHERE "date"='september 28';
## Task Generate a SQL query to answer the following question: `What was the score on september 28?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "date" text, "opponent" text, "score" text, "result" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the score on september 28?`: ```sql
SELECT "date" FROM "season_schedule" WHERE "score"='29-7';
## Task Generate a SQL query to answer the following question: `What date was the score 29-7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "date" text, "opponent" text, "score" text, "result" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What date was the score 29-7?`: ```sql
SELECT COUNT("january") FROM "schedule_and_results" WHERE "game"<37 AND "opponent"='detroit red wings';
## Task Generate a SQL query to answer the following question: `How much January has a Game smaller than 37, and an Opponent of detroit red wings?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "january" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `How much January has a Game smaller than 37, and an Opponent of detroit red wings?`: ```sql
SELECT "january" FROM "schedule_and_results" WHERE "opponent"='toronto maple leafs';
## Task Generate a SQL query to answer the following question: `Which January has an Opponent of toronto maple leafs?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "january" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which January has an Opponent of toronto maple leafs?`: ```sql
SELECT AVG("january") FROM "schedule_and_results" WHERE "opponent"='@ detroit red wings';
## Task Generate a SQL query to answer the following question: `Which January has an Opponent of @ detroit red wings?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "january" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which January has an Opponent of @ detroit red wings?`: ```sql
SELECT "date" FROM "friendlies" WHERE "score"='won 1-2';
## Task Generate a SQL query to answer the following question: `What date was the score won 1-2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "friendlies" ( "date" text, "opponent" text, "venue" text, "score" text, "attendance" text, "scorers" text ); ### SQL Given the database schema, here is the SQL query that answers `What date was the score won 1-2?`: ```sql
SELECT "score" FROM "friendlies" WHERE "opponent"='bornor regis town';
## Task Generate a SQL query to answer the following question: `What was the score when Bornor Regis Town was the opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "friendlies" ( "date" text, "opponent" text, "venue" text, "score" text, "attendance" text, "scorers" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score when Bornor Regis Town was the opponent?`: ```sql
SELECT "attendance" FROM "friendlies" WHERE "opponent"='tonbridge angels';
## Task Generate a SQL query to answer the following question: `What is the number of people in attendance when Tonbridge Angels is the opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "friendlies" ( "date" text, "opponent" text, "venue" text, "score" text, "attendance" text, "scorers" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of people in attendance when Tonbridge Angels is the opponent?`: ```sql
SELECT "score" FROM "friendlies" WHERE "attendance"='tbc' AND "opponent"='sidley united';
## Task Generate a SQL query to answer the following question: `What is the score when the attendance shows TBC, and Sidley United was the opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "friendlies" ( "date" text, "opponent" text, "venue" text, "score" text, "attendance" text, "scorers" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score when the attendance shows TBC, and Sidley United was the opponent?`: ```sql
SELECT "score" FROM "friendlies" WHERE "scorers"='match report';
## Task Generate a SQL query to answer the following question: `What is the score when the scorers show match report?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "friendlies" ( "date" text, "opponent" text, "venue" text, "score" text, "attendance" text, "scorers" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score when the scorers show match report?`: ```sql
SELECT "album" FROM "singles" WHERE "label"='msb 801';
## Task Generate a SQL query to answer the following question: `Which Album has a Label of msb 801?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "year" real, "a_side" text, "b_side" text, "label" text, "us_pop" text, "album" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Album has a Label of msb 801?`: ```sql
SELECT "album" FROM "singles" WHERE "label"='tumbleweed 1014';
## Task Generate a SQL query to answer the following question: `Which Album has a Label of tumbleweed 1014?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "year" real, "a_side" text, "b_side" text, "label" text, "us_pop" text, "album" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Album has a Label of tumbleweed 1014?`: ```sql
SELECT "score" FROM "fourth_round_proper" WHERE "tie_no"='12';
## Task Generate a SQL query to answer the following question: `What was the score when the tie no was 12?` ### 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 when the tie no was 12?`: ```sql
SELECT "date" FROM "fourth_round_proper" WHERE "away_team"='carlisle united';
## Task Generate a SQL query to answer the following question: `What date was the match against carlisle united?` ### 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 date was the match against carlisle united?`: ```sql
SELECT "home_team" FROM "fourth_round_proper" WHERE "away_team"='millwall';
## Task Generate a SQL query to answer the following question: `Who was the home team when millwall was the away team?` ### 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 when millwall was the away team?`: ```sql
SELECT SUM("international_trade_millions_of_usd_2011") FROM "members" WHERE "gdp_ppp_millions_of_usd_2011"<'471,890' AND "un_budget"='0.238%' AND "gdp_nominal_millions_of_usd_2011"<'845,680';
## Task Generate a SQL query to answer the following question: `What is International Trade (Millions of USD) 2011 when 2011 GDP is less than 471,890 and UN budget of 0.238% and GDP nominal less than 845,680?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members" ( "country" text, "un_budget" text, "international_trade_millions_of_usd_2011" real, "gdp_nominal_millions_of_usd_2011" real, "gdp_ppp_millions_of_usd_2011" real, "population" real ); ### SQL Given the database schema, here is the SQL query that answers `What is International Trade (Millions of USD) 2011 when 2011 GDP is less than 471,890 and UN budget of 0.238% and GDP nominal less than 845,680?`: ```sql
SELECT "category" FROM "recording_career" WHERE "outcome"='nominated' AND "year">2008;
## Task Generate a SQL query to answer the following question: `What category was the nominated in after 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "recording_career" ( "event" text, "year" real, "category" text, "work" text, "outcome" text ); ### SQL Given the database schema, here is the SQL query that answers `What category was the nominated in after 2008?`: ```sql
SELECT "year" FROM "recording_career" WHERE "category"='supernova award';
## Task Generate a SQL query to answer the following question: `What year had the supernova award?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "recording_career" ( "event" text, "year" real, "category" text, "work" text, "outcome" text ); ### SQL Given the database schema, here is the SQL query that answers `What year had the supernova award?`: ```sql
SELECT "category" FROM "recording_career" WHERE "outcome"='winner';
## Task Generate a SQL query to answer the following question: `What category was the winner in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "recording_career" ( "event" text, "year" real, "category" text, "work" text, "outcome" text ); ### SQL Given the database schema, here is the SQL query that answers `What category was the winner in?`: ```sql
SELECT "country" FROM "destinations" WHERE "iata"='gva';
## Task Generate a SQL query to answer the following question: `what is the country when the iata is gva?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the country when the iata is gva?`: ```sql
SELECT "country" FROM "destinations" WHERE "city"='cardiff';
## Task Generate a SQL query to answer the following question: `what is the country for the city of cardiff?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the country for the city of cardiff?`: ```sql
SELECT "icao" FROM "destinations" WHERE "country"='norway';
## Task Generate a SQL query to answer the following question: `what is the icao when the country is norway?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the icao when the country is norway?`: ```sql
SELECT "city" FROM "destinations" WHERE "country"='netherlands';
## Task Generate a SQL query to answer the following question: `what is the city for the country of netherlands?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the city for the country of netherlands?`: ```sql
SELECT "airport" FROM "destinations" WHERE "city"='düsseldorf';
## Task Generate a SQL query to answer the following question: `what is the airport when the city is düsseldorf?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the airport when the city is düsseldorf?`: ```sql
SELECT "iata" FROM "destinations" WHERE "city"='leipzig';
## Task Generate a SQL query to answer the following question: `what is the iata when the city is leipzig?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the iata when the city is leipzig?`: ```sql
SELECT "record" FROM "schedule_and_results" WHERE "february"=23;
## Task Generate a SQL query to answer the following question: `What is the record on February 23?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "february" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the record on February 23?`: ```sql
SELECT COUNT("rank") FROM "fastest_ascents_of_the_angliru" WHERE "year"<2002 AND "ascent_time"='43:24';
## Task Generate a SQL query to answer the following question: `What was the rank of the rider whose ascent time was 43:24 before the year 2002?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fastest_ascents_of_the_angliru" ( "rank" real, "year" real, "ascent_time" text, "speed" text, "rider" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the rank of the rider whose ascent time was 43:24 before the year 2002?`: ```sql
SELECT "rider" FROM "fastest_ascents_of_the_angliru" WHERE "rank"<8 AND "year"=2000 AND "speed"='18.32 km/h';
## Task Generate a SQL query to answer the following question: `Who is the rider that has a rank of less than 8 in the year 2000, and whose speed was 18.32 km/h?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fastest_ascents_of_the_angliru" ( "rank" real, "year" real, "ascent_time" text, "speed" text, "rider" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the rider that has a rank of less than 8 in the year 2000, and whose speed was 18.32 km/h?`: ```sql
SELECT "comp_att" FROM "college" WHERE "season"='2009';
## Task Generate a SQL query to answer the following question: `What is the number of completions and attempts taken in 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "college" ( "season" text, "gp_gs" text, "comp_att" text, "pct" text, "yards" text, "long" text, "avg_g" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of completions and attempts taken in 2009?`: ```sql
SELECT "comp_att" FROM "college" WHERE "avg_g"='36.5';
## Task Generate a SQL query to answer the following question: `What is the completion/attempts value for the year with an average per game of 36.5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "college" ( "season" text, "gp_gs" text, "comp_att" text, "pct" text, "yards" text, "long" text, "avg_g" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the completion/attempts value for the year with an average per game of 36.5?`: ```sql
SELECT "long" FROM "college" WHERE "avg_g"='160.9';
## Task Generate a SQL query to answer the following question: `What is the long value for the year with an average/game of 160.9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "college" ( "season" text, "gp_gs" text, "comp_att" text, "pct" text, "yards" text, "long" text, "avg_g" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the long value for the year with an average/game of 160.9?`: ```sql
SELECT MAX("attendance") FROM "game_log" WHERE "date"='february 7, 2009' AND "points">49;
## Task Generate a SQL query to answer the following question: `What was the highest attendance of February 7, 2009 and more than 49 points?` ### 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" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the highest attendance of February 7, 2009 and more than 49 points?`: ```sql
SELECT "location" FROM "game_log" WHERE "game"<57 AND "points">50;
## Task Generate a SQL query to answer the following question: `Which game has a number lower than 57 and more than 50 points?` ### 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" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which game has a number lower than 57 and more than 50 points?`: ```sql
SELECT MAX("points") FROM "game_log" WHERE "date"='february 10, 2009' AND "game">54;
## Task Generate a SQL query to answer the following question: `What game in February 10, 2009 has the most points and a game number larger than 54?` ### 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" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What game in February 10, 2009 has the most points and a game number larger than 54?`: ```sql
SELECT "at_opponent_s_venue" FROM "record_vs_sec_opponents" WHERE "missouri_vs"='tennessee';
## Task Generate a SQL query to answer the following question: `What's the opponent's venue result when the opponent is tennessee?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "record_vs_sec_opponents" ( "missouri_vs" text, "overall_record" text, "at_columbia" text, "at_opponent_s_venue" text, "at_neutral_site" text, "last_5_meetings" text, "last_10_meetings" text, "current_streak" text, "since_joining_sec" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the opponent's venue result when the opponent is tennessee?`: ```sql
SELECT "current_streak" FROM "record_vs_sec_opponents" WHERE "last_10_meetings"='lsu, 2-1';
## Task Generate a SQL query to answer the following question: `What's the current streak with a last 10 meetings of lsu, 2-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "record_vs_sec_opponents" ( "missouri_vs" text, "overall_record" text, "at_columbia" text, "at_opponent_s_venue" text, "at_neutral_site" text, "last_5_meetings" text, "last_10_meetings" text, "current_streak" text, "since_joining_sec" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the current streak with a last 10 meetings of lsu, 2-1?`: ```sql
SELECT "last_5_meetings" FROM "record_vs_sec_opponents" WHERE "at_opponent_s_venue"='vu, 2-0';
## Task Generate a SQL query to answer the following question: `What's the last 5 meetings with an opponent's venue result of vu, 2-0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "record_vs_sec_opponents" ( "missouri_vs" text, "overall_record" text, "at_columbia" text, "at_opponent_s_venue" text, "at_neutral_site" text, "last_5_meetings" text, "last_10_meetings" text, "current_streak" text, "since_joining_sec" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the last 5 meetings with an opponent's venue result of vu, 2-0?`: ```sql
SELECT "probable_future" FROM "finite_forms_of_garnu_to_do" WHERE "simple_present_future"='high grade';
## Task Generate a SQL query to answer the following question: `What is the probable future word for the simple present/future word high grade?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "finite_forms_of_garnu_to_do" ( "simple_present_future" text, "probable_future" text, "simple_past" text, "past_habitual" text, "injunctive" text, "imperative" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the probable future word for the simple present/future word high grade?`: ```sql
SELECT "injunctive" FROM "finite_forms_of_garnu_to_do" WHERE "simple_past"='गरुँला garũlā ''i will (probably) do''';
## Task Generate a SQL query to answer the following question: `What is the injunctive for the Simple Past of गरुँला garũlā 'I will (probably) do'?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "finite_forms_of_garnu_to_do" ( "simple_present_future" text, "probable_future" text, "simple_past" text, "past_habitual" text, "injunctive" text, "imperative" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the injunctive for the Simple Past of गरुँला garũlā 'I will (probably) do'?`: ```sql
SELECT "took_office" FROM "ministers_without_portfolio" WHERE "minister"='giorgia meloni';
## Task Generate a SQL query to answer the following question: `What is the date of taking office for Giorgia Meloni?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ministers_without_portfolio" ( "portfolio" text, "minister" text, "took_office" text, "left_office" text, "party" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date of taking office for Giorgia Meloni?`: ```sql
SELECT "party" FROM "ministers_without_portfolio" WHERE "minister"='andrea ronchi';
## Task Generate a SQL query to answer the following question: `Which party was Andrea Ronchi from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ministers_without_portfolio" ( "portfolio" text, "minister" text, "took_office" text, "left_office" text, "party" text ); ### SQL Given the database schema, here is the SQL query that answers `Which party was Andrea Ronchi from?`: ```sql
SELECT MIN("division") FROM "club_statistics" WHERE "team"='benfica' AND "apps"=22;
## Task Generate a SQL query to answer the following question: `What is the lowest Division, when Team is "Benfica", and when Apps is 22?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "club_statistics" ( "season" text, "team" text, "country" text, "division" real, "apps" real, "goals" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Division, when Team is "Benfica", and when Apps is 22?`: ```sql
SELECT "championship" FROM "wins_5" WHERE "winning_score"='69-71-67-68=275';
## Task Generate a SQL query to answer the following question: `What Championship had a winning score of 69-71-67-68=275?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins_5" ( "year" real, "championship" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_up" text, "winner_s_share" real ); ### SQL Given the database schema, here is the SQL query that answers `What Championship had a winning score of 69-71-67-68=275?`: ```sql
SELECT MIN("winner_s_share") FROM "wins_5" WHERE "championship"='lpga championship';
## Task Generate a SQL query to answer the following question: `What is the smallest winner's share for the LPGA championship?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins_5" ( "year" real, "championship" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_up" text, "winner_s_share" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest winner's share for the LPGA championship?`: ```sql
SELECT "jockey" FROM "winners_since_2000" WHERE "time"='1:15.89';
## Task Generate a SQL query to answer the following question: `What is Jockey, when Time is 1:15.89?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_since_2000" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Jockey, when Time is 1:15.89?`: ```sql
SELECT "time" FROM "winners_since_2000" WHERE "jockey"='john velazquez' AND "trainer"='todd a. pletcher';
## Task Generate a SQL query to answer the following question: `What is Time, when Jockey is John Velazquez, and when Trainer is Todd A. Pletcher?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_since_2000" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Time, when Jockey is John Velazquez, and when Trainer is Todd A. Pletcher?`: ```sql
SELECT "winner" FROM "winners_since_2000" WHERE "year"=2001;
## Task Generate a SQL query to answer the following question: `What is Winner, when Year is 2001?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_since_2000" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Winner, when Year is 2001?`: ```sql
SELECT "jockey" FROM "winners_since_2000" WHERE "winner"='alke';
## Task Generate a SQL query to answer the following question: `What is Jockey, when Winner is Alke?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_since_2000" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Jockey, when Winner is Alke?`: ```sql
SELECT AVG("laps") FROM "superbike_race_2_classification" WHERE "time"='+50.653';
## Task Generate a SQL query to answer the following question: `What is the average laps for the +50.653 time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "superbike_race_2_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average laps for the +50.653 time?`: ```sql
SELECT MAX("matches") FROM "table" WHERE "points"<8 AND "place">13 AND "drawn"<1;
## Task Generate a SQL query to answer the following question: `What is the highest Matches were the points were smaller than 8, the place was larger than 13, and the drawn is less than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table" ( "place" real, "matches" real, "drawn" real, "lost" real, "difference" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest Matches were the points were smaller than 8, the place was larger than 13, and the drawn is less than 1?`: ```sql
SELECT AVG("points") FROM "table" WHERE "drawn"<0;
## Task Generate a SQL query to answer the following question: `What is the average points when the drawn is less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table" ( "place" real, "matches" real, "drawn" real, "lost" real, "difference" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average points when the drawn is less than 0?`: ```sql
SELECT MIN("gold") FROM "medal_table" WHERE "nation"='turkey' AND "bronze"<2;
## Task Generate a SQL query to answer the following question: `What was Turkey's lowest gold when there were less than 2 bronze?` ### 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 was Turkey's lowest gold when there were less than 2 bronze?`: ```sql
SELECT AVG("area_sq_mi") FROM "notes" WHERE "area_km"='9,630,960' AND "national_share_pct">100;
## Task Generate a SQL query to answer the following question: `What is the average area in square miles for the division that is 9,630,960 square kilometers with a national share larger than 100%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notes" ( "rank" text, "administrative_division" text, "area_km" real, "area_sq_mi" real, "national_share_pct" real, "comparable_country" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average area in square miles for the division that is 9,630,960 square kilometers with a national share larger than 100%?`: ```sql
SELECT AVG("area_sq_mi") FROM "notes" WHERE "administrative_division"='hunan' AND "national_share_pct"<2.19;
## Task Generate a SQL query to answer the following question: `What is the average area in square miles for the hunan administrative division with a national share less than 2.19%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notes" ( "rank" text, "administrative_division" text, "area_km" real, "area_sq_mi" real, "national_share_pct" real, "comparable_country" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average area in square miles for the hunan administrative division with a national share less than 2.19%?`: ```sql
SELECT AVG("area_km") FROM "notes" WHERE "area_sq_mi"='2,448' AND "national_share_pct">0.065;
## Task Generate a SQL query to answer the following question: `What is the average square kilometer area of the division that has a 2,448 square mile area and a national share larger than 0.065%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notes" ( "rank" text, "administrative_division" text, "area_km" real, "area_sq_mi" real, "national_share_pct" real, "comparable_country" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average square kilometer area of the division that has a 2,448 square mile area and a national share larger than 0.065%?`: ```sql
SELECT AVG("overall") FROM "washington_redskins_draft_history" WHERE "college"='central michigan' AND "pick"=8;
## Task Generate a SQL query to answer the following question: `What is Central Michigan's average overall when the pick was 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Central Michigan's average overall when the pick was 8?`: ```sql
SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='jeff williams';
## Task Generate a SQL query to answer the following question: `what is the record when the opponent is jeff williams?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the record when the opponent is jeff williams?`: ```sql
SELECT "method" FROM "mixed_martial_arts_record" WHERE "round"=1 AND "opponent"='bobby mcmaster';
## Task Generate a SQL query to answer the following question: `what is the method for round 1 and the opponent is bobby mcmaster?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the method for round 1 and the opponent is bobby mcmaster?`: ```sql
SELECT "location" FROM "mixed_martial_arts_record" WHERE "time"='3:15';
## Task Generate a SQL query to answer the following question: `what is the location when the time is 3:15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the location when the time is 3:15?`: ```sql
SELECT "record" FROM "mixed_martial_arts_record" WHERE "round"<3 AND "time"='4:59';
## Task Generate a SQL query to answer the following question: `what is the record when the round is before 3 and the time si 4:59?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the record when the round is before 3 and the time si 4:59?`: ```sql
SELECT "record" FROM "mixed_martial_arts_record" WHERE "event"='shido usa mma' AND "opponent"='raphael assunção';
## Task Generate a SQL query to answer the following question: `what is the record when the event is shido usa mma and the opponent is raphael assunção?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the record when the event is shido usa mma and the opponent is raphael assunção?`: ```sql
SELECT "money" FROM "final_leaderboard" WHERE "player"='ben crenshaw';
## Task Generate a SQL query to answer the following question: `How much money did Ben Crenshaw earn?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); ### SQL Given the database schema, here is the SQL query that answers `How much money did Ben Crenshaw earn?`: ```sql
SELECT "competition" FROM "international_goals" WHERE "score"='2-1';
## Task Generate a SQL query to answer the following question: `what is the competition when the score is 2-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the competition when the score is 2-1?`: ```sql
SELECT "venue" FROM "international_goals" WHERE "score"='10-0' AND "date"='1997-06-22';
## Task Generate a SQL query to answer the following question: `what is the venue when the score is 10-0 on 1997-06-22?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the venue when the score is 10-0 on 1997-06-22?`: ```sql
SELECT "venue" FROM "international_goals" WHERE "competition"='1996 afc asian cup group stage';
## Task Generate a SQL query to answer the following question: `what is the venue when the competition is 1996 afc asian cup group stage?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the venue when the competition is 1996 afc asian cup group stage?`: ```sql
SELECT "competition" FROM "international_goals" WHERE "date"='1995-08-06';
## Task Generate a SQL query to answer the following question: `what is the competition when the date is 1995-08-06?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the competition when the date is 1995-08-06?`: ```sql
SELECT COUNT("week") FROM "schedule" WHERE "opponent"='dallas cowboys';
## Task Generate a SQL query to answer the following question: `What is the total number of weeks that the Giants played against the Dallas Cowboys?` ### 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, "channel" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of weeks that the Giants played against the Dallas Cowboys?`: ```sql
SELECT "home" FROM "round_15" WHERE "away"='hispano';
## Task Generate a SQL query to answer the following question: `Which Home has an Away of hispano?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_15" ( "date" text, "home" text, "score" text, "away" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Home has an Away of hispano?`: ```sql
SELECT "engine" FROM "complete_formula_one_results" WHERE "entrant"='mercedes amg petronas f1 team' AND "points"='93';
## Task Generate a SQL query to answer the following question: `What engine has the Mercedes AMG Petronas f1 team, and 93 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What engine has the Mercedes AMG Petronas f1 team, and 93 points?`: ```sql
SELECT "chassis" FROM "complete_formula_one_results" WHERE "points"='4';
## Task Generate a SQL query to answer the following question: `Which Chassis has 4 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Chassis has 4 points?`: ```sql
SELECT "opponent" FROM "singles_21_17_titles_4_runner_ups" WHERE "year">2009 AND "score"='7–5, 6–7 (6–8) , 6–1';
## Task Generate a SQL query to answer the following question: `What is Opponent, when Year is greater than 2009, and when Score is 7–5, 6–7 (6–8) , 6–1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_21_17_titles_4_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Opponent, when Year is greater than 2009, and when Score is 7–5, 6–7 (6–8) , 6–1?`: ```sql
SELECT MIN("year") FROM "singles_21_17_titles_4_runner_ups" WHERE "surface"='hard' AND "opponent"='dinara safina';
## Task Generate a SQL query to answer the following question: `What is the lowest Year, when Surface is Hard, and when Opponent is Dinara Safina?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_21_17_titles_4_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Year, when Surface is Hard, and when Opponent is Dinara Safina?`: ```sql
SELECT "surface" FROM "singles_21_17_titles_4_runner_ups" WHERE "championship"='australian open';
## Task Generate a SQL query to answer the following question: `What is Surface, when Championship is Australian Open?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_21_17_titles_4_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Surface, when Championship is Australian Open?`: ```sql
SELECT "outcome" FROM "singles_21_17_titles_4_runner_ups" WHERE "opponent"='victoria azarenka' AND "score"='6–2, 2–6, 7–5';
## Task Generate a SQL query to answer the following question: `What is Outcome, when Opponent is Victoria Azarenka, and when Score is 6–2, 2–6, 7–5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_21_17_titles_4_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Outcome, when Opponent is Victoria Azarenka, and when Score is 6–2, 2–6, 7–5?`: ```sql
SELECT "series" FROM "dvd_and_blu_ray_releases" WHERE "released_by"='itv studios' AND "release_date"='august 15, 2012';
## Task Generate a SQL query to answer the following question: `WHAT SERIES WAS RELEASED BY ITV STUDIOS AND A RELEASE DATE OF AUGUST 15, 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "dvd_and_blu_ray_releases" ( "release_title" text, "series" text, "no_of_dv_ds" text, "no_of_blu_ray_discs" text, "release_date" text, "episode_no" text, "region_no" real, "released_by" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT SERIES WAS RELEASED BY ITV STUDIOS AND A RELEASE DATE OF AUGUST 15, 2012?`: ```sql
SELECT "episode_no" FROM "dvd_and_blu_ray_releases" WHERE "no_of_dv_ds"='28';
## Task Generate a SQL query to answer the following question: `WHAT IS THE EPISODE NUMBER THAT HAS 28 DVD?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "dvd_and_blu_ray_releases" ( "release_title" text, "series" text, "no_of_dv_ds" text, "no_of_blu_ray_discs" text, "release_date" text, "episode_no" text, "region_no" real, "released_by" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE EPISODE NUMBER THAT HAS 28 DVD?`: ```sql
SELECT "episode_no" FROM "dvd_and_blu_ray_releases" WHERE "region_no">1 AND "no_of_dv_ds"='32';
## Task Generate a SQL query to answer the following question: `WHAT EPISODE HAS A REGION NUMBER BIGGER THAN 1, AND 32 DVDS?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "dvd_and_blu_ray_releases" ( "release_title" text, "series" text, "no_of_dv_ds" text, "no_of_blu_ray_discs" text, "release_date" text, "episode_no" text, "region_no" real, "released_by" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT EPISODE HAS A REGION NUMBER BIGGER THAN 1, AND 32 DVDS?`: ```sql
SELECT "position" FROM "k" WHERE "from"='duke';
## Task Generate a SQL query to answer the following question: `Who was the player from Duke?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "k" ( "player" text, "nationality" text, "jersey_number_s" text, "position" text, "years" text, "from" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the player from Duke?`: ```sql
SELECT "duration" FROM "list_of_alt_flights" WHERE "test_flight"='taxi test #2';
## Task Generate a SQL query to answer the following question: `What is Duration, when Test Flight is Taxi Test #2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_alt_flights" ( "test_flight" text, "date" text, "speed" text, "altitude" text, "crew" text, "duration" text, "comment" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Duration, when Test Flight is Taxi Test #2?`: ```sql
SELECT "duration" FROM "list_of_alt_flights" WHERE "test_flight"='free flight #3';
## Task Generate a SQL query to answer the following question: `What it Duration, when Test Flight is Free Flight #3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_alt_flights" ( "test_flight" text, "date" text, "speed" text, "altitude" text, "crew" text, "duration" text, "comment" text ); ### SQL Given the database schema, here is the SQL query that answers `What it Duration, when Test Flight is Free Flight #3?`: ```sql
SELECT "date" FROM "list_of_alt_flights" WHERE "comment"='tailcone on, lakebed landing' AND "duration"='5min 34 s';
## Task Generate a SQL query to answer the following question: `What is Date, when Comment is Tailcone On, Lakebed Landing, and when Duration is 5min 34 s?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_alt_flights" ( "test_flight" text, "date" text, "speed" text, "altitude" text, "crew" text, "duration" text, "comment" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Date, when Comment is Tailcone On, Lakebed Landing, and when Duration is 5min 34 s?`: ```sql
SELECT "crew" FROM "list_of_alt_flights" WHERE "date"='july 26, 1977';
## Task Generate a SQL query to answer the following question: `What is Crew, when Date is July 26, 1977?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_alt_flights" ( "test_flight" text, "date" text, "speed" text, "altitude" text, "crew" text, "duration" text, "comment" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Crew, when Date is July 26, 1977?`: ```sql
SELECT "years" FROM "r" WHERE "nationality"='united states' AND "position"='pg / sg';
## Task Generate a SQL query to answer the following question: `What is Years, when Nationality is United States, and when Position is PG / SG?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "r" ( "player" text, "nationality" text, "jersey_number_s" real, "position" text, "years" text, "from" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Years, when Nationality is United States, and when Position is PG / SG?`: ```sql
SELECT "nationality" FROM "r" WHERE "years"='1979';
## Task Generate a SQL query to answer the following question: `What is Nationality, when Years is 1979?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "r" ( "player" text, "nationality" text, "jersey_number_s" real, "position" text, "years" text, "from" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Nationality, when Years is 1979?`: ```sql
SELECT "from" FROM "r" WHERE "player"='jackie robinson category:articles with hcards';
## Task Generate a SQL query to answer the following question: `What is From, when Player is Jackie Robinson Category:Articles With Hcards?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "r" ( "player" text, "nationality" text, "jersey_number_s" real, "position" text, "years" text, "from" text ); ### SQL Given the database schema, here is the SQL query that answers `What is From, when Player is Jackie Robinson Category:Articles With Hcards?`: ```sql
SELECT "score" FROM "scoring_summary" WHERE "time"='18:27';
## Task Generate a SQL query to answer the following question: `WHAT SCORE HAS A TIME OF 18:27?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scoring_summary" ( "period" text, "team" text, "goal" text, "time" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT SCORE HAS A TIME OF 18:27?`: ```sql
SELECT "goal" FROM "scoring_summary" WHERE "time"='39:37';
## Task Generate a SQL query to answer the following question: `WHAT GOAL HAS A TIME OF 39:37?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scoring_summary" ( "period" text, "team" text, "goal" text, "time" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT GOAL HAS A TIME OF 39:37?`: ```sql
SELECT "electorate" FROM "see_also" WHERE "party"='country' AND "state"='wa' AND "member"='john hallett';
## Task Generate a SQL query to answer the following question: `What is Electorate, when Party is "Country", when State is "WA", and when Member is "John Hallett"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "term_of_office" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Electorate, when Party is "Country", when State is "WA", and when Member is "John Hallett"?`: ```sql
SELECT "term_of_office" FROM "see_also" WHERE "member"='dominic costa';
## Task Generate a SQL query to answer the following question: `What is Term of Office, when Member is "Dominic Costa"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "term_of_office" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Term of Office, when Member is "Dominic Costa"?`: ```sql
SELECT "state" FROM "see_also" WHERE "member"='gil duthie';
## Task Generate a SQL query to answer the following question: `What is State, when Member is "Gil Duthie"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "term_of_office" text ); ### SQL Given the database schema, here is the SQL query that answers `What is State, when Member is "Gil Duthie"?`: ```sql
SELECT "attendance" FROM "stockholm_derbies" WHERE "venue"='stadion' AND "score"='2-0';
## Task Generate a SQL query to answer the following question: `What was the number of attendance at Stadion with a score of 2-0` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stockholm_derbies" ( "date" text, "venue" text, "opponents" text, "score" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the number of attendance at Stadion with a score of 2-0`: ```sql