text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "date" text, "track" text, "event_name" text, "pole_winner" text, "race_winner" text ); Question: At which track did the event Daytona Arca 200 take place? <|assistant|> SELECT "track" FROM "schedule_and_results" WHERE "event_name"='daytona arca 200';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "date" text, "track" text, "event_name" text, "pole_winner" text, "race_winner" text ); Question: At which event was Ken Schrader the Race Winner at the Toledo Speedway? <|assistant|> SELECT "event_name" FROM "schedule_and_results" WHERE "race_winner"='ken schrader' AND "track"='toledo speedway';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "date" text, "track" text, "event_name" text, "pole_winner" text, "race_winner" text ); Question: At which track was Frank Kimmel the Pole Winner of the Pennsylvania 200? <|assistant|> SELECT "track" FROM "schedule_and_results" WHERE "pole_winner"='frank kimmel' AND "event_name"='pennsylvania 200';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "date" text, "track" text, "event_name" text, "pole_winner" text, "race_winner" text ); Question: Steve Wallace was a Race Winner at the Kentucky Speedway on what date? <|assistant|> SELECT "date" FROM "schedule_and_results" WHERE "race_winner"='steve wallace' AND "track"='kentucky speedway';<|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 lowest number of silver owned by a nation that is not ranked number 1? <|assistant|> SELECT MIN("silver") FROM "medal_table" WHERE "rank"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying" ( "pos" text, "driver" text, "constructor" text, "part_1" text, "grid" text ); Question: What is Driver Kimi Räikkönen's number on the grid? <|assistant|> SELECT "grid" FROM "qualifying" WHERE "driver"='kimi räikkönen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying" ( "pos" text, "driver" text, "constructor" text, "part_1" text, "grid" text ); Question: Which driver had a Part 1 time of 1:13.306? <|assistant|> SELECT "driver" FROM "qualifying" WHERE "part_1"='1:13.306';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_roller_coasters" ( "current_name" text, "year_first_opened" real, "manufacturer" text, "location_in_park" text, "thrill_intensity_rating" text, "minimum_height_requirements" text ); Question: What ride opened after 2011? <|assistant|> SELECT "current_name" FROM "current_roller_coasters" WHERE "year_first_opened">2011;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_2003_prize_winners" ( "nomination" text, "actor_s_name" text, "film_name" text, "director" text, "country" text ); Question: Tell me the actor from russia for anastasiya slutskaya <|assistant|> SELECT "actor_s_name" FROM "stozhary_2003_prize_winners" WHERE "film_name"='anastasiya slutskaya' AND "country"='russia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_2003_prize_winners" ( "nomination" text, "actor_s_name" text, "film_name" text, "director" text, "country" text ); Question: Rell mem the actor from ukraine for best actress in a leading role <|assistant|> SELECT "actor_s_name" FROM "stozhary_2003_prize_winners" WHERE "nomination"='best actress in a leading role' AND "country"='ukraine';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_2003_prize_winners" ( "nomination" text, "actor_s_name" text, "film_name" text, "director" text, "country" text ); Question: Tell me the director for the movie with svetlana zelenkovskaya <|assistant|> SELECT "director" FROM "stozhary_2003_prize_winners" WHERE "actor_s_name"='svetlana zelenkovskaya';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_2003_prize_winners" ( "nomination" text, "actor_s_name" text, "film_name" text, "director" text, "country" text ); Question: Tell me the actor's name for anastasiya slutskaya belarus <|assistant|> SELECT "actor_s_name" FROM "stozhary_2003_prize_winners" WHERE "film_name"='anastasiya slutskaya' AND "country"='belarus';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_2003_prize_winners" ( "nomination" text, "actor_s_name" text, "film_name" text, "director" text, "country" text ); Question: Tell me the nominator for piotr adamczyk <|assistant|> SELECT "nomination" FROM "stozhary_2003_prize_winners" WHERE "actor_s_name"='piotr adamczyk';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: Which stadium can hold 63,443 people? <|assistant|> SELECT "result" FROM "schedule" WHERE "attendance"='63,443';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "venue" text, "start_time" text, "attendance" text ); Question: Tell me the number of weeks for bye <|assistant|> SELECT COUNT("week") FROM "schedule" WHERE "date"='bye';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "venue" text, "start_time" text, "attendance" text ); Question: Tell me the number of weeks for december 5, 2005 <|assistant|> SELECT COUNT("week") FROM "schedule" WHERE "date"='december 5, 2005';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "venue" text, "start_time" text, "attendance" text ); Question: Tell me the start time for december 24, 2005 <|assistant|> SELECT "start_time" FROM "schedule" WHERE "date"='december 24, 2005';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "venue" text, "start_time" text, "attendance" text ); Question: Tell me the result for lincoln financial field december 11, 2005 <|assistant|> SELECT "result" FROM "schedule" WHERE "venue"='lincoln financial field' AND "date"='december 11, 2005';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: Tell me the total number of years for wins less than 2 and class of 50cc with points of 15 <|assistant|> SELECT COUNT("year") FROM "motorcycle_grand_prix_results" WHERE "wins"<2 AND "class"='50cc' AND "points"=15;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: Tell me the year for class of 125cc <|assistant|> SELECT "year" FROM "motorcycle_grand_prix_results" WHERE "class"='125cc';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: Tell me the average wins for class of 50cc and rank of 8th <|assistant|> SELECT AVG("wins") FROM "motorcycle_grand_prix_results" WHERE "class"='50cc' AND "rank"='8th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: Tell me the lowest wins for class of 50cc and team of tomos for year less than 1969 <|assistant|> SELECT MIN("wins") FROM "motorcycle_grand_prix_results" WHERE "class"='50cc' AND "team"='tomos' AND "year"<1969;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which country has the highest bronze amount and a silver amount bigger than 41? <|assistant|> SELECT MAX("bronze") FROM "medal_table" WHERE "silver">41;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the lowest amount of medals Russia has if they have more than 2 silver medals and less than 4 gold medals? <|assistant|> SELECT MIN("total") FROM "medal_table" WHERE "silver">2 AND "nation"='russia' AND "gold"<4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cart_champ_car" ( "year" real, "team" text, "chassis" text, "engine" text, "rank" text, "points" text ); Question: How many points did the 2005 1st place team receive? <|assistant|> SELECT "points" FROM "cart_champ_car" WHERE "year"=2005;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cart_champ_car" ( "year" real, "team" text, "chassis" text, "engine" text, "rank" text, "points" text ); Question: What engine was used by the teams that used a Lola b02/00 chassis and ranked 1st? <|assistant|> SELECT "engine" FROM "cart_champ_car" WHERE "chassis"='lola b02/00' AND "rank"='1st';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cart_champ_car" ( "year" real, "team" text, "chassis" text, "engine" text, "rank" text, "points" text ); Question: How many years did Team Newman/Haas Racing receive a 1st place ranking? <|assistant|> SELECT COUNT("year") FROM "cart_champ_car" WHERE "team"='newman/haas racing' AND "rank"='1st';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "national_final" ( "draw" real, "artist" text, "song" text, "place" real, "points" real ); Question: What is the aggregate of place for points being 35? <|assistant|> SELECT SUM("place") FROM "national_final" WHERE "points"=35;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "national_final" ( "draw" real, "artist" text, "song" text, "place" real, "points" real ); Question: Name the fewest points of 5 place <|assistant|> SELECT MIN("points") FROM "national_final" WHERE "place"=5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "national_final" ( "draw" real, "artist" text, "song" text, "place" real, "points" real ); Question: Name the total number of places for vicky gordon and points more than 23 <|assistant|> SELECT COUNT("place") FROM "national_final" WHERE "artist"='vicky gordon' AND "points">23;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: Tell me the opponent for attendance of 68,264 <|assistant|> SELECT "opponent" FROM "schedule" WHERE "attendance"='68,264';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: Tell me the sum of week for result of l 24–21 <|assistant|> SELECT SUM("week") FROM "schedule" WHERE "result"='l 24–21';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: Tell me the result for attendance of 54,462 <|assistant|> SELECT "result" FROM "schedule" WHERE "attendance"='54,462';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: Tell me the opponent for attendance of 53,899 <|assistant|> SELECT "opponent" FROM "schedule" WHERE "attendance"='53,899';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "players" ( "nationality" text, "no_a" text, "pos_a" text, "from" text, "school_club" text, "pts_b" real, "reb_b" real, "ast_b" real ); Question: What is the points that is more than 636 and has a value of 50? <|assistant|> SELECT "pts_b" FROM "players" WHERE "reb_b">636 AND "no_a"='50';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "players" ( "nationality" text, "no_a" text, "pos_a" text, "from" text, "school_club" text, "pts_b" real, "reb_b" real, "ast_b" real ); Question: Which rebound was 8 and has and ast that was less than 57? <|assistant|> SELECT AVG("reb_b") FROM "players" WHERE "no_a"='8' AND "ast_b"<57;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: Tell me the country for ICAO of tjig <|assistant|> SELECT "country" FROM "destinations" WHERE "icao"='tjig';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: Tell me the country for san juan <|assistant|> SELECT "country" FROM "destinations" WHERE "city"='san juan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: Tell me the country for ICAO tjvq <|assistant|> SELECT "country" FROM "destinations" WHERE "icao"='tjvq';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: Tell me the iata for icao of tjrv <|assistant|> SELECT "iata" FROM "destinations" WHERE "icao"='tjrv';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: Tell me the icao of isla grande <|assistant|> SELECT "icao" FROM "destinations" WHERE "city"='isla grande';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text ); Question: What position does the Colorado Rapids pick after 15 play? <|assistant|> SELECT "position" FROM "round_two" WHERE "mls_team"='colorado rapids' AND "pick_num">15;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000_s" ( "year" real, "date" text, "event" text, "days" text, "stages" text, "acts" text ); Question: I want to know the events for 106 bands <|assistant|> SELECT "event" FROM "2000_s" WHERE "acts"='106 bands';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_99_prize_winners" ( "nomination" text, "actor_s_name" text, "film_name" text, "director" text, "country" text ); Question: Tell me the Actor's name for film name of sara <|assistant|> SELECT "actor_s_name" FROM "stozhary_99_prize_winners" WHERE "film_name"='sara';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_99_prize_winners" ( "nomination" text, "actor_s_name" text, "film_name" text, "director" text, "country" text ); Question: Tell me the nomination for ukraine <|assistant|> SELECT "nomination" FROM "stozhary_99_prize_winners" WHERE "country"='ukraine';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_99_prize_winners" ( "nomination" text, "actor_s_name" text, "film_name" text, "director" text, "country" text ); Question: Tell me the actors name for barhanov and his bodyguard <|assistant|> SELECT "actor_s_name" FROM "stozhary_99_prize_winners" WHERE "film_name"='barhanov and his bodyguard';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_99_prize_winners" ( "nomination" text, "actor_s_name" text, "film_name" text, "director" text, "country" text ); Question: Tell me the actors name for goran paskaljevic <|assistant|> SELECT "actor_s_name" FROM "stozhary_99_prize_winners" WHERE "director"='goran paskaljevic';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_99_prize_winners" ( "nomination" text, "actor_s_name" text, "film_name" text, "director" text, "country" text ); Question: Tell me the nomination for goran paskaljevic <|assistant|> SELECT "nomination" FROM "stozhary_99_prize_winners" WHERE "director"='goran paskaljevic';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual" ( "year" text, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: In what year did Stephan Wojcikiewicz play men's single and Anna Rice play women's single? <|assistant|> SELECT "year" FROM "individual" WHERE "men_s_singles"='stephan wojcikiewicz' AND "women_s_singles"='anna rice';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual" ( "year" text, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Who played men's doubles in 2012? <|assistant|> SELECT "men_s_doubles" FROM "individual" WHERE "year"='2012';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "barnsley" ( "division" text, "league_apps" real, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "total_apps" real, "total_goals" real ); Question: Which FA Cup apps has league goals of 1 with total goals less than 1? <|assistant|> SELECT AVG("fa_cup_apps") FROM "barnsley" WHERE "league_goals"=1 AND "total_goals"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "barnsley" ( "division" text, "league_apps" real, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "total_apps" real, "total_goals" real ); Question: What is the highest apps total with FA cup apps of 26 with total number of goals larger than 9? <|assistant|> SELECT MAX("total_apps") FROM "barnsley" WHERE "fa_cup_apps"=26 AND "total_goals">9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "barnsley" ( "division" text, "league_apps" real, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "total_apps" real, "total_goals" real ); Question: Which league goals has FA cup apps of 2? <|assistant|> SELECT "league_goals" FROM "barnsley" WHERE "fa_cup_apps"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "barnsley" ( "division" text, "league_apps" real, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "total_apps" real, "total_goals" real ); Question: What FA cup apps has a total larger than 12 and league apps larger than 38, and FA Cup goals larger than 1? <|assistant|> SELECT COUNT("fa_cup_apps") FROM "barnsley" WHERE "total_apps">12 AND "league_apps">38 AND "fa_cup_goals">1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What was the total attendance on December 14, 1975 after week 13? <|assistant|> SELECT COUNT("attendance") FROM "schedule" WHERE "date"='december 14, 1975' AND "week">13;<|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 all totals with a rank greater than 6, gold greater than 0, and silver greater than 2? <|assistant|> SELECT SUM("total") FROM "medal_table" WHERE "rank">6 AND "gold">0 AND "silver"=2;<|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: How many values for silver occur when gold is less than 1, the rank is 13, and bronze is greater than 2? <|assistant|> SELECT COUNT("silver") FROM "medal_table" WHERE "gold"<1 AND "rank"=13 AND "bronze">2;<|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 value of Bronze when silver is 0 and the total is less than 1? <|assistant|> SELECT AVG("bronze") FROM "medal_table" WHERE "silver"=0 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 lowest value for bronze with a total of 3 and a value for silver greater than 1 while the value of gold is smaller than 1? <|assistant|> SELECT MIN("bronze") FROM "medal_table" WHERE "total"=3 AND "silver">1 AND "gold"<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: How man values for bronze occur when gold is less than 1, rank is greater than 15, and total is greater than 1? <|assistant|> SELECT COUNT("bronze") FROM "medal_table" WHERE "gold"<1 AND "rank">15 AND "total">1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_nine" ( "pick" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: Name the position of pick 234 <|assistant|> SELECT "position" FROM "round_nine" WHERE "pick"='234';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_nine" ( "pick" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: Name the team of vitali yeremeyev <|assistant|> SELECT "nhl_team" FROM "round_nine" WHERE "player"='vitali yeremeyev';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: Tell me the result for 2007-09-29 <|assistant|> SELECT "result" FROM "international_goals" WHERE "date"='2007-09-29';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "venue" text, "attendance" text ); Question: How many weeks have an attendance of 64,116? <|assistant|> SELECT COUNT("week") FROM "schedule" WHERE "attendance"='64,116';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "venue" text, "attendance" text ); Question: Which date has a week larger than 14? <|assistant|> SELECT "date" FROM "schedule" WHERE "week">14;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "venue" text, "attendance" text ); Question: Which venue has a week smaller than 2? <|assistant|> SELECT "venue" FROM "schedule" WHERE "week"<2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "year" real, "date" text, "event" text, "days" text, "stages" text, "acts" text ); Question: When was the Metallica: Escape from the Studio show? <|assistant|> SELECT "date" FROM "1990s" WHERE "event"='metallica: escape from the studio';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "year" real, "date" text, "event" text, "days" text, "stages" text, "acts" text ); Question: When is the Monsters of Rock show with 12 bands? <|assistant|> SELECT "date" FROM "1990s" WHERE "event"='monsters of rock' AND "acts"='12 bands';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000_2009" ( "year" real, "competition" text, "date" text, "surface" text, "location" text, "score" text, "result" text ); Question: Tell me the result for 15 july <|assistant|> SELECT "result" FROM "2000_2009" WHERE "date"='15 july';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fleet_details" ( "class" text, "type" text, "no_built_converted" text, "year_built_converted" text, "no_range" text, "withdrawn" real ); Question: Tell me the number range for 1965-66 <|assistant|> SELECT "no_range" FROM "fleet_details" WHERE "year_built_converted"='1965-66';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fleet_details" ( "class" text, "type" text, "no_built_converted" text, "year_built_converted" text, "no_range" text, "withdrawn" real ); Question: Tell me the year built for withdrawn of 1983 <|assistant|> SELECT "year_built_converted" FROM "fleet_details" WHERE "withdrawn"=1983;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fleet_details" ( "class" text, "type" text, "no_built_converted" text, "year_built_converted" text, "no_range" text, "withdrawn" real ); Question: Tell me the year built for number built of 10 <|assistant|> SELECT "year_built_converted" FROM "fleet_details" WHERE "no_built_converted"='10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: Tell me the result for 2008-12-23 <|assistant|> SELECT "result" FROM "international_goals" WHERE "date"='2008-12-23';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_2005_prize_winners" ( "nomination" text, "actor_s_name" text, "film_name" text, "director" text, "country" text ); Question: Tell me the director nominated for best actor in a leading role <|assistant|> SELECT "director" FROM "stozhary_2005_prize_winners" WHERE "nomination"='best actor in a leading role';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_2005_prize_winners" ( "nomination" text, "actor_s_name" text, "film_name" text, "director" text, "country" text ); Question: Tell me the nomination for peresohla zemlia <|assistant|> SELECT "nomination" FROM "stozhary_2005_prize_winners" WHERE "film_name"='peresohla zemlia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_2005_prize_winners" ( "nomination" text, "actor_s_name" text, "film_name" text, "director" text, "country" text ); Question: Tell me the nomination for russia and svetlana hodchenkova <|assistant|> SELECT "nomination" FROM "stozhary_2005_prize_winners" WHERE "country"='russia' AND "actor_s_name"='svetlana hodchenkova';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_2005_prize_winners" ( "nomination" text, "actor_s_name" text, "film_name" text, "director" text, "country" text ); Question: Tell me the actor's name for nienasycenie (insatiability) <|assistant|> SELECT "actor_s_name" FROM "stozhary_2005_prize_winners" WHERE "film_name"='nienasycenie (insatiability)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stozhary_2005_prize_winners" ( "nomination" text, "actor_s_name" text, "film_name" text, "director" text, "country" text ); Question: Tell me the actor's name for escho raz o voyne <|assistant|> SELECT "actor_s_name" FROM "stozhary_2005_prize_winners" WHERE "film_name"='escho raz o voyne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text ); Question: What are the average laps driven in the GT class? <|assistant|> SELECT AVG("laps") FROM "24_hours_of_le_mans_results" WHERE "class"='gt';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text ); Question: What classes have driven greater than 133 laps, placed above 18th position and have a class position of 1st? <|assistant|> SELECT "class" FROM "24_hours_of_le_mans_results" WHERE "laps">133 AND "pos"='18th' AND "class_pos"='1st';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "democratic_primary" ( "source" text, "date" text, "donoghue_d" text, "eldridge_d" text, "finegold_d" text, "miceli_d" text, "tsongas_d" text ); Question: I want the tsongas of may 22, 2007 <|assistant|> SELECT "tsongas_d" FROM "democratic_primary" WHERE "date"='may 22, 2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wac_men_s_basketball_tournament_results" ( "year" real, "winner" text, "score" text, "opponent" text, "venue" text ); Question: Tell me the venue for winner of nevada and year more than 2004 <|assistant|> SELECT "venue" FROM "wac_men_s_basketball_tournament_results" WHERE "winner"='nevada' AND "year">2004;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season_schedule" ( "week" real, "date" text, "opponent" text, "time_et" text, "game_site" text, "final_score" text ); Question: What date is the 1:00 pm game at arrowhead stadium? <|assistant|> SELECT "date" FROM "regular_season_schedule" WHERE "time_et"='1:00 pm' AND "game_site"='arrowhead stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season_schedule" ( "week" real, "date" text, "opponent" text, "time_et" text, "game_site" text, "final_score" text ); Question: Where will the game at (ET) of 7:00 pm be at? <|assistant|> SELECT "game_site" FROM "regular_season_schedule" WHERE "time_et"='7:00 pm';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_results" ( "driver" text, "car_num" real, "make" text, "points" real, "laps" real, "winnings" text ); Question: Who is the Driver that has a Laps smaller than 498, less than 58 points, a car number bigger than 22 and who has won $93,514? <|assistant|> SELECT "driver" FROM "race_results" WHERE "laps"<498 AND "points"<58 AND "car_num">22 AND "winnings"='$93,514';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000s" ( "year" real, "competition" text, "date" text, "location" text, "score" text, "result" text ); Question: At what location was there a loss on 20 jan? <|assistant|> SELECT "location" FROM "2000s" WHERE "result"='loss' AND "date"='20 jan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "venue" text, "attendance" real, "record" text ); Question: Tell me the venue for record of 2-7 <|assistant|> SELECT "venue" FROM "schedule" WHERE "record"='2-7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "venue" text, "attendance" real, "record" text ); Question: Tell me the result for green bay packers <|assistant|> SELECT "result" FROM "schedule" WHERE "opponent"='green bay packers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "venue" text, "attendance" real, "record" text ); Question: Tell mem the opponent for result of w 31-21 <|assistant|> SELECT "opponent" FROM "schedule" WHERE "result"='w 31-21';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1970_isle_of_man_production_750_cc_tt_fi" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: What is the average speed of rider Peter Williams? <|assistant|> SELECT "speed" FROM "1970_isle_of_man_production_750_cc_tt_fi" WHERE "rider"='peter williams';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1970_isle_of_man_production_750_cc_tt_fi" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: What is the time/s of team Triumph in those races in which Triumph ranked higher than 4? <|assistant|> SELECT "time" FROM "1970_isle_of_man_production_750_cc_tt_fi" WHERE "team"='triumph' AND "rank"<4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "history" ( "year" text, "zone" text, "final_round" text, "score" text, "result" text ); Question: What was the score in 1969? <|assistant|> SELECT "score" FROM "history" WHERE "year"='1969';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "history" ( "year" text, "zone" text, "final_round" text, "score" text, "result" text ); Question: In 1975, what was the final round? <|assistant|> SELECT "final_round" FROM "history" WHERE "year"='1975';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "time" text, "name" text, "nationality" text, "date" text, "event_place" text, "source" text ); Question: Where did someone run a 61:32 <|assistant|> SELECT "event_place" FROM "men" WHERE "time"='61:32';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "time" text, "name" text, "nationality" text, "date" text, "event_place" text, "source" text ); Question: What was Derek Graham's time? <|assistant|> SELECT "time" FROM "men" WHERE "name"='derek graham';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "time" text, "name" text, "nationality" text, "date" text, "event_place" text, "source" text ); Question: Where did someone run a 58:33? <|assistant|> SELECT "event_place" FROM "men" WHERE "time"='58:33';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_three" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text ); Question: Tell me the player for pick number less than 29 and mls team of chicago fire <|assistant|> SELECT "player" FROM "round_three" WHERE "pick_num"<29 AND "mls_team"='chicago fire';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_2_4" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: Tell me the opponents for partner of yvonne meusburger <|assistant|> SELECT "opponents" FROM "doubles_2_4" WHERE "partner"='yvonne meusburger';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_2_4" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: Tell me the date for opponents of raffaella bindi biljana pawlowa-dimitrova <|assistant|> SELECT "date" FROM "doubles_2_4" WHERE "opponents"='raffaella bindi biljana pawlowa-dimitrova';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat_rank" real, "lane" real, "swimmer" text, "country" text, "time" real, "overall_rank" text ); Question: Tell me the highest time for heat rank of 8 and lane more than 2 <|assistant|> SELECT MAX("time") FROM "heats" WHERE "heat_rank"=8 AND "lane">2;<|endoftext|>