text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canada" ( "network" text, "origin_of_programming" text, "language" text, "genre" text, "service" text ); Question: Which service does the network of atn urdu offer? <|assistant|> SELECT "service" FROM "canada" WHERE "network"='atn urdu';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canada" ( "network" text, "origin_of_programming" text, "language" text, "genre" text, "service" text ); Question: Whose origin of Programming offers a general genre, a network of ntv bangla and a service of cogeco cable? <|assistant|> SELECT "origin_of_programming" FROM "canada" WHERE "genre"='general' AND "network"='ntv bangla' AND "service"='cogeco cable';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canada" ( "network" text, "origin_of_programming" text, "language" text, "genre" text, "service" text ); Question: Which service has a hindi language, general genre and zee tv network? <|assistant|> SELECT "service" FROM "canada" WHERE "language"='hindi' AND "genre"='general' AND "network"='zee tv';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canada" ( "network" text, "origin_of_programming" text, "language" text, "genre" text, "service" text ); Question: Which network has an origina of Programming in India, a general genre, a service of bell fibe tv, and tamil as its language? <|assistant|> SELECT "network" FROM "canada" WHERE "origin_of_programming"='india' AND "genre"='general' AND "service"='bell fibe tv' AND "language"='tamil';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canada" ( "network" text, "origin_of_programming" text, "language" text, "genre" text, "service" text ); Question: Which language has Programming from India, general genre, a network of ptc punjabi and bell fibe tv service? <|assistant|> SELECT "language" FROM "canada" WHERE "origin_of_programming"='india' AND "genre"='general' AND "network"='ptc punjabi' AND "service"='bell fibe tv';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the average number of bronzes when the rank is below 11 for trinidad and tobago with less than 1 total medal? <|assistant|> SELECT AVG("bronze") FROM "medal_table" WHERE "rank"<11 AND "nation"='trinidad and tobago' AND "total"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the sum of gold medal totals for nations with 1 silver, less than 2 bronze, and ranked below 10? <|assistant|> SELECT SUM("gold") FROM "medal_table" WHERE "silver"=1 AND "bronze"<2 AND "total"=1 AND "rank"<10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "line_officers" ( "name" text, "date_of_birth" text, "actual_rank" text, "appointment_date" text, "allegiance" text ); Question: Who did Winfield Scott have an allegiance with? <|assistant|> SELECT "allegiance" FROM "line_officers" WHERE "name"='winfield scott';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "listing" ( "rank" real, "name" text, "population_2011_census" real, "percent_of_national_population" text, "pct_growth_2006_11" text, "land_area_km" real, "population_density_km_2" real, "house_of_commons_seats" real, "house_of_commons_seats_pct" text, "2013_population_july_est" real ); Question: What was the July 2013 population estimate of the location which had a population density larger than 14.1? <|assistant|> SELECT COUNT("2013_population_july_est") FROM "listing" WHERE "population_density_km_2">14.1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "listing" ( "rank" real, "name" text, "population_2011_census" real, "percent_of_national_population" text, "pct_growth_2006_11" text, "land_area_km" real, "population_density_km_2" real, "house_of_commons_seats" real, "house_of_commons_seats_pct" text, "2013_population_july_est" real ); Question: What was the lowest rank of an area with a 2011 Census population larger than 3,645,257, a House of Commons seat percentage of 11.7% and a July 2013 population estimate over 4,581,978? <|assistant|> SELECT MIN("rank") FROM "listing" WHERE "population_2011_census">'3,645,257' AND "house_of_commons_seats_pct"='11.7%' AND "2013_population_july_est">'4,581,978';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "listing" ( "rank" real, "name" text, "population_2011_census" real, "percent_of_national_population" text, "pct_growth_2006_11" text, "land_area_km" real, "population_density_km_2" real, "house_of_commons_seats" real, "house_of_commons_seats_pct" text, "2013_population_july_est" real ); Question: What was the highest rank of an area with a population density larger than 5.7 and a 2006–2011 percentage growth of 5.7%? <|assistant|> SELECT MAX("rank") FROM "listing" WHERE "population_density_km_2">5.7 AND "pct_growth_2006_11"='5.7%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "listing" ( "rank" real, "name" text, "population_2011_census" real, "percent_of_national_population" text, "pct_growth_2006_11" text, "land_area_km" real, "population_density_km_2" real, "house_of_commons_seats" real, "house_of_commons_seats_pct" text, "2013_population_july_est" real ); Question: What was the lowest 2011 Census population of an area with a land area larger than 908,607.67 km²? <|assistant|> SELECT MIN("population_2011_census") FROM "listing" WHERE "land_area_km">'908,607.67';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1971_isle_of_man_junior_tt_350cc_final_s" ( "place" real, "rider" text, "country" text, "machine" text, "speed" text, "time" text, "points" real ); Question: Which rider from the 1971 Isle of Man Junior TT 250cc final standings had a speed equal to 86.15mph? <|assistant|> SELECT "rider" FROM "1971_isle_of_man_junior_tt_350cc_final_s" WHERE "speed"='86.15mph';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1971_isle_of_man_junior_tt_350cc_final_s" ( "place" real, "rider" text, "country" text, "machine" text, "speed" text, "time" text, "points" real ); Question: Which rider had a points score equal to 10? <|assistant|> SELECT "rider" FROM "1971_isle_of_man_junior_tt_350cc_final_s" WHERE "points"=10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_tries" ( "player" text, "span" text, "start" text, "tries" text, "conv" text, "pens" text, "drop" text ); Question: Which Start has a 0 Conv, 0 Pens and 8 Tries? <|assistant|> SELECT "start" FROM "most_tries" WHERE "conv"='0' AND "pens"='0' AND "tries"='8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_tries" ( "player" text, "span" text, "start" text, "tries" text, "conv" text, "pens" text, "drop" text ); Question: Which Player has 0 Pens and 12 Starts? <|assistant|> SELECT "player" FROM "most_tries" WHERE "pens"='0' AND "start"='12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_tries" ( "player" text, "span" text, "start" text, "tries" text, "conv" text, "pens" text, "drop" text ); Question: Which Start has 8 Tries and 0 Convs? <|assistant|> SELECT "start" FROM "most_tries" WHERE "tries"='8' AND "conv"='0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was the away team for the game at Victoria Park? <|assistant|> SELECT "away_team" FROM "round_12" WHERE "venue"='victoria park';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "overall" real, "player" text, "position" text, "school_club_team" text ); Question: What was round 7's lowest overall? <|assistant|> SELECT MIN("overall") FROM "nfl_draft" WHERE "round"=7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "overall" real, "player" text, "position" text, "school_club_team" text ); Question: Who had the smallest overall under 22? <|assistant|> SELECT "player" FROM "nfl_draft" WHERE "overall"<22;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "overall" real, "player" text, "position" text, "school_club_team" text ); Question: What was Cal State-Los Angeles' position with an Overall above 22? <|assistant|> SELECT "position" FROM "nfl_draft" WHERE "overall">22 AND "school_club_team"='cal state-los angeles';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "overall" real, "player" text, "position" text, "school_club_team" text ); Question: Who played for Memphis State? <|assistant|> SELECT "player" FROM "nfl_draft" WHERE "school_club_team"='memphis state';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the largest crowd for the St Kilda as the away team? <|assistant|> SELECT MAX("crowd") FROM "round_17" WHERE "away_team"='st kilda';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the crowd size when Essendon was the home team? <|assistant|> SELECT "crowd" FROM "round_17" WHERE "home_team"='essendon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which venue had a crowd larger than 20,000? <|assistant|> SELECT "venue" FROM "round_17" WHERE "crowd">'20,000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which away team played at Lake Oval? <|assistant|> SELECT "away_team" FROM "round_17" WHERE "venue"='lake oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: On what date was the crowd more numerous than 10,800 when the home team score was 7.13 (55)? <|assistant|> SELECT "date" FROM "round_17" WHERE "crowd">'10,800' AND "home_team_score"='7.13 (55)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the total number of the crowd at Glenferrie Oval? <|assistant|> SELECT COUNT("crowd") FROM "round_17" WHERE "venue"='glenferrie oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: The Western Oval venue has what date? <|assistant|> SELECT "date" FROM "round_6" WHERE "venue"='western oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "kickoff" text, "attendance" text ); Question: What is the kickoff time for the Miami Dolphins? <|assistant|> SELECT "kickoff" FROM "regular_season" WHERE "opponent"='miami dolphins';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "kickoff" text, "attendance" text ); Question: What was the final of the New England Patriots game? <|assistant|> SELECT "result" FROM "regular_season" WHERE "opponent"='new england patriots';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "exhibition_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What is the largest attendance on august 10, 1963, and a week larger than 1? <|assistant|> SELECT MAX("attendance") FROM "exhibition_schedule" WHERE "date"='august 10, 1963' AND "week">1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What date was the game when the away team scored 9.5 (59)? <|assistant|> SELECT "date" FROM "round_8" WHERE "away_team_score"='9.5 (59)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Where was the game played when the home team scored 17.7 (109)? <|assistant|> SELECT "venue" FROM "round_8" WHERE "home_team_score"='17.7 (109)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the score of the away team when the home team was south melbourne? <|assistant|> SELECT "away_team_score" FROM "round_8" WHERE "home_team"='south melbourne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the smallest crowd at princes park? <|assistant|> SELECT MIN("crowd") FROM "round_8" WHERE "venue"='princes park';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the highest ranked nation with 15 silver medals and no more than 47 total? <|assistant|> SELECT MAX("rank") FROM "medal_table" WHERE "silver"=15 AND "total"<47;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average" ( "rank_by_average" real, "place" real, "couple" text, "total" real, "number_of_dances" real, "average" real ); Question: What was the highest rank by average of a couple who had an average of 25.3 and had more than 10 dances? <|assistant|> SELECT MAX("rank_by_average") FROM "average" WHERE "average"=25.3 AND "number_of_dances">10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "verb_derivations_using_the_root_qet_the_" ( "type" text, "suffix" text, "valency_change" text, "example" text, "meaning" text ); Question: What is the example with the associative type? <|assistant|> SELECT "example" FROM "verb_derivations_using_the_root_qet_the_" WHERE "type"='associative';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "verb_derivations_using_the_root_qet_the_" ( "type" text, "suffix" text, "valency_change" text, "example" text, "meaning" text ); Question: What is the Suffix of the intensive and valency change of 0? <|assistant|> SELECT "suffix" FROM "verb_derivations_using_the_root_qet_the_" WHERE "valency_change"='0' AND "type"='intensive';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "verb_derivations_using_the_root_qet_the_" ( "type" text, "suffix" text, "valency_change" text, "example" text, "meaning" text ); Question: WHat is the Valency change of associative type? <|assistant|> SELECT "valency_change" FROM "verb_derivations_using_the_root_qet_the_" WHERE "type"='associative';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who is the home team when hawthorn is the away side? <|assistant|> SELECT "home_team" FROM "round_6" WHERE "away_team"='hawthorn';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who is the away side that scores 9.8 (62)? <|assistant|> SELECT "away_team" FROM "round_6" WHERE "away_team_score"='9.8 (62)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the largest crowd that has the away side scoring 10.14 (74)? <|assistant|> SELECT MAX("crowd") FROM "round_6" WHERE "away_team_score"='10.14 (74)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the away team that played at Windy Hill? <|assistant|> SELECT "away_team" FROM "round_3" WHERE "venue"='windy hill';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the home team at the match when the away team scored 6.14 (50)? <|assistant|> SELECT "home_team" FROM "round_3" WHERE "away_team_score"='6.14 (50)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the away team at the match where the crowd was larger than 30,000? <|assistant|> SELECT "away_team" FROM "round_3" WHERE "crowd">'30,000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the venue when the away side scores 11.20 (86)? <|assistant|> SELECT "venue" FROM "round_9" WHERE "away_team_score"='11.20 (86)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the smallest crowd when richmond is away? <|assistant|> SELECT MIN("crowd") FROM "round_9" WHERE "away_team"='richmond';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is melbourne's home team score? <|assistant|> SELECT "home_team_score" FROM "round_9" WHERE "home_team"='melbourne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "television_broadcasters" ( "year" real, "network" text, "host" text, "pre_race_analyst" text, "lap_by_lap" text, "color_commentator_s" text, "pit_reporters" text ); Question: Who is the color commentator in 2008? <|assistant|> SELECT "color_commentator_s" FROM "television_broadcasters" WHERE "year"=2008;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "in_office" text ); Question: Which member of the National Party is from the Hinkler electorate? <|assistant|> SELECT "member" FROM "see_also" WHERE "party"='national' AND "electorate"='hinkler';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "in_office" text ); Question: Which member is from the state of SA and the grey electorate? <|assistant|> SELECT "member" FROM "see_also" WHERE "state"='sa' AND "electorate"='grey';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "in_office" text ); Question: In which state is the Petrie electorate? <|assistant|> SELECT "state" FROM "see_also" WHERE "electorate"='petrie';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2002_new_england_patriots_draft_selectio" ( "round" real, "overall" real, "player" text, "position" text, "college" text ); Question: What round was the draft pick of tight end with an Overall larger than 21? <|assistant|> SELECT COUNT("round") FROM "2002_new_england_patriots_draft_selectio" WHERE "position"='tight end' AND "overall">21;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2002_new_england_patriots_draft_selectio" ( "round" real, "overall" real, "player" text, "position" text, "college" text ); Question: Which player is a wide receiver picked in round 7? <|assistant|> SELECT "player" FROM "2002_new_england_patriots_draft_selectio" WHERE "position"='wide receiver' AND "round"=7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2002_new_england_patriots_draft_selectio" ( "round" real, "overall" real, "player" text, "position" text, "college" text ); Question: What is the name of the running back pick? <|assistant|> SELECT "player" FROM "2002_new_england_patriots_draft_selectio" WHERE "position"='running back';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: When did the VFL pay at Victoria Park? <|assistant|> SELECT "date" FROM "round_4" WHERE "venue"='victoria park';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: When did South Melbourne play as the away team? <|assistant|> SELECT "date" FROM "round_4" WHERE "away_team"='south melbourne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was home team Essendon's opponents score? <|assistant|> SELECT "away_team_score" FROM "round_4" WHERE "home_team"='essendon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What date did the home team have a score of 9.18 (72)? <|assistant|> SELECT "date" FROM "round_15" WHERE "home_team_score"='9.18 (72)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What did the away team score when the home team scored 9.18 (72)? <|assistant|> SELECT "away_team_score" FROM "round_15" WHERE "home_team_score"='9.18 (72)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_100_chinese_motion_pictures" ( "rank" real, "title" text, "year" real, "region" text, "director_s" text ); Question: When was The Love Eterne released? <|assistant|> SELECT "year" FROM "best_100_chinese_motion_pictures" WHERE "title"='the love eterne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text ); Question: How many heats had 5 lanes and a rank less than 110 for the nationality of Honduras? <|assistant|> SELECT COUNT("heat") FROM "heats" WHERE "lane"=5 AND "rank">110 AND "nationality"='honduras';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text ); Question: How many heats had 2 lanes, a rank above 75, and nationality of Madagascar? <|assistant|> SELECT COUNT("heat") FROM "heats" WHERE "lane"=2 AND "rank">75 AND "nationality"='madagascar';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text ); Question: What is the sum of every heat for the nationality of Macedonia with a rank less than 114? <|assistant|> SELECT SUM("heat") FROM "heats" WHERE "nationality"='macedonia' AND "rank"<114;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text ); Question: What was the least number of heats with more than 8 lanes for the Nationality of Germany? <|assistant|> SELECT MIN("heat") FROM "heats" WHERE "nationality"='germany' AND "lane">8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: When the VFL played Victoria Park what was the home team score? <|assistant|> SELECT "home_team_score" FROM "round_12" WHERE "venue"='victoria park';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: What driver has over 19 points and a grid of over 2? <|assistant|> SELECT "driver" FROM "race" WHERE "points">19 AND "grid">2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the score for the away team when geelong was the home team? <|assistant|> SELECT "away_team_score" FROM "round_14" WHERE "home_team"='geelong';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the score of the home team when they played footscray? <|assistant|> SELECT "home_team_score" FROM "round_14" WHERE "away_team"='footscray';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Where was the game played when the away team scored 9.14 (68)? <|assistant|> SELECT "venue" FROM "round_14" WHERE "away_team_score"='9.14 (68)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the score for the home team of essendon? <|assistant|> SELECT "home_team_score" FROM "round_14" WHERE "home_team"='essendon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the score for the Essendon home team? <|assistant|> SELECT "home_team_score" FROM "round_16" WHERE "home_team"='essendon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the smallest crowd for the Richmond home team? <|assistant|> SELECT MIN("crowd") FROM "round_16" WHERE "home_team"='richmond';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the largest crowd at the Brunswick Street Oval? <|assistant|> SELECT MAX("crowd") FROM "round_16" WHERE "venue"='brunswick street oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was the home team when VFL played at Windy Hill? <|assistant|> SELECT "home_team" FROM "round_15" WHERE "venue"='windy hill';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the attendance when the VFL played Glenferrie Oval? <|assistant|> SELECT SUM("crowd") FROM "round_15" WHERE "venue"='glenferrie oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the attendance when North Melbourne was the away team? <|assistant|> SELECT AVG("crowd") FROM "round_15" WHERE "away_team"='north melbourne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: When did Essendon play as the home team? <|assistant|> SELECT "date" FROM "round_15" WHERE "home_team"='essendon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_stages" ( "approximate_age" text, "virtues" text, "psycho_social_crisis" text, "significant_relationship" text, "existential_question_not_in_citation_given" text, "examples" text ); Question: Can you give me the age of the Virtues of Wisdom? <|assistant|> SELECT "approximate_age" FROM "the_stages" WHERE "virtues"='wisdom';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_stages" ( "approximate_age" text, "virtues" text, "psycho_social_crisis" text, "significant_relationship" text, "existential_question_not_in_citation_given" text, "examples" text ); Question: What Virtue looks at the intimacy vs. isolation crisis? <|assistant|> SELECT "virtues" FROM "the_stages" WHERE "psycho_social_crisis"='intimacy vs. isolation';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_stages" ( "approximate_age" text, "virtues" text, "psycho_social_crisis" text, "significant_relationship" text, "existential_question_not_in_citation_given" text, "examples" text ); Question: Can you give me the age of the Significant Relationship of Family? <|assistant|> SELECT "approximate_age" FROM "the_stages" WHERE "significant_relationship"='family';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_stages" ( "approximate_age" text, "virtues" text, "psycho_social_crisis" text, "significant_relationship" text, "existential_question_not_in_citation_given" text, "examples" text ); Question: The Significant Relationship of Parents belongs with what Virtue? <|assistant|> SELECT "virtues" FROM "the_stages" WHERE "significant_relationship"='parents';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who is the away side at windy hill? <|assistant|> SELECT "away_team" FROM "round_18" WHERE "venue"='windy hill';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who is the home side when the away side scores 11.15 (81)? <|assistant|> SELECT "home_team" FROM "round_18" WHERE "away_team_score"='11.15 (81)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "overall" real, "player" text, "position" text, "school_club_team" text ); Question: How many drafts featured fred hoaglin? <|assistant|> SELECT COUNT("overall") FROM "nfl_draft" WHERE "player"='fred hoaglin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "overall" real, "player" text, "position" text, "school_club_team" text ); Question: What round did the player from delta st. get picked? <|assistant|> SELECT "round" FROM "nfl_draft" WHERE "school_club_team"='delta st.';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "overall" real, "player" text, "position" text, "school_club_team" text ); Question: What is the highest overall number for someone from round 16? <|assistant|> SELECT MAX("overall") FROM "nfl_draft" WHERE "round"=16;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the average crowd size when Melbourne was the home team? <|assistant|> SELECT AVG("crowd") FROM "round_15" WHERE "home_team"='melbourne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was North Melbourne's score when they were the home team? <|assistant|> SELECT "away_team_score" FROM "round_15" WHERE "away_team"='north melbourne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "history" ( "year" text, "1st_position" text, "2nd_position" text, "9th_position" text, "10th_position" text ); Question: What is in the ninth position where the tenth position is rabat ajax? <|assistant|> SELECT "9th_position" FROM "history" WHERE "10th_position"='rabat ajax';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "history" ( "year" text, "1st_position" text, "2nd_position" text, "9th_position" text, "10th_position" text ); Question: In what year is the tenth position xghajra? <|assistant|> SELECT "year" FROM "history" WHERE "10th_position"='xghajra';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "history" ( "year" text, "1st_position" text, "2nd_position" text, "9th_position" text, "10th_position" text ); Question: In what year is the 9th position balzan? <|assistant|> SELECT "year" FROM "history" WHERE "9th_position"='balzan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "history" ( "year" text, "1st_position" text, "2nd_position" text, "9th_position" text, "10th_position" text ); Question: Where there is a tenth position of gozo, what is the first position? <|assistant|> SELECT "1st_position" FROM "history" WHERE "10th_position"='gozo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "history" ( "year" text, "1st_position" text, "2nd_position" text, "9th_position" text, "10th_position" text ); Question: In what year is the 9th position rabat ajax? <|assistant|> SELECT "year" FROM "history" WHERE "9th_position"='rabat ajax';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was Hawthorn's score as the away team? <|assistant|> SELECT "away_team_score" FROM "round_10" WHERE "away_team"='hawthorn';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was the away team that scored 7.6 (48)? <|assistant|> SELECT "away_team" FROM "round_10" WHERE "away_team_score"='7.6 (48)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was the away team at the game at Lake Oval? <|assistant|> SELECT "away_team_score" FROM "round_10" WHERE "venue"='lake oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was the home team that scored 8.7 (55)? <|assistant|> SELECT "home_team" FROM "round_10" WHERE "home_team_score"='8.7 (55)';<|endoftext|>