output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "category" FROM "awards_and_nominations" WHERE "award"='showest award';
## Task Generate a SQL query to answer the following question: `What category has showest award for the category awards?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "nominated_work" text, "category" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What category has showest award for the category awards?`: ```sql
SELECT "category" FROM "awards_and_nominations" WHERE "year">2004;
## Task Generate a SQL query to answer the following question: `What category has a year after 2004?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "nominated_work" text, "category" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What category has a year after 2004?`: ```sql
SELECT "opponent" FROM "singles_5_2_3" WHERE "score"='6-3, 6-2';
## Task Generate a SQL query to answer the following question: `Which Opponent had a Score of 6-3, 6-2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_5_2_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Opponent had a Score of 6-3, 6-2?`: ```sql
SELECT "score" FROM "singles_5_2_3" WHERE "opponent"='chris evert-lloyd';
## Task Generate a SQL query to answer the following question: `Which Score had an Opponent of chris evert-lloyd?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_5_2_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Score had an Opponent of chris evert-lloyd?`: ```sql
SELECT "surface" FROM "singles_5_2_3" WHERE "opponent"='chris evert-lloyd';
## Task Generate a SQL query to answer the following question: `Which Surface had an Opponent of chris evert-lloyd?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_5_2_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Surface had an Opponent of chris evert-lloyd?`: ```sql
SELECT "surface" FROM "singles_5_2_3" WHERE "date"='june 13, 1983';
## Task Generate a SQL query to answer the following question: `Which Surface had a Date of june 13, 1983?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_5_2_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Surface had a Date of june 13, 1983?`: ```sql
SELECT MAX("crowd") FROM "round_21" WHERE "home_team"='geelong';
## Task Generate a SQL query to answer the following question: `What was the highest attendance for a game where Geelong was the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_21" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the highest attendance for a game where Geelong was the home team?`: ```sql
SELECT "away_team_score" FROM "round_21" WHERE "home_team"='brisbane lions';
## Task Generate a SQL query to answer the following question: `What was the away team score when the home team was the Brisbane Lions?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_21" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the away team score when the home team was the Brisbane Lions?`: ```sql
SELECT "date" FROM "round_21" WHERE "home_team_score"='23.13 (151)';
## Task Generate a SQL query to answer the following question: `When did the home team score 23.13 (151)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_21" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `When did the home team score 23.13 (151)?`: ```sql
SELECT MAX("crowd") FROM "round_21" WHERE "ground"='telstra dome' AND "home_team"='western bulldogs';
## Task Generate a SQL query to answer the following question: `What was the largest attendance at the Telstra Dome, when the home team was the Western Bulldogs?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_21" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the largest attendance at the Telstra Dome, when the home team was the Western Bulldogs?`: ```sql
SELECT SUM("total_cargo_metric_tonnes") FROM "2010_final_statistics" WHERE "code_iata_icao"='pvg/zspd' AND "rank"<3;
## Task Generate a SQL query to answer the following question: `What is the full amount of Total Cargo (in Metric Tonnes) where the Code (IATA/ICAO) is pvg/zspd, and the rank is less than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010_final_statistics" ( "rank" real, "airport" text, "code_iata_icao" text, "total_cargo_metric_tonnes" real, "pct_change" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the full amount of Total Cargo (in Metric Tonnes) where the Code (IATA/ICAO) is pvg/zspd, and the rank is less than 3?`: ```sql
SELECT "date" FROM "schedule" WHERE "site"='memorial stadium β€’ minneapolis, mn' AND "attendance"='20,000' AND "result"='w52-0';
## Task Generate a SQL query to answer the following question: `What is the Date at memorial stadium β€’ minneapolis, mn with an Attendance of 20,000, and a Result of w52-0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "site" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Date at memorial stadium β€’ minneapolis, mn with an Attendance of 20,000, and a Result of w52-0?`: ```sql
SELECT "opponentnum" FROM "schedule" WHERE "site"='memorial stadium β€’ minneapolis, mn' AND "date"='10/20/1928';
## Task Generate a SQL query to answer the following question: `What is the Opponent name at memorial stadium β€’ minneapolis, mn on 10/20/1928?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "site" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Opponent name at memorial stadium β€’ minneapolis, mn on 10/20/1928?`: ```sql
SELECT "attendance" FROM "schedule" WHERE "opponentnum"='purdue';
## Task Generate a SQL query to answer the following question: `What is the Attendance number when the Opponent was purdue?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "site" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Attendance number when the Opponent was purdue?`: ```sql
SELECT "site" FROM "schedule" WHERE "result"='w52-0';
## Task Generate a SQL query to answer the following question: `What is the Site when the Result was w52-0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "site" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Site when the Result was w52-0?`: ```sql
SELECT "attendance" FROM "schedule" WHERE "date"='11/10/1928';
## Task Generate a SQL query to answer the following question: `What is the Attendance on 11/10/1928?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "site" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Attendance on 11/10/1928?`: ```sql
SELECT "winner" FROM "results" WHERE "venue"='campbelltown sports stadium';
## Task Generate a SQL query to answer the following question: `Who was the Winner at Campbelltown Sports Stadium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "winner" text, "score" text, "date" text, "venue" text, "crowd" real ); ### SQL Given the database schema, here is the SQL query that answers `Who was the Winner at Campbelltown Sports Stadium?`: ```sql
SELECT "venue" FROM "results" WHERE "winner"='sydney roosters' AND "crowd">'7,426';
## Task Generate a SQL query to answer the following question: `When Sydney Roosters won with a Crown of more than 7,426, what was the Venue?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "winner" text, "score" text, "date" text, "venue" text, "crowd" real ); ### SQL Given the database schema, here is the SQL query that answers `When Sydney Roosters won with a Crown of more than 7,426, what was the Venue?`: ```sql
SELECT "second_leg" FROM "round_and_draw_dates" WHERE "phase"='group stage' AND "round"='matchday 5';
## Task Generate a SQL query to answer the following question: `What was the second leg score from the group stage on matchday 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_and_draw_dates" ( "phase" text, "round" text, "draw_date" text, "first_leg" text, "second_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the second leg score from the group stage on matchday 5?`: ```sql
SELECT "draw_date" FROM "round_and_draw_dates" WHERE "phase"='qualifying' AND "round"='first qualifying round';
## Task Generate a SQL query to answer the following question: `What was the draw date from the qualifying phase and a round of first qualifying round?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_and_draw_dates" ( "phase" text, "round" text, "draw_date" text, "first_leg" text, "second_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the draw date from the qualifying phase and a round of first qualifying round?`: ```sql
SELECT "year_erected" FROM "see_also" WHERE "artist"='enrique alciati';
## Task Generate a SQL query to answer the following question: `what year did enrique alciati make a statue` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "statue" text, "liberator" text, "country" text, "year_erected" text, "artist" text ); ### SQL Given the database schema, here is the SQL query that answers `what year did enrique alciati make a statue`: ```sql
SELECT "artist" FROM "see_also" WHERE "country"='uruguay';
## Task Generate a SQL query to answer the following question: `what artist cam from uruguay` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "statue" text, "liberator" text, "country" text, "year_erected" text, "artist" text ); ### SQL Given the database schema, here is the SQL query that answers `what artist cam from uruguay`: ```sql
SELECT MAX("1995_2000") FROM "urban_population_growth_pct" WHERE "1990_1995">0.37 AND "2000_2005"=1.37;
## Task Generate a SQL query to answer the following question: `When 1990-1995 > 0.37, 2000-2005 of 1.37, what's the highest for 1995-2000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "urban_population_growth_pct" ( "region_country" text, "1985_1990" real, "1990_1995" real, "1995_2000" real, "2000_2005" real ); ### SQL Given the database schema, here is the SQL query that answers `When 1990-1995 > 0.37, 2000-2005 of 1.37, what's the highest for 1995-2000?`: ```sql
SELECT SUM("1995_2000") FROM "urban_population_growth_pct" WHERE "2000_2005"<2.52 AND "1990_1995"<0.37;
## Task Generate a SQL query to answer the following question: `When 2000-2005 is smaller than 2.52, and 1990-1995 is less than 0.37, what's the total of 1995-2000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "urban_population_growth_pct" ( "region_country" text, "1985_1990" real, "1990_1995" real, "1995_2000" real, "2000_2005" real ); ### SQL Given the database schema, here is the SQL query that answers `When 2000-2005 is smaller than 2.52, and 1990-1995 is less than 0.37, what's the total of 1995-2000?`: ```sql
SELECT MAX("1985_1990") FROM "urban_population_growth_pct" WHERE "region_country"='china' AND "2000_2005">3.08;
## Task Generate a SQL query to answer the following question: `What's China's highest 1985-1990 assuming a 2000-2005 larger than 3.08?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "urban_population_growth_pct" ( "region_country" text, "1985_1990" real, "1990_1995" real, "1995_2000" real, "2000_2005" real ); ### SQL Given the database schema, here is the SQL query that answers `What's China's highest 1985-1990 assuming a 2000-2005 larger than 3.08?`: ```sql
SELECT "women_s_singles" FROM "past_winners" WHERE "year"<1965 AND "mixed_doubles"='kaj lindfors ann-louise von essen';
## Task Generate a SQL query to answer the following question: `What is the women's singles before 1965 with kaj lindfors ann-louise von essen being mixed doubles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "past_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the women's singles before 1965 with kaj lindfors ann-louise von essen being mixed doubles?`: ```sql
SELECT AVG("year") FROM "past_winners" WHERE "mixed_doubles"='mika heinonen susanna dahlberg';
## Task Generate a SQL query to answer the following question: `When did mika heinonen susanna dahlberg win mixed doubles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "past_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `When did mika heinonen susanna dahlberg win mixed doubles?`: ```sql
SELECT COUNT("year") FROM "past_winners" WHERE "women_s_doubles"='pia pajunen nina sundberg';
## Task Generate a SQL query to answer the following question: `How many years did pia pajunen nina sundberg win women's doubles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "past_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `How many years did pia pajunen nina sundberg win women's doubles?`: ```sql
SELECT "women_s_singles" FROM "past_winners" WHERE "year"=1961;
## Task Generate a SQL query to answer the following question: `Who won women's singles in 1961?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "past_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won women's singles in 1961?`: ```sql
SELECT "outcome" FROM "marc_zwiebler" WHERE "score"='0–3 (11–21, 14–21)';
## Task Generate a SQL query to answer the following question: `Score of 0–3 (11–21, 14–21) had what outcome?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "marc_zwiebler" ( "outcome" text, "year" text, "venue" text, "last_opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Score of 0–3 (11–21, 14–21) had what outcome?`: ```sql
SELECT "score" FROM "marc_zwiebler" WHERE "venue"='thessaloniki (without participation)';
## Task Generate a SQL query to answer the following question: `Venue of thessaloniki (without participation) had what score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "marc_zwiebler" ( "outcome" text, "year" text, "venue" text, "last_opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Venue of thessaloniki (without participation) had what score?`: ```sql
SELECT "venue" FROM "marc_zwiebler" WHERE "outcome"='13' AND "year"='2007';
## Task Generate a SQL query to answer the following question: `Outcome of 13, and a Year of 2007 happened in what venue?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "marc_zwiebler" ( "outcome" text, "year" text, "venue" text, "last_opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Outcome of 13, and a Year of 2007 happened in what venue?`: ```sql
SELECT "eruptions" FROM "table_i_comparison_of_selected_volcanic_" WHERE "location"='pacific ring of fire' AND "volcanic_explosivity_index"='6' AND "country"='peru';
## Task Generate a SQL query to answer the following question: `Which Eruptions have a Location of pacific ring of fire, and a Volcanic Explosivity Index of 6, and a Country of peru?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_i_comparison_of_selected_volcanic_" ( "eruptions" text, "country" text, "location" text, "year" real, "volcanic_explosivity_index" text, "fatalities" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Eruptions have a Location of pacific ring of fire, and a Volcanic Explosivity Index of 6, and a Country of peru?`: ```sql
SELECT "fatalities" FROM "table_i_comparison_of_selected_volcanic_" WHERE "country"='italy';
## Task Generate a SQL query to answer the following question: `How many fatalities does Italy have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_i_comparison_of_selected_volcanic_" ( "eruptions" text, "country" text, "location" text, "year" real, "volcanic_explosivity_index" text, "fatalities" text ); ### SQL Given the database schema, here is the SQL query that answers `How many fatalities does Italy have?`: ```sql
SELECT SUM("year") FROM "table_i_comparison_of_selected_volcanic_" WHERE "location"='pacific ring of fire' AND "eruptions"='pinatubo';
## Task Generate a SQL query to answer the following question: `How many years have a Location of pacific ring of fire, and Eruptions of pinatubo?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_i_comparison_of_selected_volcanic_" ( "eruptions" text, "country" text, "location" text, "year" real, "volcanic_explosivity_index" text, "fatalities" text ); ### SQL Given the database schema, here is the SQL query that answers `How many years have a Location of pacific ring of fire, and Eruptions of pinatubo?`: ```sql
SELECT "standings" FROM "3_liga" WHERE "champions"='eintracht braunschweig';
## Task Generate a SQL query to answer the following question: `What is the Standings of Eintracht Braunschweig?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "3_liga" ( "season" text, "champions" text, "runners_up" text, "promotion_playoff" text, "standings" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Standings of Eintracht Braunschweig?`: ```sql
SELECT AVG("points") FROM "grand_prix_career_statistics" WHERE "year">2001;
## Task Generate a SQL query to answer the following question: `Year larger than 2001 has what average points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_prix_career_statistics" ( "year" real, "class" text, "team" text, "machine" text, "points" real, "rank" text, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `Year larger than 2001 has what average points?`: ```sql
SELECT MAX("year") FROM "grand_prix_career_statistics" WHERE "team"='honda' AND "points"=238;
## Task Generate a SQL query to answer the following question: `Team of Honda and a point total of 238 is what highest year?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_prix_career_statistics" ( "year" real, "class" text, "team" text, "machine" text, "points" real, "rank" text, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `Team of Honda and a point total of 238 is what highest year?`: ```sql
SELECT "team" FROM "grand_prix_career_statistics" WHERE "wins"=0;
## Task Generate a SQL query to answer the following question: `Wins of 0 involves what team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_prix_career_statistics" ( "year" real, "class" text, "team" text, "machine" text, "points" real, "rank" text, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `Wins of 0 involves what team?`: ```sql
SELECT "player" FROM "round_1" WHERE "pick"=5;
## Task Generate a SQL query to answer the following question: `what player has a pick of 5` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `what player has a pick of 5`: ```sql
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1858 AND "result"='retired republican gain' AND "incumbent"='william millward';
## Task Generate a SQL query to answer the following question: `Which District has a First elected of 1858, and a Result of retired republican gain, and an Incumbent of william millward?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Which District has a First elected of 1858, and a Result of retired republican gain, and an Incumbent of william millward?`: ```sql
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='pennsylvania 13';
## Task Generate a SQL query to answer the following question: `Which Result has a District of pennsylvania 13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Result has a District of pennsylvania 13?`: ```sql
SELECT MIN("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='william stewart';
## Task Generate a SQL query to answer the following question: `Which First elected is the lowest one that has an Incumbent of william stewart?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Which First elected is the lowest one that has an Incumbent of william stewart?`: ```sql
SELECT "player" FROM "draft_picks" WHERE "college_junior_club_team_league"='regina pats (whl)';
## Task Generate a SQL query to answer the following question: `Who was the Player when College/Junior/Club Team (League) was regina pats (whl)?` ### 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 `Who was the Player when College/Junior/Club Team (League) was regina pats (whl)?`: ```sql
SELECT "date" FROM "schedule" WHERE "attendance">'62,491';
## Task Generate a SQL query to answer the following question: `What is the date of the game with an attendance larger than 62,491?` ### 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, "record" text, "game_site" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the date of the game with an attendance larger than 62,491?`: ```sql
SELECT "attendance" FROM "schedule" WHERE "week"=4;
## Task Generate a SQL query to answer the following question: `What is the attendance of the game on week 4?` ### 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, "record" text, "game_site" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the attendance of the game on week 4?`: ```sql
SELECT AVG("extra_points") FROM "rose_bowl_michigan_49_stanford_0" WHERE "touchdowns"<2 AND "player"='herrnstein' AND "field_goals"<0;
## Task Generate a SQL query to answer the following question: `How many extra points are there that Herrnstein had with less than 2 touchdowns and less than 0 field goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rose_bowl_michigan_49_stanford_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many extra points are there that Herrnstein had with less than 2 touchdowns and less than 0 field goals?`: ```sql
SELECT SUM("touchdowns") FROM "rose_bowl_michigan_49_stanford_0" WHERE "extra_points"=0 AND "field_goals"<0;
## Task Generate a SQL query to answer the following question: `How many touchdowns are there that has field goals less than 0 and 0 extra points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rose_bowl_michigan_49_stanford_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many touchdowns are there that has field goals less than 0 and 0 extra points?`: ```sql
SELECT SUM("field_goals") FROM "rose_bowl_michigan_49_stanford_0" WHERE "touchdowns"=8 AND "points">49;
## Task Generate a SQL query to answer the following question: `How many field goals are there that have 8 touchdowns and more than 49 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rose_bowl_michigan_49_stanford_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many field goals are there that have 8 touchdowns and more than 49 points?`: ```sql
SELECT MIN("touchdowns") FROM "rose_bowl_michigan_49_stanford_0" WHERE "points">5 AND "field_goals"=0 AND "player"='snow' AND "extra_points">0;
## Task Generate a SQL query to answer the following question: `What's the number of touchdowns that Snow made that had 0 field goals, more than 5 points, and more than 0 extra points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rose_bowl_michigan_49_stanford_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the number of touchdowns that Snow made that had 0 field goals, more than 5 points, and more than 0 extra points?`: ```sql
SELECT "icao" FROM "destinations" WHERE "iata"='mle';
## Task Generate a SQL query to answer the following question: `For an IATA of MLE, what is the ICAO?` ### 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 `For an IATA of MLE, what is the ICAO?`: ```sql
SELECT "iata" FROM "destinations" WHERE "icao"='vcct';
## Task Generate a SQL query to answer the following question: `For an ICAO of VCCT, what is the IATA?` ### 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 `For an ICAO of VCCT, what is the IATA?`: ```sql
SELECT "city" FROM "destinations" WHERE "icao"='vccj';
## Task Generate a SQL query to answer the following question: `Which city has an ICAO of VCCJ?` ### 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 `Which city has an ICAO of VCCJ?`: ```sql
SELECT "icao" FROM "destinations" WHERE "city"='vavuniya';
## Task Generate a SQL query to answer the following question: `Which ICAO is found in Vavuniya?` ### 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 `Which ICAO is found in Vavuniya?`: ```sql
SELECT "country" FROM "destinations" WHERE "airport"='weerawila airport';
## Task Generate a SQL query to answer the following question: `Which country has Weerawila Airport?` ### 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 `Which country has Weerawila Airport?`: ```sql
SELECT "opponent" FROM "game_log" WHERE "date"='april 1';
## Task Generate a SQL query to answer the following question: `Which opponent has april 1 as the date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which opponent has april 1 as the date?`: ```sql
SELECT "opponent" FROM "game_log" WHERE "loss"='tomko (1-1)';
## Task Generate a SQL query to answer the following question: `What opponent has tomko (1-1) as a loss?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What opponent has tomko (1-1) as a loss?`: ```sql
SELECT "opponent" FROM "game_log" WHERE "record"='8-10';
## Task Generate a SQL query to answer the following question: `What opponent has 8-10 as the record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What opponent has 8-10 as the record?`: ```sql
SELECT "class_aaa" FROM "individual_chemistry" WHERE "school_year"='2006-07';
## Task Generate a SQL query to answer the following question: `Whcih was the Class AAA in school year 2006-07?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "individual_chemistry" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text ); ### SQL Given the database schema, here is the SQL query that answers `Whcih was the Class AAA in school year 2006-07?`: ```sql
SELECT "class_aa" FROM "individual_chemistry" WHERE "school_year"='1994-95';
## Task Generate a SQL query to answer the following question: `What team was class AA in years 1994-95?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "individual_chemistry" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text ); ### SQL Given the database schema, here is the SQL query that answers `What team was class AA in years 1994-95?`: ```sql
SELECT "class_aa" FROM "individual_chemistry" WHERE "school_year"='1994-95';
## Task Generate a SQL query to answer the following question: `Who was Class AA in School Year 1994-95?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "individual_chemistry" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was Class AA in School Year 1994-95?`: ```sql
SELECT "date" FROM "march" WHERE "visitor"='bulls';
## Task Generate a SQL query to answer the following question: `What's the date of the game that has the Bulls as a visiting team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the date of the game that has the Bulls as a visiting team?`: ```sql
SELECT AVG("game") FROM "regular_season" WHERE "february">13 AND "opponent"='toronto maple leafs' AND "points">47;
## Task Generate a SQL query to answer the following question: `What is the average game number that took place after February 13 against the Toronto Maple Leafs and more than 47 points were scored?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "february" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average game number that took place after February 13 against the Toronto Maple Leafs and more than 47 points were scored?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "week"<11 AND "game_site"='sullivan stadium';
## Task Generate a SQL query to answer the following question: `Who was the opponent at the game at Sullivan Stadium before week 11?` ### 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, "record" text, "game_site" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent at the game at Sullivan Stadium before week 11?`: ```sql
SELECT "years" FROM "head_coaches_and_all_time_results" WHERE "pct"=0.667 AND "lost"=380;
## Task Generate a SQL query to answer the following question: `What is the years coached by the person with a win percentage of 0.667 and 380 losses?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "head_coaches_and_all_time_results" ( "name" text, "years" text, "seasons" real, "lost" real, "pct" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the years coached by the person with a win percentage of 0.667 and 380 losses?`: ```sql
SELECT AVG("pct") FROM "head_coaches_and_all_time_results" WHERE "years"='1905' AND "lost">7;
## Task Generate a SQL query to answer the following question: `What is the average percent for the coach from 1905 and more than 7 losses?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "head_coaches_and_all_time_results" ( "name" text, "years" text, "seasons" real, "lost" real, "pct" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average percent for the coach from 1905 and more than 7 losses?`: ```sql
SELECT COUNT("pct") FROM "head_coaches_and_all_time_results" WHERE "lost"=20 AND "seasons">1;
## Task Generate a SQL query to answer the following question: `How many percentages have 20 losses and more than 1 season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "head_coaches_and_all_time_results" ( "name" text, "years" text, "seasons" real, "lost" real, "pct" real ); ### SQL Given the database schema, here is the SQL query that answers `How many percentages have 20 losses and more than 1 season?`: ```sql
SELECT "home" FROM "regular_season" WHERE "date"='february 10';
## Task Generate a SQL query to answer the following question: `What home has February 10 as the date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What home has February 10 as the date?`: ```sql
SELECT "date" FROM "regular_season" WHERE "visitor"='ny islanders';
## Task Generate a SQL query to answer the following question: `What date has ny islanders as the visitor?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What date has ny islanders as the visitor?`: ```sql
SELECT "score" FROM "regular_season" WHERE "date"='february 10';
## Task Generate a SQL query to answer the following question: `What score has February 10 as the date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What score has February 10 as the date?`: ```sql
SELECT "course" FROM "stage_results" WHERE "date"='24 july';
## Task Generate a SQL query to answer the following question: `Name the course for 24 july` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stage_results" ( "date" text, "course" text, "distance" text, "type" text, "winner" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the course for 24 july`: ```sql
SELECT "course" FROM "stage_results" WHERE "type"='team time trial';
## Task Generate a SQL query to answer the following question: `Name the course for team time trial` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stage_results" ( "date" text, "course" text, "distance" text, "type" text, "winner" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the course for team time trial`: ```sql
SELECT "winner" FROM "stage_results" WHERE "course"='rest day' AND "date"='13 july';
## Task Generate a SQL query to answer the following question: `Name the winner for rest day for 13 july` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stage_results" ( "date" text, "course" text, "distance" text, "type" text, "winner" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the winner for rest day for 13 july`: ```sql
SELECT SUM("entered") FROM "elimination_chamber_entrances_and_elimin" WHERE "wrestler"='shawn michaels';
## Task Generate a SQL query to answer the following question: `Shawn Michaels entered the elimination chamber in what position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "elimination_chamber_entrances_and_elimin" ( "elimination_no" text, "wrestler" text, "entered" real, "eliminated_by" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `Shawn Michaels entered the elimination chamber in what position?`: ```sql
SELECT "eliminated_by" FROM "elimination_chamber_entrances_and_elimin" WHERE "wrestler"='kurt angle';
## Task Generate a SQL query to answer the following question: `Who Eliminated Kurt Angle?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "elimination_chamber_entrances_and_elimin" ( "elimination_no" text, "wrestler" text, "entered" real, "eliminated_by" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `Who Eliminated Kurt Angle?`: ```sql
SELECT "eliminated_by" FROM "elimination_chamber_entrances_and_elimin" WHERE "wrestler"='kane';
## Task Generate a SQL query to answer the following question: `Who Eliminated Kane?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "elimination_chamber_entrances_and_elimin" ( "elimination_no" text, "wrestler" text, "entered" real, "eliminated_by" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `Who Eliminated Kane?`: ```sql
SELECT SUM("gold") FROM "medal_table" WHERE "nation"='algeria' AND "total"<3;
## Task Generate a SQL query to answer the following question: `What is the sum of all gold medals for Algeria when total medals is less 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 sum of all gold medals for Algeria when total medals is less than 3?`: ```sql
SELECT AVG("population") FROM "major_urban_areas" WHERE "country"='spain' AND "urban_area"='valencia';
## Task Generate a SQL query to answer the following question: `what is the population of Valencia, Spain?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "major_urban_areas" ( "urban_area" text, "country" text, "region" text, "population" real, "globalization_index" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the population of Valencia, Spain?`: ```sql
SELECT MAX("year") FROM "tallest_buildings" WHERE "rank"='2';
## Task Generate a SQL query to answer the following question: `which year holds rank 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tallest_buildings" ( "rank" text, "name" text, "height_feet_m" text, "floors" real, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `which year holds rank 2?`: ```sql
SELECT AVG("floors") FROM "tallest_buildings" WHERE "name"='meridian condominiums';
## Task Generate a SQL query to answer the following question: `with name meridian condominiums what is number of floors?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tallest_buildings" ( "rank" text, "name" text, "height_feet_m" text, "floors" real, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `with name meridian condominiums what is number of floors?`: ```sql
SELECT COUNT("year") FROM "tallest_buildings" WHERE "rank"='31';
## Task Generate a SQL query to answer the following question: `with rank of 31 what is the year?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tallest_buildings" ( "rank" text, "name" text, "height_feet_m" text, "floors" real, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `with rank of 31 what is the year?`: ```sql
SELECT "date" FROM "january" WHERE "visitor"='toronto';
## Task Generate a SQL query to answer the following question: `What was the date of the match against the visiting team, Toronto?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date of the match against the visiting team, Toronto?`: ```sql
SELECT "home" FROM "january" WHERE "date"='january 6';
## Task Generate a SQL query to answer the following question: `Who played the home team during the game on January 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who played the home team during the game on January 6?`: ```sql
SELECT "record" FROM "january" WHERE "visitor"='boston';
## Task Generate a SQL query to answer the following question: `What was the cougars record during the game where Boston were the visitors?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the cougars record during the game where Boston were the visitors?`: ```sql
SELECT MIN("drawn") FROM "group_2" WHERE "lost"<0;
## Task Generate a SQL query to answer the following question: `What's the lowest Drawn that has a Lost that's less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_2" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the lowest Drawn that has a Lost that's less than 0?`: ```sql
SELECT SUM("lost") FROM "group_2" WHERE "games"<4;
## Task Generate a SQL query to answer the following question: `What's the total Lost with Games that's less than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_2" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the total Lost with Games that's less than 4?`: ```sql
SELECT SUM("games") FROM "group_2" WHERE "lost">2 AND "points"<0;
## Task Generate a SQL query to answer the following question: `What's the total of Games with a Lost that's larger than 2, and has Points that's smaller than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_2" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the total of Games with a Lost that's larger than 2, and has Points that's smaller than 0?`: ```sql
SELECT AVG("lost") FROM "group_2" WHERE "drawn"<0;
## Task Generate a SQL query to answer the following question: `What's the Lost average that has a Drawn less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_2" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the Lost average that has a Drawn less than 0?`: ```sql
SELECT "record" FROM "regular_season" WHERE "opponent"='@ ottawa senators';
## Task Generate a SQL query to answer the following question: `What record has @ ottawa senators as the opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What record has @ ottawa senators as the opponent?`: ```sql
SELECT "game" FROM "regular_season" WHERE "points"=28 AND "opponent"='tampa bay lightning';
## Task Generate a SQL query to answer the following question: `What game has 28 points, and tampa bay lightning as the opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What game has 28 points, and tampa bay lightning as the opponent?`: ```sql
SELECT AVG("points") FROM "regular_season" WHERE "december"<6 AND "game">26;
## Task Generate a SQL query to answer the following question: `What is the average points that have a December less than 6, with a game greater than 26?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average points that have a December less than 6, with a game greater than 26?`: ```sql
SELECT "opponent" FROM "game_log" WHERE "loss"='sele (0-1)';
## Task Generate a SQL query to answer the following question: `Who was the opponent at the game with a loss of Sele (0-1)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent at the game with a loss of Sele (0-1)?`: ```sql
SELECT AVG("points") FROM "regular_season" WHERE "record"='42–16–8' AND "march">5;
## Task Generate a SQL query to answer the following question: `Record of 42–16–8, and a March larger than 5 has what average points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Record of 42–16–8, and a March larger than 5 has what average points?`: ```sql
SELECT "game" FROM "regular_season" WHERE "points"<96 AND "record"='43–16–8';
## Task Generate a SQL query to answer the following question: `Points smaller than 96, and a Record of 43–16–8 belongs to what game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Points smaller than 96, and a Record of 43–16–8 belongs to what game?`: ```sql
SELECT "opponent" FROM "regular_season" WHERE "game"<70 AND "record"='43–16–8';
## Task Generate a SQL query to answer the following question: `Game smaller than 70, and a Record of 43–16–8 is what opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Game smaller than 70, and a Record of 43–16–8 is what opponent?`: ```sql
SELECT "score" FROM "regular_season" WHERE "record"='44–18–8';
## Task Generate a SQL query to answer the following question: `Record of 44–18–8 involves which score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Record of 44–18–8 involves which score?`: ```sql
SELECT "college" FROM "nfl_draft" WHERE "player"='kellen davis';
## Task Generate a SQL query to answer the following question: `Which college is Kellen Davis from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" text, "pick" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which college is Kellen Davis from?`: ```sql
SELECT "round" FROM "nfl_draft" WHERE "position"='according to official website';
## Task Generate a SQL query to answer the following question: `Which round's position is according to official website?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" text, "pick" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which round's position is according to official website?`: ```sql
SELECT "position" FROM "nfl_draft" WHERE "round"='3' AND "pick"='70';
## Task Generate a SQL query to answer the following question: `Which position's round was 3 when pick was 70?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" text, "pick" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which position's round was 3 when pick was 70?`: ```sql
SELECT "pick" FROM "nfl_draft" WHERE "round"='5' AND "player"='kellen davis';
## Task Generate a SQL query to answer the following question: `Which pick's round was 5 when Kellen Davis was a player?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" text, "pick" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which pick's round was 5 when Kellen Davis was a player?`: ```sql