text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: Which loss has a Date of april 26? <|assistant|> SELECT "loss" FROM "game_log" WHERE "date"='april 26';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: Which date has an Opponent of angels, and a Loss of sanderson (0–1)? <|assistant|> SELECT "date" FROM "game_log" WHERE "opponent"='angels' AND "loss"='sanderson (0–1)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What is the largest Attendance with a Loss of darling (0–1)? <|assistant|> SELECT MAX("attendance") FROM "game_log" WHERE "loss"='darling (0–1)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "on_campus_arenas" ( "arena_venue" text, "home_campus" text, "location" text, "province_region" text, "maximum_seating_capacity" text, "year_opened" text ); Question: What is the maximum capacity of the San Agustin Gym? <|assistant|> SELECT "maximum_seating_capacity" FROM "on_campus_arenas" WHERE "arena_venue"='san agustin gym';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "on_campus_arenas" ( "arena_venue" text, "home_campus" text, "location" text, "province_region" text, "maximum_seating_capacity" text, "year_opened" text ); Question: Where is the Cagayan de Oro city located? <|assistant|> SELECT "province_region" FROM "on_campus_arenas" WHERE "location"='cagayan de oro city';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "on_campus_arenas" ( "arena_venue" text, "home_campus" text, "location" text, "province_region" text, "maximum_seating_capacity" text, "year_opened" text ); Question: Where is the Holy Cross of Davao College campus located? <|assistant|> SELECT "province_region" FROM "on_campus_arenas" WHERE "home_campus"='holy cross of davao college';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "on_campus_arenas" ( "arena_venue" text, "home_campus" text, "location" text, "province_region" text, "maximum_seating_capacity" text, "year_opened" text ); Question: Which campus has the San Agustin gym? <|assistant|> SELECT "home_campus" FROM "on_campus_arenas" WHERE "arena_venue"='san agustin gym';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "on_campus_arenas" ( "arena_venue" text, "home_campus" text, "location" text, "province_region" text, "maximum_seating_capacity" text, "year_opened" text ); Question: What year did the San Agustin gym open? <|assistant|> SELECT "year_opened" FROM "on_campus_arenas" WHERE "arena_venue"='san agustin gym';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: Which player has a total bigger than 285 and a to par of +14? <|assistant|> SELECT "player" FROM "made_the_cut" WHERE "total">285 AND "to_par"='+14';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: What is the highest total with a t12 finish? <|assistant|> SELECT MAX("total") FROM "made_the_cut" WHERE "finish"='t12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: Which country has a finish of t4? <|assistant|> SELECT "country" FROM "made_the_cut" WHERE "finish"='t4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: What year won has a total less than 281? <|assistant|> SELECT "year_s_won" FROM "made_the_cut" WHERE "total"<281;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cart" ( "year" real, "team" text, "chassis" text, "engine" text, "rank" text, "points" real ); Question: Which chassis is ranked 24th? <|assistant|> SELECT "chassis" FROM "cart" WHERE "rank"='24th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cart" ( "year" real, "team" text, "chassis" text, "engine" text, "rank" text, "points" real ); Question: Which chassis was made in 1993? <|assistant|> SELECT "chassis" FROM "cart" WHERE "year"=1993;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cart" ( "year" real, "team" text, "chassis" text, "engine" text, "rank" text, "points" real ); Question: Which team is from earlier than 1994? <|assistant|> SELECT "team" FROM "cart" WHERE "year"<1994;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cart" ( "year" real, "team" text, "chassis" text, "engine" text, "rank" text, "points" real ); Question: What rank is later than 1994? <|assistant|> SELECT "rank" FROM "cart" WHERE "year">1994;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cart" ( "year" real, "team" text, "chassis" text, "engine" text, "rank" text, "points" real ); Question: What year did the King team have fewer than 10 points? <|assistant|> SELECT AVG("year") FROM "cart" WHERE "team"='king' AND "points"<10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cart" ( "year" real, "team" text, "chassis" text, "engine" text, "rank" text, "points" real ); Question: What are the average points for the Project Indy team that has the Ford xb engine? <|assistant|> SELECT AVG("points") FROM "cart" WHERE "engine"='ford xb' AND "team"='project indy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "house_of_oldenburg" ( "birth" text, "marriage" text, "became_consort" text, "ceased_to_be_consort" text, "death" text, "spouse" text ); Question: Name the became consort for marriage of 4 april 1721 <|assistant|> SELECT "became_consort" FROM "house_of_oldenburg" WHERE "marriage"='4 april 1721';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "house_of_oldenburg" ( "birth" text, "marriage" text, "became_consort" text, "ceased_to_be_consort" text, "death" text, "spouse" text ); Question: Name the birth of the person that has a spouse of frederick iv and became consort of 4 april 1721 <|assistant|> SELECT "birth" FROM "house_of_oldenburg" WHERE "spouse"='frederick iv' AND "became_consort"='4 april 1721';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "house_of_oldenburg" ( "birth" text, "marriage" text, "became_consort" text, "ceased_to_be_consort" text, "death" text, "spouse" text ); Question: Name the became consort for ceased to be consort of 4 april 1588 husband's death <|assistant|> SELECT "became_consort" FROM "house_of_oldenburg" WHERE "ceased_to_be_consort"='4 april 1588 husband''s death';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "house_of_oldenburg" ( "birth" text, "marriage" text, "became_consort" text, "ceased_to_be_consort" text, "death" text, "spouse" text ); Question: Name the marriage of the person who is married for christian viii <|assistant|> SELECT "marriage" FROM "house_of_oldenburg" WHERE "spouse"='christian viii';<|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, "wins" real ); Question: Who has 48 points in the class of 500 cc? <|assistant|> SELECT "team" FROM "motorcycle_grand_prix_results" WHERE "points"=48 AND "class"='500 cc';<|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, "wins" real ); Question: How many wins does Benelli have before 1962? <|assistant|> SELECT COUNT("wins") FROM "motorcycle_grand_prix_results" WHERE "team"='benelli' AND "year"<1962;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "keyboard_feel_feature_matrix_for_current" ( "model" text, "graded_hammer_non_gh3" text, "graded_hammer_three_gh3" text, "natural_wood_keyboard" text, "synthetic_ivory_keytops" text ); Question: Which is Natural Wood Keyboard with a Model of clps306? <|assistant|> SELECT "natural_wood_keyboard" FROM "keyboard_feel_feature_matrix_for_current" WHERE "model"='clps306';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "keyboard_feel_feature_matrix_for_current" ( "model" text, "graded_hammer_non_gh3" text, "graded_hammer_three_gh3" text, "natural_wood_keyboard" text, "synthetic_ivory_keytops" text ); Question: Which Graded Hammer (Non GH3) has a Model of cvp501? <|assistant|> SELECT "graded_hammer_non_gh3" FROM "keyboard_feel_feature_matrix_for_current" WHERE "model"='cvp501';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "keyboard_feel_feature_matrix_for_current" ( "model" text, "graded_hammer_non_gh3" text, "graded_hammer_three_gh3" text, "natural_wood_keyboard" text, "synthetic_ivory_keytops" text ); Question: Which Natural Wood Keyboard has a CLP380 ? <|assistant|> SELECT "natural_wood_keyboard" FROM "keyboard_feel_feature_matrix_for_current" WHERE "model"='clp380';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "keyboard_feel_feature_matrix_for_current" ( "model" text, "graded_hammer_non_gh3" text, "graded_hammer_three_gh3" text, "natural_wood_keyboard" text, "synthetic_ivory_keytops" text ); Question: Which Graded Hammer Three (GH3) shows Model of clp320? <|assistant|> SELECT "graded_hammer_three_gh3" FROM "keyboard_feel_feature_matrix_for_current" WHERE "model"='clp320';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_drivers" text, "winning_constructor" text, "report" text ); Question: What was the date for the French Grand Prix? <|assistant|> SELECT "date" FROM "world_championship_grands_prix" WHERE "name"='french grand prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_drivers" text, "winning_constructor" text, "report" text ); Question: What was the name for the race in the Miramas circuit? <|assistant|> SELECT "name" FROM "world_championship_grands_prix" WHERE "circuit"='miramas';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_drivers" text, "winning_constructor" text, "report" text ); Question: Which circuit was Delage the winning constructor for? <|assistant|> SELECT "circuit" FROM "world_championship_grands_prix" WHERE "winning_constructor"='delage';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_drivers" text, "winning_constructor" text, "report" text ); Question: What is the name for the Monza circuit race were Bugatti was the winning constructor? <|assistant|> SELECT "name" FROM "world_championship_grands_prix" WHERE "winning_constructor"='bugatti' AND "circuit"='monza';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_drivers" text, "winning_constructor" text, "report" text ); Question: Which report shows that Frank Lockhart was a winning driver? <|assistant|> SELECT "report" FROM "world_championship_grands_prix" WHERE "winning_drivers"='frank lockhart';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summer_paralympics" ( "event" text, "gold" real, "silver" real, "bronze" real, "total" real, "ranking" text ); Question: What Ranking has Gold less than 20 and the Event 1976 Toronto? <|assistant|> SELECT "ranking" FROM "summer_paralympics" WHERE "gold"<20 AND "event"='1976 toronto';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summer_paralympics" ( "event" text, "gold" real, "silver" real, "bronze" real, "total" real, "ranking" text ); Question: What Gold has a Silver greater than 30 and a Total less than 107? <|assistant|> SELECT "gold" FROM "summer_paralympics" WHERE "silver">30 AND "total"<107;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summer_paralympics" ( "event" text, "gold" real, "silver" real, "bronze" real, "total" real, "ranking" text ); Question: What is the highest Bronze with the Event 1972 Heidelberg and Total less than 5? <|assistant|> SELECT MAX("bronze") FROM "summer_paralympics" WHERE "event"='1972 heidelberg' AND "total"<5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summer_paralympics" ( "event" text, "gold" real, "silver" real, "bronze" real, "total" real, "ranking" text ); Question: What is the Total with the Event 2004 Athens and Gold less than 20? <|assistant|> SELECT SUM("total") FROM "summer_paralympics" WHERE "event"='2004 athens' AND "gold"<20;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summer_paralympics" ( "event" text, "gold" real, "silver" real, "bronze" real, "total" real, "ranking" text ); Question: What is the lowest Bronze with a Ranking of 22nd of 32 and Gold larger than 4? <|assistant|> SELECT MIN("bronze") FROM "summer_paralympics" WHERE "ranking"='22nd of 32' AND "gold">4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polls" ( "polling_firm" text, "date_published" text, "t_papadopoulos" text, "d_christofias" text, "i_kasoulidis" text, "k_themistokleous" text ); Question: Which polling firm put T. Papadopoulos at 31%? <|assistant|> SELECT "polling_firm" FROM "opinion_polls" WHERE "t_papadopoulos"='31%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polls" ( "polling_firm" text, "date_published" text, "t_papadopoulos" text, "d_christofias" text, "i_kasoulidis" text, "k_themistokleous" text ); Question: What was the percentage for T. Papadopoulos when I. Kasoulidis was 27.1%? <|assistant|> SELECT "t_papadopoulos" FROM "opinion_polls" WHERE "i_kasoulidis"='27.1%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polls" ( "polling_firm" text, "date_published" text, "t_papadopoulos" text, "d_christofias" text, "i_kasoulidis" text, "k_themistokleous" text ); Question: What was the percentage for K. Themistokleous when I. Kasoulidis was 30.1%? <|assistant|> SELECT "k_themistokleous" FROM "opinion_polls" WHERE "i_kasoulidis"='30.1%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polls" ( "polling_firm" text, "date_published" text, "t_papadopoulos" text, "d_christofias" text, "i_kasoulidis" text, "k_themistokleous" text ); Question: What was the percentage for T. Papadopoulos when D. Christofias was 28.4%? <|assistant|> SELECT "t_papadopoulos" FROM "opinion_polls" WHERE "d_christofias"='28.4%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: Which tournament has a 2007 of 2r, and a 2011 of 2r? <|assistant|> SELECT "tournament" FROM "women_s_doubles_performance_timeline" WHERE "2007"='2r' AND "2011"='2r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cities" ( "rank" real, "city" text, "titles" real, "winning_clubs" text, "last_victory" real ); Question: What is the number of titles for the city of győr with a rank larger than 4? <|assistant|> SELECT SUM("titles") FROM "cities" WHERE "city"='győr' AND "rank">4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the Score of the Toronto Maple Leafs home game on February 1? <|assistant|> SELECT "score" FROM "game_log" WHERE "home"='toronto maple leafs' AND "date"='february 1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the score of the Boston Bruins away game on March 13? <|assistant|> SELECT "score" FROM "game_log" WHERE "visitor"='boston bruins' AND "date"='march 13';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What visiting team has a record of 9–5–2? <|assistant|> SELECT "visitor" FROM "game_log" WHERE "record"='9–5–2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the score of the game with a record of 12–8–3? <|assistant|> SELECT "score" FROM "game_log" WHERE "record"='12–8–3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the date that the Montreal Canadiens hosted a game with a record of 14–11–3? <|assistant|> SELECT "date" FROM "game_log" WHERE "home"='montreal canadiens' AND "record"='14–11–3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); Question: What is the country of Craig Stadler? <|assistant|> SELECT "country" FROM "missed_the_cut" WHERE "player"='craig stadler';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); Question: What is the average total of Gay Brewer from the United States with a to par of 9? <|assistant|> SELECT AVG("total") FROM "missed_the_cut" WHERE "country"='united states' AND "to_par"=9 AND "player"='gay brewer';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: What was the finish by the player from West Germany? <|assistant|> SELECT "finish" FROM "made_the_cut" WHERE "country"='west germany';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "budi_sudarsono_international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What is the smallest goal during the 2006 fifa world cup qualification competition? <|assistant|> SELECT MIN("goal") FROM "budi_sudarsono_international_goals" WHERE "competition"='2006 fifa world cup qualification';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "external_links" ( "representative" text, "years" text, "state" text, "party" text, "lifespan" text ); Question: Name the representative for party of whig <|assistant|> SELECT "representative" FROM "external_links" WHERE "party"='whig';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Name the total number of years for chassis of maserati 250f and points less than 0 <|assistant|> SELECT COUNT("year") FROM "complete_formula_one_world_championship_" WHERE "chassis"='maserati 250f' AND "points"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Name the engine with chassis of maserati 250f and entrant of luigi piotti with year less than 1957 <|assistant|> SELECT "engine" FROM "complete_formula_one_world_championship_" WHERE "chassis"='maserati 250f' AND "entrant"='luigi piotti' AND "year"<1957;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Name the sum of points for chassis of maserati 250f and entrant of officine alfieri maserati <|assistant|> SELECT SUM("points") FROM "complete_formula_one_world_championship_" WHERE "chassis"='maserati 250f' AND "entrant"='officine alfieri maserati';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Name the lowest points for officine alfieri maserati <|assistant|> SELECT MIN("points") FROM "complete_formula_one_world_championship_" WHERE "entrant"='officine alfieri maserati';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_roster" ( "players" text, "sh_c" text, "height" text, "weight" text, "date_of_birth" text, "club" text ); Question: How tall is Ye Fei? <|assistant|> SELECT "height" FROM "current_roster" WHERE "players"='ye fei';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What is the attendance of the game on July 26? <|assistant|> SELECT SUM("attendance") FROM "game_log" WHERE "date"='july 26';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text ); Question: How many years did the team place 2nd in Antwerp, Belgium? <|assistant|> SELECT COUNT("year") FROM "achievements" WHERE "venue"='antwerp, belgium' AND "result"='2nd';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text ); Question: What is the name of the venue that was used before 1991? <|assistant|> SELECT "venue" FROM "achievements" WHERE "year"<1991;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text ); Question: How many years did the team place 2nd in Auckland, New Zealand? <|assistant|> SELECT COUNT("year") FROM "achievements" WHERE "result"='2nd' AND "venue"='auckland, new zealand';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overall" ( "competition" text, "started_round" text, "final_position" text, "final_round" text, "first_match" text, "last_match" text ); Question: What was the started round for the competition that had the last match on January 16, 2008? <|assistant|> SELECT "started_round" FROM "overall" WHERE "last_match"='january 16, 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overall" ( "competition" text, "started_round" text, "final_position" text, "final_round" text, "first_match" text, "last_match" text ); Question: On what date was the first match for the competition that ended its last match on December 16, 2007? <|assistant|> SELECT "first_match" FROM "overall" WHERE "last_match"='december 16, 2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overall" ( "competition" text, "started_round" text, "final_position" text, "final_round" text, "first_match" text, "last_match" text ); Question: What competition had a final round in the finals and the final position winners? <|assistant|> SELECT "competition" FROM "overall" WHERE "final_position"='winners' AND "final_round"='finals';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overall" ( "competition" text, "started_round" text, "final_position" text, "final_round" text, "first_match" text, "last_match" text ); Question: On what date did the first match occur for the competition that ended with a final position of winners and the final round in the finals? <|assistant|> SELECT "first_match" FROM "overall" WHERE "final_position"='winners' AND "final_round"='finals';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overall" ( "competition" text, "started_round" text, "final_position" text, "final_round" text, "first_match" text, "last_match" text ); Question: What competition had its first match on December 20, 2007? <|assistant|> SELECT "competition" FROM "overall" WHERE "first_match"='december 20, 2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overall" ( "competition" text, "started_round" text, "final_position" text, "final_round" text, "first_match" text, "last_match" text ); Question: What was the date of the first match of the Fifa Club World Cup that ended with the final position as winners? <|assistant|> SELECT "first_match" FROM "overall" WHERE "final_position"='winners' AND "competition"='fifa club world cup';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What was Len Sutton's total number of completed laps when his qualifying time was 142.653? <|assistant|> SELECT COUNT("laps") FROM "indy_500_results" WHERE "qual"='142.653';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: What call sign has a frequency of 91.3 MHz? <|assistant|> SELECT "call_sign" FROM "translators" WHERE "frequency_m_hz"=91.3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: What city of license has a value of k293bg for its call sign? <|assistant|> SELECT "city_of_license" FROM "translators" WHERE "call_sign"='k293bg';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: When the frequency is 103.7 MHz and the ERP W is more than 10, what is the call sign? <|assistant|> SELECT "call_sign" FROM "translators" WHERE "erp_w">10 AND "frequency_m_hz"=103.7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: In Los Banos, California, when the ERP W is than 10, what is the average Frequency MHz? <|assistant|> SELECT AVG("frequency_m_hz") FROM "translators" WHERE "city_of_license"='los banos, california' AND "erp_w"<10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: What is the call sign when the frequency is less than 95.5 MHz, and a ERP W is higher than 10? <|assistant|> SELECT "call_sign" FROM "translators" WHERE "frequency_m_hz"<95.5 AND "erp_w">10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" real ); Question: Name the player with score of 73-69-74-71=287 <|assistant|> SELECT "player" FROM "final_round" WHERE "score"='73-69-74-71=287';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" real ); Question: Name the sum To par for score of 71-74-71-72=288 <|assistant|> SELECT SUM("to_par") FROM "final_round" WHERE "score"='71-74-71-72=288';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "tournament" text, "date" text, "surface" text, "round" text, "opponent" text ); Question: Tell me the tournament for kathy horvath opponent <|assistant|> SELECT "tournament" FROM "references" WHERE "opponent"='kathy horvath';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "tournament" text, "date" text, "surface" text, "round" text, "opponent" text ); Question: Name the date for hard surface at maybelline classic with opponent of wendy turnbull <|assistant|> SELECT "date" FROM "references" WHERE "surface"='hard' AND "tournament"='maybelline classic' AND "opponent"='wendy turnbull';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "tournament" text, "date" text, "surface" text, "round" text, "opponent" text ); Question: Name the tournament for semifinal hard surface for opponent of pam casale <|assistant|> SELECT "tournament" FROM "references" WHERE "round"='semifinal' AND "surface"='hard' AND "opponent"='pam casale';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "tournament" text, "date" text, "surface" text, "round" text, "opponent" text ); Question: Name the date for grass surface for quarterfinal at the nsw building society open tournament <|assistant|> SELECT "date" FROM "references" WHERE "surface"='grass' AND "round"='quarterfinal' AND "tournament"='nsw building society open';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "tournament" text, "date" text, "surface" text, "round" text, "opponent" text ); Question: Name the surface for united airlines tournament of champions final round <|assistant|> SELECT "surface" FROM "references" WHERE "tournament"='united airlines tournament of champions' AND "round"='final';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "tournament" text, "date" text, "surface" text, "round" text, "opponent" text ); Question: Name the date for chris evert opponent and carpet surface <|assistant|> SELECT "date" FROM "references" WHERE "opponent"='chris evert' AND "surface"='carpet';<|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: Name the venue for 25 may 2008 <|assistant|> SELECT "venue" FROM "international_goals" WHERE "date"='25 may 2008';<|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: Name the score for 2015 afc asian cup qualification <|assistant|> SELECT "score" FROM "international_goals" WHERE "competition"='2015 afc asian cup qualification';<|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: Name the competition for 13 december 2012 <|assistant|> SELECT "competition" FROM "international_goals" WHERE "date"='13 december 2012';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What was arrows racing team's highest points after 1982? <|assistant|> SELECT MAX("points") FROM "complete_formula_one_results" WHERE "entrant"='arrows racing team' AND "year">1982;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: How many years has 2 points? <|assistant|> SELECT SUM("year") FROM "complete_formula_one_results" WHERE "points"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "disc_two" ( "track" real, "recorded" text, "catalogue" text, "release_date" text, "song_title" text, "time" text ); Question: Name the catalogue with song title of love me tonight <|assistant|> SELECT "catalogue" FROM "disc_two" WHERE "song_title"='love me tonight';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "disc_two" ( "track" real, "recorded" text, "catalogue" text, "release_date" text, "song_title" text, "time" text ); Question: Name the song title with time of 1:51 <|assistant|> SELECT "song_title" FROM "disc_two" WHERE "time"='1:51';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "disc_two" ( "track" real, "recorded" text, "catalogue" text, "release_date" text, "song_title" text, "time" text ); Question: Name the least track with song of little sister <|assistant|> SELECT MIN("track") FROM "disc_two" WHERE "song_title"='little sister';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_scores" ( "player" text, "score" text, "balls" real, "opponent" text, "ground" text ); Question: What player has a score of 79? <|assistant|> SELECT "player" FROM "highest_scores" WHERE "score"='79';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_scores" ( "player" text, "score" text, "balls" real, "opponent" text, "ground" text ); Question: Who played on waca ground and scored 79 points? <|assistant|> SELECT "opponent" FROM "highest_scores" WHERE "ground"='waca ground' AND "score"='79';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_scores" ( "player" text, "score" text, "balls" real, "opponent" text, "ground" text ); Question: What player had 49 balls? <|assistant|> SELECT "player" FROM "highest_scores" WHERE "balls"=49;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What was the highest attendance of a game that had a score of 3-5? <|assistant|> SELECT MAX("attendance") FROM "game_log" WHERE "score"='3-5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: Who took the loss in the game that ended with a 54-61 record? <|assistant|> SELECT "loss" FROM "game_log" WHERE "record"='54-61';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "125cc_winner" text, "250cc_winner" text, "moto_gp_winner" text, "report" text ); Question: Name the report with 125cc winner of simone corsi and circuit of valencia <|assistant|> SELECT "report" FROM "grands_prix" WHERE "125cc_winner"='simone corsi' AND "circuit"='valencia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "125cc_winner" text, "250cc_winner" text, "moto_gp_winner" text, "report" text ); Question: Name the motogp winner with 125cc winner of gábor talmácsi and round of 13 <|assistant|> SELECT "moto_gp_winner" FROM "grands_prix" WHERE "125cc_winner"='gábor talmácsi' AND "round"=13;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "125cc_winner" text, "250cc_winner" text, "moto_gp_winner" text, "report" text ); Question: Name the 125cc winner with circuit of estoril <|assistant|> SELECT "125cc_winner" FROM "grands_prix" WHERE "circuit"='estoril';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "125cc_winner" text, "250cc_winner" text, "moto_gp_winner" text, "report" text ); Question: Name the date for motogp winner of casey stoner and grand prix of valencian grand prix <|assistant|> SELECT "date" FROM "grands_prix" WHERE "moto_gp_winner"='casey stoner' AND "grand_prix"='valencian grand prix';<|endoftext|>