chat_prompt
stringlengths
438
1.53k
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"s\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is the number for years 1985-88" }, { "role": "assistant", "content": "SELECT MIN(\"no\") FROM \"s\" WHERE \"years_for_jazz\"='1985-88';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"s\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which position does John Starks play?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"s\" WHERE \"player\"='John Starks';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"s\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which position does Deshawn Stevenson play?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"s\" WHERE \"player\"='DeShawn Stevenson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"s\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which player played 2004-05" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"s\" WHERE \"years_for_jazz\"='2004-05';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"r\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: Name the nationality who played for 1987-89?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"r\" WHERE \"years_for_jazz\"='1987-89';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"r\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: Wht years did truck robinson play?" }, { "role": "assistant", "content": "SELECT \"years_for_jazz\" FROM \"r\" WHERE \"player\"='Truck Robinson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"r\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is the player that played 2004-05?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"r\" WHERE \"years_for_jazz\"='2004-05';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"r\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is the number of players that played 1987-89?" }, { "role": "assistant", "content": "SELECT \"no\" FROM \"r\" WHERE \"years_for_jazz\"='1987-89';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"r\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is the nationality of bill robinzine?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"r\" WHERE \"player\"='Bill Robinzine';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"r\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is the player that played in 2004-05?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"r\" WHERE \"years_for_jazz\"='2004-05';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"t\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is the nationality of the player named Kelly Tripucka?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"t\" WHERE \"player\"='Kelly Tripucka';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"t\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: What years were the Iowa State school/club team have a jazz club?" }, { "role": "assistant", "content": "SELECT \"years_for_jazz\" FROM \"t\" WHERE \"school_club_team\"='Iowa State';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"t\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which player wears the number 6?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"t\" WHERE \"no\"=6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"t\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which player's position is the shooting guard?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"t\" WHERE \"position\"='Shooting guard';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"t\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is the number of school/club teams held by BYU?" }, { "role": "assistant", "content": "SELECT MIN(\"no\") FROM \"t\" WHERE \"school_club_team\"='BYU';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"d\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: What position did the player from maynard evans hs play" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"d\" WHERE \"school_club_team\"='Maynard Evans HS';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"d\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is the largest jersey number for the player from maryland" }, { "role": "assistant", "content": "SELECT MAX(\"no\") FROM \"d\" WHERE \"school_club_team\"='Maryland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"d\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: Who are the players that played for the jazz from 1979-86" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"d\" WHERE \"years_for_jazz\"='1979-86';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"d\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: What years did number 54 play for the jazz" }, { "role": "assistant", "content": "SELECT \"years_for_jazz\" FROM \"d\" WHERE \"no\"=54;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"d\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: How many schools did darryl dawkins play for" }, { "role": "assistant", "content": "SELECT COUNT(\"school_club_team\") FROM \"d\" WHERE \"player\"='Darryl Dawkins';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"e\" (\n \"player\" text,\n \"no\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is the nationality of the player who played during the years 1989-92; 1994-95?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"e\" WHERE \"years_for_jazz\"='1989-92; 1994-95';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"e\" (\n \"player\" text,\n \"no\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: How many schools are listed for the player who played the years for Jazz in 2010-11?" }, { "role": "assistant", "content": "SELECT COUNT(\"school_club_team\") FROM \"e\" WHERE \"years_for_jazz\"='2010-11';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"e\" (\n \"player\" text,\n \"no\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: How many players were names Howard Eisley?" }, { "role": "assistant", "content": "SELECT COUNT(\"no\") FROM \"e\" WHERE \"player\"='Howard Eisley';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"e\" (\n \"player\" text,\n \"no\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is the position for player Blue Edwards?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"e\" WHERE \"player\"='Blue Edwards';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"e\" (\n \"player\" text,\n \"no\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which player played the years for Jazz in 1995-2000, 2004-05" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"e\" WHERE \"years_for_jazz\"='1995-2000, 2004-05';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"e\" (\n \"player\" text,\n \"no\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which player is no. 53?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"e\" WHERE \"no\"='53';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"f\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: During which years did Jim Farmer play for Jazz?" }, { "role": "assistant", "content": "SELECT \"years_for_jazz\" FROM \"f\" WHERE \"player\"='Jim Farmer';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"f\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: How many players have played for Jazz during 2006-2007?" }, { "role": "assistant", "content": "SELECT COUNT(\"player\") FROM \"f\" WHERE \"years_for_jazz\"='2006-2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"f\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: What's Jim Farmer's nationality?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"f\" WHERE \"player\"='Jim Farmer';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"f\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: For how many players from UTEP can one calculate how many years they've played for Jazz?" }, { "role": "assistant", "content": "SELECT COUNT(\"years_for_jazz\") FROM \"f\" WHERE \"school_club_team\"='UTEP';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"f\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: How many position does Jim Farmer play in?" }, { "role": "assistant", "content": "SELECT COUNT(\"position\") FROM \"f\" WHERE \"player\"='Jim Farmer';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"g\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: What school or club did number 35 play for?" }, { "role": "assistant", "content": "SELECT \"school_club_team\" FROM \"g\" WHERE \"no\"=35;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"g\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: How many years did number 25 play for the Jazz?" }, { "role": "assistant", "content": "SELECT \"years_for_jazz\" FROM \"g\" WHERE \"no\"=25;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"g\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: How many years did Paul Griffin play for the Jazz?" }, { "role": "assistant", "content": "SELECT COUNT(\"years_for_jazz\") FROM \"g\" WHERE \"player\"='Paul Griffin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"g\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: What position did Lamar Green play?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"g\" WHERE \"player\"='Lamar Green';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"g\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: How many players only played for the Jazz in only 2010?" }, { "role": "assistant", "content": "SELECT COUNT(\"no\") FROM \"g\" WHERE \"years_for_jazz\"='2010';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"yards_on_the_west_coast\" (\n \"yard_name\" text,\n \"location_city_state\" text,\n \"1st_ship_delivery_date\" text,\n \"ship_types_delivered\" text,\n \"total_number_of_ways\" text,\n \"total_vessels_built\" text\n);\n\nQuestion: What was the delivery date when s2 (lst) type, s2 (frigate) type, c1-m type was delivered?" }, { "role": "assistant", "content": "SELECT \"1st_ship_delivery_date\" FROM \"yards_on_the_west_coast\" WHERE \"ship_types_delivered\"='S2 (LST) type, S2 (frigate) type, C1-M type';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"yards_on_the_west_coast\" (\n \"yard_name\" text,\n \"location_city_state\" text,\n \"1st_ship_delivery_date\" text,\n \"ship_types_delivered\" text,\n \"total_number_of_ways\" text,\n \"total_vessels_built\" text\n);\n\nQuestion: What type of ships were delivered on October 1942?" }, { "role": "assistant", "content": "SELECT \"ship_types_delivered\" FROM \"yards_on_the_west_coast\" WHERE \"1st_ship_delivery_date\"='October 1942';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"yards_on_the_west_coast\" (\n \"yard_name\" text,\n \"location_city_state\" text,\n \"1st_ship_delivery_date\" text,\n \"ship_types_delivered\" text,\n \"total_number_of_ways\" text,\n \"total_vessels_built\" text\n);\n\nQuestion: When was the delevery date when there were 12 ways of delivery?" }, { "role": "assistant", "content": "SELECT \"1st_ship_delivery_date\" FROM \"yards_on_the_west_coast\" WHERE \"total_number_of_ways\"='12 ways';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11562149_1\" (\n \"no_in_series\" text,\n \"no_in_season\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"featured_character_s\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What are the episode numbers where the episode features Jack & Locke?" }, { "role": "assistant", "content": "SELECT \"no_in_series\" FROM \"table1_11562149_1\" WHERE \"featured_character_s\"='Jack & Locke';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11562149_1\" (\n \"no_in_series\" text,\n \"no_in_season\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"featured_character_s\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What are the episode numbers of episodes featuring Hurley?" }, { "role": "assistant", "content": "SELECT \"no_in_series\" FROM \"table1_11562149_1\" WHERE \"featured_character_s\"='Hurley';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11562149_1\" (\n \"no_in_series\" text,\n \"no_in_season\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"featured_character_s\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: List the episode whose number in the series is 111." }, { "role": "assistant", "content": "SELECT \"no_in_season\" FROM \"table1_11562149_1\" WHERE \"no_in_series\"='111';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11562143_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"featured_character_s\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What date got 9.82 million viewers?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_11562143_1\" WHERE \"u_s_viewers_million\"='9.82';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11577996_1\" (\n \"year\" real,\n \"location\" text,\n \"1st_place\" text,\n \"2nd_place\" text,\n \"3rd_place\" text,\n \"4th_place\" text,\n \"5th_place\" text\n);\n\nQuestion: What school placed 4th when Oklahoma State University (black) took 3rd place?" }, { "role": "assistant", "content": "SELECT \"4th_place\" FROM \"table1_11577996_1\" WHERE \"3rd_place\"='Oklahoma State University (Black)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11577996_1\" (\n \"year\" real,\n \"location\" text,\n \"1st_place\" text,\n \"2nd_place\" text,\n \"3rd_place\" text,\n \"4th_place\" text,\n \"5th_place\" text\n);\n\nQuestion: What school took 3rd place in 2007?" }, { "role": "assistant", "content": "SELECT \"3rd_place\" FROM \"table1_11577996_1\" WHERE \"year\"=2007;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11577996_1\" (\n \"year\" real,\n \"location\" text,\n \"1st_place\" text,\n \"2nd_place\" text,\n \"3rd_place\" text,\n \"4th_place\" text,\n \"5th_place\" text\n);\n\nQuestion: What year did the University of California, San Diego take 1st place?" }, { "role": "assistant", "content": "SELECT MAX(\"year\") FROM \"table1_11577996_1\" WHERE \"1st_place\"='University of California, San Diego';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11577996_1\" (\n \"year\" real,\n \"location\" text,\n \"1st_place\" text,\n \"2nd_place\" text,\n \"3rd_place\" text,\n \"4th_place\" text,\n \"5th_place\" text\n);\n\nQuestion: What school took 4th place in 2002?" }, { "role": "assistant", "content": "SELECT \"4th_place\" FROM \"table1_11577996_1\" WHERE \"year\"=2002;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11577996_1\" (\n \"year\" real,\n \"location\" text,\n \"1st_place\" text,\n \"2nd_place\" text,\n \"3rd_place\" text,\n \"4th_place\" text,\n \"5th_place\" text\n);\n\nQuestion: What school took 4th place in 2001?" }, { "role": "assistant", "content": "SELECT \"4th_place\" FROM \"table1_11577996_1\" WHERE \"year\"=2001;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wins_18\" (\n \"year\" real,\n \"championship\" text,\n \"54_holes\" text,\n \"winning_score\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: Who were the runner(s)-up when Tiger won by 11 strokes?" }, { "role": "assistant", "content": "SELECT \"runner_s_up\" FROM \"wins_18\" WHERE \"margin_of_victory\"='11 strokes';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wins_18\" (\n \"year\" real,\n \"championship\" text,\n \"54_holes\" text,\n \"winning_score\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: What tournament did Tiger hold a 2 shot lead after 54 holes?" }, { "role": "assistant", "content": "SELECT \"championship\" FROM \"wins_18\" WHERE \"54_holes\"='2 shot lead';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wins_18\" (\n \"year\" real,\n \"championship\" text,\n \"54_holes\" text,\n \"winning_score\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: What was the margin of victory over Justin Leonard, phillip price?" }, { "role": "assistant", "content": "SELECT COUNT(\"margin_of_victory\") FROM \"wins_18\" WHERE \"runner_s_up\"='Justin Leonard, Phillip Price';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"grounds\" (\n \"name_of_ground\" text,\n \"location\" text,\n \"first_class_span\" text,\n \"worcs_f_c_matches\" real,\n \"list_a_span\" text,\n \"worcs_la_matches\" real\n);\n\nQuestion: There were 68 worcs f-c matches played on Chester Road North Ground." }, { "role": "assistant", "content": "SELECT \"worcs_f_c_matches\" FROM \"grounds\" WHERE \"name_of_ground\"='Chester Road North Ground';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pga_tour_professional_career_summary\" (\n \"year\" real,\n \"starts\" real,\n \"cuts_made\" text,\n \"wins_majors\" text,\n \"2nd\" real,\n \"3rd\" real,\n \"top_10\" real,\n \"top_25\" real,\n \"earnings\" real,\n \"money_list_rank\" real,\n \"adjusted_scoring_average_rank\" text\n);\n\nQuestion: How many times did Tiger get second in the year where there were 11 cuts?" }, { "role": "assistant", "content": "SELECT MAX(\"2nd\") FROM \"pga_tour_professional_career_summary\" WHERE \"cuts_made\"='11';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"steam_locomotives\" (\n \"name\" text,\n \"number\" text,\n \"builder\" text,\n \"date_built\" text,\n \"wheel_arrangement\" text,\n \"driving_wheels\" text,\n \"cylinders\" text,\n \"boiler_pressure\" text,\n \"notes\" text\n);\n\nQuestion: What's written in the notes for the locomotives with cylinder size of 12\" x 17\"?" }, { "role": "assistant", "content": "SELECT \"notes\" FROM \"steam_locomotives\" WHERE \"cylinders\"='12\\\" x 17\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"steam_locomotives\" (\n \"name\" text,\n \"number\" text,\n \"builder\" text,\n \"date_built\" text,\n \"wheel_arrangement\" text,\n \"driving_wheels\" text,\n \"cylinders\" text,\n \"boiler_pressure\" text,\n \"notes\" text\n);\n\nQuestion: Which locomotives 12\" x 17\" are both ex-industrial and built by Manning Wardle?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"steam_locomotives\" WHERE \"notes\"='Ex-industrial' AND \"builder\"='Manning Wardle';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"steam_locomotives\" (\n \"name\" text,\n \"number\" text,\n \"builder\" text,\n \"date_built\" text,\n \"wheel_arrangement\" text,\n \"driving_wheels\" text,\n \"cylinders\" text,\n \"boiler_pressure\" text,\n \"notes\" text\n);\n\nQuestion: What's the size of the cylinders built by Longbottom, Barnsley?" }, { "role": "assistant", "content": "SELECT \"cylinders\" FROM \"steam_locomotives\" WHERE \"builder\"='Longbottom, Barnsley';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"steam_locomotives\" (\n \"name\" text,\n \"number\" text,\n \"builder\" text,\n \"date_built\" text,\n \"wheel_arrangement\" text,\n \"driving_wheels\" text,\n \"cylinders\" text,\n \"boiler_pressure\" text,\n \"notes\" text\n);\n\nQuestion: Who is the builder of the locomotives with wheel arrangement of 2-4-2 T?" }, { "role": "assistant", "content": "SELECT \"builder\" FROM \"steam_locomotives\" WHERE \"wheel_arrangement\"='2-4-2 T';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"steam_locomotives\" (\n \"name\" text,\n \"number\" text,\n \"builder\" text,\n \"date_built\" text,\n \"wheel_arrangement\" text,\n \"driving_wheels\" text,\n \"cylinders\" text,\n \"boiler_pressure\" text,\n \"notes\" text\n);\n\nQuestion: On what date did Hudswell Clarke build the locomotive with 0-6-0 ST wheel arrangements?" }, { "role": "assistant", "content": "SELECT \"date_built\" FROM \"steam_locomotives\" WHERE \"wheel_arrangement\"='0-6-0 ST' AND \"builder\"='Hudswell Clarke';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1905_1909\" (\n \"number\" real,\n \"date_of_debut\" text,\n \"name\" text,\n \"date_of_birth\" text,\n \"number_of_caps\" real,\n \"number_of_goals\" real,\n \"date_of_death\" text\n);\n\nQuestion: What amount of times is the name, Bok De Korver listed?" }, { "role": "assistant", "content": "SELECT MAX(\"number\") FROM \"1905_1909\" WHERE \"name\"='Bok de Korver';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1905_1909\" (\n \"number\" real,\n \"date_of_debut\" text,\n \"name\" text,\n \"date_of_birth\" text,\n \"number_of_caps\" real,\n \"number_of_goals\" real,\n \"date_of_death\" text\n);\n\nQuestion: What is the total number of goals on the debut date of 14-04-1907?" }, { "role": "assistant", "content": "SELECT COUNT(\"number_of_goals\") FROM \"1905_1909\" WHERE \"date_of_debut\"='14-04-1907';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1905_1909\" (\n \"number\" real,\n \"date_of_debut\" text,\n \"name\" text,\n \"date_of_birth\" text,\n \"number_of_caps\" real,\n \"number_of_goals\" real,\n \"date_of_death\" text\n);\n\nQuestion: What is the date of debut that has a date of birth listed at 24-10-1887?" }, { "role": "assistant", "content": "SELECT \"date_of_debut\" FROM \"1905_1909\" WHERE \"date_of_birth\"='24-10-1887';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1905_1909\" (\n \"number\" real,\n \"date_of_debut\" text,\n \"name\" text,\n \"date_of_birth\" text,\n \"number_of_caps\" real,\n \"number_of_goals\" real,\n \"date_of_death\" text\n);\n\nQuestion: What is the name of person that scored 10 goals?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"1905_1909\" WHERE \"number_of_goals\"=10;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1905_1909\" (\n \"number\" real,\n \"date_of_debut\" text,\n \"name\" text,\n \"date_of_birth\" text,\n \"number_of_caps\" real,\n \"number_of_goals\" real,\n \"date_of_death\" text\n);\n\nQuestion: What is the name of the person whose date of death is 01-04-1954?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"1905_1909\" WHERE \"date_of_death\"='01-04-1954';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1905_1909\" (\n \"number\" real,\n \"date_of_debut\" text,\n \"name\" text,\n \"date_of_birth\" text,\n \"number_of_caps\" real,\n \"number_of_goals\" real,\n \"date_of_death\" text\n);\n\nQuestion: What is the toatl number of caps where the name is Hans Blume?" }, { "role": "assistant", "content": "SELECT COUNT(\"number_of_caps\") FROM \"1905_1909\" WHERE \"name\"='Hans Blume';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1910_1919\" (\n \"number\" real,\n \"date_of_debut\" text,\n \"name\" text,\n \"date_of_birth\" text,\n \"number_of_caps\" real,\n \"number_of_goals\" real,\n \"date_of_death\" text\n);\n\nQuestion: What was the date of Henk Hordijk's death?" }, { "role": "assistant", "content": "SELECT \"date_of_death\" FROM \"1910_1919\" WHERE \"name\"='Henk Hordijk';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"65_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"fsb\" text,\n \"mult\" text,\n \"voltage\" text,\n \"tdp\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What frequency is the pentium dual-core t3200?" }, { "role": "assistant", "content": "SELECT \"frequency\" FROM \"65_nm\" WHERE \"model_number\"='Pentium Dual-Core T3200';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"65_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"fsb\" text,\n \"mult\" text,\n \"voltage\" text,\n \"tdp\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What is the frequency of the model with part number lf80537gf0411m?" }, { "role": "assistant", "content": "SELECT \"frequency\" FROM \"65_nm\" WHERE \"part_number_s\"='LF80537GF0411M';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"65_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"fsb\" text,\n \"mult\" text,\n \"voltage\" text,\n \"tdp\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What is the FSB of the model with part number lf80537gf0411m?" }, { "role": "assistant", "content": "SELECT \"fsb\" FROM \"65_nm\" WHERE \"part_number_s\"='LF80537GF0411M';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"65_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"fsb\" text,\n \"mult\" text,\n \"voltage\" text,\n \"tdp\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What is the FSB of the model with part number lf80537ge0251mn?" }, { "role": "assistant", "content": "SELECT \"fsb\" FROM \"65_nm\" WHERE \"part_number_s\"='LF80537GE0251MN';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"65_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"fsb\" text,\n \"mult\" text,\n \"voltage\" text,\n \"tdp\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What is the socket for the pentium dual-core t2410?" }, { "role": "assistant", "content": "SELECT \"socket\" FROM \"65_nm\" WHERE \"model_number\"='Pentium Dual-Core T2410';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"65_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"fsb\" text,\n \"mult\" text,\n \"voltage\" text,\n \"tdp\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What is the release date for the model with sspec number sla4h(m0)?" }, { "role": "assistant", "content": "SELECT \"release_date\" FROM \"65_nm\" WHERE \"s_spec_number\"='SLA4H(M0)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"purse\" real,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" real\n);\n\nQuestion: How many different scores are there for the Verizon Classic?" }, { "role": "assistant", "content": "SELECT COUNT(\"score\") FROM \"tournament_results\" WHERE \"tournament\"='Verizon Classic';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"purse\" real,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" real\n);\n\nQuestion: What was the score for the tournament in Michigan where the purse was smaller than 1813335.221493934?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"tournament_results\" WHERE \"location\"='Michigan' AND \"purse\"<1813335.221493934;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"purse\" real,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" real\n);\n\nQuestion: How many tournaments were held in Maryland?" }, { "role": "assistant", "content": "SELECT COUNT(\"tournament\") FROM \"tournament_results\" WHERE \"location\"='Maryland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"purse\" real,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" real\n);\n\nQuestion: How many different locations have the score 207 (-10)?" }, { "role": "assistant", "content": "SELECT COUNT(\"location\") FROM \"tournament_results\" WHERE \"score\"='207 (-10)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11604804_5\" (\n \"institution\" text,\n \"nickname\" text,\n \"status\" text,\n \"founded\" real,\n \"color\" text,\n \"location\" text\n);\n\nQuestion: What is the founding of parsu cimmarons?" }, { "role": "assistant", "content": "SELECT MIN(\"founded\") FROM \"table1_11604804_5\" WHERE \"nickname\"='ParSU Cimmarons';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11604804_5\" (\n \"institution\" text,\n \"nickname\" text,\n \"status\" text,\n \"founded\" real,\n \"color\" text,\n \"location\" text\n);\n\nQuestion: What was the founding of navy blue?" }, { "role": "assistant", "content": "SELECT \"founded\" FROM \"table1_11604804_5\" WHERE \"color\"='Navy Blue';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11604804_5\" (\n \"institution\" text,\n \"nickname\" text,\n \"status\" text,\n \"founded\" real,\n \"color\" text,\n \"location\" text\n);\n\nQuestion: What was the number of nickname founded 1918?" }, { "role": "assistant", "content": "SELECT COUNT(\"nickname\") FROM \"table1_11604804_5\" WHERE \"founded\"=1918;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11604804_5\" (\n \"institution\" text,\n \"nickname\" text,\n \"status\" text,\n \"founded\" real,\n \"color\" text,\n \"location\" text\n);\n\nQuestion: What was the number of location of nickname cbsua formerly known cssac?" }, { "role": "assistant", "content": "SELECT COUNT(\"location\") FROM \"table1_11604804_5\" WHERE \"nickname\"='CBSUA formerly known CSSAC';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11603267_1\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"purse\" real,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" real\n);\n\nQuestion: Name the tournament for arizona" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"table1_11603267_1\" WHERE \"location\"='Arizona';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"district_122_gross_revenue_by_sources\" (\n \"year\" real,\n \"property_taxes\" text,\n \"investment_earnings\" text,\n \"other_local_sources\" text,\n \"state_federal\" text,\n \"total_revenue\" text\n);\n\nQuestion: Name the state and federal when property taxes is 17,199,210" }, { "role": "assistant", "content": "SELECT \"state_federal\" FROM \"district_122_gross_revenue_by_sources\" WHERE \"property_taxes\"='17,199,210';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"district_122_gross_revenue_by_sources\" (\n \"year\" real,\n \"property_taxes\" text,\n \"investment_earnings\" text,\n \"other_local_sources\" text,\n \"state_federal\" text,\n \"total_revenue\" text\n);\n\nQuestion: What is the local sources for property taxes of 11,631,227?" }, { "role": "assistant", "content": "SELECT \"other_local_sources\" FROM \"district_122_gross_revenue_by_sources\" WHERE \"property_taxes\"='11,631,227';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"district_122_gross_revenue_by_sources\" (\n \"year\" real,\n \"property_taxes\" text,\n \"investment_earnings\" text,\n \"other_local_sources\" text,\n \"state_federal\" text,\n \"total_revenue\" text\n);\n\nQuestion: What is the number of local sources for state and federal 12,929,489" }, { "role": "assistant", "content": "SELECT \"other_local_sources\" FROM \"district_122_gross_revenue_by_sources\" WHERE \"state_federal\"='12,929,489';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1893\" (\n \"governorate\" text,\n \"name_in_russian\" text,\n \"name_in_polish\" text,\n \"seat\" text,\n \"area_in_thousands_of_km_2\" real,\n \"population_in_thousands_1905\" real\n);\n\nQuestion: What seat does \u043f\u043b\u043e\u0446\u043a\u0430\u044f \u0433\u0443\u0431\u0435\u0440\u043d\u0438\u044f hold?" }, { "role": "assistant", "content": "SELECT \"seat\" FROM \"1893\" WHERE \"name_in_russian\"='\u041f\u043b\u043e\u0446\u043a\u0430\u044f \u0433\u0443\u0431\u0435\u0440\u043d\u0438\u044f';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1893\" (\n \"governorate\" text,\n \"name_in_russian\" text,\n \"name_in_polish\" text,\n \"seat\" text,\n \"area_in_thousands_of_km_2\" real,\n \"population_in_thousands_1905\" real\n);\n\nQuestion: Whose name in Polish holds the Lublin seat?" }, { "role": "assistant", "content": "SELECT \"name_in_polish\" FROM \"1893\" WHERE \"seat\"='Lublin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1893\" (\n \"governorate\" text,\n \"name_in_russian\" text,\n \"name_in_polish\" text,\n \"seat\" text,\n \"area_in_thousands_of_km_2\" real,\n \"population_in_thousands_1905\" real\n);\n\nQuestion: Who, in Polish, governs a location with a population of 1640 (in thousands)?" }, { "role": "assistant", "content": "SELECT \"name_in_polish\" FROM \"1893\" WHERE \"population_in_thousands_1905\"=1640;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1893\" (\n \"governorate\" text,\n \"name_in_russian\" text,\n \"name_in_polish\" text,\n \"seat\" text,\n \"area_in_thousands_of_km_2\" real,\n \"population_in_thousands_1905\" real\n);\n\nQuestion: What seat does Gubernia Warszawska hold?" }, { "role": "assistant", "content": "SELECT \"seat\" FROM \"1893\" WHERE \"name_in_polish\"='Gubernia warszawska';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1893\" (\n \"governorate\" text,\n \"name_in_russian\" text,\n \"name_in_polish\" text,\n \"seat\" text,\n \"area_in_thousands_of_km_2\" real,\n \"population_in_thousands_1905\" real\n);\n\nQuestion: What population (in thousands) is Lublin's seat?" }, { "role": "assistant", "content": "SELECT \"population_in_thousands_1905\" FROM \"1893\" WHERE \"seat\"='Lublin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1893\" (\n \"governorate\" text,\n \"name_in_russian\" text,\n \"name_in_polish\" text,\n \"seat\" text,\n \"area_in_thousands_of_km_2\" real,\n \"population_in_thousands_1905\" real\n);\n\nQuestion: \u043f\u043b\u043e\u0446\u043a\u0430\u044f \u0433\u0443\u0431\u0435\u0440\u043d\u0438\u044f governs an area with what area (in thousand km 2)?" }, { "role": "assistant", "content": "SELECT \"area_in_thousands_of_km_2\" FROM \"1893\" WHERE \"name_in_russian\"='\u041f\u043b\u043e\u0446\u043a\u0430\u044f \u0433\u0443\u0431\u0435\u0440\u043d\u0438\u044f';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"match_attendance\" (\n \"venue\" text,\n \"hosted\" real,\n \"average\" real,\n \"highest\" real,\n \"lowest\" real,\n \"total\" real,\n \"last_year\" text,\n \"up_down\" text\n);\n\nQuestion: What is the up/down at the venue that hosted 7 games?" }, { "role": "assistant", "content": "SELECT \"up_down\" FROM \"match_attendance\" WHERE \"hosted\"=7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"match_attendance\" (\n \"venue\" text,\n \"hosted\" real,\n \"average\" real,\n \"highest\" real,\n \"lowest\" real,\n \"total\" real,\n \"last_year\" text,\n \"up_down\" text\n);\n\nQuestion: What was the attendance last year at Manuka Oval?" }, { "role": "assistant", "content": "SELECT \"last_year\" FROM \"match_attendance\" WHERE \"venue\"='Manuka Oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"match_attendance\" (\n \"venue\" text,\n \"hosted\" real,\n \"average\" real,\n \"highest\" real,\n \"lowest\" real,\n \"total\" real,\n \"last_year\" text,\n \"up_down\" text\n);\n\nQuestion: What was the lowest attendance figure at Football Park?" }, { "role": "assistant", "content": "SELECT \"lowest\" FROM \"match_attendance\" WHERE \"venue\"='Football Park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"match_attendance\" (\n \"team\" text,\n \"hosted\" real,\n \"average\" real,\n \"highest\" real,\n \"lowest\" real,\n \"total\" real,\n \"last_year\" real,\n \"up_down\" text\n);\n\nQuestion: What is the total of port adelaide" }, { "role": "assistant", "content": "SELECT MAX(\"total\") FROM \"match_attendance\" WHERE \"team\"='Port Adelaide';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"purse\" real,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" real\n);\n\nQuestion: what's the maximum\u00a0purse( $ )\u00a0with\u00a0score\u00a0value of 204 (-9)" }, { "role": "assistant", "content": "SELECT MAX(\"purse\") FROM \"tournament_results\" WHERE \"score\"='204 (-9)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"purse\" real,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" real\n);\n\nQuestion: what's the\u00a0winner\u00a0with\u00a0purse( $ )\u00a0value of bigger than 964017.2297960471 and\u00a0date\u00a0value of may 28" }, { "role": "assistant", "content": "SELECT \"winner\" FROM \"tournament_results\" WHERE \"purse\">964017.2297960471 AND \"date\"='May 28';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"purse\" real,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" real\n);\n\nQuestion: what's the\u00a0winner\u00a0with\u00a0tournament\u00a0value of kroger senior classic" }, { "role": "assistant", "content": "SELECT \"winner\" FROM \"tournament_results\" WHERE \"tournament\"='Kroger Senior Classic';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"purse\" real,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" real\n);\n\nQuestion: what's the\u00a0date\u00a0with\u00a0tournament\u00a0value of ford senior players championship" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"tournament_results\" WHERE \"tournament\"='Ford Senior Players Championship';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"purse\" real,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" real\n);\n\nQuestion: what's the\u00a0location\u00a0with\u00a0tournament\u00a0value of quicksilver classic" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"tournament_results\" WHERE \"tournament\"='Quicksilver Classic';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"purse\" real,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" real\n);\n\nQuestion: what's the\u00a0score\u00a0with\u00a0date\u00a0 oct 1" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"tournament_results\" WHERE \"date\"='Oct 1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"purse\" real,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" real\n);\n\nQuestion: What was the score for the Toshiba Senior Classic?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"tournament_results\" WHERE \"tournament\"='Toshiba Senior Classic';" } ]